/* Fly Sammi Fly. Colours and sizes are set once here and reused everywhere. */
:root {
  --navy: #10263b; --bay: #3d719b; --bay-light: #9cc3df; --sea: #6a9a2d; --sand: #fbf3dc; --crab: #d9483b; --sun: #f5c15c; --white: #fff;
  --ink: #10263b; --radius: 18px; --shadow: 0 6px 0 rgba(16, 38, 59, .18);
  --grip: clamp(50px, 16vw, 78px); --sq: clamp(46px, 14.5vw, 76px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding: 70px 0 90px; }
body { margin: 0; font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--sand); padding-bottom: 76px; overflow-x: hidden; }
h1, h2 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
p { margin: 0 0 1em; }
a { color: var(--bay); }
svg { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6em 1em; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 32px; }
.wrap.narrow { max-width: 680px; }
.lead { font-size: 1.05rem; max-width: 46ch; }
.center { text-align: center; }

/* ---------- top bar and navigation */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--navy); color: var(--white); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.brand-mark { width: 54px; height: 42px; background: var(--white); border-radius: 12px; padding: 2px 3px; flex: none; object-fit: contain; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--navy); border-top: 3px solid var(--sun); }
.nav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 700; }
.nav a > span:first-child { width: 28px; height: 28px; background: var(--white); border-radius: 50%; padding: 3px; }
.nav a[aria-current="page"] { background: var(--bay); }
.nav a[aria-current="page"] > span:first-child { background: var(--sun); }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .nav { position: static; border-top: 0; background: none; gap: 6px; }
  .nav a { flex: none; flex-direction: row; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 1rem; }
}

/* ---------- buttons */
.btn { font: inherit; font-weight: 800; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: .55em 1.2em; min-height: 48px; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; display: inline-block; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 rgba(16, 38, 59, .18); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--sun); }
.btn-drop { background: var(--crab); color: var(--white); font-size: 1.2rem; flex: 1.2; padding-left: .5em; padding-right: .5em; }
.btn-move { flex: 1; white-space: nowrap; padding-left: .5em; padding-right: .5em; user-select: none; -webkit-user-select: none; }

