/* THESIS: a McDonald's crew room for the financially ruined.
   Red is the uniform, yellow is the only thing worth clicking, black is the ink that holds the meme together.
   Everything sits on paper (posters, receipts, forms) with a hard offset shadow, never a soft one. */

:root {
  --red: #da291c;
  --red-deep: #a8150c;
  --yellow: #ffc72c;
  --yellow-deep: #f2a900;
  --ink: #111111;
  --cream: #fff6e2;
  --paper: #fffdf7;
  --field: #dcdcf6;
  --green: #5bd14a;
  --muted: #6b6257;

  --f-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --f-body: "Archivo", "Arial", sans-serif;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-bar: "Libre Barcode 39 Text", var(--f-mono);

  --line: 3px solid var(--ink);
  --line-thick: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-big: 12px 12px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .9, .25, 1.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.5 var(--f-body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; min-height: 52px;
  background: var(--yellow); color: var(--ink);
  border: var(--line); box-shadow: var(--shadow);
  font: 400 20px/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn.red { background: var(--red); color: #fff; }
.btn.ink { background: var(--ink); color: var(--yellow); box-shadow: 6px 6px 0 var(--red); }
.btn.white { background: #fff; }
.btn.small { min-height: 44px; padding: 10px 14px; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .ti { font-size: 1.15em; }
.soon { font: 700 10px/1 var(--f-mono); background: var(--ink); color: var(--yellow); padding: 3px 5px; margin-left: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--red); color: #fff;
  border-bottom: var(--line-thick);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1 var(--f-display); letter-spacing: .5px; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: var(--line); background: var(--yellow); }
.brand b { color: var(--yellow); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font: 400 17px/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase; padding: 10px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.nav .icon-link { font-size: 22px; padding: 9px 10px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before { /* the restaurant tile floor, as a page texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker {
  display: inline-block; background: var(--yellow); border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  font: 400 15px/1 var(--f-display); letter-spacing: 1px; text-transform: uppercase;
  padding: 9px 12px; transform: rotate(-2deg);
}
.hero h1 {
  margin: 22px 0 18px;
  font: 400 clamp(58px, 8.6vw, 128px)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: -1px;
}
.hero h1 .l2 { display: block; color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.hero h1 .l1 { display: block; }
.hero h1 .l2, .t-end p, .final h2 { text-transform: none; }
.ticker-line { font: 400 clamp(22px, 3vw, 34px)/1.1 var(--f-display); text-transform: uppercase; margin: 0 0 14px; }
.ticker-line b { background: var(--ink); color: var(--yellow); padding: 2px 10px; font-weight: 400; }
.lead { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; max-width: 34ch; margin: 0 0 26px; }

.ca {
  display: flex; align-items: stretch; max-width: 560px;
  border: var(--line); box-shadow: var(--shadow); background: #fff; margin-bottom: 22px;
}
.ca-label { background: var(--ink); color: var(--yellow); font: 400 18px/1 var(--f-display); padding: 0 14px; display: grid; place-items: center; }
.ca-value { flex: 1; min-width: 0; padding: 14px; font: 700 14px/1.2 var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.ca-copy { border: 0; border-left: var(--line); background: var(--yellow); padding: 0 16px; cursor: pointer; font: 400 17px/1 var(--f-display); display: flex; align-items: center; gap: 6px; }
.ca-copy:hover { background: var(--yellow-deep); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.poster {
  position: relative; background: var(--red); border: var(--line-thick); box-shadow: var(--shadow-big);
  padding: 14px; transform: rotate(2.2deg);
}
.poster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; border: var(--line); }
.poster-tag {
  position: absolute; left: -18px; bottom: 30px; transform: rotate(-7deg);
  background: var(--yellow); border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  font: 400 clamp(18px, 2.4vw, 26px)/1 var(--f-display); text-transform: uppercase; padding: 10px 14px;
}
.poster-pin { position: absolute; top: -14px; left: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: var(--line); transform: translateX(-50%); }
.replay { position: absolute; right: -10px; top: -18px; transform: rotate(4deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .poster { transform: rotate(1.2deg); margin: 8px 10px 0 4px; }
  .poster-tag { left: -6px; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--yellow); border-block: var(--line-thick);
  overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg); margin: 0 -20px; position: relative; z-index: 2;
}
.marquee.red { background: var(--red); color: #fff; transform: rotate(1deg); }
.marquee-track { display: inline-flex; gap: 34px; padding: 14px 0; animation: marquee 32s linear infinite; font: 400 clamp(20px, 2.6vw, 30px)/1 var(--f-display); text-transform: uppercase; letter-spacing: 1px; }
.marquee-track span { display: inline-flex; align-items: center; gap: 34px; }
.marquee-track .dn { color: var(--red); }
.marquee.red .marquee-track .dn { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head .eyebrow { font: 700 13px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.sec-head h2 { margin: 10px 0 0; font: 400 clamp(46px, 7.5vw, 104px)/.88 var(--f-display); text-transform: uppercase; }
.sec-head h2 em { font-style: normal; color: var(--red); }
.sec-head p { max-width: 54ch; font-weight: 600; margin: 16px 0 0; }
.sec.dark { background: var(--ink); color: #fff; }
.sec.dark .sec-head h2 em { color: var(--yellow); }
.sec.red { background: var(--red); color: #fff; }
.sec.red .sec-head .eyebrow { color: var(--yellow); }
.sec.red .sec-head h2 em { color: var(--yellow); -webkit-text-stroke: 0; }

/* ---------- lore: comic strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.panel { grid-column: span 2; background: #fff; color: var(--ink); border: var(--line-thick); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.panel:nth-child(4), .panel:nth-child(5) { grid-column: span 3; }
.panel .shot { position: relative; border-bottom: var(--line-thick); overflow: hidden; }
.panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.panel .num { position: absolute; top: 10px; left: 10px; background: var(--yellow); border: var(--line); font: 400 18px/1 var(--f-display); padding: 6px 9px; }
.panel .txt { padding: 16px 18px 20px; }
.panel h3 { margin: 0 0 6px; font: 400 clamp(24px, 2.4vw, 32px)/1 var(--f-display); text-transform: uppercase; }
.panel p { margin: 0; font-size: 15.5px; font-weight: 600; }
.panel:nth-child(odd) { transform: rotate(-.6deg); }
.panel:nth-child(even) { transform: rotate(.7deg); }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } .panel, .panel:nth-child(4), .panel:nth-child(5) { grid-column: span 1; } .panel:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr; } .panel:last-child { grid-column: span 1; } }

/* ---------- tokenomics: the receipt ---------- */
.receipt-sec .wrap { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(30px, 6vw, 90px); align-items: start; }
.receipt-copy .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fact { background: var(--yellow); color: var(--ink); border: var(--line); box-shadow: var(--shadow); padding: 16px; }
.fact b { display: block; font: 400 clamp(30px, 3.4vw, 44px)/1 var(--f-display); }
.fact span { font: 700 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 1px; }
.printer { position: relative; }
.printer-slot { height: 26px; background: #2a2a2a; border: var(--line-thick); border-radius: 8px 8px 0 0; position: relative; z-index: 2; }
.printer-slot::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 5px; background: #000; border-radius: 3px; }
.receipt-clip { overflow: hidden; margin: 0 12px; }
.receipt {
  background: var(--paper); color: #222; font: 400 14px/1.55 var(--f-mono);
  padding: 22px 22px 34px; position: relative;
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,.35));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 16px 13px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 16px 13px repeat-x;
}
.receipt .r-logo { width: 74px; height: 74px; margin: 2px auto 8px; border-radius: 50%; filter: grayscale(1) contrast(1.2); }
.receipt .c { text-align: center; }
.receipt .big { font: 400 26px/1.1 var(--f-display); letter-spacing: 1px; }
.receipt hr { border: 0; border-top: 2px dashed #999; margin: 12px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row span:last-child { text-align: right; }
.receipt .tot { font-weight: 700; font-size: 16px; }
.receipt .bar { font: 400 54px/1 var(--f-bar); text-align: center; margin-top: 10px; letter-spacing: 0; }
.receipt .thanks { font-weight: 700; text-align: center; text-transform: uppercase; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .receipt { animation: print linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes print { from { transform: translateY(-88%); } to { transform: translateY(0); } }
  }
}
@media (max-width: 860px) { .receipt-sec .wrap { grid-template-columns: 1fr; } .printer { max-width: 420px; margin: 0 auto; width: 100%; } }

/* ---------- how to buy: crew training manual ---------- */
.manual { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: #fff; color: var(--ink); border: var(--line-thick); box-shadow: var(--shadow); padding: 0 0 20px; position: relative;
  border-radius: 14px; overflow: hidden;
}
.step::before { counter-increment: step; content: "STEP " counter(step); display: block; background: var(--red); color: #fff; border-bottom: var(--line-thick); font: 400 20px/1 var(--f-display); letter-spacing: 1px; padding: 12px 18px; }
.step .ti { font-size: 46px; color: var(--red); display: block; margin: 18px 18px 6px; }
.step h3 { font: 400 28px/1 var(--f-display); text-transform: uppercase; margin: 0 18px 8px; }
.step p { margin: 0 18px; font-weight: 600; font-size: 15.5px; }
.step .tag { position: absolute; top: 8px; right: 10px; background: var(--yellow); border: 2px solid var(--ink); font: 700 10px/1 var(--f-mono); padding: 4px 6px; transform: rotate(4deg); }
@media (max-width: 960px) { .manual { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .manual { grid-template-columns: 1fr; } }

/* ---------- cap generator ---------- */
.capgen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cap-stage { position: relative; background: var(--paper); border: var(--line-thick); box-shadow: var(--shadow-big); padding: 12px; }
.cap-stage canvas { width: 100%; height: auto; display: block; aspect-ratio: 1; touch-action: none; cursor: grab; background: #eee; border: var(--line); }
.cap-stage .empty { position: absolute; inset: 12px; display: grid; place-items: center; text-align: center; pointer-events: none; font: 400 28px/1.05 var(--f-display); text-transform: uppercase; color: var(--muted); }
.controls { background: #fff; color: var(--ink); border: var(--line-thick); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; }
.controls label { display: grid; gap: 6px; font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 1px; }
.controls input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.controls .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.controls input[type=text] { border: var(--line); padding: 10px 12px; font: 400 16px/1 var(--f-body); background: var(--field); }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.templates { display: flex; gap: 8px; flex-wrap: wrap; }
.templates button { border: var(--line); padding: 0; background: #fff; cursor: pointer; width: 64px; height: 64px; overflow: hidden; }
.templates img { width: 100%; height: 100%; object-fit: cover; }
.fine { font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 860px) { .capgen { grid-template-columns: 1fr; } }

/* ---------- meme kit ---------- */
.memes { columns: 3 260px; column-gap: 18px; }
.meme { break-inside: avoid; margin: 0 0 18px; background: #fff; border: var(--line-thick); box-shadow: var(--shadow); padding: 10px; }
.meme img { width: 100%; height: auto; border: 2px solid var(--ink); }
.meme figcaption { font: 400 18px/1.1 var(--f-display); text-transform: uppercase; padding: 10px 2px 2px; color: var(--ink); }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: clamp(70px, 10vw, 140px) 0; background: var(--yellow); border-top: var(--line-thick); }
.final h2 { font: 400 clamp(54px, 10vw, 150px)/.86 var(--f-display); text-transform: uppercase; margin: 0 0 18px; }
.final h2 em { font-style: normal; color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.final p { font-weight: 700; max-width: 46ch; margin: 0 auto 28px; }
.final .ctas { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #cfc8bc; padding: 40px 0 46px; border-top: var(--line-thick); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer .brand { color: #fff; }
footer .socials { display: flex; gap: 10px; }
footer .socials a { width: 46px; height: 46px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); font-size: 22px; text-decoration: none; }
footer .socials a:hover { background: var(--red); color: #fff; }
footer .disc { flex-basis: 100%; font: 400 12px/1.5 var(--f-mono); color: #8d867b; margin: 0; }

/* ---------- toast ---------- */
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; background: var(--ink); color: var(--yellow); border: 3px solid var(--yellow); font: 400 20px/1 var(--f-display); text-transform: uppercase; padding: 14px 20px; transition: transform .3s var(--ease); }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- TRAILER ---------- */
.trailer { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: none; }
.trailer.on { display: block; }
.trailer.out { animation: trailer-out .5s ease forwards; }
@keyframes trailer-out { to { opacity: 0; transform: scale(1.04); } }
.t-frame { position: absolute; inset: 0; display: grid; place-items: center; }
.t-screen { position: relative; width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.t-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.t-scene.show { opacity: 1; }
.t-scene img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.t-scene.show img { animation: kb 4s ease-out forwards; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.t-scene.shake.show img { animation: kb 4s ease-out forwards, shake .38s linear 3; }
@keyframes shake { 25% { translate: -10px 6px; } 50% { translate: 8px -8px; } 75% { translate: -6px -4px; } }
.t-scene.show.flash::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.t-cap {
  position: absolute; left: 4%; bottom: 7%; max-width: 70%;
  font: 400 clamp(30px, 6.4vw, 92px)/.9 var(--f-display); text-transform: uppercase;
  color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 6px 6px 0 #000;
}
.t-cap small { display: block; margin-top: 10px; font: 700 clamp(13px, 1.5vw, 20px)/1.3 var(--f-body); text-transform: none; -webkit-text-stroke: 0; text-shadow: 2px 2px 0 #000; max-width: 34ch; }
.t-scene.show .t-cap { animation: slam .45s var(--ease) both .15s; }
@keyframes slam { from { opacity: 0; transform: scale(1.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
.t-hud { position: absolute; top: 4%; right: 3%; width: clamp(150px, 26%, 340px); background: rgba(10,10,10,.82); border: 2px solid #fff; padding: 8px 10px 6px; font: 700 clamp(10px, 1vw, 13px)/1.2 var(--f-mono); }
.t-hud .hud-top { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.t-hud .pct.up { color: #3be36b; } .t-hud .pct.dn { color: #ff3b30; }
.t-hud canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; display: block; }
.t-hud .bal { margin-top: 4px; display: flex; justify-content: space-between; }
.t-slate, .t-end { position: absolute; inset: 0; display: none; place-items: center; text-align: center; }
.t-slate.show, .t-end.show { display: grid; }
.t-slate .rated { font: 700 clamp(12px, 1.4vw, 16px)/1.4 var(--f-mono); border: 2px solid #fff; padding: 14px 18px; max-width: 520px; margin: 0 16px; text-transform: uppercase; animation: fadein .4s both; }
.t-slate .rated b { display: block; font: 400 clamp(28px, 4vw, 48px)/1 var(--f-display); color: var(--yellow); margin-bottom: 8px; }
@keyframes fadein { from { opacity: 0; } }
.t-end { background: var(--red); }
.t-end img { width: clamp(120px, 22vw, 240px); border-radius: 50%; border: 6px solid #000; box-shadow: 10px 10px 0 #000; margin: 0 auto 18px; animation: stamp .5s var(--ease) both; }
.t-end h2 { margin: 0; font: 400 clamp(46px, 9vw, 130px)/.86 var(--f-display); text-transform: uppercase; color: var(--yellow); -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 7px 7px 0 #000; animation: stamp .5s var(--ease) both .15s; }
.t-end p { font: 400 clamp(18px, 2.2vw, 28px)/1 var(--f-display); text-transform: uppercase; margin: 14px 0 24px; animation: fadein .4s both .5s; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.15); }
.t-bar i { display: block; height: 100%; width: 0; background: var(--yellow); }
.t-ui { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 5; pointer-events: none; }
.t-ui > * { pointer-events: auto; }
.t-label { font: 700 12px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; background: var(--red); padding: 7px 9px; border: 2px solid #000; }
.t-skip { background: #fff; color: #000; border: 3px solid #000; box-shadow: 4px 4px 0 var(--yellow); font: 400 18px/1 var(--f-display); text-transform: uppercase; padding: 11px 16px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.t-skip:hover { background: var(--yellow); }
@media (max-aspect-ratio: 1/1) {
  /* phones: the frame sits in the upper middle, the caption moves under it so the art is not covered */
  .t-frame { place-items: center; align-content: center; }
  .t-cap { position: static; max-width: none; padding: 18px 16px 0; font-size: clamp(34px, 10vw, 56px); }
  .t-scene { position: absolute; }
  .t-screen { overflow: visible; }
  .t-scene .t-cap { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; }
  .t-hud { width: 40%; }
}

/* ---------- APPLY PAGE: the hiring paper ---------- */
.apply-hero { padding: clamp(36px, 6vw, 70px) 0 20px; }
.apply-hero h1 { margin: 16px 0 12px; font: 400 clamp(52px, 9vw, 128px)/.86 var(--f-display); text-transform: uppercase; }
.apply-hero h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.apply-hero p { font-weight: 700; max-width: 52ch; margin: 0 0 22px; }
.desk { padding: 30px 0 clamp(70px, 9vw, 120px); }
.paper {
  position: relative; max-width: 980px; margin: 0 auto; background: #fff; color: #1b1b1b;
  font: 400 15px/1.3 "Times New Roman", Georgia, serif;
  box-shadow: 0 1px 0 #ccc, 14px 16px 0 rgba(0,0,0,.85); border: 1px solid #bbb;
  transform: rotate(-.4deg);
}
.paper::before { /* clip */
  content: ""; position: absolute; top: -22px; left: 50%; width: 110px; height: 40px; transform: translateX(-50%);
  background: linear-gradient(#cfd3d6, #8e9397); border: 3px solid #333; border-radius: 6px 6px 3px 3px; z-index: 3;
}
.p-head { display: flex; align-items: center; gap: 18px; background: #000; color: #fff; padding: 14px 22px; }
.p-head .m { width: 76px; height: auto; flex: none; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; }
.p-head h2 { margin: 0; flex: 1; text-align: center; font: 900 clamp(20px, 3.6vw, 38px)/1.05 "Archivo", Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.p-head h2 small { font-size: .7em; }
.p-sub { text-align: center; font-style: italic; font-weight: 700; padding: 12px 20px 16px; margin: 0; }
.p-bar { display: flex; align-items: stretch; background: #000; color: #fff; font: 900 14px/1 "Archivo", Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.p-bar span { padding: 7px 22px; flex: 1; }
.p-bar .green { background: var(--green); color: #1a5c12; text-align: center; font-weight: 400; text-transform: none; font-family: Arial, sans-serif; flex: .8; }
.p-body { padding: 18px 22px 8px; display: grid; gap: 16px 22px; grid-template-columns: repeat(12, 1fr); }
.fld { grid-column: span 6; display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.fld.w12 { grid-column: span 12; } .fld.w8 { grid-column: span 8; } .fld.w4 { grid-column: span 4; }
.fld > label, .fld > .lbl { flex: none; max-width: 46%; font-size: 14.5px; }
.fld input, .fld select, .fld textarea {
  flex: 1; min-width: 0; width: 100%; border: 0; border-bottom: 1px solid #777; background: var(--field);
  font: 400 21px/1.15 var(--f-hand); color: #1736a8; padding: 4px 8px; border-radius: 0; min-height: 34px;
}
.fld select { font: 400 18px/1.15 var(--f-hand); cursor: pointer; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input::placeholder, .fld textarea::placeholder { color: #8f95c9; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.fld.stack { flex-direction: column; align-items: stretch; }
.fld.stack > label, .fld.stack > .lbl { max-width: none; }
.seed { position: relative; }
.seed .nope { position: absolute; right: 6px; bottom: 6px; font: 700 11px/1.1 var(--f-mono); color: var(--red); text-transform: uppercase; background: #fff; border: 2px solid var(--red); padding: 3px 5px; transform: rotate(-3deg); pointer-events: none; }
.yn { grid-column: span 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14.5px; }
.yn .q { flex: 1 1 200px; }
.yn label, .chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 700; }
.yn input, .chk input { appearance: none; width: 18px; height: 18px; border: 2px solid #111; background: #fff; margin: 0; cursor: pointer; display: grid; place-items: center; }
.yn input:checked, .chk input:checked { background: #111; }
.yn input:checked::after, .chk input:checked::after { content: "\2713"; color: #fff; font: 700 13px/1 Arial; }
.yn input:focus-visible, .chk input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tbl-wrap { grid-column: span 12; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { font-weight: 400; text-align: left; font-size: 14px; padding: 6px 6px; border-bottom: 1px solid #333; vertical-align: bottom; }
.tbl td { border-bottom: 1px solid #333; border-left: 1px solid #333; padding: 0; height: 46px; }
.tbl td:first-child { border-left: 0; padding: 4px 8px; font-size: 14.5px; width: 24%; vertical-align: top; }
.tbl td input, .tbl td select { width: 100%; height: 46px; border: 0; background: var(--field); font: 400 20px/1 var(--f-hand); color: #1736a8; padding: 0 8px; }
.tbl td input:focus, .tbl td select:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.p-agree { grid-column: span 12; display: grid; gap: 10px; font-size: 14.5px; }
.p-submit { grid-column: span 12; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 8px 0 6px; }
.p-foot { border-top: 1px solid #999; padding: 12px 22px 18px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; font: 400 10.5px/1.35 Arial, sans-serif; color: #333; }
.p-foot b { font-size: 11px; }
.p-foot .codes { font: 400 10.5px/1.35 Arial, sans-serif; }
.hired-stamp {
  position: absolute; z-index: 5; top: 34%; left: 50%; pointer-events: none;
  font: 400 clamp(70px, 15vw, 170px)/1 var(--f-display); color: var(--red); text-transform: uppercase; letter-spacing: 4px;
  border: 10px solid var(--red); border-radius: 14px; padding: 4px 26px; opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.6); mix-blend-mode: multiply;
}
.paper.hired .hired-stamp { animation: stamp-hit .38s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp-hit { to { opacity: .88; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.paper.hired { animation: thud .3s .3s; }
@keyframes thud { 40% { transform: rotate(-.4deg) translateY(5px); } }
@media (max-width: 760px) {
  .fld, .fld.w8, .fld.w4, .yn { grid-column: span 12; }
  .p-body { padding: 16px 14px 6px; }
  .p-head { padding: 12px 14px; gap: 12px; } .p-head .m { width: 52px; }
  .p-foot { grid-template-columns: 1fr; }
  .paper { transform: none; }
  .fld:not(.stack) { flex-direction: column; align-items: stretch; gap: 4px; }
  .fld > label, .fld > .lbl { max-width: none; }
}

/* badge modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(17,17,17,.82); padding: 16px; overflow-y: auto; }
.modal.show { display: grid; }
.modal-card { background: var(--yellow); border: var(--line-thick); box-shadow: 12px 12px 0 var(--red); max-width: 560px; width: 100%; padding: clamp(20px, 4vw, 34px); text-align: center; animation: stamp .45s var(--ease) both; position: relative; }
.modal-card h2 { margin: 0 0 6px; font: 400 clamp(46px, 9vw, 76px)/.9 var(--f-display); text-transform: uppercase; }
.modal-card p { font-weight: 700; margin: 0 0 18px; }
.modal-card canvas { width: 100%; height: auto; border: var(--line); box-shadow: var(--shadow); margin-bottom: 20px; background: #fff; }
.modal-card .ctas { justify-content: center; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: var(--line); background: #fff; cursor: pointer; font-size: 22px; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* grid children must be allowed to shrink below their nowrap content */
.hero-grid > *, .capgen > *, .receipt-sec .wrap > * { min-width: 0; }
@media (max-width: 900px) { .replay { right: 8px; top: -20px; } }
@media (max-width: 420px) { .ctas .btn { flex: 1 1 auto; } }
.cap-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cap-styles button { display: grid; justify-items: center; gap: 4px; padding: 10px 8px 8px; background: #fff; border: var(--line); cursor: pointer; font: 400 16px/1 var(--f-display); text-transform: uppercase; }
.cap-styles button img { height: 52px; width: auto; }
.cap-styles button[aria-pressed="true"] { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.cap-styles button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* images inside buttons take the button's pointer, not the lightbox magnifier */
button img { cursor: inherit; }
.trailer button, .templates button, .cap-styles button { cursor: pointer; }

/* ---------- hero game: flip the top ---------- */
.poster:has(.grill-game) { transform: rotate(1deg); }
.poster:has(.grill-game) .poster-tag { bottom: -26px; left: -18px; font-size: clamp(15px, 1.8vw, 20px); z-index: 6; }
.grill-game { position: relative; aspect-ratio: 4 / 3; border: var(--line); overflow: hidden; background: #241a14; user-select: none; -webkit-user-select: none; touch-action: manipulation; display: flex; flex-direction: column; }
.grill-game.shake { animation: gShake .35s; }
@keyframes gShake { 20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.g-hud { display: flex; justify-content: space-between; gap: 8px; background: var(--ink); color: #fff; font: 700 clamp(11px, 1.2vw, 14px)/1 var(--f-mono); padding: 9px 12px; }
.g-hud b { color: var(--yellow); }
.g-hud b.neg { color: #ff5a4e; }
.g-kitchen { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; background: repeating-linear-gradient(90deg, #f3ece0 0 38px, #e2d8c8 38px 40px); }
.g-kitchen::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; background: linear-gradient(#fff6e2, #efe3cc); border-bottom: var(--line); }
.g-board { position: absolute; left: 4%; top: 6%; background: var(--red); color: #fff; border: var(--line); box-shadow: 4px 4px 0 var(--ink); padding: 6px 10px; font: 400 clamp(13px, 1.5vw, 17px)/1 var(--f-display); transform: rotate(-3deg); z-index: 1; }
.g-board b { display: block; color: var(--yellow); font-weight: 400; font-size: 1.5em; }
.g-boss { position: absolute; right: 4%; top: 5%; display: flex; align-items: flex-start; gap: 8px; flex-direction: row-reverse; z-index: 1; }
.g-boss img { width: clamp(44px, 5.5vw, 64px); height: auto; border: var(--line); border-radius: 50%; background: var(--red); aspect-ratio: 1; }
.g-say { background: #fff; border: var(--line); border-radius: 14px; padding: 6px 10px; font: 400 clamp(12px, 1.3vw, 15px)/1.15 var(--f-hand); max-width: 170px; box-shadow: 3px 3px 0 var(--ink); }
.g-say.bump { animation: gBump .3s; }
@keyframes gBump { 50% { transform: scale(1.12) rotate(-2deg); } }
.g-grill { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin: 0 4% 5%; padding: 4% 4% 5%; background: repeating-linear-gradient(90deg, #3a3a3a 0 6px, #1c1c1c 6px 14px), #222; border: var(--line); box-shadow: 0 6px 0 var(--ink), inset 0 0 30px rgba(255, 90, 20, .35); border-radius: 6px; }
.g-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-chart { position: relative; width: 100%; height: 18px; background: #111; border: 2px solid #000; border-radius: 3px; overflow: hidden; visibility: hidden; }
.g-slot.cooking .g-chart { visibility: visible; }
.g-zone { position: absolute; top: 0; bottom: 0; background: rgba(91, 209, 74, .45); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.g-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ec808c, #c07040 60%, #3a2414); opacity: .85; }
.g-lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--f-mono); color: #fff; letter-spacing: .08em; text-shadow: 0 1px 0 #000; }
.g-slot.ready .g-lbl { color: var(--yellow); animation: gBlink .3s steps(2) infinite; }
.g-slot.late .g-chart { border-color: #ff3b2f; }
@keyframes gBlink { 50% { opacity: .35; } }
.g-patty { --c: rgb(236, 128, 140); position: relative; width: 82%; aspect-ratio: 1.35; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; padding: 0; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), transparent 40%), var(--c); box-shadow: 0 5px 0 rgba(0, 0, 0, .55); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.g-patty::after { content: ""; position: absolute; inset: 22% 14%; border-radius: 50%; background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(0, 0, 0, .28) 10px 13px); }
.g-slot.cooking .g-patty { opacity: 1; transform: scale(1); animation: gSizzle .18s infinite alternate; }
@keyframes gSizzle { to { translate: 0 -1px; } }
.g-slot.ready .g-patty { outline: 3px solid var(--green); outline-offset: 3px; }
.g-slot.late .g-patty { box-shadow: 0 5px 0 rgba(0, 0, 0, .55), 0 -10px 18px rgba(80, 80, 80, .8); }
.g-slot.gold .g-patty { background: radial-gradient(circle at 35% 30%, #fff6c2, transparent 45%), var(--yellow); }
.g-slot.gold .g-patty::after { content: "$BTM"; inset: 0; display: grid; place-items: center; background: none; font: 400 clamp(14px, 1.8vw, 20px)/1 var(--f-display); color: var(--red); }
.g-slot.flipped .g-patty { animation: gFlip .6s ease-out forwards; }
@keyframes gFlip { 0% { transform: translateY(0) rotateX(0); } 45% { transform: translateY(-120%) rotateX(200deg); } 100% { transform: translateY(-260%) rotateX(360deg) scale(.3); opacity: 0; } }
.g-slot.tossed .g-patty { animation: gToss .45s ease-in forwards; }
@keyframes gToss { to { transform: translate(40%, 140%) rotate(70deg) scale(.6); opacity: 0; } }
.g-slot.burnt .g-patty { animation: gBurn .9s forwards; background: #1b1715; }
@keyframes gBurn { 30% { transform: scale(1.06); } 100% { transform: scale(.7); opacity: 0; filter: blur(3px); } }
.g-key { position: absolute; right: 2px; bottom: -2px; font: 700 10px/1 var(--f-mono); color: #888; }
.g-pop { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); white-space: nowrap; font: 400 clamp(16px, 2vw, 22px)/1 var(--f-display); color: var(--green); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); pointer-events: none; animation: gPop 1.1s ease-out forwards; z-index: 4; }
.g-pop.top { color: var(--yellow); font-size: clamp(20px, 2.6vw, 28px); }
.g-pop.bad { color: #ff5a4e; }
@keyframes gPop { 0% { transform: translate(-50%, 10px) scale(.7); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -60px) scale(1); opacity: 0; } }
.g-over { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: rgba(17, 17, 17, .72); }
.g-over.on { display: grid; }
.g-over > picture { position: absolute; inset: 0; z-index: -1; }
.g-over > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; border: 0; aspect-ratio: auto; display: block; }
#gStart { background: none; isolation: isolate; }
#gStart::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .55)); }
#gStart .g-card { align-self: end; margin-bottom: 5%; }
.g-card { position: relative; background: var(--paper); border: var(--line); box-shadow: 6px 6px 0 var(--ink); padding: clamp(12px, 2vw, 20px); text-align: center; max-width: 86%; transform: rotate(-1.5deg); }
.g-card h3 { font: 400 clamp(26px, 3.6vw, 44px)/1 var(--f-display); color: var(--red); -webkit-text-stroke: 1px var(--ink); margin: 0 0 6px; }
.g-card p { font: 600 clamp(13px, 1.3vw, 15px)/1.4 var(--f-body); margin: 0 0 12px; }
.g-card p em { font-family: var(--f-hand); font-style: normal; color: var(--red); }
.g-card .gz { background: var(--green); padding: 0 5px; border: 2px solid var(--ink); }
.g-card small { display: block; margin-top: 8px; font: 700 11px/1 var(--f-mono); color: var(--muted); }
.g-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 520px) {
  .g-grill { gap: 3%; margin: 0 3% 4%; padding: 4% 3%; }
  .g-say { max-width: 120px; }
  .g-key, #gStart small { display: none; }
  .g-card { max-width: 94%; padding: 10px 12px; }
  .g-card p { margin-bottom: 8px; }
  .g-card .btn { padding: 10px 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .grill-game.shake, .g-slot.cooking .g-patty { animation: none; } }
.poster:has(.grill-game) .replay { top: -40px; }
