/* 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 1px 10px; color: var(--white); text-decoration: none; font-size: clamp(.68rem, 3.3vw, .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: 1100px) {
  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: grid; grid-template-areas: "title" "sammi" "go"; justify-items: center; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 14px 16px 122px; pointer-events: none; }
.sky { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(#27a4f2 0%, #6fcbff 38%, #c4ecff 72%, #eefaff 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 .sun { display: none; }   /* the sunburst behind Sammi does this job now */
.hero-text { grid-area: title; text-align: center; }
.hero-kicker { display: inline-block; margin: 0 0 8px; padding: 3px 14px; font-size: .86rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--crab); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 4px 0 var(--navy); transform: rotate(-2deg); }
.hero-text h1 { margin: 0; font-size: clamp(1.9rem, 9.4vw, 4.3rem); font-weight: 900; line-height: 1; letter-spacing: .01em; color: var(--white); -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; text-shadow: 0 2px 0 var(--navy), 0 5px 0 var(--navy), 0 9px 14px rgba(16, 38, 59, .28); }
.hero-text h1 span { display: block; }
.hero-text h1 .hero-big { color: #ffd23f; font-size: 1.12em; margin-top: .06em; }
.hero-sammi { grid-area: sammi; position: relative; width: min(82vw, 400px); margin: 2px 0 0; animation: sammi-arrive .9s cubic-bezier(.2, .9, .3, 1.15) both; }
.hero-sammi img { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(16, 38, 59, .16)); transform-origin: 50% 92%; animation: sammi-idle 3.6s ease-in-out .9s infinite; }
.hero-rays { position: absolute; left: 50%; top: 300px; width: max(150vw, 620px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 9deg, rgba(255, 255, 255, 0) 9deg 22.5deg); -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 100%); mask: radial-gradient(closest-side, #000 22%, transparent 100%); animation: rays 48s linear infinite; }
.hero-shadow { position: absolute; z-index: 1; left: 13%; right: 9%; bottom: 0; height: 8%; border-radius: 50%; background: rgba(16, 38, 59, .26); filter: blur(5px); animation: sammi-shadow 3.6s ease-in-out .9s infinite; }
.spark { position: absolute; z-index: 3; width: clamp(16px, 4.6vw, 26px); aspect-ratio: 1; background: #ffd23f; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.6s ease-in-out infinite; }
.spark.s1 { left: -3%; top: 12%; } .spark.s2 { right: -2%; top: 4%; background: var(--white); animation-delay: .7s; } .spark.s3 { right: 3%; bottom: 20%; animation-delay: 1.3s; scale: .7; } .spark.s4 { left: 5%; bottom: 8%; background: var(--white); animation-delay: 1.9s; scale: .6; }
.hero-go { grid-area: go; display: grid; justify-items: center; gap: 10px; }
.hero-sub { margin: 0; max-width: 30ch; text-align: center; font-weight: 800; font-size: clamp(.98rem, 3.9vw, 1.2rem); line-height: 1.35; color: var(--navy); background: rgba(255, 255, 255, .86); border-radius: 16px; padding: 6px 14px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; pointer-events: auto; }
.hero-play { font-size: clamp(1.12rem, 5vw, 1.45rem); font-weight: 900; letter-spacing: .03em; color: var(--navy); background: linear-gradient(#ffe066, #ffb703); border-width: 4px; padding: .6em 1.5em; min-height: 58px; box-shadow: 0 7px 0 var(--navy), 0 0 0 0 rgba(255, 210, 63, .7); animation: play-pulse 2.2s ease-out infinite; }
.hero-play:hover, .hero-play:focus-visible { background: linear-gradient(#fff0a3, #ffc21a); }
.hero-play:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 var(--navy); animation: none; }
.hero-meet { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: .03em; text-decoration: none; color: var(--navy); background: var(--white); box-shadow: 0 6px 0 var(--navy); }
.hero-meet:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.hero-go .bell { margin: 0; min-height: 1.5em; font-weight: 800; font-size: 1.05rem; color: var(--crab); text-shadow: 0 0 6px var(--white), 0 0 6px var(--white); }
.hero-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 12px 14px; background: var(--navy); border-bottom: 4px solid #ffd23f; }
.hero-games a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-size: .84rem; font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none; color: var(--white); background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .22); border-radius: 14px; transition: transform .15s, background .15s; }
.hero-games a:hover, .hero-games a:focus-visible { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.hero-games [data-icon] { width: 38px; height: 38px; padding: 4px; background: var(--white); border-radius: 50%; }
.hero-games [data-icon] svg { width: 100%; height: 100%; }
@media (min-width: 620px) { .hero-games { grid-template-columns: repeat(6, 1fr); padding-inline: max(12px, calc((100vw - 1080px) / 2)); } }
@media (min-width: 900px) {
  .hero-stack { grid-template-areas: "title sammi" "go sammi"; grid-template-columns: 1.02fr 1fr; align-items: center; justify-items: start; column-gap: 28px; padding: 34px 28px 150px; }
  .hero-rays { left: 72%; top: 46%; width: min(92vw, 1100px); }
  .hero-text { text-align: left; align-self: end; }
  .hero-text h1 { font-size: clamp(3rem, 5.4vw, 4.5rem); -webkit-text-stroke-width: 3px; }
  .hero-sammi { width: min(46vw, 520px); justify-self: center; }
  .hero-go { justify-items: start; align-self: start; margin-top: 12px; }
  .hero-sub { text-align: left; max-width: 40ch; }
  .hero-cta { justify-content: flex-start; }
}
@media (max-height: 620px) and (max-width: 899px) { .hero-sammi { width: min(70vw, 300px); } .hero-kicker { display: none; } .hero-stack { padding-top: 10px; } }
@keyframes sammi-arrive { from { opacity: 0; transform: translateX(46px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes sammi-idle { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.8deg); } }
@keyframes sammi-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .7; } }
@keyframes rays { to { rotate: 360deg; } }
@keyframes twinkle { 0%, 100% { transform: scale(.35) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes play-pulse { 0% { box-shadow: 0 7px 0 var(--navy), 0 0 0 0 rgba(255, 210, 63, .75); } 70%, 100% { box-shadow: 0 7px 0 var(--navy), 0 0 0 16px rgba(255, 210, 63, 0); } }
@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; }

/* ---------- Follow Sammi */
.follow { margin-top: 26px; padding: 18px 16px 20px; text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.follow h2 { margin-bottom: 2px; font-size: clamp(1.5rem, 5.4vw, 1.9rem); }
.follow p { margin: 0 0 12px; }
.follow-links { display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (min-width: 620px) { .follow-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 640px; } }
.social { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 14px; text-align: left; text-decoration: none; color: var(--ink); background: var(--sand); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 rgba(16, 38, 59, .18); transition: transform .15s; touch-action: manipulation; }
.social:hover, .social:focus-visible { transform: translateY(-3px); }
.social:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(16, 38, 59, .18); }
.social-icon { flex: none; width: 48px; height: 48px; }
.social-icon svg { display: block; width: 100%; height: 100%; }
.social-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.social-name { font-weight: 900; font-size: 1.15rem; }
.social-handle { font-size: .9rem; color: #45586b; overflow-wrap: anywhere; }
.social-tiktok { background: #eefcfb; } .social-facebook { background: #e9f1fe; } .social-instagram { background: #fdeef5; } .social-youtube { background: #ffeeec; }
.foot-social { display: flex; justify-content: center; gap: 14px; margin: 10px 0 !important; }
.foot-social a { display: block; width: 44px; height: 44px; border-radius: 12px; }
.foot-social svg { display: block; width: 100%; height: 100%; }

/* ---------- Sammi's Adventures (videos) */
.card-wide { flex-direction: row; text-align: left; gap: 14px; flex-wrap: wrap; justify-content: center; }
.card-wide .card-name { flex: 1 1 100%; text-align: center; }
.card-wide .card-text { flex: 1 1 100%; text-align: center; }
.card-videos .card-art { background: #ffd0cb; }
@media (min-width: 560px) { .card-wide { flex-wrap: nowrap; justify-content: flex-start; } .card-wide .card-name { flex: none; text-align: left; } .card-wide .card-text { flex: 1; text-align: left; } }
.vgate { max-width: 560px; margin: 0 auto 14px; padding: 18px 16px; text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.vgate-sammi { width: min(62%, 230px); height: auto; border-radius: 18px; border: 3px solid var(--ink); margin-bottom: 8px; }
.vgate h2 { margin-bottom: 4px; }
.vgate .btn { font-size: 1.1rem; margin: 6px 0 10px; }
.vnote { font-size: .86rem; color: #45586b; margin: 0; }
.vembed { max-width: 780px; margin: 0 auto 10px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 4px; overflow: hidden; box-shadow: var(--shadow); }
.vembed iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 14px; }
@media (min-width: 620px) { .vembed iframe { height: 500px; } }
.vprofile { margin-top: 14px; }
.vlive-head { margin: 0 0 10px; }
.vlive-head b { color: var(--bay); font-size: 1.15rem; }
.vgrid { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vcard { width: 100%; height: 100%; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); transition: transform .15s; touch-action: manipulation; }
.vcard:hover, .vcard:focus-visible { transform: translateY(-4px); }
.vcard-shot { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--bay-light), var(--bay)); }
.vcard-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); }
.vcard-play::after { content: ""; position: absolute; left: 19px; top: 13px; border-left: 17px solid var(--crab); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard-time { position: absolute; right: 6px; bottom: 6px; padding: 0 7px; font-weight: 800; font-size: .8rem; color: var(--white); background: rgba(16, 38, 59, .85); border-radius: 999px; }
.vcard-title { font-weight: 800; font-size: .95rem; line-height: 1.2; padding: 2px 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vcard-date { font-size: .8rem; color: #45586b; padding: 0 4px; }
.vplayer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 10px; background: rgba(16, 38, 59, .86); }
.vplayer-box { width: min(100%, 420px); max-height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--white); border: 4px solid var(--sun); border-radius: var(--radius); }
.vplayer-title { margin: 0; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vplayer-frame { flex: 1; min-height: 0; aspect-ratio: 9 / 16; max-height: calc(100vh - 190px); margin: 0 auto; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.vplayer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vplayer-actions { margin: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vplayer-wide .vplayer-box { width: min(100%, 880px); }
.vplayer-wide .vplayer-frame { aspect-ratio: 16 / 9; }
@media (max-width: 380px) { #youtube-player .vplayer-frame { max-height: calc(100vh - 240px); } }

/* ---------- Sammi on YouTube */
.ytube { margin-top: 30px; padding: 18px 14px 20px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 380px) { .ytube { padding-left: 8px; padding-right: 8px; } }
.ytube h2 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 2px; font-size: clamp(1.5rem, 5.4vw, 1.9rem); }
.ytube-mark { flex: none; width: 46px; height: 46px; }
.ytube-mark svg, .ycard-mark svg { display: block; width: 100%; height: 100%; }
.ytube-lead { margin: 0 0 14px; text-align: center; }
.ytube .vnote { text-align: center; max-width: 640px; margin: 0 auto; }
.ygrid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .ygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.ycard { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 12px; background: var(--sand); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 rgba(16, 38, 59, .18); }
.ycard-play { display: block; width: 100%; padding: 0; font: inherit; cursor: pointer; background: none; border: 0; border-radius: 12px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ycard-shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #10263b; }
.ycard-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ycard-play:hover img, .ycard-play:focus-visible img { transform: scale(1.05); }
.ycard-mark { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); transition: transform .15s; }
.ycard-play:hover .ycard-mark, .ycard-play:focus-visible .ycard-mark { transform: scale(1.12); }
.ycard-time, .ycard-kind { position: absolute; bottom: 6px; padding: 0 8px; font-weight: 800; font-size: .8rem; line-height: 1.6; color: var(--white); border-radius: 999px; }
.ycard-time { right: 6px; background: rgba(16, 38, 59, .88); }
.ycard-kind { left: 6px; background: #d40000; }
.ycard-title { margin: 2px 4px 0; font-size: 1rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ycard-date { margin: 0 4px; font-size: .82rem; color: #45586b; }
.ycard-link { margin: auto 4px 0; text-align: center; font-size: .95rem; box-shadow: 0 4px 0 rgba(16, 38, 59, .18); }
@media (prefers-reduced-motion: reduce) { .ycard-shot img, .ycard-mark { transition: none; } }

/* ---------- 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; }

/* ---------- Sammi's Chesapeake Challenge: the daily question, the week, the logbook, and Practice Mode */
.bay-home { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 26px; padding: 16px 16px 18px; color: var(--white); text-decoration: none; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s;
  background: radial-gradient(circle at 18px 100%, transparent 13px, #2f6fe0 14px) 0 100% / 36px 16px repeat-x, linear-gradient(180deg, #10263b 0%, #1d4f86 62%, #2f6fe0 100%); }
.bay-home::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--sun) 0 18px, #fff 18px 36px); opacity: .95; }
.bay-home:hover, .bay-home:focus-visible { transform: translateY(-3px); }
.bay-home-art { flex: none; width: clamp(64px, 18vw, 96px); height: clamp(64px, 18vw, 96px); padding: 10px; border-radius: 50%; background: #ffe1a6; border: 3px solid var(--sun); animation: bob 2.6s ease-in-out infinite; }
.bay-home-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bay-home-name { font-weight: 800; font-size: clamp(1.25rem, 5vw, 1.7rem); line-height: 1.15; }
.bay-home-status { font-size: 1rem; }
.bay-home-streak { align-self: flex-start; font-weight: 800; font-size: .92rem; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 2px 12px; margin-bottom: 6px; }
.bay-home-streak:empty { display: none; }
.bay-home-go { flex: none; font-weight: 800; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: .4em 1em; margin-bottom: 6px; }
@media (max-width: 520px) { .bay-home-go { display: none; } }

.bay-card { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 0 16px 18px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.bay-card.is-right { border-color: #1c7c3c; box-shadow: 0 6px 0 #1c7c3c; }
.bay-card.is-wrong { border-color: var(--bay); box-shadow: 0 6px 0 var(--bay); }
.bay-ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 -16px 16px; padding: 10px 16px 16px; color: var(--white); font-weight: 800;
  background: radial-gradient(circle at 12px 100%, var(--white) 8px, transparent 9px) 0 100% / 24px 9px repeat-x, linear-gradient(180deg, var(--navy), #1d4f86); }
.bay-cat { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 2px 12px; }
.practice-cat { margin: 0 0 8px; }
.bay-crab { position: absolute; right: 10px; top: 54px; width: 46px; height: 46px; opacity: .9; animation: bob 2.2s ease-in-out infinite; pointer-events: none; }
.bay-card[data-state="open"] .quiz-q { padding-right: 52px; }
.bay-option { min-height: 56px; }
.bay-option.is-picked { background: #cfe6ff; border-color: #2f6fe0; box-shadow: 0 6px 0 #2f6fe0; }
.bay-option.is-picked::after { content: "  \25C0"; }
.bay-option:disabled { opacity: .72; }
.bay-option.is-right:disabled, .bay-option.is-wrong:disabled { opacity: 1; }
.bay-yours { font-weight: 400; font-size: .9em; }
.bay-hint { text-align: center; font-weight: 700; margin: 0 0 10px; min-height: 1.5em; }
.bay-lock { font-size: 1.15rem; min-width: min(100%, 260px); }
.bay-result { text-align: center; margin-bottom: 10px; }
.bay-result h2 { margin-bottom: .15em; }
.bay-card.is-right .bay-result h2 { color: #1c6b36; }
.bay-card.is-wrong .bay-result h2 { color: #1d4f86; }
.bay-sammi { display: block; width: min(190px, 52%); height: auto; margin: 0 auto 4px; animation: bob 2.4s ease-in-out infinite; }
.bay-card.is-right .bay-sammi { animation: bay-hop .7s ease-out 3, bob 2.4s ease-in-out 2.1s infinite; }
.bay-react { font-weight: 700; margin: 0; }
.bay-card h3.quiz-q { margin: 14px 0 0; }
.bay-answer { font-size: 1.1rem; margin: 0 0 .3em; }
.bay-why { background: var(--sand); border-left: 6px solid var(--sun); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.bay-done-note { font-weight: 700; text-align: center; margin: 0 0 8px; }
.bay-count { text-align: center; margin: 14px 0 0; font-weight: 700; }
.bay-count b { display: inline-block; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 1.35rem; color: var(--white); background: var(--navy); border-radius: 10px; padding: 2px 12px; margin-left: 6px; letter-spacing: .06em; }
.bay-count-note { display: block; font-weight: 400; font-size: .9rem; margin-top: 4px; }
.bay-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.bay-burst span { position: absolute; top: -40px; font-size: 1.7rem; opacity: 0; animation: bay-fall 2.4s ease-in 1 both; }
@keyframes bay-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(560px) rotate(300deg); opacity: 0; } }
@keyframes bay-hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-16px) rotate(-3deg); } 70% { transform: translateY(-4px) rotate(2deg); } }

.bay-panel { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.bay-panel h2 { text-align: center; margin-bottom: .2em; }
.bay-week h2 { letter-spacing: .04em; }
.bay-sub { text-align: center; font-size: .92rem; margin: 0 0 12px; }
.bay-week-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.bw { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid #c9d6e2; border-radius: 12px; background: #f5f8fb; font-size: .98rem; }
.bw-day { font-weight: 800; }
.bw-date { font-size: .9rem; }
.bw-mark { font-weight: 800; text-align: right; }
.bw.is-right { background: #e3f7e8; border-color: #1c7c3c; }
.bw.is-wrong { background: #ffe9e6; border-color: #a9281d; }
.bw.is-open { border-style: dashed; color: #45586b; }
.bw.is-today { outline: 3px solid var(--sun); outline-offset: 1px; }
.bay-week-score { text-align: center; font-size: 1.1rem; margin: 0; }
.bay-week-score b { font-size: 1.4rem; color: var(--bay); }
.bay-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 560px) { .bay-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bay-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; background: var(--sand); border: 2px solid var(--bay-light); border-radius: 12px; padding: 8px 6px; }
.bay-stat:last-child { grid-column: 1 / -1; }
.bay-stat dt { font-size: .85rem; line-height: 1.2; }
.bay-stat dd { margin: 0; font-weight: 800; font-size: 1.6rem; color: var(--bay); line-height: 1.2; }
.bay-practice-link { background: #e9f4ff; border-style: dashed; }
.bay-practice-link p { text-align: center; }
.bay-note { font-size: .88rem; color: #45586b; text-align: center; }
.practice-flag { text-align: center; font-weight: 800; color: var(--white); background: var(--bay); border-radius: 999px; padding: 4px 14px; margin: 0 auto 12px; width: fit-content; max-width: 100%; }
.practice-total { text-align: center; font-size: .95rem; background: #e9f4ff; border: 2px dashed var(--bay); border-radius: 12px; padding: 8px 10px; }
.practice-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 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); } }

/* ---------- Sammigotchi: the approved blue device, with the live screen laid over its screen */
.card-gotchi .card-art { background: #bfe6fb; padding: 10px 6px; }
.nav a > span[data-icon="gotchi"] { padding: 4px 2px; }
.gotchi-tag { margin: 0 0 2px; font-family: "Courier New", ui-monospace, monospace; font-weight: 900; font-size: clamp(1.15rem, 5vw, 1.5rem); letter-spacing: .04em; text-transform: uppercase; color: var(--bay); text-shadow: 2px 2px 0 var(--sun); }
.gotchi-lead { margin-bottom: .6em; }
.gotchi { display: grid; gap: 12px; justify-items: center; margin: 0 -10px; }
@media (min-width: 900px) {
  .gotchi { grid-template-columns: minmax(0, 520px) minmax(0, 380px); grid-template-rows: auto auto; justify-content: center; column-gap: 30px; margin: 0; }
  .egg { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .gotchi .gsay { grid-column: 2; grid-row: 1; align-self: end; }
  .gpanel { grid-column: 2; grid-row: 2; align-self: start; }
}
.egg { position: relative; width: min(520px, 100%); aspect-ratio: 900 / 940; background: url("../img/gotchi-shell.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 10px 0 rgba(16, 38, 59, .16)); }
.egg[data-mood="angry"] { animation: grumble .5s steps(2) infinite; }
.egg-screen { position: absolute; left: 15.1%; top: 27.4%; width: 67.2%; height: 46.8%; padding: 1.5%; display: grid; grid-template-columns: 72fr 28fr; grid-template-rows: 76fr 24fr; gap: 2% 1.6%; background: #fbe9a8; border-radius: 5% / 7%; box-shadow: inset 0 0 0 2px #e5b94f, inset 0 0 0 3px #fff6cf; overflow: hidden; }
.egg-view { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--ink); background: #a9defa; }
.egg-layer { position: absolute; inset: 0; }
.egg-layer svg, .egg-side svg, .gact svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.egg-side { min-width: 0; min-height: 0; }
.egg-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6%; min-height: 0; }
.gact { position: relative; min-width: 0; min-height: 0; padding: 0; font: inherit; background: #dbeeff; border: 1.5px solid #5d8fd0; border-radius: 5px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 -2px 0 rgba(93, 143, 208, .35); }
.gact::before { content: ""; position: absolute; inset: -12px -1px -2px; }
.gact.sel { background: #ffd84a; border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), inset 0 -2px 0 rgba(16, 38, 59, .2); }
.gact:disabled { opacity: .45; cursor: default; }
.egg-key { position: absolute; width: 15%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.egg-key-a { left: 31.3%; top: 82.4%; } .egg-key-b { left: 47.6%; top: 83.3%; } .egg-key-c { left: 64.2%; top: 82.4%; }
.egg-key:active { background: radial-gradient(circle, rgba(16, 38, 59, .32) 0 42%, transparent 44%); }
.egg-key:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.gsay { width: calc(100% - 20px); max-width: 420px; margin: 0; padding: 10px 14px; min-height: 4.3em; background: var(--navy); color: #ffe27a; border: 3px solid var(--ink); border-radius: 10px; font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 1rem; line-height: 1.35; box-shadow: inset 0 0 0 2px #2b4a6b, var(--shadow); }
.gpanel { width: calc(100% - 20px); max-width: 420px; }
.gmood { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; font-family: "Courier New", ui-monospace, monospace; font-weight: 700; }
.gmeters { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.gmeters li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 2.2em; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; }
.gbar { display: block; height: 14px; background: #16233f; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.gbar i { display: block; height: 100%; background: #4fd04a; }
.gbar.mid i { background: #f2c12e; } .gbar.low i { background: #e2473b; }
.gval { text-align: right; font-variant-numeric: tabular-nums; }
.gtools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
@keyframes grumble { 50% { transform: translateX(2px) rotate(.6deg); } }

/* ---------------------------------------------------------------- bringing progress from an old address */
.move-box { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(16, 38, 59, .62); }
.move-card { width: min(100%, 460px); max-height: 90vh; overflow: auto; background: var(--white); border: 4px solid var(--navy); border-radius: 24px; box-shadow: 0 8px 0 var(--navy); padding: 18px 18px 16px; }
.move-card h2 { margin: 0 0 .4em; font-size: clamp(1.25rem, 5.4vw, 1.6rem); }
.move-card p { margin: 0 0 .6em; font-weight: 700; }
.move-card ul { margin: 0 0 1em; padding-left: 1.2em; font-weight: 700; }
.move-row { display: flex; flex-wrap: wrap; gap: 10px; }
.move-row .btn { flex: 1 1 140px; }
.move-copy { margin-top: 10px; width: 100%; font-size: .95rem; }
.move-said { margin: 8px 0 0; font-size: .9rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
