/* Hallmark · macrostructure: bespoke (playable pixel diorama + bag ring + kraft launch band + packers board) · tone: playful pixel · anchor hue: sky blue + kraft · studied: yes · DNA-source: agrumea-farm · critique: P5 H4 E4 S5 R4 V5 */
/* BAG: Just One Bag. A pixel lawn under a sunburst sky (from the owner's PFP and banner), the kraft bag as hero.
   Palette from brand/STYLE.md. Hard pixel edges: square corners, stepped shadows, no blur. */
@font-face { font-family: "Pixa"; src: url("/assets/fonts/pixelify-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --sky: #1a7fe0; --sky-2: #6cc4f5; --sky-3: #bfe6fb;
  --grass: #5cc425; --grass-2: #8ee03a; --grass-3: #3f9a1c;
  --kraft: #c9ab86; --kraft-2: #e2cfb2; --kraft-3: #a5845e;
  --band: #e3241b; --arch: #ffc72c; --ink: #3b2a1c; --cream: #ede6d6; --paper: #f6f1e6;
  --px: 4px; --top: 76px;
  --step: 0 var(--px) 0 var(--ink);
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; } html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 700 18px/1.5 "Pixa", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: none; }
img { image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3 { font-family: "Pixa", ui-sans-serif, sans-serif; font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0; overflow-wrap: anywhere; min-width: 0; }
button { font: inherit; cursor: pointer; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 700 13px/1 "Pixa", ui-sans-serif, sans-serif; color: var(--ink); }

/* ---------- header: links left, the bag centred, coin right ---------- */
.topline { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 clamp(14px, 2.4vw, 40px); transition: background .3s, box-shadow .3s; }
body.past .topline { background: var(--paper); box-shadow: 0 var(--px) 0 var(--ink); }
.links { display: flex; gap: 6px; }
.lnk { text-decoration: none; padding: 7px 14px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 15px; white-space: nowrap; transition: transform .12s; }
.lnk:hover { transform: translateY(-2px); }
.mark { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 0; }
.mark img { width: 52px; height: 52px; border: 3px solid var(--ink); box-shadow: var(--step); }
.mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wallet-row { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ca-chip, .buy-pill, .phantom-pill, .round { height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; transition: transform .12s; }
.ca-chip { padding: 0 12px; background: var(--paper); color: var(--ink); }
.ca-chip:disabled { cursor: default; color: #6b5a48; }
.buy-pill { padding: 0 16px; background: var(--band); color: var(--paper); }
.buy-pill[aria-disabled="true"] { background: #b98a7a; }
.phantom-pill { padding: 0 14px; background: var(--ink); color: var(--paper); }
.round { width: 38px; background: var(--paper); color: var(--ink); }
.ca-chip:not(:disabled):hover, .buy-pill:hover, .phantom-pill:hover, .round:hover { transform: translateY(-2px); }

/* ---------- the field: sky, rays, clouds, the game, the lawn edge ---------- */
.field { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; background: linear-gradient(var(--sky) 0 30%, var(--sky-2) 62%, var(--sky-3) 80%); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rays { position: absolute; left: 50%; top: 46%; width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.26) 0deg 7deg, rgba(255,255,255,0) 7deg 18deg); animation: spin 120s linear infinite; image-rendering: pixelated; }
.cloud { position: absolute; width: 16px; height: 16px; background: #f8fcff; color: #f8fcff; box-shadow: 16px 0, 32px 0, 48px 0, 64px 0, 80px 0, 16px -16px, 32px -16px, 48px -16px, 64px -16px, 32px -32px, 48px -32px, 96px 0, -16px 0, 0 16px 0 #dcefff, 16px 16px 0 #dcefff, 32px 16px 0 #dcefff, 48px 16px 0 #dcefff, 64px 16px 0 #dcefff, 80px 16px 0 #dcefff, 96px 16px 0 #dcefff; animation: drift 90s linear infinite; }
.c1 { top: 16%; left: -10%; scale: 2; }
.c2 { top: 9%; left: 30%; scale: 1.4; animation-duration: 120s; animation-delay: -40s; }
.c3 { top: 22%; left: 62%; scale: 2.4; animation-duration: 100s; animation-delay: -70s; }
.c4 { top: 6%; left: 84%; scale: 1.7; animation-duration: 140s; animation-delay: -20s; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.lawn { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--grass) 0 16px, var(--grass-2) 16px 32px, var(--grass-3) 32px 40px, var(--grass) 40px 56px); box-shadow: 0 -8px 0 var(--grass-3); z-index: 3; }

/* labels the game places over the scene */
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.labels > * { position: absolute; left: 0; top: 0; will-change: transform; }
.labels [hidden] { display: none; }
.badge { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 14px; line-height: 1; white-space: nowrap; }
.badge b { font: 700 13px/1 "Pixa", ui-sans-serif, sans-serif; color: var(--band); }
.badge i { display: block; width: 40px; height: 6px; background: var(--kraft-2); overflow: hidden; }
.badge s { display: block; height: 100%; background: var(--grass-3); transform-origin: left; text-decoration: none; }
.badge.urgent s { background: var(--band); }
.badge.urgent { animation: nudge .6s steps(2) infinite; }
.badge.buyer { background: var(--arch); }
.wal { font-style: normal; font-size: 12px; }
.mood { width: 14px; height: 14px; background: var(--arch); flex: none; position: relative; box-shadow: inset 0 0 0 2px var(--ink); }
.mood::before { content: ""; position: absolute; left: 3px; top: 4px; width: 2px; height: 2px; background: var(--ink); box-shadow: 6px 0 0 var(--ink); }
.mood::after { content: ""; position: absolute; left: 3px; top: 9px; width: 8px; height: 2px; background: var(--ink); }
.mood.happy::after { box-shadow: -1px -2px 0 -0 var(--ink) inset; height: 2px; top: 8px; }
.mood.angry { background: #f08a5d; }
.mood.angry::after { top: 9px; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; line-height: 1; }
.gauge i { width: 26px; height: 8px; background: var(--paper); border: 2px solid var(--ink); position: relative; overflow: hidden; }
.gauge i::after { content: ""; position: absolute; inset: 0; background: var(--c, var(--arch)); transform: scaleX(var(--p)); transform-origin: left; }
.gauge span { padding: 2px 6px; background: var(--paper); border: 2px solid var(--ink); }
.gauge span:empty { display: none; }
.gauge.flip { --c: var(--arch); animation: blink .5s steps(2) infinite; }
.gauge.flip span { background: var(--arch); }
.gauge.done { --c: var(--grass-3); }
.gauge.done span { background: var(--grass); }
.gauge.warn { --c: var(--band); animation: blink .35s steps(2) infinite; }
.gauge.warn span { background: var(--band); color: var(--paper); }
.gauge.burnt { --c: var(--ink); }
.gauge.burnt span { background: var(--ink); color: var(--cream); }
.gauge.count i { display: none; }
.ekey kbd { background: var(--arch); animation: hop 1s steps(4) infinite; }
.pop { font: 700 15px/1 "Pixa", ui-sans-serif, sans-serif; padding: 6px 10px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; animation: rise 1.3s var(--ease) forwards; }
.pop.cash { background: var(--arch); }
.pop.combo { background: var(--band); color: var(--paper); font-size: 22px; padding: 8px 14px; }
.pop.bad { background: var(--ink); color: var(--cream); }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: var(--top) 0 0; pointer-events: none; z-index: 5; }
.hud > * { pointer-events: auto; }
.slips { list-style: none; margin: 0; padding: 0; position: absolute; left: 16px; top: 10px; width: 236px; display: grid; gap: 8px; max-height: calc(100% - 120px); overflow: hidden; }
.slip { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--step); padding: 8px 10px 9px; }
.slip p { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.slip p b { font: 700 18px/1 "Pixa", ui-sans-serif, sans-serif; color: var(--band); }
.slip p span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip ul { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.slip li { font-size: 13px; padding: 1px 7px; background: var(--kraft-2); border: 2px solid var(--ink); }
.slip li.ok { background: var(--grass); }
.slip > i { display: block; height: 6px; background: var(--kraft-2); overflow: hidden; }
.slip > i s { display: block; height: 100%; background: var(--grass-3); transform-origin: left; text-decoration: none; }
.slip.urgent { background: #ffe0d6; }
.slip.urgent > i s { background: var(--band); }
.slip.buyer { background: #fff1bf; }
.slip.packed ul::after { content: "In the bag"; font-size: 12px; padding: 1px 7px; background: var(--kraft); border: 2px solid var(--ink); }
.meter { position: absolute; right: 16px; top: 10px; display: flex; align-items: stretch; gap: 6px; }
.meter > * { margin: 0; display: flex; align-items: center; gap: 6px; padding: 6px 11px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 700 15px/1 "Pixa", ui-sans-serif, sans-serif; white-space: nowrap; }
.m-clock i { width: 54px; height: 8px; background: var(--kraft-2); border: 2px solid var(--ink); overflow: hidden; display: block; }
.m-clock b { display: block; height: 100%; background: var(--sky); transform-origin: left; }
.m-bags { background: var(--kraft); }
.m-bags img { width: 22px; height: 22px; border: 2px solid var(--ink); }
.m-stars svg { color: var(--arch); stroke: var(--ink); }
.m-mute { cursor: pointer; color: var(--ink); }
.m-mute[aria-pressed="true"] { opacity: .5; }
.coachbox { position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(560px, 92vw); padding: 10px 14px; background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--step); }
.coachbox img { border: 2px solid var(--ink); flex: none; }
.coachbox p { margin: 0; font-size: 16px; line-height: 1.3; }
.carry { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 6px; }
.carry p { margin: 0; padding: 7px 12px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: var(--paper); font-size: 15px; white-space: nowrap; }
.carry-what { background: var(--kraft-2) !important; }
.carry-do:empty { display: none; }
.carry-do.info { background: var(--cream); }
.thumb { display: none; }
.field.playing.touch .thumb { display: block; }
.thumb-base { position: absolute; left: 20px; bottom: 30px; width: 124px; height: 124px; background: rgba(246,241,230,.75); border: 3px solid var(--ink); touch-action: none; }
.thumb-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; background: var(--ink); pointer-events: none; }
.thumb-act { position: absolute; right: 20px; bottom: 38px; width: 96px; height: 96px; border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--step); font: 700 15px/1 "Pixa", ui-sans-serif, sans-serif; color: var(--ink); touch-action: none; }
.thumb-act.ready { background: var(--arch); }
.thumb-act.hit { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.flash { position: absolute; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); margin: 0; padding: 8px 14px; background: var(--ink); color: var(--cream); opacity: 0; pointer-events: none; z-index: 6; font-size: 15px; }
.flash.show { animation: flash 2.6s steps(6) forwards; }

/* ---------- welcome card ---------- */
.welcome { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: calc(var(--top) + 12px) 16px 40px; transition: opacity .35s, visibility .35s; }
.welcome.out { opacity: 0; visibility: hidden; }
.welcome-in { width: min(520px, 100%); background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 26px 28px 24px; text-align: center; animation: land .7s var(--ease) both; }
.hero-bag { width: 168px; height: 168px; border: 4px solid var(--ink); margin: -96px auto 14px; display: block; box-shadow: 0 6px 0 var(--ink); animation: bob 2.4s steps(6) infinite; }
.welcome h1 { font-size: clamp(34px, 5vw, 52px); white-space: nowrap; }
.welcome-lede { margin: 12px auto 16px; max-width: 42ch; font-size: 17px; }
.keys { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; justify-items: center; font-size: 15px; }
.keys li { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.keys span { margin-left: 4px; }
.thumbhint { display: none; margin: 0 0 14px; font-size: 15px; }
.field.touch .thumbhint { display: block; }
.field.touch .keys { display: none; }
.go-shift { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--band); color: var(--paper); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font: 700 20px/1 "Pixa", ui-sans-serif, sans-serif; transition: transform .1s, box-shadow .1s; }
.go-shift:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.go-shift:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.wipe { display: block; margin: 12px auto 0; background: none; border: 0; text-decoration: underline; color: #6b5a48; font-size: 14px; }

/* ---------- receipt: the perfect bag moment ---------- */
.receipt { width: min(680px, 94vw); max-height: 92vh; padding: 0; border: 4px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 10px 0 var(--ink); }
.receipt::backdrop { background: rgba(26,127,224,.55); }
.receipt[open] { animation: land .5s var(--ease) both; }
.receipt-in { padding: 22px 24px 20px; }
.receipt-hero { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 4px dashed var(--kraft-3); }
.receipt-hero img { width: 132px; height: 132px; border: 4px solid var(--ink); flex: none; animation: seal 1.2s steps(5) both; }
.receipt-hero h2 { font-size: clamp(28px, 4.4vw, 42px); }
.receipt-when { margin: 6px 0 0; font-size: 15px; color: #6b5a48; }
.receipt-best { margin: 8px 0 0; font-size: 16px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 10px; }
.tally div { padding: 8px 10px; background: var(--cream); border: 2px solid var(--ink); }
.tally .big { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: var(--kraft); }
.tally dt { font-size: 13px; }
.tally dd { margin: 2px 0 0; font: 700 20px/1.1 "Pixa", ui-sans-serif, sans-serif; }
.tally .big dd { font-size: 34px; color: var(--band); }
.locker { margin: 8px 0 12px; }
.receipt h3 { font-size: 18px; margin-bottom: 8px; }
.upgrades { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.upgrades button { width: 100%; text-align: left; padding: 8px 10px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); font-size: 14px; display: grid; gap: 2px; }
.upgrades button b { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.upgrades button:disabled { opacity: .55; cursor: default; }
.upgrades button.owned { background: var(--grass-2); opacity: 1; }
.receipt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt-acts > * { padding: 11px 16px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-decoration: none; font-size: 16px; white-space: nowrap; }
.go-next { background: var(--band); color: var(--paper); }
.post-x { background: var(--ink); color: var(--paper); }
.sign { background: var(--arch); color: var(--ink); }
.sign:disabled { opacity: .5; }
.receipt-note { margin: 10px 0 0; font-size: 14px; color: #6b5a48; }

/* ---------- the bag ring (scroll turns the ring) ---------- */
.ring-wrap { position: relative; padding: clamp(64px, 9vw, 130px) clamp(16px, 4vw, 64px) clamp(56px, 7vw, 100px); background: var(--paper); overflow: hidden; }
.ring-stage { position: relative; width: min(760px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ring-stage::before { content: ""; position: absolute; inset: 8%; background: var(--kraft); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.ring-text { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(calc(var(--turn, 0) * 1deg)); }
.ring-text text { font: 700 30px "Pixa", ui-sans-serif, sans-serif; fill: var(--band); }
.ring-core { position: relative; width: 56%; text-align: center; }
.ring-core h2 { font-size: clamp(26px, 3.6vw, 44px); }
.ring-core p { margin: 14px 0 0; font-size: clamp(15px, 1.5vw, 18px); }
.items { list-style: none; margin: clamp(30px, 5vw, 60px) auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.items > li:not(.empty) { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; align-items: center; padding: 12px; background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--step); }
.items img { width: 56px; height: 56px; border: 2px solid var(--ink); object-fit: cover; grid-row: span 2; }
.it-name em { font-style: normal; font-weight: 600; display: block; }
.it-name small { font-size: 14px; color: #6b5a48; }
.it-px { grid-column: 2; display: flex; gap: 12px; font-size: 14px; }
.it-buy { grid-column: 1 / -1; text-align: center; padding: 7px; background: var(--band); color: var(--paper); text-decoration: none; border: 2px solid var(--ink); }
.empty { grid-column: 1 / -1; text-align: center; padding: 22px; border: 3px dashed var(--kraft-3); font-size: 16px; }

/* ---------- launch: a kraft panel ---------- */
.kraft { background: var(--kraft); padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 64px); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background-image: repeating-linear-gradient(0deg, rgba(59,42,28,.05) 0 4px, transparent 4px 12px); }
.kraft-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.kraft-copy h2 { font-size: clamp(28px, 3.6vw, 46px); }
.kraft-copy p { font-size: 18px; max-width: 46ch; }
.kraft-copy .small { font-size: 15px; }
.launcher { display: grid; gap: 12px; padding: 22px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.launcher label { display: grid; gap: 4px; font-size: 15px; }
.launcher input, .launcher textarea { font: inherit; font-size: 16px; padding: 9px 10px; border: 2px solid var(--ink); background: #fffdf8; color: var(--ink); border-radius: 0; }
.launcher input:focus, .launcher textarea:focus { outline: 3px solid var(--arch); outline-offset: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seal-it { padding: 13px; background: var(--band); color: var(--paper); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font: 700 17px/1 "Pixa", ui-sans-serif, sans-serif; }
.seal-it:disabled { opacity: .6; }
.launch-say { margin: 0; font-size: 15px; min-height: 1.2em; }

/* ---------- packers board and questions ---------- */
.packers { background: var(--paper); padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 64px); }
.packers-in, .asks { max-width: 1180px; margin: 0 auto; }
.packers-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.packers h2 { font-size: clamp(26px, 3.4vw, 42px); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board > li:not(.empty) { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; background: var(--cream); border: 2px solid var(--ink); }
.board b:last-child { font-family: "Pixa", ui-sans-serif, sans-serif; font-weight: 400; color: var(--band); }
.asks { margin-top: clamp(56px, 8vw, 100px); }
.asks h2 { margin-bottom: 16px; }
.asks details { border: 3px solid var(--ink); background: var(--cream); margin-bottom: 8px; box-shadow: 0 3px 0 var(--ink); }
.asks summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
.asks summary::after { content: "+"; float: right; font-family: "Pixa", ui-sans-serif, sans-serif; }
.asks details[open] summary::after { content: "-"; }
.asks details p { margin: 0; padding: 0 16px 14px; max-width: 80ch; }

/* ---------- footer: a strip of lawn ---------- */
.grassline { display: flex; align-items: center; gap: 14px; padding: 30px clamp(16px, 4vw, 64px) 34px; background: var(--grass); border-top: 8px solid var(--grass-3); box-shadow: inset 0 8px 0 var(--grass-2); }
.grassline img { border: 3px solid var(--ink); }
.grassline p { margin: 0; flex: 1; font-family: "Pixa", ui-sans-serif, sans-serif; }
.grassline a { padding: 7px 12px; background: var(--paper); border: 2px solid var(--ink); text-decoration: none; }

/* reveals */
.rise-in { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise-in.seen { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { translate: 0 0; } to { translate: 120vw 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes blink { 50% { filter: brightness(1.25); } }
@keyframes nudge { 50% { translate: 2px 0; } }
@keyframes rise { 0% { opacity: 0; translate: 0 8px; } 15% { opacity: 1; translate: 0 0; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }
@keyframes flash { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes land { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes seal { 0% { transform: scale(.6) rotate(-8deg); } 60% { transform: scale(1.08) rotate(3deg); } 100% { transform: none; } }

@media (max-width: 1100px) { .links { display: none; } .topline { grid-template-columns: auto 1fr; } .mark { order: -1; } }
@media (max-width: 760px) {
  :root { --top: 64px; }
  .mark img { width: 42px; height: 42px; }
  .round { width: 32px; height: 34px; } .phantom-pill { height: 34px; font-size: 13px; padding: 0 8px; } .wallet-row { gap: 4px; }
  .ca-chip, .buy-pill { height: 34px; font-size: 13px; padding: 0 9px; }
  .kraft-in, .packers-in { grid-template-columns: minmax(0, 1fr); } .kraft-in > *, .packers-in > * { min-width: 0; } .launcher input, .launcher textarea { width: 100%; box-sizing: border-box; }
  .slips { width: 170px; left: 8px; }
  .slip p b { font-size: 15px; }
  .meter { right: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 52vw; }
  .meter > * { font-size: 12px; padding: 5px 7px; }
  .m-clock i, .m-cash { display: none !important; }
  .tally { grid-template-columns: 1fr 1fr; }
  .upgrades { grid-template-columns: 1fr; }
  .receipt-hero img { width: 84px; height: 84px; }
  .ring-core { width: 66%; }
  .ring-core p { font-size: 13px; }
  .ring-text text { font-size: 34px; }
  .welcome h1 { font-size: 30px; }
  .hero-bag { width: 120px; height: 120px; margin-top: -70px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1101px) {
  .welcome { place-items: end start; padding: calc(var(--top) + 12px) 4vw 64px; }
  .welcome-in { width: 470px; text-align: left; }
  .hero-bag { margin: -100px 0 14px; }
  .keys { justify-items: start; }
  .keys li { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .topline { display: flex; justify-content: space-between; gap: 8px; padding: 0 10px; }
  .ca-chip { padding: 0 7px; }
  .buy-pill { padding: 0 9px; }
  .welcome { place-items: end center; padding: calc(var(--top) + 8px) 12px 34px; }
  .welcome-in { padding: 16px 16px 18px; }
  .hero-bag { width: 92px; height: 92px; margin: -58px auto 8px; }
  .welcome-lede { font-size: 15px; margin: 8px auto 10px; }
  .thumbhint { font-size: 14px; margin-bottom: 10px; }
  .go-shift { padding: 12px 22px; font-size: 18px; }
}
@media (min-width: 2200px) { .topline, .welcome-in, .meter, .slips, .coachbox, .carry { zoom: 1.35; } .topline { height: calc(var(--top) / 1.35); } }
:focus-visible { outline: 3px solid var(--arch); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
canvas:focus-visible { outline: none; box-shadow: none; }