/* ---------- home: the bay scene */
.hero { position: relative; overflow: hidden; }
.hero-stack { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px 136px; pointer-events: none; }
.sky { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(#8fd3f4 0%, #c9ecfb 62%, #e9f8ff 100%); }
.sun { position: absolute; top: 8%; right: 9%; width: clamp(60px, 14vw, 110px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 14px rgba(245, 193, 92, .35), 0 0 0 30px rgba(245, 193, 92, .18); animation: glow 5s ease-in-out infinite alternate; }
.cloud { position: absolute; width: 120px; height: 38px; background: var(--white); border-radius: 999px; opacity: .95; animation: drift 46s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; left: 16px; top: -24px; }
.cloud::after { width: 42px; height: 42px; left: 60px; top: -16px; }
.c1 { top: 16%; left: -140px; } .c2 { top: 34%; left: -140px; animation-duration: 64s; animation-delay: -30s; transform: scale(.7); } .c3 { top: 8%; left: -140px; animation-duration: 80s; animation-delay: -55s; transform: scale(.55); }
.gull { position: absolute; width: clamp(34px, 8vw, 56px); height: clamp(34px, 8vw, 56px); animation: fly 15s linear infinite; }
.gull svg { animation: flap .7s ease-in-out infinite alternate; }
.g1 { top: 20%; left: -70px; } .g2 { top: 38%; left: -70px; animation-duration: 21s; animation-delay: -9s; transform: scale(.7); }
.lighthouse { position: absolute; right: 5%; bottom: 62px; width: clamp(70px, 17vw, 130px); height: clamp(70px, 17vw, 130px); }
.boat { position: absolute; left: 4%; bottom: 44px; width: clamp(84px, 22vw, 170px); height: clamp(84px, 22vw, 170px); padding: 0; border: 0; background: none; cursor: pointer; animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; z-index: 2; }
.boat.rock { animation: rock .8s ease-in-out 1, bob 3.4s ease-in-out .8s infinite; }
.wave { position: absolute; left: 0; right: 0; height: 90px; background-repeat: repeat-x, no-repeat; background-size: 96px 26px, 100% 100%; background-position: 0 0, 0 25px; animation: roll 7s linear infinite; }
.w1 { bottom: 14px; z-index: 1; opacity: .9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 26'%3E%3Cpath d='M0 13 Q24 -3 48 13 T96 13 V26 H0Z' fill='%239cc3df'/%3E%3C/svg%3E"), linear-gradient(#9cc3df, #9cc3df); animation-duration: 11s; animation-direction: reverse; }
.w2 { bottom: -10px; z-index: 3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 26'%3E%3Cpath d='M0 13 Q24 -3 48 13 T96 13 V26 H0Z' fill='%233d719b'/%3E%3C/svg%3E"), linear-gradient(#3d719b, #3d719b); }
.w3 { bottom: -42px; z-index: 4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 26'%3E%3Cpath d='M0 13 Q24 -3 48 13 T96 13 V26 H0Z' fill='%2310263b'/%3E%3C/svg%3E"), linear-gradient(#10263b, #10263b); animation-duration: 5s; }
.crab-walk { position: absolute; bottom: 4px; left: -60px; width: 44px; height: 44px; z-index: 5; animation: scuttle 19s linear infinite; }
.hero-text { text-align: center; }
.hero-text h1 { font-size: clamp(2.4rem, 11vw, 4.6rem); color: var(--navy); text-shadow: 0 3px 0 var(--white), 3px 0 0 var(--white), -3px 0 0 var(--white), 0 -3px 0 var(--white); margin-bottom: .15em; transform: rotate(-2deg); }
.hero-text p { font-weight: 700; margin: 0 auto; max-width: 24ch; background: rgba(255, 255, 255, .78); border-radius: 12px; padding: 4px 10px; }
.hero-text .bell { margin-top: 8px; min-height: 1.6em; background: none; color: var(--crab); font-size: 1.1rem; }
/* Sammi rides a cloud: the original picture, whole, on its own white background */
.sammi-cloud { position: relative; width: clamp(216px, 68vw, 340px); padding: 14px 22px 10px; background: var(--white); border-radius: 44px; box-shadow: -40px 22px 0 -14px var(--white), 40px 24px 0 -16px var(--white), 0 12px 0 -2px rgba(16, 38, 59, .10); animation: float 4.2s ease-in-out infinite; }
.sammi-cloud::before, .sammi-cloud::after { content: ""; position: absolute; z-index: -1; background: var(--white); border-radius: 50%; }
.sammi-cloud::before { width: 38%; aspect-ratio: 1; left: 12%; top: -13%; }
.sammi-cloud::after { width: 30%; aspect-ratio: 1; right: 14%; top: -9%; }
.sammi-cloud img { position: relative; display: block; width: 100%; height: auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { to { transform: scale(1.06); } }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }
@keyframes fly { 0% { translate: 0 0; } 50% { translate: calc(50vw + 60px) -26px; } 100% { translate: calc(100vw + 140px) 6px; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes rock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes roll { to { background-position: 96px 0, 0 25px; } }
@keyframes scuttle { 0% { translate: 0 0; } 100% { translate: calc(100vw + 120px) 0; } }

/* ---------- home: game cards */
.section-title { text-align: center; margin: 6px 0 16px; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 16px 20px; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.card:hover, .card:focus-visible { transform: translateY(-4px) rotate(-1deg); }
.card-art { width: 84px; height: 84px; border-radius: 50%; padding: 12px; background: var(--bay-light); }
.card-claw .card-art { background: #ffd9e6; } .card-trivia .card-art { background: #ffe1a6; } .card-memory .card-art { background: #c6f0ea; } .card-daily .card-art { background: #cfe6ff; }
.card-name { font-weight: 800; font-size: 1.3rem; }
.card-text { font-size: .98rem; }
.friend { margin-top: 26px; padding: 16px; text-align: center; background: var(--white); border: 3px dashed var(--bay); border-radius: var(--radius); }
.friend p { margin: 0; }
.foot { text-align: center; padding: 20px 16px 26px; background: var(--navy); color: var(--white); font-size: .95rem; }
.foot p { margin: 0 0 .3em; } .foot a { color: var(--sun); }

/* ---------- shared game pieces */
.hud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hud span { flex: 1 1 auto; text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 10px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.hud b { font-size: 1.25rem; color: var(--bay); margin-left: 4px; }
.msg { min-height: 3em; text-align: center; font-weight: 700; margin: 12px 0; }
.overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(16, 38, 59, .72); padding: 12px; border-radius: inherit; }
.overlay-box p { margin-bottom: .6em; }
.overlay-box { background: var(--white); border: 4px solid var(--sun); border-radius: var(--radius); padding: 16px 18px; text-align: center; max-width: 94%; max-height: 100%; overflow: auto; animation: pop .35s ease-out; }
.overlay-daily { color: var(--crab); font-weight: 800; }
.overlay-daily:empty { display: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- squishy claw machine */
.machine { position: relative; max-width: 580px; margin: 0 auto; padding: 0 14px 14px; border: 4px solid var(--ink); border-radius: 30px 30px 24px 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 16%, rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, .28)), linear-gradient(#5a92bf, #33648e 48%, #1c3d5c);
  box-shadow: 0 10px 0 rgba(16, 38, 59, .22), 0 18px 30px rgba(16, 38, 59, .25), inset 0 4px 0 rgba(255, 255, 255, .38), inset 0 -6px 0 rgba(0, 0, 0, .18); }
.marquee { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 12px; padding: 15px 12px; border: 3px solid var(--ink); border-radius: 16px;
  background: radial-gradient(130% 150% at 50% -10%, #fffaf0 0%, #ffe3a1 34%, #f5c15c 62%, #e39a2c 100%);
  box-shadow: 0 0 22px rgba(245, 193, 92, .75), inset 0 -5px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .7); }
.marquee-text { font-weight: 900; letter-spacing: .07em; line-height: 1.05; text-align: center; font-size: clamp(1rem, 4.6vw, 1.45rem); color: var(--navy); text-shadow: 0 2px 0 rgba(255, 255, 255, .75); }
.machine-sammi { width: 62px; height: 47px; object-fit: contain; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 1px 2px; flex: none; box-shadow: 0 3px 0 rgba(16, 38, 59, .25); }
.bulbs { position: absolute; left: 12px; right: 12px; height: 8px; background: radial-gradient(circle at 4px 4px, #fff 0 2px, #ff8a3c 2.6px 3.6px, transparent 4px) 0 0 / 16px 8px repeat-x; animation: chase .9s steps(2, jump-none) infinite; }
.bulbs.top { top: 3px; } .bulbs.bottom { bottom: 3px; animation-direction: reverse; }
@keyframes chase { from { background-position: 0 0; opacity: 1; } to { background-position: 8px 0; opacity: .82; } }

.claw-field { position: relative; height: clamp(280px, 68vw, 410px); overflow: hidden; border: 4px solid var(--ink); border-radius: 18px; isolation: isolate;
  background: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .13) 0 2px, transparent 2.6px) 0 0 / 30px 30px, linear-gradient(#1c3557 0%, #2f5c8a 34%, #5d98c4 68%, #a9d3ea 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), inset 0 18px 28px rgba(0, 0, 0, .35), inset 0 -10px 18px rgba(0, 0, 0, .18), 0 4px 0 rgba(0, 0, 0, .25); }
.spot { position: absolute; top: 0; width: 62%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.spot.s1 { left: -6%; background: conic-gradient(from 160deg at 38% 0%, transparent 0deg, rgba(255, 244, 200, .5) 14deg, rgba(255, 244, 200, .5) 30deg, transparent 44deg); }
.spot.s2 { right: -6%; background: conic-gradient(from 156deg at 62% 0%, transparent 0deg, rgba(255, 190, 220, .42) 14deg, rgba(255, 190, 220, .42) 30deg, transparent 44deg); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 21%; z-index: 0;
  background: radial-gradient(circle at 50% 55%, #ffd3e2 0 9px, rgba(0, 0, 0, .12) 9.6px 10.6px, transparent 11px) 0 0 / 30px 22px,
    radial-gradient(circle at 50% 55%, #cfe6ff 0 9px, rgba(0, 0, 0, .12) 9.6px 10.6px, transparent 11px) 15px 9px / 30px 22px,
    radial-gradient(circle at 50% 55%, #fff0b8 0 8px, rgba(0, 0, 0, .12) 8.6px 9.6px, transparent 10px) 7px -6px / 30px 22px, linear-gradient(#e9b874, #c98a44);
  box-shadow: inset 0 9px 10px rgba(16, 38, 59, .32); }
.rail { position: absolute; left: 0; right: 0; top: 0; height: 12px; z-index: 5; background: linear-gradient(#f4f7fa, #b8c3d0 45%, #77869a); border-bottom: 3px solid var(--ink); box-shadow: 0 4px 6px rgba(0, 0, 0, .3); }
.claw { position: absolute; top: 10px; left: 50%; width: var(--grip); height: calc(100% - 10px); transform: translateX(-50%); --depth: 0; z-index: 3; pointer-events: none; }
.cable { width: 6px; margin: 0 auto; background: linear-gradient(90deg, #5d6b7c, #dfe6ee 45%, #5d6b7c); border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); height: calc(6px + var(--depth) * (100% - 6px - var(--grip) - var(--sq) * .5)); }
.grip { position: relative; width: var(--grip); height: var(--grip); filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .3)); }
.grip .jaw { transform-box: view-box; transform-origin: 32px 14px; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.grip.closed .jaw-l { transform: rotate(-14deg); } .grip.closed .jaw-r { transform: rotate(14deg); }
.chute { position: absolute; left: 0; bottom: 0; width: 17%; height: 34%; z-index: 4; border-right: 4px solid var(--ink); border-top: 4px solid var(--ink); border-top-right-radius: 14px; display: grid; place-items: end center;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 40%), linear-gradient(#1f4468, #10263b); box-shadow: inset 0 6px 0 rgba(245, 193, 92, .9), inset 0 12px 14px rgba(245, 193, 92, .25); transition: box-shadow .2s; }
.chute.lit { box-shadow: inset 0 6px 0 #fff3c4, inset 0 0 26px rgba(255, 220, 120, .95), 0 0 20px rgba(255, 220, 120, .8); }
.chute span { font-size: .62rem; font-weight: 900; letter-spacing: .08em; background: var(--sun); color: var(--ink); padding: 1px 5px; border-radius: 5px; margin-bottom: 6px; border: 1.5px solid var(--ink); }
.pile { position: absolute; left: 0; right: 0; bottom: 9px; height: 0; z-index: 2; }
.glass { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: 13px;
  background: linear-gradient(112deg, rgba(255, 255, 255, .34) 0 6%, rgba(255, 255, 255, 0) 6% 10.5%, rgba(255, 255, 255, .17) 10.5% 13%, rgba(255, 255, 255, 0) 13% 100%),
    linear-gradient(292deg, rgba(255, 255, 255, .12) 0 5%, rgba(255, 255, 255, 0) 5% 100%), linear-gradient(rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 28%);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .2), inset 3px 3px 0 rgba(255, 255, 255, .3); }

/* the squishies */
.squishy { position: absolute; width: var(--sq); height: var(--sq); transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 5px 2px rgba(16, 38, 59, .38)); }
.squishy svg { overflow: visible; transform-origin: 50% 96%; animation: jiggle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.squishy.back { z-index: 0; width: calc(var(--sq) * .9); height: calc(var(--sq) * .9); filter: brightness(.9) drop-shadow(0 5px 2px rgba(16, 38, 59, .38)); }
.squishy[data-rarity="rare"] { filter: drop-shadow(0 0 5px rgba(196, 160, 255, .95)) drop-shadow(0 5px 2px rgba(16, 38, 59, .38)); }
.squishy[data-rarity="legendary"] { filter: drop-shadow(0 0 7px rgba(255, 214, 102, 1)) drop-shadow(0 5px 2px rgba(16, 38, 59, .38)); }
.squishy.boop svg { animation: boop .5s ease-out; }
.squishy.held { left: 50%; top: 44%; bottom: auto; z-index: 1; }
.squishy.held svg { transform-origin: 50% 8%; animation: squeeze .45s ease-out both, sway 1.1s ease-in-out .45s infinite alternate; }
.squishy.falling svg { animation: none; transform: none; }
@keyframes jiggle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.045, .945); } }
@keyframes boop { 0% { transform: scale(1, 1); } 28% { transform: scale(1.28, .68); } 58% { transform: scale(.9, 1.13); } 80% { transform: scale(1.05, .96); } 100% { transform: scale(1, 1); } }
@keyframes squeeze { 0% { transform: scale(1, 1); } 45% { transform: scale(.7, 1.24); } 100% { transform: scale(.84, 1.1); } }
@keyframes sway { from { transform: scale(.84, 1.1) rotate(-6deg); } to { transform: scale(.84, 1.1) rotate(6deg); } }

/* prize card */
.reveal { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; --rc: var(--bay); background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .7) 0, rgba(16, 38, 59, .7) 72%); overflow: hidden; }
.reveal::before { content: ""; position: absolute; width: 170%; aspect-ratio: 1; left: -35%; top: 50%; translate: 0 -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .34) 0deg 9deg, transparent 9deg 22.5deg); animation: spin 14s linear infinite; }
.reveal-card { position: relative; min-width: 62%; max-width: 92%; padding: 8px 16px 10px; text-align: center; background: var(--white); border: 4px solid var(--rc); border-radius: 22px; box-shadow: 0 0 0 4px var(--ink), 0 0 34px var(--rc), 0 10px 0 rgba(16, 38, 59, .3); animation: pop .35s cubic-bezier(.3, 1.5, .5, 1); }
.reveal-art { width: clamp(84px, 27vw, 128px); aspect-ratio: 1; margin: 0 auto; }
.reveal-art svg { overflow: visible; transform-origin: 50% 96%; animation: boop .7s ease-out .1s both, jiggle 1.4s ease-in-out .8s infinite; }
.reveal-card p { margin: 0; }
.reveal-name { font-weight: 900; font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1.15; }
.reveal-rarity { display: inline-block; margin-top: 4px !important; padding: 1px 12px; border-radius: 999px; background: var(--rc); color: var(--white); font-weight: 900; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; white-space: pre; }
.reveal-new { margin-top: 4px !important; font-weight: 800; font-size: .92rem; color: var(--crab); }
.reveal-new:empty { display: none; }

/* arcade controls */
.controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 16px 16px; border: 3px solid var(--ink); border-radius: 20px;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 30%), linear-gradient(#20466b, #122c45); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .2), inset 0 -4px 0 rgba(0, 0, 0, .3); }
.arcade { font: inherit; font-weight: 900; color: var(--ink); border: 3px solid var(--ink); cursor: pointer; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .06s, box-shadow .06s, filter .15s; }
.btn-move { flex: none; width: clamp(62px, 19vw, 84px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1;
  background: radial-gradient(circle at 34% 26%, #ffffff 0 9%, #f0f4f8 10% 38%, #b3bfcd 78%, #8a98a9 100%); box-shadow: 0 6px 0 #4c5b6c, 0 10px 10px rgba(0, 0, 0, .4), inset 0 -4px 6px rgba(0, 0, 0, .18); }
.btn-drop { flex: 1; max-width: 240px; min-height: clamp(62px, 19vw, 84px); border-radius: 999px; color: var(--white); font-size: clamp(1.3rem, 5.6vw, 1.7rem); letter-spacing: .12em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  background: radial-gradient(120% 100% at 36% 12%, #ffb9ad 0 10%, #ef5a4c 38%, #c9362a 70%, #96211a 100%); box-shadow: 0 6px 0 #6f1711, 0 10px 12px rgba(0, 0, 0, .4), 0 0 22px rgba(239, 90, 76, .6), inset 0 -5px 8px rgba(0, 0, 0, .22); animation: beckon 1.6s ease-in-out infinite; }
.arcade:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #4c5b6c, 0 3px 5px rgba(0, 0, 0, .4); }
.arcade:disabled { cursor: default; filter: saturate(.35) brightness(.78); animation: none; }
@keyframes beckon { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }

/* this game's wins, and the collection */
.won, .shelf-box { max-width: 580px; margin: 0 auto 14px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; }
.won h2 { font-size: 1.1rem; margin-bottom: 8px; }
.prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; }
.prize { width: 52px; height: 52px; padding: 2px; border-radius: 12px; border: 2px solid var(--rc, var(--bay)); background: var(--sand); animation: pop .35s ease-out; }
.shelf-box { box-shadow: var(--shadow); margin-top: 6px; }
.shelf-box h2 { margin-bottom: 2px; }
.shelf-tally { margin: 0 0 6px; font-size: .98rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.shelf-big { font-weight: 900; font-size: 1.5rem; color: var(--bay); line-height: 1; }
.shelf-big b { font-size: 1.9rem; }
.shelf-all { margin-left: auto; font-size: .9rem; }
.shelf-all b { color: var(--bay); font-size: 1.05rem; }
.shelf-bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #e6ebf0; overflow: hidden; margin-bottom: 10px; }
.shelf-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, #ffd98a 10px 20px); border-right: 2px solid var(--ink); transition: width .5s ease-out; }
.shelf-done { display: none; margin: 0 0 10px; padding: 6px 10px; text-align: center; font-weight: 900; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 12px; }
.shelf-box.complete .shelf-done { display: block; }
.tier { margin-top: 12px; }
.tier h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; padding-bottom: 4px; border-bottom: 3px solid var(--rc); font-size: 1rem; }
.shelf-rarity { font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--white); background: var(--rc); border-radius: 999px; padding: 1px 12px; }
.tier-count { margin-left: auto; font-weight: 900; color: var(--rc); }
.tier.complete .tier-count::after { content: " \2713"; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 620px) { .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; } }
@media (max-width: 359px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shelf-item { position: relative; width: 100%; height: 100%; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 6px; min-width: 0; overflow: hidden; border: 3px solid var(--rc); border-radius: 14px;
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)), var(--rc); box-shadow: 0 4px 0 rgba(16, 38, 59, .16); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.shelf-art { width: min(100%, 96px); aspect-ratio: 1; }
.shelf-art svg { overflow: visible; transform-origin: 50% 96%; }
.shelf-item.owned:hover .shelf-art svg { animation: jiggle 1.2s ease-in-out infinite; }
.shelf-item.poked .shelf-art svg { animation: boop .55s ease-out; }
.shelf-name { max-width: 100%; font-weight: 800; font-size: clamp(.62rem, 2.75vw, .8rem); line-height: 1.12; text-align: center; overflow-wrap: break-word; }
.shelf-count { position: absolute; top: 2px; right: 2px; min-width: 24px; padding: 0 4px; font-weight: 900; font-size: .72rem; line-height: 1.35; color: var(--white); background: var(--ink); border: 2px solid var(--white); border-radius: 999px; }
.shelf-new { position: absolute; top: 2px; left: 2px; padding: 0 5px; font-weight: 900; font-size: .62rem; line-height: 1.5; letter-spacing: .04em; color: var(--white); background: var(--crab); border: 2px solid var(--white); border-radius: 999px; animation: pulse 1s ease-in-out infinite; }
.shelf-item.fresh { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.shelf-item:not(.owned) { border-style: dashed; background: #eef1f4; box-shadow: none; }
.shelf-item:not(.owned) .shelf-art { filter: brightness(0) opacity(.2); }
.shelf-item:not(.owned) .shelf-name { color: #7b8794; }
.shelf-item[data-rarity="legendary"].owned { box-shadow: 0 0 14px rgba(232, 149, 28, .7), 0 4px 0 rgba(16, 38, 59, .16); }
.shelf-item[data-rarity="legendary"].owned::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); background-size: 300% 100%; animation: shine 3.2s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes pulse { 50% { transform: scale(1.14); } }

/* discovery celebrations on the prize card */
.reveal-banner { margin: 0 0 2px !important; font-weight: 900; font-size: .82rem; letter-spacing: .12em; color: var(--white); background: var(--rc); border-radius: 999px; padding: 1px 12px; display: inline-block; animation: pulse .8s ease-in-out infinite; }
.reveal-banner:empty { display: none; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: confetti var(--fall, 1.2s) linear var(--wait, 0s) infinite; }
.confetti i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--drift, 0), 330px) rotate(var(--turn, 360deg)); opacity: 1; } }
.reveal[data-rarity="legendary"] { background: radial-gradient(circle at 50% 46%, rgba(255, 244, 200, .92) 0, rgba(232, 149, 28, .78) 46%, rgba(16, 38, 59, .86) 86%); }
.reveal[data-rarity="legendary"]::before { background: repeating-conic-gradient(from 0deg, rgba(255, 233, 150, .75) 0deg 9deg, transparent 9deg 22.5deg); animation-duration: 5s; }
.reveal[data-rarity="legendary"] .reveal-card { border-width: 5px; box-shadow: 0 0 0 4px var(--ink), 0 0 46px 10px #ffd35c, 0 10px 0 rgba(16, 38, 59, .3); animation: pop .45s cubic-bezier(.3, 1.7, .5, 1), glow 1s ease-in-out .45s infinite; }
.reveal[data-rarity="legendary"] .reveal-banner { font-size: 1rem; color: var(--ink); background: linear-gradient(90deg, #ffd35c, #fff2b8, #ffd35c); border: 2px solid var(--ink); }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--ink), 0 0 60px 20px #fff2b8, 0 10px 0 rgba(16, 38, 59, .3); } }
.machine.jackpot .bulbs { animation-duration: .25s; }
.machine.jackpot .marquee-text { animation: pulse .5s ease-in-out infinite; }

/* ---------- trivia */
.quiz-card { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.quiz-q { font-size: clamp(1.2rem, 4.6vw, 1.5rem); }
.quiz-options { display: grid; gap: 10px; margin: 14px 0; }
.quiz-option { border-radius: 14px; text-align: left; width: 100%; font-weight: 700; }
.quiz-option.is-right { background: #c9f2d3; border-color: #1c7c3c; opacity: 1; }
.quiz-option.is-right::after { content: "  \2713"; }
.quiz-option.is-wrong { background: #ffd5d0; border-color: #a9281d; opacity: 1; }
.quiz-option.is-wrong::after { content: "  \2717"; }
.quiz-feedback { min-height: 3.2em; font-weight: 700; margin: 0 0 10px; }
.quiz-feedback.good { color: #1c6b36; } .quiz-feedback.bad { color: #a9281d; }
.quiz-card.done { text-align: center; }
.done-sammi { display: block; width: min(240px, 70%); height: auto; margin: 0 auto 8px; animation: bob 2.4s ease-in-out infinite; }

/* ---------- memory match */
.board-wrap { position: relative; border-radius: var(--radius); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 2vw, 12px); }
.mcard { aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; border-radius: 14px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mcard-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .35s; transform-style: preserve-3d; }
.mcard.up .mcard-inner { transform: rotateY(180deg); }
.mcard-back, .mcard-face { position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 14%; }
.mcard-back { background: var(--white); padding: 6%; box-shadow: inset 0 0 0 4px var(--bay-light); }
.mcard-sammi { display: block; width: 100%; height: 100%; object-fit: contain; }
.mcard-face { background: var(--white); transform: rotateY(180deg); }
.mcard.matched .mcard-face { background: #d6f7dc; border-color: #1c7c3c; }
.mcard.matched { cursor: default; opacity: 1; }

/* ---------- daily challenge */
.daily-card { text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px 16px 24px; box-shadow: var(--shadow); }
.daily-card.is-done { border-color: #1c7c3c; box-shadow: 0 6px 0 #1c7c3c; }
.daily-date { font-weight: 800; color: var(--bay); margin-bottom: 6px; }
.daily-sammi { display: block; width: min(200px, 60%); height: auto; margin: 0 auto 6px; }
.daily-status { font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
