/* Paper, ink, and the tags on a travel journal. */
@font-face {
  font-family: Caveat;
  src: url("/fonts/caveat-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Caveat;
  src: url("/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #192b28;
  --deep: #14221f;
  --paper: #f5ecda;
  --card: #fffaf0;
  --yellow: #ffda7e;
  --amber: #a86512;
  --orange: #ee9b69;
  --terracotta: #8b4633;
  --teal: #5a9ca3;
  --green: #247554;
  --red: #a94a3e;
  --crimson: #c63b2f;
  --line: #d9d1c1;
  --muted: #52625a;
  --display: Caveat, "Segoe Print", cursive;
  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d9822b;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 13px 16px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 6px;
  z-index: 300;
}
.skip-link:focus {
  top: 10px;
}
/* Warm light journal topbar */
.topbar {
  min-height: 72px;
  background: #fff9ec;
  color: var(--ink);
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d6c7aa;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.wordmark {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-3deg);
  font-weight: 500;
  color: var(--ink);
}
.wordmark span {
  color: var(--terracotta);
}
.wordmark sup {
  display: inline-block;
  font-size: 20px;
  vertical-align: top;
  margin-left: 2px;
  margin-top: 1px;
}
/* Original cute camera logo with moving eyes */
.camera-friend {
  background: none;
  width: 52px;
  height: 44px;
  padding: 0;
  position: relative;
  color: #f7c968;
  z-index: 5;
  transform: rotate(-7deg);
  transition: transform 0.16s ease;
}
.camera-friend:hover {
  transform: rotate(7deg);
}
.camera-friend > .camera-svg {
  width: 52px;
  height: 44px;
}
#camera-eyes {
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  transform-origin: 30px 27px;
  transition: transform 0.14s ease-out;
}
.camera-eyes-wrap {
  transform-origin: 30px 27px;
}
.camera-friend:not(.is-tracking) .camera-eyes-wrap {
  animation:
    eyes-wander 6.8s ease-in-out infinite,
    eyes-blink-idle 5.2s ease-in-out infinite;
}
.camera-blink #camera-eyes {
  animation: camera-blink 0.28s ease-in-out;
}
.camera-friend.mood-right {
  animation: camera-hop 0.45s ease;
}
.camera-friend.mood-wrong {
  animation: camera-tilt 0.45s ease;
}
.camera-friend span {
  position: absolute;
  left: 46px;
  top: 38px;
  min-width: 118px;
  background: #fff9e6;
  color: var(--ink);
  border: 1.5px solid #9e7b44;
  border-radius: 7px 9px 7px 8px;
  padding: 7px 11px;
  font: 700 1.15rem/1.15 var(--display);
  transform: rotate(7deg);
  white-space: nowrap;
  box-shadow: 2px 3px 0 #a58a5e44;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.edition {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.total-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 5px;
  row-gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.total-score > span:first-child {
  grid-column: 1/-1;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.total-score strong {
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.total-score > span:last-child {
  font-size: 12px;
  color: var(--muted);
  align-self: end;
  margin-bottom: 3px;
}
.help-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid #8a795c;
  border-radius: 50%;
  background: #fffaf0;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.14s;
}
.help-btn:hover {
  background: var(--yellow);
}
.trip-progress {
  display: flex;
  gap: 14px;
  position: relative;
  align-items: center;
  isolation: isolate;
}
.trip-progress:before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  border-top: 1px dashed #96896f;
  z-index: -1;
}
.trip-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff9ec;
  color: var(--muted);
  border: 1.5px solid #a99470;
  font-family: monospace;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 1 !important;
  position: relative;
  transition: transform 0.14s;
}
.trip-node.current {
  background: var(--yellow);
  border-color: #956e2c;
  color: var(--ink);
  font-weight: 700;
}
.trip-node.done {
  background: #3b5347;
  border-color: #667c6d;
  color: #fffdf2;
  font-size: 15px;
}
.trip-node.done-100 {
  background: #d3ecd9;
  border-color: var(--green);
  color: var(--ink);
}
.trip-node.done-50 {
  background: #fce8b2;
  border-color: #c28a2e;
  color: var(--ink);
}
.trip-node.done-0 {
  background: #edd4cd;
  border-color: var(--red);
  color: var(--ink);
}
.trip-node.reviewable:hover {
  transform: translateY(-2px);
}
main,
.game-footer {
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  outline: none;
}
.round-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(1.1rem, 2.7vw, 2.1rem) 0 clamp(0.85rem, 2vw, 1.5rem);
}
.round-title {
  display: flex;
  gap: clamp(0.65rem, 1.5vw, 1.2rem);
  align-items: center;
  min-width: 0;
}
.round-ticket {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: 1px solid #ab8034;
  border-radius: 6px 7px 6px 8px;
  font: 700 1.45rem/1 var(--display);
  transform: rotate(-8deg);
  color: var(--ink);
  flex-shrink: 0;
}
h1 {
  font: 700 clamp(2.6rem, 4.6vw, 4.3rem)/0.94 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Single dynamic round stakes tag (journal style, no 2-step tabs) */
.stakes-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #fff9ec;
  border: 1px solid #cfc1a5;
  border-radius: 6px;
  flex-shrink: 0;
  transition:
    background 0.16s ease-out,
    border-color 0.16s ease-out;
}
.stakes-label {
  font: 600 12px/1 system-ui, -apple-system, sans-serif;
  color: var(--muted);
}
.stakes-value {
  font: 700 1.45rem/1 var(--display);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stakes-badge.slashed {
  background: #fff1d8;
  border-color: #c97a46;
}
.stakes-badge.slashed .stakes-label {
  color: var(--terracotta);
}
.stakes-badge.animate-slash {
  animation: pop-bounce 0.42s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
.stakes-badge.animate-slash .pts-slash-bar {
  animation: slash-cut 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.stakes-badge.animate-slash .pts-new {
  animation: pts-drop-in 0.42s cubic-bezier(0.22, 1.5, 0.36, 1) 0.16s both;
}
.stakes-badge.won-100 {
  background: #e1f2e7;
  border-color: #6ca684;
}
.stakes-badge.won-100 .stakes-label,
.stakes-badge.won-100 .stakes-value {
  color: var(--green);
}
.stakes-badge.won-50 {
  background: #fff0c6;
  border-color: #c8963e;
}
.stakes-badge.won-50 .stakes-label,
.stakes-badge.won-50 .stakes-value {
  color: #7e4f12;
}
.stakes-badge.missed {
  background: #f5dfda;
  border-color: #c77b70;
}
.stakes-badge.missed .stakes-label,
.stakes-badge.missed .stakes-value {
  color: var(--red);
}
.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(340px, 1fr);
  gap: clamp(1rem, 2.1vw, 1.8rem);
  align-items: start;
}
.photo-panel {
  min-width: 0;
}
/* Cute masking tape on the polaroid photo frame */
.photo-panel:not(.expanded) {
  position: relative;
}
.photo-panel:not(.expanded)::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: -9px;
  left: 11%;
  width: 72px;
  height: 19px;
  background: repeating-linear-gradient(
    120deg,
    #ffda7ecf 0 3px,
    #ffda7eeb 3px 6px
  );
  clip-path: polygon(
    1% 4%,
    96% 1%,
    100% 21%,
    97% 29%,
    100% 44%,
    97% 55%,
    100% 72%,
    96% 96%,
    2% 100%,
    0 80%,
    3% 70%,
    0 54%,
    3% 39%,
    0 24%
  );
  transform: rotate(-7deg);
  pointer-events: none;
}
.photo-frame {
  aspect-ratio: 8/5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #14221f;
  border: clamp(5px, 0.65vw, 10px) solid var(--card);
  border-radius: 8px 9px 8px 7px;
  box-shadow:
    0 0 0 1px #d2c6ad,
    1px 7px 0 -2px #d0bb9059,
    0 9px 20px #49361a17;
}
.photo-surface,
.pano-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  outline-offset: -6px !important;
}
.photo-surface.is-zoomed {
  cursor: grab;
}
.photo-surface.is-zoomed:active,
.pano-surface:active {
  cursor: grabbing;
}
.pano-surface {
  cursor: grab;
  z-index: 1;
}
.zoom-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.panorama-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.view-label,
.heading-label,
.frame-control,
.zoom-controls,
.pano-controls {
  color: #fffdf4;
  background: #14221fee;
  border: 1px solid #fffdf44d;
  border-radius: 8px;
  box-shadow: 0 3px 10px #0002;
}
.view-label {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
}
.view-label-square {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.frame-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.heading-label {
  font: 13px monospace;
  min-width: 49px;
  text-align: center;
  padding: 9px 9px;
  font-variant-numeric: tabular-nums;
}
.frame-control {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.frame-control:hover {
  background: var(--yellow);
  color: var(--ink);
}
.frame-control .icon {
  width: 17px;
  height: 17px;
}
.zoom-controls {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.zoom-controls button,
.inspect-zoom button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: transparent;
  border-right: 1px solid #fffdf435;
}
.inspect-zoom button {
  background: var(--card);
  border-right-color: #c8bfa9;
}
.zoom-controls button:hover,
.inspect-zoom button:hover {
  background: var(--yellow);
  color: var(--ink);
}
.zoom-controls span,
.inspect-zoom span {
  font: 13px monospace;
  min-width: 43px;
  text-align: center;
  order: 1;
}
.zoom-controls button:first-child,
.inspect-zoom button:first-child {
  order: 0;
}
.zoom-controls button:nth-child(3),
.inspect-zoom button:nth-child(3) {
  order: 2;
  border-left: 1px solid #fffdf435;
}
.inspect-zoom button:nth-child(3) {
  border-left-color: #c8bfa9;
}
.zoom-controls button:last-child,
.inspect-zoom button:last-child {
  order: 3;
  border-right: 0;
}
.zoom-controls .icon,
.inspect-zoom .icon {
  width: 16px;
  height: 16px;
}
.pano-controls {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  right: 14px;
  display: flex;
  overflow: hidden;
}
.pano-controls button {
  height: 36px;
  background: transparent;
  border-right: 1px solid #fffdf435;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}
.pano-controls button:last-child {
  border: 0;
  padding: 0 10px;
}
.pano-controls button:hover {
  background: var(--yellow);
  color: var(--ink);
}
.pano-controls .icon {
  width: 16px;
  height: 16px;
}
.photo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  font-size: 12px;
  min-height: 36px;
}
.photo-bottom > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.photo-bottom > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
  color: var(--muted);
}
.photo-bottom > div > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.mini-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mini-link:hover {
  color: var(--terracotta);
}
.round-ledger {
  display: flex;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  min-height: 64px;
}
.ledger-cell {
  display: grid;
  grid-template-columns: 18px auto;
  column-gap: 7px;
  align-items: center;
  row-gap: 3px;
}
.ledger-cell .icon {
  width: 15px;
  height: 15px;
  grid-row: 1;
}
.ledger-cell > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.ledger-cell strong {
  grid-column: 2;
  font: 700 1.45rem/1 var(--display);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ledger-cell strong > .icon {
  width: 17px;
  height: 17px;
  grid-row: auto;
}
.ledger-cell strong.correct {
  color: var(--green);
}
.ledger-cell strong.second-win {
  color: var(--amber);
}
.ledger-cell strong.second-chance {
  color: var(--terracotta);
}
.ledger-cell strong.wrong {
  color: var(--red);
}
.ledger-cell small,
.ledger-total small {
  font: 12px monospace;
  color: var(--muted);
  align-self: end;
  margin-bottom: 2px;
}
.ledger-total {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.ledger-total > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.ledger-total strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}
.ledger-total small {
  margin-left: 2px;
}
.ledger-slash {
  font: 700 14px monospace;
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.78;
}
.review-flip {
  padding: 7px 12px;
  border: 1px solid #b9ab8d;
  background: #fff9ec;
  border-radius: 5px 6px 5px 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.review-flip:hover {
  background: var(--yellow);
  border-color: var(--ink);
}
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cfc1a5;
}
.panel-title h2 {
  font: 700 clamp(1.55rem, 2.1vw, 1.95rem)/1 var(--display);
  letter-spacing: -0.01em;
}
.panel-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.pts-strike {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #933c33;
  padding: 0 2px;
}
.pts-old {
  opacity: 0.78;
}
.pts-slash-bar {
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2.5px;
  background: var(--crimson);
  border-radius: 2px;
  transform: translateY(-50%) rotate(-16deg);
  transform-origin: left center;
}
.pts-arrow {
  color: #c96a3a;
  font-weight: 900;
}
.pts-new {
  color: var(--ink);
  font-weight: 900;
  display: inline-block;
}
/* Handcrafted journal Try Again note */
.retry-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 13px;
  background: #fff8ea;
  border: 1px solid #d5ba8f;
  border-left: 4px solid #a8593c;
  border-radius: 6px 8px 6px 7px;
  box-shadow: 2px 3px 0 #a58a5e34;
}
.retry-banner.animate-in {
  animation: banner-drop 0.42s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}
.retry-badge {
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--terracotta);
  font: 700 1.05rem/1 var(--display);
  padding: 5px 8px;
  border: 1px dashed #9c6a3c;
  border-radius: 5px 7px 5px 6px;
  transform: rotate(-4deg);
}
.retry-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.retry-copy strong {
  font: 700 1.38rem/1.05 var(--display);
  color: #823e2c;
}
.retry-copy span {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.35;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.15vw, 0.95rem);
}
.choice-card {
  min-width: 0;
  position: relative;
  background: var(--card);
  border: 3px solid var(--card);
  border-radius: 6px 8px 6px 7px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #c3b18d,
    1px 3px 0 #bea27845;
  transition:
    box-shadow 0.16s,
    border-color 0.2s;
}
.choice-inspect {
  display: block;
  aspect-ratio: 8/5;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: var(--deep);
  border-radius: 3px 5px 3px 4px;
  cursor: zoom-in;
}
.choice-inspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition:
    filter 0.25s,
    opacity 0.25s;
}
.inspect-corner {
  position: absolute;
  right: 7px;
  top: 7px;
  background: #14221fe8;
  color: #fffdf4;
  border-radius: 5px;
  padding: 5px;
  border: 1px solid #fffdf44d;
  pointer-events: none;
  z-index: 3;
}
.choice-card:hover .inspect-corner,
.choice-inspect:focus-visible .inspect-corner {
  background: var(--card);
  color: var(--ink);
}
.inspect-corner .icon {
  width: 13px;
  height: 13px;
}
/* Big animated cross overlay on failed options */
.choice-cross-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(169, 74, 62, 0.28);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.choice-cross-overlay svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(20, 34, 31, 0.65));
}
.cross-line {
  stroke: #d43c30;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.choice-card.wrong.just-missed {
  animation: card-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.choice-card.wrong.just-missed .choice-cross-overlay {
  animation: cross-tint 0.28s ease-out both;
}
.choice-card.wrong.just-missed .cross-line-1 {
  stroke-dashoffset: 120;
  animation: draw-cross 0.2s cubic-bezier(0.25, 0.9, 0.3, 1) 0.04s forwards;
}
.choice-card.wrong.just-missed .cross-line-2 {
  stroke-dashoffset: 120;
  animation: draw-cross 0.2s cubic-bezier(0.25, 0.9, 0.3, 1) 0.18s forwards;
}
.choice-card.wrong .choice-inspect img {
  filter: saturate(0.32) brightness(0.84);
}
.choice-check-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(20, 34, 31, 0.35);
}
.choice-check-badge .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}
.choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  border: 0;
  gap: 6px;
}
.choice-letter {
  width: 28px;
  height: 28px;
  margin-left: 7px;
  border-radius: 50%;
  color: #fffdf4;
  background: #21332e;
  font: 700 19px/1 var(--display);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.choose-button {
  flex: 1;
  min-height: 42px;
  border: 0;
  background: transparent;
  font:
    700 14px/1.2 system-ui,
    sans-serif;
  color: var(--ink);
  padding: 7px 10px;
}
.choose-button:not(:disabled):hover {
  background: var(--yellow);
}
.choice-card.correct {
  border-color: #7fca9b;
  box-shadow: 0 0 0 2px #7fca9b;
}
.choice-card.correct .choice-footer {
  background: var(--green);
  color: #fff;
}
.choice-card.correct .choice-letter {
  background: var(--card);
  color: var(--ink);
}
.choice-card.wrong {
  border-color: #e69d8b;
  box-shadow: 0 0 0 2px #e69d8b;
}
.choice-card.wrong .choice-footer {
  background: var(--red);
  color: #fff;
}
.choice-card.wrong .choice-letter {
  background: var(--card);
  color: var(--ink);
}
.choice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}
.choice-status .icon {
  width: 14px;
  height: 14px;
}
.choice-card.other .choice-inspect img {
  opacity: 0.65;
}
.game-button {
  min-height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.14s;
}
.game-button:not(:disabled):hover {
  background: #fff1cc;
}
.game-button.primary {
  background: var(--yellow);
  color: var(--ink);
}
.game-button.primary:not(:disabled):hover {
  background: #ffe6a6;
}
.game-button.full {
  width: 100%;
}
.game-button:disabled {
  background: #dcd6c7;
  border-color: #b7b1a1;
  color: #6b726c;
}
/* Reveal / Discovery Panel */
.reveal-panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid #cfc1a5;
  border-radius: 8px;
  padding: 24px;
}
.reveal-outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid currentColor;
  margin-bottom: 12px;
}
.reveal-outcome .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.reveal-outcome.outcome-100 {
  background: #e4f3e9;
  color: var(--green);
}
.reveal-outcome.outcome-50 {
  background: #fff1cc;
  color: #7e4f12;
}
.reveal-outcome.outcome-0 {
  background: #f6e1dc;
  color: var(--red);
}
.location-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.reveal-panel h2 {
  font: 700 2.4rem/1 var(--display);
  margin: 0 0 4px;
}
.landmark-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.location-description {
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 570px;
}
.learn-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 16px;
}
.explore-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
  border-top: 1px solid #e6dcc8;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.explore-hint .icon {
  width: 15px;
  height: 15px;
  color: var(--terracotta);
}
.reveal-panel .game-button {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
}
.round-result-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid #ded2ba;
  border-bottom: 1px solid #ded2ba;
  padding: 12px 0;
  margin: 16px 0;
}
.round-result-score strong {
  font: 700 1.85rem/1 var(--display);
  color: var(--ink);
}
.round-result-score small {
  font: 12px monospace;
  color: var(--muted);
}
.review-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
}
.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.photo-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #192b28;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--card);
  text-align: center;
  padding: 25px;
}
.photo-loading strong {
  font: 700 1.55rem/1.1 var(--display);
}
.loading-shutter {
  width: 34px;
  height: 34px;
  border: 3px dashed var(--yellow);
  border-radius: 50%;
  animation: shutter 3s linear infinite;
}
.photo-loading.error .loading-shutter {
  display: none;
}
.photo-loading.error .game-button {
  background: var(--yellow);
  color: var(--ink);
}
/* Hand-stamped rubber score pop */
.score-pop {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  border: 3px double currentColor;
  border-radius: 8px 11px 8px 10px;
  padding: 12px 24px;
  background: #fff9e9f5;
  color: var(--green);
  font: 700 clamp(2.1rem, 4.5vw, 2.7rem)/1 var(--display);
  white-space: nowrap;
  text-align: center;
  animation: stamp 0.3s ease-out both;
  pointer-events: none;
  box-shadow: 2px 5px 16px #44351f38;
}
.score-pop.win-50 {
  color: var(--amber);
  background: #fff8e2f5;
}
.score-pop.wrong {
  color: var(--red);
}
.score-pop.second-chance {
  color: var(--terracotta);
  background: #fff9eaf8;
  transform: translate(-50%, -50%) rotate(-4deg);
}
.slash-pop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
}
.slash-old {
  position: relative;
  display: inline-block;
  color: var(--red);
  font-size: 0.92em;
  padding: 0 3px;
}
.slash-stroke {
  position: absolute;
  left: -5px;
  right: -5px;
  top: 52%;
  height: 4px;
  background: var(--crimson);
  border-radius: 2px;
  transform: translateY(-50%) rotate(-16deg);
  transform-origin: left center;
  animation: slash-cut 0.34s cubic-bezier(0.18, 0.9, 0.28, 1) 0.08s both;
}
.slash-arrow {
  color: #c96a3a;
  font-size: 0.78em;
  animation: fade-in 0.2s ease 0.22s both;
}
.slash-new {
  color: var(--ink);
  font-size: 1.18em;
  display: inline-block;
  animation: pts-drop-in 0.42s cubic-bezier(0.2, 1.55, 0.35, 1) 0.26s both;
}
.score-pop small {
  display: block;
  font:
    750 0.78rem/1.2 system-ui,
    sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 6px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--card);
  padding: 12px 20px;
  border: 1.5px solid #d6c7aa;
  border-radius: 8px;
  z-index: 500;
  font-size: 14px;
  box-shadow: 0 6px 18px #14221f40;
  text-align: center;
  max-width: calc(100vw - 30px);
}
.day-banner {
  margin-top: 24px;
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  border: 1.5px solid #ab8034;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 700;
}
.storage-warning {
  font-size: 13px;
  line-height: 1.5;
  background: #fbe3cb;
  border: 1px solid #b9774d;
  border-radius: 7px;
  padding: 12px;
  margin-top: 20px;
}
.modal {
  border: 1.5px solid #bfa982;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  padding: 28px 32px;
  max-width: 560px;
  width: calc(100% - 28px);
  max-height: calc(100svh - 32px);
  box-shadow: 0 16px 52px #0d1a1580;
}
.modal::backdrop,
.inspect-dialog::backdrop {
  background: #14221fb8;
}
.close-dialog {
  position: absolute;
  right: 12px;
  top: 11px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  font-weight: 400;
  background: none;
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
}
.close-dialog:hover {
  background: var(--yellow);
}
.modal h2 {
  font: 700 clamp(2.6rem, 6.5vw, 3.6rem)/0.96 var(--display);
  letter-spacing: -0.02em;
  margin: 4px 0 18px;
}
.modal h2 span {
  color: var(--terracotta);
}
.modal-kicker {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  border: 1px dashed #a8875b;
  border-radius: 5px;
  padding: 4px 8px;
  background: #fff4d8;
  color: #734333;
  margin-bottom: 12px;
}
/* Editorial hairline-separated rules with Polaroid visuals + nested second-try note */
.rule-section {
  padding: 16px 0;
  border-top: 1px solid #e2d7c2;
}
.rule-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.rule-body {
  min-width: 0;
}
.rule-figure {
  margin: 0;
  position: relative;
  border: 4px solid #fffdf7;
  border-radius: 5px 7px 5px 6px;
  box-shadow:
    0 0 0 1px #c8b691,
    1px 3px 0 #bea27845;
  overflow: hidden;
  background: #192b28;
}
.rule-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-width: 0;
}
.guide-pair {
  aspect-ratio: 16/10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fffdf7;
  transform: rotate(-1.8deg);
}
.guide-pano {
  aspect-ratio: 16/10;
  transform: rotate(1.6deg);
}
.figure-tag {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 2px 7px;
  background: #14221fe8;
  color: #fffdf4;
  border: 1px solid #fffdf440;
  border-radius: 4px;
  font: 700 10px/1.2 monospace;
}
.guide-pano .figure-tag {
  left: 6px;
  top: 6px;
  bottom: auto;
  transform: none;
}
.guide-pano figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 7px 4px;
  background: linear-gradient(transparent, rgba(20, 34, 31, 0.78));
  color: #fffdf4;
  font: 700 0.92rem/1 var(--display);
  letter-spacing: 0.01em;
}
.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.rule-head h3 {
  font: 700 1.55rem/1 var(--display);
  color: var(--ink);
}
.rule-pts {
  font: 700 11px monospace;
  color: var(--green);
  background: #e4f3e9;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.rule-body > p,
.rule-section > p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #263935;
}
.rule-body > p strong,
.rule-section > p strong {
  font-weight: 650;
  color: var(--ink);
}
/* Nested fallback note — clearly subordinate to the main 180° flip rule */
.retry-note {
  margin-top: 12px;
  padding: 8px 12px;
  border-left: 2.5px solid #b46c47;
  background: #f8f1e2;
  border-radius: 0 6px 6px 0;
  font-size: 12.5px !important;
  line-height: 1.48 !important;
  color: #46554e !important;
}
.retry-note strong {
  color: var(--terracotta);
  font-weight: 700;
}
.guide-tagline {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.help-footnote {
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: var(--muted);
  border-top: 1px solid #e2d7c2;
  padding-top: 14px;
  margin: 4px 0 20px !important;
}
.help-modal > .mini-link {
  display: block;
  margin: 16px auto 0;
}
.credits-modal {
  max-width: 610px;
}
.credits-modal > h3 {
  font: 700 1.55rem/1 var(--display);
  margin-top: 20px;
}
.credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #dcd1bd;
  font-size: 13px;
}
.credit-row span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}
.credit-row a {
  font-size: 12px;
  flex-shrink: 0;
}
.credits-modal > #credits-list {
  margin-top: 16px;
}
.credits-modal > p {
  font-size: 14px;
}
.inspect-dialog {
  width: min(1300px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(850px, calc(100svh - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--deep);
  box-shadow: 0 16px 52px #0d1a1590;
  overflow: hidden;
}
.inspect-top {
  height: 51px;
  color: var(--card);
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #fffaf022;
}
.inspect-top strong {
  font: 700 15px monospace;
}
.inspect-top .close-dialog {
  color: var(--card);
  top: 7px;
}
.inspect-top .close-dialog:hover {
  color: var(--ink);
}
.inspect-photo {
  position: absolute;
  top: 51px;
  bottom: 75px;
  left: 0;
  right: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.inspect-photo.is-zoomed {
  cursor: grab;
}
.inspect-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 75px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 17px;
  border-top: 1px solid #c8b691;
}
.inspect-zoom {
  display: flex;
  align-items: center;
  border: 1px solid #9e8c6d;
  border-radius: 7px;
  overflow: hidden;
}
.inspect-zoom button {
  height: 36px;
  width: 35px;
}
.flip-review-modal {
  max-width: 650px;
}
.flip-review-modal .choices {
  gap: 14px;
}
.flip-review-modal .choice-footer {
  min-height: 44px;
}
/* Results screen (Travel Journal Flip Scorecard) */
.trip-results {
  padding: 26px 0 0;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.results-heading h1 {
  font: 700 clamp(3rem, 5.2vw, 4.8rem)/0.92 var(--display);
  letter-spacing: -0.025em;
}
.results-heading h1 > span {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.results-score {
  font: 700 clamp(3.4rem, 6vw, 4.8rem)/0.9 var(--display);
  font-variant-numeric: tabular-nums;
}
.results-score small {
  font: 700 20px monospace;
  color: var(--muted);
  margin-left: 6px;
}
.results-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: start;
}
.results-summary-card {
  background: var(--card);
  border: 1px solid #cfc1a5;
  border-radius: 8px;
  padding: 24px;
}
.summary-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.flip-blocks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.flip-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 5px;
  border: 2px double currentColor;
  border-radius: 8px 10px 8px 9px;
  transition: transform 0.14s;
}
.flip-block:hover {
  transform: translateY(-2px);
}
.flip-block-num {
  font: 700 10px monospace;
  opacity: 0.72;
}
.flip-block strong {
  font: 700 1.65rem/1 var(--display);
}
.flip-block-flag {
  font-size: 15px;
  line-height: 1;
}
.flip-block.b-100 {
  background: #e1f2e7;
  color: var(--green);
}
.flip-block.b-50 {
  background: #fff0c6;
  color: #8a5614;
}
.flip-block.b-0 {
  background: #f5dfda;
  color: var(--red);
}
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 15px;
}
.stat-box {
  background: #f8f1e2;
  border: 1px solid #ded2ba;
  border-radius: 8px;
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.stat-box strong {
  font: 700 2rem/1 var(--display);
}
.stat-box span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.stat-box small {
  display: block;
  font: 11px monospace;
  margin-top: 2px;
}
.stat-box.stat-100 strong {
  color: var(--green);
}
.stat-box.stat-50 strong {
  color: var(--amber);
}
.stat-box.stat-0 strong {
  color: var(--red);
}
.summary-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.result-table {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 92px 66px;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #cfc1a5;
  border-radius: 8px;
  background: var(--card);
  padding: 8px 12px;
  min-height: 76px;
  transition:
    translate 0.15s ease-out,
    background 0.15s ease-out;
}
.result-row:hover {
  translate: 3px 0;
  background: #fff4d6;
}
.result-row > img {
  width: 65px;
  height: 49px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #c8b691;
}
.result-row-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.result-row-name strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-row-name span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.result-cell > small {
  font-size: 11px;
  color: var(--muted);
}
.result-cell > strong {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.result-cell .icon {
  width: 13px;
  height: 13px;
}
.result-cell.correct {
  color: var(--green);
}
.result-cell.second {
  color: var(--amber);
}
.result-cell.wrong {
  color: var(--red);
}
.result-row-total {
  border-left: 1px solid #d5cab3;
  padding-left: 10px;
  font: 700 1.7rem/1 var(--display);
  text-align: center;
}
.result-row-total small {
  font: 10px monospace;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.result-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid #b9ab8d;
  margin-top: 16px;
  padding-top: 16px;
  gap: 15px;
}
.result-totals > div {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-totals strong {
  font: 700 1.65rem/1 var(--display);
  color: var(--ink);
}
.result-totals small {
  font: 12px monospace;
  color: var(--muted);
}
.results-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.share-result {
  min-width: 200px;
}
.next-daily {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
}
.next-daily strong {
  display: block;
  color: var(--ink);
  font: 700 18px monospace;
  font-variant-numeric: tabular-nums;
}
.result-streak {
  font: 700 1.25rem/1 var(--display);
  color: #913d32;
  border: 2px double #913d32;
  border-radius: 5px 7px 5px 6px;
  padding: 7px 14px;
  background: #fff2cf;
  transform: rotate(-3deg);
}
#share-text {
  width: 100%;
  font: 14px/1.7 monospace;
  padding: 14px;
  background: var(--paper);
  border: 1px solid #b9ab8d;
  border-radius: 7px;
  resize: none;
  margin-bottom: 18px;
}
.photo-panel.expanded {
  position: fixed;
  inset: 15px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 0 0 30px #14221fd0;
}
.photo-panel.expanded .photo-frame {
  flex: 1;
  aspect-ratio: auto;
  border-radius: 6px 6px 0 0;
  border: 0;
  min-height: 0;
  box-shadow: none;
}
.photo-panel.expanded .photo-bottom {
  padding: 12px 16px;
}
.photo-panel.expanded .round-ledger {
  display: none;
}
.overlay-open {
  overflow: hidden;
}
.no-script {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 30px;
  z-index: 999;
  font-size: 22px;
  text-align: center;
}
/* Keyframe animations */
@keyframes eyes-wander {
  0%,
  24% {
    transform: translate(0px, 0px);
  }
  30%,
  48% {
    transform: translate(2.2px, -0.5px);
  }
  54%,
  72% {
    transform: translate(-2.2px, 0.3px);
  }
  78%,
  90% {
    transform: translate(0.7px, -1.2px);
  }
  96%,
  100% {
    transform: translate(0px, 0px);
  }
}
@keyframes eyes-blink-idle {
  0%,
  93%,
  100% {
    scale: 1 1;
  }
  96% {
    scale: 1 0.14;
  }
}
@keyframes camera-blink {
  50% {
    transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(0.12);
  }
}
@keyframes shutter {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stamp {
  from {
    opacity: 0;
    scale: 1.26;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes slash-cut {
  from {
    transform: translateY(-50%) rotate(-16deg) scaleX(0);
  }
  to {
    transform: translateY(-50%) rotate(-16deg) scaleX(1);
  }
}
@keyframes pts-drop-in {
  0% {
    opacity: 0;
    transform: translateY(-9px) scale(1.4);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pop-bounce {
  0% {
    transform: scale(0.92);
  }
  55% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes banner-drop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  65% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-7px) rotate(-1deg);
  }
  38% {
    transform: translateX(6px) rotate(1deg);
  }
  58% {
    transform: translateX(-4px);
  }
  78% {
    transform: translateX(3px);
  }
}
@keyframes draw-cross {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes cross-tint {
  from {
    background: rgba(198, 59, 47, 0.5);
  }
  to {
    background: rgba(169, 74, 62, 0.28);
  }
}
@keyframes camera-hop {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
    rotate: 8deg;
  }
}
@keyframes camera-tilt {
  0%,
  100% {
    rotate: 0;
  }
  35% {
    rotate: -18deg;
  }
  70% {
    rotate: 12deg;
  }
}
.score-meter {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -4px 0 22px;
}
.score-meter progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 17px;
  border: 1.5px solid #9e8c6d;
  border-radius: 5px;
  background: var(--card);
  overflow: hidden;
}
.score-meter progress::-webkit-progress-bar {
  background: var(--card);
}
.score-meter progress::-webkit-progress-value {
  background: var(--yellow);
  border-right: 1.5px solid #9e8c6d;
}
.score-meter progress::-moz-progress-bar {
  background: var(--yellow);
}
.score-meter > span {
  font: 700 13px monospace;
  min-width: 35px;
  text-align: right;
}
.practice-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 0;
  margin-top: 12px;
}
.practice-guide strong {
  font: 700 1.45rem/1 var(--display);
  color: var(--terracotta);
}
.practice-guide .mini-link {
  white-space: nowrap;
  font-weight: 700;
}
.guide-modal > p {
  margin: 8px 0 14px;
}
.guide-modal .guide-footnote {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 16px;
}
.guide-skip {
  display: block;
  margin: 15px auto 0;
}
.developer-credit {
  display: flex;
  gap: 7px;
  align-items: center;
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}
.developer-monogram {
  font:
    bold italic 16px Georgia,
    serif;
  border: 1px solid #8a795c;
  background: var(--yellow);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  transition: background 0.14s ease-out;
}
.developer-credit:hover .developer-monogram {
  background: #ffe6a6;
}
.developer-modal {
  text-align: center;
  max-width: 450px;
}
.developer-modal .signature-card {
  clear: both;
  padding: 8px 0 12px;
}
.developer-modal .signature-z {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--yellow);
  border: 3px double var(--ink);
  border-radius: 50%;
  font:
    bold italic 40px Georgia,
    serif;
  margin: 6px auto 20px;
  transform: rotate(-9deg);
  box-shadow: 4px 4px 0 #192b2820;
}
.developer-modal .signature-card h2 {
  font:
    italic 30px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0;
  white-space: nowrap;
}
.developer-modal .signature-rule {
  display: block;
  width: 75px;
  border-top: 3px solid var(--orange);
  transform: rotate(-4deg);
  margin: 14px auto 17px;
}
.developer-modal .signature-card p {
  font-size: 14px;
  line-height: 1.8;
  max-width: none;
  white-space: nowrap;
  margin: auto;
}
.developer-modal .signature-card strong {
  font-weight: 800;
}
.practice-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff8ea;
  border-left: 3px solid #a8593c;
  box-shadow: 2px 3px 0 #a58a5e2c;
}
@media (max-width: 1100px) {
  .trip-progress {
    gap: 10px;
  }
  .play-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, 1fr);
    gap: 16px;
  }
  .photo-bottom > div > span {
    display: none;
  }
  .result-row {
    grid-template-columns: 54px minmax(0, 1fr) 76px 54px;
    gap: 8px;
  }
  .result-row > img {
    width: 54px;
    height: 43px;
  }
  .results-layout {
    gap: 18px;
    grid-template-columns: 1fr 1.25fr;
  }
}
@media (max-width: 760px) {
  .topbar {
    min-height: 60px;
    gap: 10px;
  }
  .camera-friend {
    width: 42px;
    height: 36px;
  }
  .camera-friend > .camera-svg {
    width: 42px;
    height: 36px;
  }
  .wordmark {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
  }
  .wordmark sup {
    font-size: 0.55em;
  }
  .topbar-right {
    gap: 10px;
    margin-left: auto;
  }
  .edition {
    font-size: 10px;
  }
  .total-score {
    padding-left: 10px;
  }
  .total-score strong {
    font-size: 22px;
  }
  .trip-progress {
    display: none;
  }
  .round-heading {
    padding: 16px 0 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .round-title {
    flex-basis: 100%;
  }
  .round-title h1 {
    font-size: clamp(2.5rem, 9.5vw, 3.4rem);
  }
  .round-ticket {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .stakes-badge {
    padding: 5px 11px;
    gap: 7px;
  }
  .stakes-value {
    font-size: 1.25rem;
  }
  .play-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .photo-panel,
  .action-panel {
    width: 100%;
  }
  .photo-panel:not(.expanded)::before {
    width: 52px;
    height: 14px;
    top: -7px;
  }
  .photo-frame {
    border-radius: 9px;
  }
  .view-label {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 6px 8px;
  }
  .frame-top-right {
    top: 8px;
    right: 8px;
    gap: 6px;
  }
  .frame-control {
    width: 31px;
    height: 31px;
  }
  .heading-label {
    font-size: 10px;
    padding: 7px 6px;
    min-width: 40px;
  }
  .zoom-controls {
    bottom: 10px;
    left: 10px;
  }
  .zoom-controls button {
    height: 31px;
    width: 29px;
    font-size: 19px;
  }
  .zoom-controls span {
    min-width: 34px;
    font-size: 11px;
  }
  .pano-controls {
    bottom: 10px;
    right: 10px;
  }
  .pano-controls button {
    height: 31px;
    font-size: 10px;
    padding: 0 9px;
  }
  .round-ledger {
    min-height: 54px;
    gap: 12px;
  }
  .ledger-cell strong {
    font-size: 1.25rem;
  }
  .ledger-total strong {
    font-size: 21px;
  }
  .panel-title {
    margin-bottom: 10px;
    padding-bottom: 7px;
  }
  .choices {
    gap: 10px;
  }
  .choice-footer,
  .choose-button {
    min-height: 42px;
  }
  .choice-letter {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }
  .reveal-panel {
    padding: 18px;
  }
  .reveal-panel h2 {
    font-size: 2.1rem;
  }
  .results-heading {
    gap: 14px;
    margin-bottom: 16px;
  }
  .results-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .results-summary-card,
  .results-list {
    width: 100%;
  }
  .result-row {
    grid-template-columns: 48px minmax(0, 1fr) 70px 48px;
    gap: 8px;
    padding: 7px;
    min-height: 68px;
  }
  .result-row > img {
    width: 48px;
    height: 42px;
  }
  .result-row-name strong {
    font-size: 13px;
  }
  .result-cell > strong {
    font-size: 12px;
  }
  .result-row-total {
    font-size: 1.45rem;
    padding-left: 6px;
  }
  .result-streak {
    display: none;
  }
  .results-bottom {
    flex-wrap: wrap;
    gap: 14px;
  }
  .share-result {
    flex: 1;
    min-width: 0;
  }
  .modal {
    padding: 22px 18px;
  }
  .rule-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .rule-head h3 {
    font-size: 1.38rem;
  }
  .rule-body > p {
    font-size: 13px;
  }
  .review-navigation {
    gap: 8px;
    justify-content: space-between;
  }
  .review-navigation .game-button {
    font-size: 12px;
    padding: 9px 11px;
  }
}
@media (max-width: 460px) {
  .edition {
    display: none;
  }
  .topbar {
    flex-wrap: nowrap;
  }
  .developer-modal .signature-card h2 {
    font-size: 26px;
  }
  .developer-modal .signature-card p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .choice-card.wrong.just-missed .cross-line-1,
  .choice-card.wrong.just-missed .cross-line-2 {
    stroke-dashoffset: 0 !important;
  }
}
