/* BreakBuddy: the website. One stylesheet for every page.
   The look is the game's own: parchment and ink, gold leaf, wood on ropes,
   and the flat countryside Deuce walks through. Nothing is built: edit and
   upload. The art in img/ is made from the game's own files. */

:root {
  --paper: #f4e9ce;
  --paper-deep: #ead9b2;
  --card: #fbf1d6;
  --card-lip: #e3cfa0;
  --ink: #40280f;
  --ink-soft: #7a5c40;
  --kicker: #a4661a;
  --gold: #f4bd3c;
  --gold-hi: #fbd565;
  --gold-lip: #c98a1b;
  --wood: #865930;
  --wood-hi: #986839;
  --wood-dk: #6b4524;
  --nail: #5e3a1a;
  --beam: #4f321c;
  /* A twisted rope: a tan cord with darker twists along it, as the game draws it. */
  --rope-bg: linear-gradient(90deg, #00000038, #0000 32% 68%, #00000038), repeating-linear-gradient(149deg, #0000 0 3.5px, #6f5029 3.5px 5.1px), #a8824c;
  /* Words carved into wood: a dark edge along the top of each letter, a light lip along the bottom. */
  --carved: 0 -.035em 0 #5e3a1a, 0 .03em 0 #c08a55;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='150' fill='none'%3E%3Cg stroke='%232a1405' stroke-opacity='.17' stroke-width='1.3'%3E%3Cpath d='M0 5.2l20-1.1l20-1.2l20-.8l20-.2l20 .5l20 1l20 1.2l20 .9l20 .3l20-.4l20-.9l20-1.2l20-1l20-.5l20 .2l20 .8l20 1.2l20 1.1l20 .7l20-l20-.7' stroke-dasharray='102 18'/%3E%3Cpath d='M0 11l20 .3l20-.2l20-.6l20-.5l20-.1l20 .4l20 .6l20 .3l20-.2l20-.6l20-.5l20-.1l20 .4l20 .6l20 .3l20-.2l20-.6l20-.5l20-.1l20 .4l20 .6' stroke-dasharray='198 17'/%3E%3Cpath d='M0 17.7l20-.2l20-.5l20-.5l20-.1l20 .4l20 .6l20 .3l20-.2l20-.5l20-.5l20-.1l20 .4l20 .6l20 .3l20-.2l20-.5l20-.5l20-.1l20 .4l20 .6l20 .3'/%3E%3Cpath d='M0 26.7l20-.2l20-.1l20 l20 .1l20 .3l20 .4l20 .4l20 .4l20 .4l20 .4l20 .3l20 .2l20 l20-.1l20-.2l20-.3l20-.4l20-.4l20-.4l20-.4l20-.3' stroke-dasharray='185 20'/%3E%3Cpath d='M0 37.5l20-.4l20-.3l20-.2l20-.1l20-l20 .1l20 .2l20 .3l20 .4l20 .4l20 .4l20 .4l20 .3l20 .2l20 .1l20-l20-.2l20-.3l20-.3l20-.4l20-.4' stroke-dasharray='170 43'/%3E%3Cpath d='M0 44.6l20-.1l20 .1l20 .2l20 .4l20 .5l20 .5l20 .5l20 .5l20 .4l20 .3l20 .2l20 l20-.1l20-.3l20-.4l20-.5l20-.5l20-.5l20-.5l20-.4l20-.2' stroke-dasharray='152 19'/%3E%3Cpath d='M0 54.7l20-.2l20-.2l20-.2l20-.2l20-.2l20-.1l20-l20 l20 .1l20 .2l20 .2l20 .2l20 .2l20 .2l20 .2l20 .1l20 .1l20-l20-.1l20-.1l20-.2'/%3E%3Cpath d='M0 67.3l20-.5l20-.7l20-.6l20-.3l20 .1l20 .5l20 .6l20 .6l20 .4l20-l20-.4l20-.6l20-.6l20-.4l20-.1l20 .3l20 .6l20 .7l20 .5l20 .2l20-.2'/%3E%3Cpath d='M0 78.7l20-.3l20-.4l20-.5l20-.5l20-.5l20-.5l20-.4l20-.3l20-.1l20 l20 .2l20 .3l20 .4l20 .5l20 .5l20 .5l20 .4l20 .3l20 .2l20 l20-.1' stroke-dasharray='204 32'/%3E%3Cpath d='M0 85.6l20 l20-.1l20-.2l20-.3l20-.4l20-.4l20-.4l20-.4l20-.3l20-.2l20-.1l20 l20 .2l20 .3l20 .3l20 .4l20 .4l20 .4l20 .3l20 .2l20 .1' stroke-dasharray='163 22'/%3E%3Cpath d='M0 90.5l20 1.2l20 1l20 .1l20-.9l20-1.2l20-.6l20 .5l20 1.2l20 1l20 .1l20-.9l20-1.2l20-.6l20 .5l20 1.2l20 1l20 .1l20-.9l20-1.2l20-.6l20 .5'/%3E%3Cpath d='M0 106l20 .3l20-1.2l20-1.8l20-1l20 .5l20 1.6l20 1.6l20 .3l20-1.2l20-1.8l20-1l20 .5l20 1.6l20 1.6l20 .3l20-1.2l20-1.8l20-1l20 .5l20 1.6l20 1.6'/%3E%3Cpath d='M0 110.4l20 .3l20 .3l20 .2l20 .1l20 .1l20-l20-.1l20-.2l20-.2l20-.3l20-.3l20-.3l20-.2l20-.2l20-.1l20-l20 .1l20 .2l20 .2l20 .3l20 .3'/%3E%3Cpath d='M0 118.5l20-.5l20-.4l20-.3l20-.2l20-.1l20 .1l20 .2l20 .3l20 .4l20 .5l20 .5l20 .5l20 .4l20 .3l20 .1l20-l20-.2l20-.3l20-.4l20-.5l20-.5' stroke-dasharray='103 43'/%3E%3Cpath d='M0 127.5l20-1l20-.3l20 .5l20 1l20 .7l20-.1l20-.9l20-1l20-.3l20 .5l20 1l20 .7l20-.1l20-.9l20-1l20-.3l20 .5l20 1l20 .7l20-.1l20-.9'/%3E%3Cpath d='M0 138.1l20 .1l20 l20-l20-.1l20-.1l20-.2l20-.2l20-.2l20-.2l20-.1l20-.1l20-.1l20-l20 l20 .1l20 .1l20 .2l20 .2l20 .2l20 .2l20 .1' stroke-dasharray='115 37'/%3E%3Cpath d='M0 145.6l20-.9l20-.7l20-.2l20 .3l20 .7l20 .9l20 .7l20 .3l20-.2l20-.6l20-.9l20-.8l20-.5l20 .1l20 .5l20 .8l20 .9l20 .6l20 .1l20-.4l20-.8'/%3E%3C/g%3E%3Cg stroke='%23ffe6b4' stroke-opacity='.11'%3E%3Cpath d='M0 7.7l20 l20-.1l20-.2l20-.3l20-.4l20-.4l20-.4l20-.4l20-.3l20-.2l20-.1l20 l20 .2l20 .3l20 .4l20 .4l20 .5l20 .4l20 .4l20 .3l20 .2'/%3E%3Cpath d='M0 12.2l20-.3l20-.2l20-.1l20-l20 .1l20 .2l20 .3l20 .3l20 .4l20 .4l20 .3l20 .3l20 .2l20 .1l20-.1l20-.2l20-.2l20-.3l20-.4l20-.4l20-.3'/%3E%3Cpath d='M0 18.8l20-.3l20-.2l20-.2l20-.1l20 .1l20 .2l20 .2l20 .3l20 .3l20 .3l20 .3l20 .3l20 .2l20 .1l20-l20-.1l20-.2l20-.3l20-.3l20-.3l20-.3'/%3E%3Cpath d='M0 47l20 .1l20 .6l20 .9l20 .8l20 .5l20-l20-.5l20-.8l20-.8l20-.6l20-.1l20 .4l20 .8l20 .9l20 .7l20 .2l20-.3l20-.7l20-.9l20-.7l20-.4'/%3E%3Cpath d='M0 55.9l20-.3l20-.3l20-.1l20-l20 .1l20 .2l20 .3l20 .4l20 .4l20 .4l20 .4l20 .3l20 .2l20 .1l20-l20-.2l20-.3l20-.3l20-.4l20-.4l20-.4'/%3E%3Cpath d='M0 68.9l20-.5l20-.4l20-.4l20-.3l20-.2l20-l20 .1l20 .2l20 .3l20 .4l20 .5l20 .5l20 .4l20 .3l20 .2l20 .1l20-l20-.2l20-.3l20-.4l20-.4'/%3E%3Cpath d='M0 79.4l20-.4l20-.3l20-.1l20 .1l20 .3l20 .4l20 .3l20 .2l20-l20-.2l20-.4l20-.3l20-.2l20-l20 .2l20 .3l20 .4l20 .3l20 .1l20-.2l20-.3'/%3E%3Cpath d='M0 86.5l20-.9l20-.6l20-.1l20 .4l20 .8l20 .9l20 .7l20 .2l20-.3l20-.7l20-.9l20-.8l20-.3l20 .2l20 .6l20 .9l20 .8l20 .5l20-l20-.5l20-.8'/%3E%3Cpath d='M0 130.3l20 .2l20 .1l20 l20-.1l20-.1l20-.2l20-.3l20-.3l20-.3l20-.3l20-.2l20-.2l20-.1l20 l20 .1l20 .2l20 .2l20 .3l20 .3l20 .3l20 .3'/%3E%3Cpath d='M0 140.8l20 .2l20 .1l20-l20-.1l20-.2l20-.3l20-.3l20-.4l20-.3l20-.3l20-.2l20-.1l20-l20 .1l20 .2l20 .3l20 .3l20 .4l20 .4l20 .3l20 .3'/%3E%3C/g%3E%3C/svg%3E");
  --red: #c8473a;
  --red-dk: #9c2f25;
  --will-box: #1c5450;
  --wrap: 1120px;
  --roll: 54px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 "Baloo 2", ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- The beam: a wooden bar across the top that things hang from ---- */
.beam {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(#5d3c22, var(--beam));
  box-shadow: inset 0 -4px 0 #3a2413, 0 6px 18px #0003;
  color: #fbf1d6;
}
/* Centred on the beam's face, which stops 4px short of its bottom edge (the dark lip). */
.beam .nav { display: flex; align-items: center; gap: 18px; min-height: 60px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15.5px; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn) { opacity: .86; }
.nav-links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Buttons: the game's gold leaf and cream, sunk onto a lip ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 10px 26px 15px; border: 0; border-radius: 15px; cursor: pointer;
  font: 800 18px/1.1 "Baloo 2", sans-serif; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--gold-hi), var(--gold)); box-shadow: inset 0 -6px 0 var(--gold-lip);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn::before { content: ""; position: absolute; left: 9px; top: 7px; width: 18px; height: 9px; border-radius: 9px; background: #fff7; transform: rotate(-24deg); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 var(--gold-lip); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2f6fd6; outline-offset: 3px; }
.btn.cream { background: linear-gradient(#fdf5df, #f3e3bd); box-shadow: inset 0 -6px 0 #d2b98a; }
.btn.small { min-height: 42px; padding: 7px 16px 11px; font-size: 15.5px; border-radius: 12px; white-space: nowrap; }
.btn.small::before { left: 6px; top: 5px; width: 11px; height: 6px; }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.soon { font-weight: 700; font-size: 14.5px; opacity: .85; }

/* ---- The country he walks through, in the layers the game scrolls ----
   It goes past as the page scrolls (--sx) and, in the hero, as Deuce walks
   up to the next thing in the road (--wx, in pixels of ground). */
.scene { position: relative; height: var(--h); --u: calc(var(--h) / 900); overflow: hidden; isolation: isolate; }
.scene.day { background: linear-gradient(#48a9ee, #a9dcff 58%, #dcf2ff 74%); }
.scene .l { position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
.scene .clouds { top: calc(var(--u) * 20); height: calc(var(--u) * 300); background-image: url(img/scene/clouds.webp); background-size: calc(var(--u) * 1440) 100%; opacity: .95; animation: drift 120s linear infinite; }
@keyframes drift { to { background-position-x: calc(var(--u) * -1440); } }
.scene .far    { top: calc(var(--u) * 140); height: calc(var(--u) * 260); background-size: calc(var(--u) * 720) 100%;  background-position-x: calc(var(--sx, 0) * -0.10px - var(--wx, 0) * 0.14px); }
.scene .mid    { top: calc(var(--u) * 240); height: calc(var(--u) * 280); background-size: calc(var(--u) * 720) 100%;  background-position-x: calc(var(--sx, 0) * -0.20px - var(--wx, 0) * 0.28px); }
.scene .near   { top: calc(var(--u) * 360); height: calc(var(--u) * 240); background-size: calc(var(--u) * 720) 100%;  background-position-x: calc(var(--sx, 0) * -0.34px - var(--wx, 0) * 0.5px); }
.scene .ground { top: calc(var(--u) * 520); height: calc(var(--u) * 620); background-size: calc(var(--u) * 1440) 100%; background-position-x: calc(var(--sx, 0) * -0.60px - var(--wx, 0) * 1px); }
.scene.day .far { background-image: url(img/scene/day_far.webp); }
.scene.day .mid { background-image: url(img/scene/day_mid.webp); }
.scene.day .near { background-image: url(img/scene/day_near.webp); }
.scene.day .ground { background-image: url(img/scene/day_ground.webp); }
.scene.storm { background: #1b2233 url(img/scene/night_sky.webp) top / auto calc(var(--u) * 640) repeat-x; }
.scene.storm .far { background-image: url(img/scene/night_far.webp); }
.scene.storm .mid { background-image: url(img/scene/night_mid.webp); }
.scene.storm .near { background-image: url(img/scene/night_near.webp); }
.scene.storm .ground { background-image: url(img/scene/night_ground.webp); }

.hero { --h: clamp(660px, 92svh, 860px); }
.hero .wrap { position: relative; height: 100%; z-index: 3; }
/* The sun, up behind the hills, and its rays. */
.hero .sun {
  position: absolute; left: 61%; top: calc(var(--u) * 132); width: calc(var(--u) * 92); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffce6, #ffec9c); box-shadow: 0 0 0 calc(var(--u) * 15) #fff8cf47, 0 0 0 calc(var(--u) * 36) #fff8cf24;
}
.hero .sun::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 1500); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(#fff 0 6deg, #fff0 6deg 15deg); opacity: .13;
  -webkit-mask: radial-gradient(closest-side, #000 8%, #0000 72%); mask: radial-gradient(closest-side, #000 8%, #0000 72%);
}
@keyframes spin { to { rotate: 360deg; } }

/* A wooden sign on two ropes, like the game's own: three boards with a long
   faint grain, a darker band along the bottom, the words carved in cream, and
   each rope looped round a nail. */
.sign {
  --hang: 64px;
  position: absolute; left: 0; top: 0; width: min(560px, 100%);
  padding-top: var(--hang); transform-origin: 50% 0;
  animation: sign-in 1.25s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes sign-in { 0% { transform: translateY(-110%) rotate(-3deg); } 60% { transform: translateY(0) rotate(1.6deg); } 80% { transform: rotate(-.8deg); } 100% { transform: none; } }
.sign::before, .sign::after {
  content: ""; position: absolute; z-index: 1; top: 0; height: calc(var(--hang) + 18px); width: 7px; border-radius: 0 0 4px 4px;
  background: var(--rope-bg);
}
.sign::before { left: 16%; } .sign::after { right: 16%; }
.plank {
  position: relative; padding: 28px 30px 36px; border-radius: 18px; color: #fff6e2;
  background:
    linear-gradient(90deg, #2a14052b, #0000 3% 97%, #2a14052b),
    linear-gradient(#0000 calc(34% - 1px), #2a14054d calc(34% - 1px) calc(34% + 1px), #ffe6b426 calc(34% + 1px) calc(34% + 2.5px), #0000 calc(34% + 2.5px) calc(67% - 1px), #2a14054d calc(67% - 1px) calc(67% + 1px), #ffe6b426 calc(67% + 1px) calc(67% + 2.5px), #0000 calc(67% + 2.5px)),
    linear-gradient(#0000 34%, #2a140512 34% 67%, #0000 67%),
    var(--grain) 0 0 / 420px 150px,
    linear-gradient(var(--wood-hi), var(--wood));
  box-shadow: inset 0 -10px 0 var(--wood-dk), inset 0 0 0 2px #ffdca03d, 0 20px 30px #0000003d;
}
/* Where each rope is tied on: a dark nail head with the rope looped round it. */
.plank::before, .plank::after {
  content: ""; position: absolute; z-index: 2; top: 13px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a5d35, #4a2c12 70%);
  box-shadow: 0 0 0 3.5px #a8824c, 0 0 0 5px #6f5029, 0 3px 0 5px #0000002e;
}
.plank::before { left: calc(16% - 2px); } .plank::after { right: calc(16% - 2px); }
.kicker { font-size: 13.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.plank .kicker { color: #ffe9a8; margin-top: 10px; text-shadow: 0 1px 0 #5e3a1a8c; }
.plank h1 { font-size: clamp(38px, 6.2vw, 60px); margin: 8px 0 12px; text-shadow: var(--carved); }
.plank p { font-size: 18.5px; line-height: 1.45; color: #fff6e2; font-weight: 600; max-width: 30em; text-shadow: 0 1px 0 #5e3a1a8c; }
.plank .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 20px; }
.plank .soon { opacity: .95; text-shadow: 0 1px 0 #5e3a1a8c; }

/* Google's own badge, as it comes: nothing drawn over it, and a quarter of
   its height kept clear all round. */
a.playbadge { display: inline-block; border-radius: 10px; transition: transform .12s; }
a.playbadge img { height: 64px; width: auto; max-width: none; }
a.playbadge:hover { transform: translateY(-2px); }
a.playbadge:active { transform: translateY(1px); }

/* Deuce and whoever's in the way, standing on the cart track. */
.cast { position: absolute; right: 0; bottom: calc(var(--u) * 232); width: min(520px, 46%); height: calc(var(--u) * 300); }
.cast .deuce, .cast .foe { position: absolute; bottom: 0; width: auto; max-width: none; filter: drop-shadow(0 6px 0 #0000001f); transform-origin: 50% 100%; }
/* His pictures are all cut to one box with room above for the tallest crown, so he's a little taller than the cast's box. */
.cast .deuce { left: 0; height: 109%; animation: bob 2.6s ease-in-out infinite; }
.cast .deuce.walking { animation: waddle .38s ease-in-out infinite; }
/* Whoever's in the road stands in a slot of its own, which rides in with the ground. */
.foeslot { position: absolute; right: 0; bottom: 0; width: 54%; height: 88%; }
.cast .foe { right: 0; height: auto; max-width: 100%; max-height: 100%; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
/* Coins and XP thrown up out of a beaten foe or an opened chest. */
.spoils { position: absolute; width: 0; height: 0; z-index: 4; pointer-events: none; }
.spoils img { position: absolute; left: 0; top: 0; width: 30px; max-width: none; height: auto; opacity: 0; }
.cast .spoils { right: 24%; bottom: 42%; }
.cast .spoils img { width: calc(var(--u) * 36); }
.bubble {
  position: absolute; right: 2%; bottom: calc(100% + 14px); width: min(300px, 92%);
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px 16px 12px; font-weight: 700; font-size: 16px; line-height: 1.3;
  box-shadow: inset 0 -5px 0 var(--card-lip), 0 10px 20px #0002; transform-origin: 80% 100%; transition: opacity .22s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble.out { opacity: 0; transform: translateY(8px) scale(.8); }
.bubble::after { content: ""; position: absolute; right: 64px; bottom: -13px; border: 14px solid #0000; border-top-color: var(--card-lip); border-bottom: 0; }
.bubble b { position: absolute; left: 14px; top: -13px; background: var(--red); color: #fff; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 11px 2px; border-radius: 9px; box-shadow: inset 0 -3px 0 var(--red-dk); }

/* The parchment is a scroll: the game's own roll (the top of its quest sheet)
   lies across the top edge of the sheet and again across its foot. As in the
   game, it straddles the edge, half on the paper and half on the scene beyond,
   so the paper comes out from under it; the two curled ends keep their shape
   at the page's edges and only the plain middle stretches. */
.roll {
  position: relative; z-index: 4; height: var(--roll); margin-block: calc(var(--roll) * -.5); pointer-events: none;
  border: solid #0000; border-width: 0 calc(var(--roll) * .803);
  border-image: url(img/ui/scroll_top.webp) 0 96 fill / 0 calc(var(--roll) * .803) stretch;
}
.roll.foot { filter: drop-shadow(0 6px 6px #00000059); }
/* The shadow on the paper just under the top roll, where the sheet wraps round it. */
.roll + .sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--roll) * .5 + 16px); background: linear-gradient(#40280f2e calc(var(--roll) * .5 - 4px), #40280f00); pointer-events: none; }
.sheet { position: relative; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
  linear-gradient(var(--paper), var(--paper-deep)); }

section { padding-block: clamp(56px, 8vw, 104px); }
.head { max-width: 720px; margin-bottom: 34px; }
.head.mid { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(32px, 4.6vw, 48px); margin: 6px 0 12px; }
.lede { font-size: 19px; color: var(--ink-soft); font-weight: 600; }
.band { background: #00000008; box-shadow: inset 0 1px 0 #0000000c, inset 0 -1px 0 #0000000c; }

/* Plates: a flat pale face with a darker band along the bottom. */
.plate { background: var(--card); border-radius: 20px; box-shadow: inset 0 -7px 0 var(--card-lip); padding: 22px 22px 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; counter-increment: step; position: relative; }
.steps .ico { position: absolute; right: 18px; top: -24px; width: 80px; height: auto; rotate: 7deg; filter: drop-shadow(0 6px 0 #0000001c); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.steps li:nth-child(2) .ico { rotate: -5deg; }
.steps li:nth-child(3) .ico { width: 98px; top: -20px; rotate: 5deg; }
.steps li:hover .ico { transform: translateY(-7px) rotate(-8deg) scale(1.08); }
.steps h3 { font-size: 23px; margin: 12px 0 6px; }
.steps p { color: var(--ink-soft); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; font-size: 22px; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold)); box-shadow: inset 0 -4px 0 var(--gold-lip);
}

/* Will, the spirit who shows you round, in his own glass. */
.will { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; max-width: 640px; margin: 30px auto 0; }
.will img { width: 84px; filter: drop-shadow(0 0 18px #5fd68aaa); animation: float 3.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-7px); } }
.will p {
  position: relative; background: linear-gradient(#226560, var(--will-box)); color: #eafff2; border-radius: 18px; padding: 24px 20px 16px;
  font: 400 18px/1.4 "Sniglet", "Baloo 2", sans-serif; box-shadow: 0 0 0 2px #7fe0b055, inset 0 0 26px #0f3a3a, 0 12px 22px #0002;
}
.will p::before { content: "✦ Will"; position: absolute; left: 16px; top: -12px; background: #123f3c; color: #a9f3c8; border: 1.5px solid #7fe0b0aa; border-radius: 10px; font: 400 13.5px/1 "Sniglet", sans-serif; padding: 5px 10px 4px; }

/* ---- Try a fight ---- */
.try { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(26px, 5vw, 70px); align-items: center; }
.ticks { margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { list-style: none; padding-left: 30px; position: relative; color: var(--ink-soft); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-lip); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 4px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.arena {
  position: relative; aspect-ratio: 9 / 15; border-radius: 34px; overflow: hidden; isolation: isolate; container-type: inline-size;
  background: #7fb37a url(img/places/flimsy_forest_day.webp) 50% 78% / 118% auto no-repeat;
  box-shadow: 0 0 0 9px #3a2413, 0 0 0 12px #6b4426, 0 26px 40px #0000003d;
}
.arena .top { position: absolute; inset: 0 0 auto; padding: 18px 16px 0; text-align: center; }
.arena .clock { font-weight: 800; font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 3px 0 #00000059; font-variant-numeric: tabular-nums; }
.arena .name { margin: 8px -16px 0; padding: 7px 0 5px; background: linear-gradient(#dc5446, var(--red)); color: #fff; font-weight: 800; font-size: 19px; box-shadow: inset 0 -4px 0 var(--red-dk); }
.bar { position: relative; height: 26px; margin: 12px 14px 0; border-radius: 13px; background: var(--card); box-shadow: inset 0 -4px 0 var(--card-lip); padding: 7px 56px 9px 12px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: #b07a4a; transform-origin: 0 50%; transition: transform .9s linear; }
.bar b { position: absolute; right: 12px; top: 3px; font-size: 14px; }
.arena .who { position: absolute; bottom: 31%; height: 27%; width: auto; max-width: none; transform-origin: 50% 100%; transition: transform .5s, opacity .5s; }
.arena .who.deuce { left: 5%; } .arena .who.foe { right: 6%; height: 24%; }
.arena .say { position: absolute; left: 7%; right: 7%; top: 31%; background: var(--card); border-radius: 16px; padding: 12px 14px 14px; font-weight: 700; font-size: 15.5px; line-height: 1.3; box-shadow: inset 0 -5px 0 var(--card-lip), 0 8px 16px #0003; transition: opacity .3s; }
.arena.on .say { opacity: 0; }
.arena .sheet2 { position: absolute; inset: auto 0 0; background: #eedcb4; padding: 14px 14px 18px; display: grid; gap: 10px; box-shadow: 0 -4px 0 #0000001a; }
.hold { background: var(--card); border-radius: 14px; box-shadow: inset 0 -4px 0 var(--card-lip); padding: 8px 12px 12px; font-weight: 800; font-size: 14.5px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.hold span { color: var(--ink-soft); font-size: 13px; }
.hold i { grid-column: 1 / -1; height: 9px; border-radius: 5px; background: #e2574c; transform-origin: 0 50%; transition: transform .25s linear; }
.arena .btns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.arena .btn { min-height: 50px; padding-inline: 8px; font-size: 16.5px; }
.hang { position: absolute; left: 50%; top: 0; translate: -50% -130%; padding-top: 150px; pointer-events: none; z-index: 4; }
.hang::before, .hang::after { content: ""; position: absolute; z-index: 1; top: 0; height: 160px; width: 5px; border-radius: 0 0 3px 3px; background: var(--rope-bg); }
.hang::before { left: 22%; } .hang::after { right: 22%; }
.hang span { position: relative; display: block; padding: 8px 30px 14px; border-radius: 12px; background: var(--grain) 0 0 / 420px 150px, #9a6a3c; box-shadow: inset 0 -7px 0 #7a4f29, inset 0 0 0 1.5px #ffdca033; color: #fbe7bf; font-weight: 800; font-size: 40px; letter-spacing: .03em; text-shadow: var(--carved); }
.hang span::before, .hang span::after { content: ""; position: absolute; z-index: 2; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--nail); }
.hang span::before { left: calc(22% - 1.5px); } .hang span::after { right: calc(22% - 1.5px); }
.arena.go .hang { animation: drop 1.9s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop { 0% { translate: -50% -130%; } 28% { translate: -50% 0; rotate: 3deg; } 42% { rotate: -2deg; } 55% { rotate: 0deg; } 78% { translate: -50% 0; } 100% { translate: -50% -130%; } }
.arena.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } }
.result { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: #f4e9cef2; z-index: 5; }
.result.show { display: grid; animation: fade-in .3s both; }
@keyframes fade-in { from { opacity: 0; } }
.result h3 { font-size: 30px; }
.result p { color: var(--ink-soft); font-weight: 600; max-width: 18em; }
/* Deuce is cream and so is the paper, so he shrugs in a patch of sky. */
.result .shrug { height: 136px; width: auto; padding: 14px 30px 8px; border-radius: 50%; background: #c5e3f3; box-shadow: inset 0 -6px 0 #a6cfe6; }
/* What came out of the chest floats over its open lid. */
.result #prize { order: 1; } .result .chestbtn { order: 2; } .result #again { order: 3; }
.chestbtn { border: 0; background: none; cursor: pointer; padding: 0; width: 170px; width: min(170px, 44cqw); animation: chest-in .55s cubic-bezier(.3, 1.5, .5, 1) both, rattle 2.6s .9s ease-in-out infinite; }
.chestbtn.opening { animation: shake .5s; }
.chestbtn.opened { animation: none; cursor: default; width: 132px; width: min(132px, 34cqw); margin-top: -30px; }
@keyframes chest-in { from { transform: translateY(-70px) scale(.5); opacity: 0; } }
@keyframes rattle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-4deg); } 92% { transform: rotate(4deg); } }
.prize { position: relative; z-index: 1; isolation: isolate; display: grid; justify-items: center; gap: 4px; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.prize > img { width: 112px; width: min(112px, 29cqw); filter: drop-shadow(0 0 22px var(--glow, #fff)); }
.prize::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: 300px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(var(--glow, #fff) 0 9deg, #0000 9deg 20deg); opacity: .6;
  -webkit-mask: radial-gradient(closest-side, #000 22%, #0000 80%); mask: radial-gradient(closest-side, #000 22%, #0000 80%);
  animation: spin 18s linear infinite;
}
.prize .spoils { left: 50%; top: 60%; }
.prize .tag { font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes pop { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.fineprint { font-size: 14.5px; color: var(--ink-soft); margin-top: 16px; }

/* ---- Wanted: the foes ---- */
/* The board they're pinned to: planks of the same wood as the signs, a shade darker, bolted at the corners. */
.board {
  --bolt: #c9a36a 0 2.2px, #3a2210 2.6px 6.5px, #0000 7px;
  position: relative; border-radius: 22px;
  background:
    radial-gradient(circle at 20px 20px, var(--bolt)), radial-gradient(circle at calc(100% - 20px) 20px, var(--bolt)),
    radial-gradient(circle at 20px calc(100% - 28px), var(--bolt)), radial-gradient(circle at calc(100% - 20px) calc(100% - 28px), var(--bolt)),
    linear-gradient(90deg, #1a0c0338, #0000 2.5% 97.5%, #1a0c0338),
    repeating-linear-gradient(#0000 0 148px, #1a0c0352 148px 150px, #ffe6b41f 150px 151.5px, #0000 151.5px 300px),
    var(--grain) 0 0 / 420px 150px,
    linear-gradient(#7b532f, #68441f);
  box-shadow: inset 0 -10px 0 #4f3218, inset 0 0 0 2px #ffdca02e, 0 22px 34px #00000038;
}
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; padding: 44px 40px 54px; margin: 0 auto; max-width: 1000px; }
.posters li {
  list-style: none; position: relative; background: #f6e7c2; border-radius: 6px; padding: 16px 12px 18px; text-align: center;
  box-shadow: 0 3px 0 #d6bf8e, 0 12px 16px #1a0c0359;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--big, 1)); transition: transform .18s ease-out;
}
.posters li:nth-child(odd) { rotate: -1.4deg; } .posters li:nth-child(even) { rotate: 1.2deg; } .posters li:nth-child(3n) { rotate: .4deg; }
.posters li:hover { --lift: -6px; --big: 1.04; z-index: 2; }
.posters li::before { content: ""; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9e3d6, #857d6f); box-shadow: 0 2px 0 #0003; }
/* The light catching the paper as it tips toward the pointer. */
.posters li::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), #ffffff80, #fff0 58%); }
.posters li:hover::after { opacity: 1; }
/* Each one is slapped up as the board comes into view, one after another. */
.js .posters li.reveal { opacity: 0; transform: none; transition: none; }
.js .posters li.reveal.in { opacity: 1; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--big, 1)); transition: transform .18s ease-out; animation: slap .5s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.posters li:nth-child(4n + 2) { --i: 1; } .posters li:nth-child(4n + 3) { --i: 2; } .posters li:nth-child(4n) { --i: 3; }
@keyframes slap { from { opacity: 0; transform: translateY(-18px) scale(1.3); } }
.posters small { display: block; font-size: 11.5px; letter-spacing: .18em; font-weight: 800; color: var(--red-dk); }
.posters .mug { aspect-ratio: 1; margin: 8px 0 10px; border-radius: 4px; background: var(--tint, #d9d0ee); display: grid; place-items: center; overflow: hidden; }
.posters .mug img { width: 86%; }
.posters h3 { font-size: 18.5px; }
.posters p { font: italic 400 15.5px/1.3 "IM Fell English", Georgia, serif; color: var(--ink-soft); margin-top: 6px; }
.posters .unknown .mug { background: #cdbf9f; }
/* Whoever's still at large: their shapes come and go behind the question mark. */
.posters .unknown .mug > * , .posters .unknown .mug::after { grid-area: 1 / 1; }
.posters .unknown .mug img { width: 74%; filter: brightness(0); opacity: 0; animation: lurk 10.5s ease-in-out infinite; }
.posters .unknown .mug img:nth-child(2) { animation-delay: 3.5s; } .posters .unknown .mug img:nth-child(3) { animation-delay: 7s; }
@keyframes lurk { 0%, 36%, 100% { opacity: 0; } 8%, 28% { opacity: .26; } }
.posters .unknown .mug::after { content: "?"; position: relative; font-weight: 800; font-size: 74px; color: #f6ecd2; text-shadow: 0 3px 0 #7d6f54; }

/* ---- The road: places as slanted panels ---- */
/* The slant pushes the strip's corners past the page's edges; its row cuts them off there. */
.placesrow { overflow: hidden; }
.places { display: flex; margin: 0; padding: 0 3%; transform: skewX(-7deg); }
.places li { list-style: none; position: relative; flex: 1 1 0; min-width: 0; height: clamp(300px, 36vw, 440px); overflow: hidden; border-left: 5px solid var(--paper); transition: flex-grow .35s; }
.places li:first-child { border-left: 0; border-radius: 16px 0 0 16px; } .places li:last-child { border-radius: 0 16px 16px 0; }
.places li:hover { flex-grow: 1.9; }
.places img { position: absolute; inset: 0 -12%; width: 124%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 38%; transform: skewX(7deg); }
/* Each place by night, over its day: dusk comes down the road one place at a time. */
.places .night { opacity: 0; transition: opacity .9s; }
.places.dark .night { opacity: 1; }
.places li:nth-child(2) .night { transition-delay: .14s; } .places li:nth-child(3) .night { transition-delay: .28s; }
.places .fog::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#27304f, #151a30); opacity: 0; transition: opacity .9s .42s; }
.places.dark .fog::before { opacity: 1; }
.chips.sky { justify-content: flex-start; margin-top: 18px; }
.sky button { display: inline-flex; align-items: center; gap: 8px; }
.sunny, .moony { flex: none; width: 15px; height: 15px; border-radius: 50%; }
.sunny { background: #fff7d1; box-shadow: 0 0 0 2px #c98a1b, 0 0 0 5px #c98a1b40; margin-inline: 3px; }
.moony { box-shadow: inset 5px -3px 0 #2b2c56; rotate: -20deg; }
.places .cap { position: absolute; inset: auto 0 0; padding: 60px 8px 14px; text-align: center; color: #fff; background: linear-gradient(#0000, #000000a6); transform: skewX(7deg); }
.places .cap b { display: block; font-size: 17px; line-height: 1.1; text-shadow: 0 2px 0 #0006; }
.places .cap span { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 700; opacity: .9; margin-top: 3px; }
.places .fog { flex-grow: .62; background: linear-gradient(#a9b4bd, #7f8b97); display: grid; place-items: center; }
.places .fog .cap { position: relative; inset: auto; background: none; padding: 0 14px; max-width: 15em; }
.places .fog .cap b { font-size: 34px; }
.roadfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.roadfacts h3 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.roadfacts h3 img { width: 34px; }
.roadfacts p { color: var(--ink-soft); }

/* ---- Loot: dress Deuce, chests, curios ---- */
.loot { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.wardrobe { text-align: center; padding: 26px 18px 30px; }
.wardrobe .stage { height: 330px; display: grid; place-items: end center; background: radial-gradient(60% 22% at 50% 96%, #0000001f, #0000 70%); }
.wardrobe .stage img { height: 310px; width: auto; }
.wardrobe .stage img.pop { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.wardrobe p { font-weight: 700; color: var(--ink-soft); min-height: 3.1em; margin: 10px 0 12px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips button { border: 0; cursor: pointer; font: 800 15px/1 "Baloo 2", sans-serif; color: var(--ink); padding: 10px 14px 13px; border-radius: 12px; background: #f3e3bd; box-shadow: inset 0 -4px 0 #d2b98a; }
.chips button[aria-pressed="true"] { background: linear-gradient(var(--gold-hi), var(--gold)); box-shadow: inset 0 -4px 0 var(--gold-lip); }
/* Chests you can open: each pays out one of its own place's curios, then shuts again. */
.chests { display: flex; gap: 6px; align-items: end; margin: 58px 0 8px; }
.chests button { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s; animation: rattle 7s ease-in-out infinite; }
.chests button:nth-child(2) { animation-delay: 1.7s; } .chests button:nth-child(3) { animation-delay: 3.6s; } .chests button:nth-child(4) { animation-delay: 5.2s; }
.chests button:hover { transform: translateY(-6px) rotate(-3deg); }
.chests button.open { animation: none; transform: none; cursor: default; }
.chests img { width: 100%; filter: drop-shadow(0 6px 0 #0000001a); }
/* The open chest is drawn a little smaller than the shut one, so it's scaled up to match. */
.chests .lid-up { position: absolute; left: -8%; bottom: -2%; width: 116%; max-width: none; opacity: 0; }
.chests button.open .shut { opacity: 0; } .chests button.open .lid-up { opacity: 1; }
.chests .loot { position: absolute; z-index: 3; left: 50%; bottom: 62%; width: 66%; translate: -50% 0; pointer-events: none; filter: drop-shadow(0 0 12px var(--glow, #fff)) drop-shadow(0 5px 0 #0000001f); animation: loot 2.3s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes loot { 0% { transform: translateY(70%) scale(.2); opacity: 0; } 14% { transform: translateY(-14%) scale(1.12); opacity: 1; } 22%, 80% { transform: translateY(-6%) scale(1); opacity: 1; } 100% { transform: translateY(-50%) scale(.85); opacity: 0; } }
.curios { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.curios button { border: 0; padding: 8px; cursor: pointer; aspect-ratio: 1; border-radius: 14px; background: var(--card); box-shadow: inset 0 -5px 0 var(--card-lip); transition: transform .15s; }
.curios button:hover, .curios button[aria-pressed="true"] { transform: translateY(-4px); }
.curios button.rare { background: #dcecff; box-shadow: inset 0 -5px 0 #a9c8ee; }
.curios button.legendary { background: #ffefba; box-shadow: inset 0 -5px 0 #e3c35e; }
.curios img { width: 100%; }
.curionote { margin-top: 14px; min-height: 4.8em; }
.curionote b { display: block; font-size: 19px; }
.curionote span { font: italic 400 17.5px/1.35 "IM Fell English", Georgia, serif; color: var(--ink-soft); }

/* ---- Phones ---- */
.phone { width: min(300px, 78vw); aspect-ratio: 540 / 1212; border-radius: 38px; overflow: hidden; background: #2a1a0e; box-shadow: 0 0 0 9px #3a2413, 0 0 0 12px #6b4426, 0 26px 40px #0000003d; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr auto; gap: clamp(26px, 6vw, 80px); align-items: center; }
.split.flip { grid-template-columns: auto 1fr; }
.split.flip > :first-child { order: 2; }
.stars { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.stars li { list-style: none; padding-left: 30px; position: relative; color: var(--ink-soft); font-weight: 600; }
.stars li::before { content: "✦"; position: absolute; left: 4px; color: var(--kicker); }
.tilt { rotate: 2.5deg; } .tilt.l { rotate: -2.5deg; }

/* ---- Friends ---- */
/* The end of a duel, laid out as the app does it: the two geese level, VS
   between them, the game's gold ribbon on whoever lasted, and whoever left
   faded. Under each, what they did; under both, the tally between you. */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; justify-items: center; gap: 4px 22px; max-width: 600px; margin: 0 auto 22px; padding: 26px 22px 28px; text-align: center; }
.duel .who { position: relative; display: grid; justify-items: center; gap: 7px; isolation: isolate; }
.duel .who img { height: 190px; width: auto; filter: drop-shadow(0 6px 0 #0000001a); transform-origin: 50% 100%; }
.duel .won::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 250px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #ffd34a8c, #ffd34a00); }
.duel .won img { animation: bob 2.6s ease-in-out infinite; }
.duel .gone img { transform: scaleX(-1); opacity: .45; filter: saturate(.5); }
.duel .ribbon { display: grid; place-items: center; width: 176px; aspect-ratio: 750 / 225; padding-bottom: 13px; margin-bottom: -2px; background: url(img/ui/ribbon_gold.webp) center / contain no-repeat; font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--ink); animation: float 3.4s ease-in-out infinite; }
.duel .who b { font-size: 21px; line-height: 1; margin-top: 4px; }
.duel .pill { font-weight: 800; font-size: 14.5px; line-height: 1; padding: 8px 13px 11px; border-radius: 12px; background: #f3e3bd; box-shadow: inset 0 -4px 0 #d2b98a; }
.duel .won .pill { background: linear-gradient(var(--gold-hi), var(--gold)); box-shadow: inset 0 -4px 0 var(--gold-lip); }
.duel .vs { align-self: center; font-weight: 800; font-size: 38px; line-height: 1; color: var(--red-dk); text-shadow: 0 3px 0 #0000001a; }
.duel .tally { grid-column: 1 / -1; margin-top: 12px; font: italic 400 20px/1.2 "IM Fell English", Georgia, serif; color: var(--ink-soft); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio h3 { font-size: 22px; margin: 10px 0 6px; }
.trio p { color: var(--ink-soft); }
.trio img { height: 54px; width: auto; }
.code { display: inline-block; font-weight: 800; letter-spacing: .32em; font-size: 22px; background: #f0deb4; border-radius: 10px; padding: 6px 6px 4px 14px; box-shadow: inset 0 -4px 0 #d2b98a; }
.code.cells { letter-spacing: 0; padding: 6px 9px 4px; }
.code.cells i { display: inline-block; width: 1.02em; text-align: center; font-style: normal; }

/* ---- Night ---- */
.nightband { position: relative; overflow: hidden; color: #f1e9ff; background: linear-gradient(#141a33, #2b2c56); }
.nightband .wrap { position: relative; z-index: 1; }
/* Three sheets of stars that twinkle out of step, the moon the places have at night, and now and then a shooting star. */
.heavens { position: absolute; inset: 0; pointer-events: none; }
.heavens i { position: absolute; inset: 0; animation: twinkle 3.7s ease-in-out infinite; }
.heavens i:nth-child(1) { background: radial-gradient(1.5px 1.5px at 58.9% 16%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 57.8% 59.7%, #fff3c9 50%, #0000 51%), radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 82.3% 47.8%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 62.9% 83.9%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 3.5% 75.5%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 31% 64%, #dfe6ff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 44% 82%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 77.7% 28.3%, #fff3c9 50%, #0000 51%), radial-gradient(1.5px 1.5px at 86.4% 73%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 22.8% 92.8%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 35.7% 12.8%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 67.5% 89.5%, #dfe6ff 50%, #0000 51%), radial-gradient(2px 2px at 91% 56%, #fff 50%, #0000 51%); }
.heavens i:nth-child(2) { animation-duration: 5.3s; animation-delay: -1.9s; background: radial-gradient(2px 2px at 85.1% 82.8%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 50.8% 58%, #fff 50%, #0000 51%), radial-gradient(2.5px 2.5px at 47.7% 30.5%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 44.9% 7%, #fff 50%, #0000 51%), radial-gradient(2.5px 2.5px at 96.3% 92.8%, #fff 50%, #0000 51%), radial-gradient(2.5px 2.5px at 3.4% 42.6%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 20.3% 46.3%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 33.3% 38.4%, #fff 50%, #0000 51%), radial-gradient(2.5px 2.5px at 24.4% 11.1%, #fff 50%, #0000 51%), radial-gradient(2.5px 2.5px at 10.2% 64.2%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 74.8% 71.2%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 69.1% 9.9%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 39.1% 92.1%, #fff 50%, #0000 51%); }
.heavens i:nth-child(3) { animation-duration: 2.9s; animation-delay: -.8s; background: radial-gradient(2px 2px at 9.3% 9.1%, #dfe6ff 50%, #0000 51%), radial-gradient(1px 1px at 51% 85.6%, #fff3c9 50%, #0000 51%), radial-gradient(1px 1px at 95.5% 33.5%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 16.6% 86.2%, #fff3c9 50%, #0000 51%), radial-gradient(1.5px 1.5px at 70.1% 43.9%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 28.8% 74.2%, #fff3c9 50%, #0000 51%), radial-gradient(2px 2px at 78.1% 95.8%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 64.7% 31.5%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 54% 47.5%, #fff 50%, #0000 51%), radial-gradient(1.5px 1.5px at 40.6% 58%, #fff3c9 50%, #0000 51%), radial-gradient(1.5px 1.5px at 80.8% 62.1%, #fff 50%, #0000 51%), radial-gradient(2px 2px at 6% 27.8%, #fff 50%, #0000 51%); }
@keyframes twinkle { 50% { opacity: .22; } }
.heavens .moon { position: absolute; right: 7%; top: 34px; width: 54px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fffce8, #f5e5a4); box-shadow: 0 0 0 9px #f6e6a824, 0 0 0 22px #f6e6a814, 0 0 60px 12px #f6e6a83d; }
.heavens .shoot { position: absolute; left: 8%; top: 12%; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff0, #fff); rotate: 16deg; transform-origin: 0 50%; opacity: 0; animation: shoot 11s ease-in 2.5s infinite; }
@keyframes shoot { 0% { transform: translateX(0); opacity: 0; } 1.5% { opacity: 1; } 7% { transform: translateX(44vw); opacity: 0; } 100% { transform: translateX(44vw); opacity: 0; } }
.nightband .kicker { color: #c9b8ff; } .nightband .lede, .nightband .stars li { color: #cfc8e8; }
.nightband .stars li::before { color: #c9b8ff; }
.sheep { width: min(320px, 70vw); filter: drop-shadow(0 0 40px #8e8bb388); animation: float 4.2s ease-in-out infinite; }

/* ---- Premium ---- */
.premium { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(22px, 4vw, 54px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.premium table { width: 100%; border-collapse: collapse; font-weight: 700; }
.premium th { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.premium td, .premium th { padding: 11px 8px; text-align: center; }
.premium td:first-child, .premium th:first-child { text-align: left; padding-left: 0; }
.premium tr + tr td { border-top: 2px solid #e7d5a8; }
.premium td:last-child { color: #8a5a06; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-lip); font-size: 14px; color: var(--ink); }
/* Small print. On paragraphs only: buttons have a `small` of their own. */
p.small { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

/* ---- Questions ---- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: inset 0 -5px 0 var(--card-lip); padding: 4px 20px 9px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18.5px; padding: 12px 0 8px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--kicker); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); padding-bottom: 10px; }
.faq a { color: #8a4b0c; font-weight: 700; }

/* ---- The end: back out in the rain, where he starts ----
   The scene is as tall as it needs to be: the sign hangs from the scroll's
   foot and Deuce stands on the track below it with room to spare, however the
   sign's words wrap. The country is pinned to the bottom, and the sky
   stretches to fill whatever is above it. */
.end { --u: .84px; --goose: 230; height: auto; padding-bottom: calc(var(--u) * (232 + var(--goose)) + 30px); }
.scene.end { background-size: auto calc(100% - var(--u) * 260); }
.end .l { top: auto; }
.end .far { bottom: calc(var(--u) * 500); }
.end .mid { bottom: calc(var(--u) * 380); }
.end .near { bottom: calc(var(--u) * 300); }
.end .ground { bottom: calc(var(--u) * -240); }
.end .sign { --hang: calc(var(--roll) * .5 + 36px); }
.end .rain { position: absolute; inset: -20% 0; z-index: 2; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(100deg, #0000 0 34px, #cfe0ff66 34px 35.5px, #0000 35.5px 71px), repeating-linear-gradient(100deg, #0000 0 57px, #cfe0ff40 57px 58px, #0000 58px 123px);
  background-size: 200px 220px, 310px 260px; animation: rain .55s linear infinite; }
@keyframes rain { to { background-position: -40px 220px, -46px 260px; } }
/* Lightning, now and then: a bolt comes down behind the hills and the whole country lights up for a moment. */
.end .bolt {
  position: absolute; left: 76%; top: 0; width: 64px; height: calc(100% - var(--u) * 690); min-height: 90px; opacity: 0;
  background: linear-gradient(#fff, #dfe9ff); filter: drop-shadow(0 0 10px #cfe0ff);
  clip-path: polygon(50% 0, 62% 0, 46% 30%, 64% 30%, 38% 60%, 54% 60%, 24% 100%, 40% 64%, 26% 64%, 48% 34%, 32% 34%);
  animation: bolt 12s linear 3.5s infinite;
}
.end .glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(130% 100% at 76% 0%, #dfe9ff, #dfe9ff00 72%); mix-blend-mode: screen; animation: glare 12s linear 3.5s infinite; }
@keyframes bolt { 0%, 1.1% { opacity: 1; } 1.7% { opacity: 0; } 2.4%, 3.1% { opacity: .9; } 4.2%, 100% { opacity: 0; } }
@keyframes glare { 0% { opacity: .62; } 1.7% { opacity: .08; } 2.4% { opacity: .5; } 7.5%, 100% { opacity: 0; } }
.end .wrap { position: relative; z-index: 3; display: grid; justify-items: center; align-content: start; }
.end .btn { overflow: hidden; }
.end .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, #fff0 38%, #ffffff9e 50%, #fff0 62%); translate: -130% 0; animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 62% { translate: -130% 0; } 100% { translate: 130% 0; } }
.end .sign { position: relative; width: min(540px, 100%); text-align: center; animation: none; }
.end .plank h2 { font-size: clamp(30px, 4.6vw, 44px); margin: 6px 0 10px; text-shadow: var(--carved); }
.end .plank p { margin-inline: auto; }
.end .plank .cta { justify-content: center; }
.end .lonely { position: absolute; left: 50%; bottom: calc(var(--u) * 232); height: calc(var(--u) * var(--goose)); width: auto; max-width: none; translate: -50% 0; filter: brightness(.8) saturate(.75); animation: shiver 3.2s linear infinite; }
@keyframes shiver { 0%, 68%, 86%, 100% { transform: none; } 71%, 77%, 83% { transform: translateX(-1.6px); } 74%, 80% { transform: translateX(1.6px); } }

footer { background: var(--beam); color: #f3e3c3; padding-block: 26px; font-weight: 600; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
footer a { text-decoration: none; opacity: .88; } footer a:hover { opacity: 1; text-decoration: underline; }
footer .tm { flex-basis: 100%; font-size: 12.5px; font-weight: 500; opacity: .72; }

/* Things rise in as they're reached (only with scripting on). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .roadfacts .reveal:nth-child(2), .trio .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3), .roadfacts .reveal:nth-child(3), .trio .reveal:nth-child(3) { transition-delay: .24s; }

/* ---- The small pages: privacy, terms, deleting an account, thanks ---- */
.legal { max-width: 760px; padding-block: 46px 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 6px; }
.legal h2 { font-size: 25px; margin: 34px 0 10px; }
.legal h3 { font-size: 19px; margin: 22px 0 6px; }
.legal p, .legal li { color: #5b4126; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.legal a { color: #8a4b0c; font-weight: 700; }
.muted { color: var(--ink-soft); font-size: 15px; }
.card { background: var(--card); border-radius: 18px; box-shadow: inset 0 -6px 0 var(--card-lip); padding: 18px 20px 24px; margin: 20px 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 2px solid #e2cfa1; vertical-align: top; }
.legal th { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.thanks { max-width: 640px; text-align: center; padding-block: 50px 90px; display: grid; gap: 18px; justify-items: center; }
.thanks img { width: 190px; }

/* ---- Narrower screens ---- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  /* The hero is as tall as it needs to be: the sign, then the two of them on
     the track just under it. As at the foot of the page, the country is pinned
     to the bottom and the sky fills whatever is above. --sink drops the lot a
     little, so there's less bare grass under their feet. */
  .hero { --u: 1.1px; --sink: 96; height: auto; padding-bottom: calc(var(--u) * (432 - var(--sink)) + 132px); }
  .hero .l:not(.clouds) { top: auto; }
  .hero .far { bottom: calc(var(--u) * (500 - var(--sink))); }
  .hero .mid { bottom: calc(var(--u) * (380 - var(--sink))); }
  .hero .near { bottom: calc(var(--u) * (300 - var(--sink))); }
  .hero .ground { bottom: calc(var(--u) * (-240 - var(--sink))); }
  .hero .wrap { position: static; height: auto; }
  .hero .sun { display: none; }
  .sign { --hang: 44px; position: relative; z-index: 3; width: 100%; }
  .plank { padding: 24px 20px 30px; }
  .plank p { font-size: 17px; }
  .cast { z-index: 3; width: min(390px, 100%); height: calc(var(--u) * 200); right: 50%; bottom: calc(var(--u) * (232 - var(--sink))); translate: 50% 0; }
  .foeslot { width: 56%; height: 82%; }
  .bubble { font-size: 14.5px; width: min(250px, 80%); }
  .steps { gap: 30px; }
  .steps .reveal:nth-child(n), .roadfacts .reveal:nth-child(n), .trio .reveal:nth-child(n) { transition-delay: 0s; }
  .steps, .roadfacts, .trio, .premium, .try, .loot, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .phone, .try .arena, .sheep { margin-inline: auto; }
  .try .arena { width: min(380px, 100%); }
  .posters { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding: 30px 14px 38px; margin-inline: -8px; border-radius: 16px; }
  .posters li:nth-child(odd) { --i: 0; } .posters li:nth-child(even) { --i: 1; }
  .places { transform: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
  .places li, .places .fog { flex: 0 0 62%; height: 340px; border: 0; border-radius: 16px !important; scroll-snap-align: center; }
  .places li:hover { flex-grow: 0; }
  .places img, .places .cap { transform: none; }
  .places img { inset: 0; width: 100%; }
  .heavens .moon { width: 40px; top: 16px; }
  .curios { grid-template-columns: repeat(4, 1fr); }
  .duel { gap: 4px 8px; padding: 22px 10px 24px; }
  .duel .who img { height: 150px; }
  .duel .ribbon { width: 140px; font-size: 15px; padding-bottom: 10px; }
  .duel .vs { font-size: 30px; }
  .duel .pill { font-size: 13px; padding-inline: 9px; }
  .tilt, .tilt.l { rotate: 0deg; }
  :root { --roll: 40px; }
  .end { --u: .8px; --goose: 190; }
}
/* Between a phone and a full desktop the sign narrows so Deuce has room beside it. */
@media (min-width: 901px) and (max-width: 1140px) {
  .hero .sign { width: min(560px, 52%); }
  .hero .plank { padding-inline: 24px; }
  .hero .plank h1 { font-size: clamp(36px, 4.4vw, 50px); }
}
@media (max-width: 420px) {
  .posters { gap: 20px 10px; padding-inline: 10px; }
  .plank h1 { font-size: 36px; }
  .hero { --u: 1.04px; }
  .plank .kicker { font-size: 12px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .posters li.reveal { opacity: 1; transform: none; }
}

/* The whole house, under the Home section. */
.housewide { margin: clamp(28px, 5vw, 56px) auto 0; max-width: 760px; }
.housewide img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 6px var(--wood), 0 18px 30px #0000002e; }