/* ══════════ DESIGN TOKENS ══════════ */
:root {
  --ink: #070708;
  --panel: rgba(255, 255, 255, 0.035);
  --stroke: rgba(255, 255, 255, 0.09);
  --teal: #028391;
  --green: #799351;
  --orange: #CD5C08;
  --red: #820000;
  --purple: #864AF9;
  --paper: #F1EFF4;
  --muted: #8A9099;
  /* corner radius scale — every UI corner uses one of these */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 26px;
}

/* ══════════ RESET ══════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
html, body { height: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ══════════ ANIMATED ROBOTIC BACKGROUND ══════════ */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#bg .glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .1; animation: drift 24s ease-in-out infinite alternate; }
#bg .g1 { width: 60vmax; height: 60vmax; background: #02525C; top: -28vmax; left: 50%; margin-left: -30vmax; }
#bg .g2 { width: 40vmax; height: 40vmax; background: #240750; bottom: -20vmax; right: -14vmax; animation-delay: -9s; }
#bg .g3 { display: none; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(3vmax, -2vmax) scale(1.08); } }

/* synthwave road grid — scrolls toward the viewer */
#bg .gridfloor {
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 52%;
  transform: perspective(64vh) rotateX(63deg); transform-origin: 50% 0;
  background:
    repeating-linear-gradient(90deg, rgba(2, 131, 145, .18) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(2, 131, 145, .18) 0 2px, transparent 2px 90px);
  animation: gridmove 2.8s linear infinite;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 20%, transparent 96%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 20%, transparent 96%);
}
@keyframes gridmove { to { background-position: 0 90px, 0 90px; } }

/* soft horizon line where the grid fades out */
#bg .horizon {
  position: absolute; left: 0; right: 0; bottom: 34%; height: 90px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(2, 131, 145, .12), transparent 70%);
}

/* passing light streaks */
#bg .streak {
  position: absolute; width: 240px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(2, 131, 145, .55));
  animation: streak 9s linear infinite;
}
#bg .s1 { top: 16%; left: -5%; }
#bg .s2 { top: 32%; left: 30%; animation-delay: -4.5s; background: linear-gradient(90deg, transparent, rgba(134, 74, 249, .4)); }
@keyframes streak {
  0% { transform: translateX(0) rotate(14deg); opacity: 0; }
  4% { opacity: .8; }
  22% { transform: translateX(65vw) rotate(14deg); opacity: 0; }
  100% { transform: translateX(65vw) rotate(14deg); opacity: 0; }
}

/* floating parts */
.part { position: absolute; font-size: clamp(20px, 3vw, 40px); opacity: .09; animation: floaty linear infinite; }
@keyframes floaty {
  from { transform: translateY(105vh) rotate(0deg); }
  to { transform: translateY(-12vh) rotate(360deg); }
}

/* ══════════ LAYOUT ══════════ */
.screen { display: none; min-height: 100dvh; flex-direction: column; align-items: center; padding: clamp(14px, 3vw, 40px); position: relative; z-index: 2; }
.screen.active { display: flex; }

/* ══════════ ROBOT MASCOT (SVG) ══════════ */
.mascotwrap { position: relative; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mascot { width: clamp(130px, 17vw, 230px); filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .45)); }
.eye { animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.eyeL { transform-origin: 78px 96px; }
.eyeR { transform-origin: 122px 96px; }
.antenna-tip { animation: antennaGlow 1.6s ease-in-out infinite; }
@keyframes antennaGlow { 0%, 100% { opacity: .5; r: 7; } 50% { opacity: 1; r: 9; } }
.armL { transform-origin: 52px 132px; animation: waveL 3.2s ease-in-out infinite; }
@keyframes waveL { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
.shadowoval { animation: shadowpulse 3.2s ease-in-out infinite; }
@keyframes shadowpulse { 0%, 100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.8); opacity: .2; } }

.brand h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 3.6vw, 46px);
  letter-spacing: 3px;
  text-align: center;
  color: var(--paper);
}
.brand h1 em { font-style: normal; color: var(--teal); }
.brand .brandlogo { height: .9em; width: auto; margin-right: .5em; vertical-align: baseline; }
.tagline {
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 19px);
  margin-top: 10px;
  text-align: center;
  letter-spacing: .5px;
}

/* ══════════ HUB CARDS — icon-first ══════════ */
#hub { justify-content: center; gap: clamp(14px, 2.4vh, 28px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 88vw), 1fr)); gap: clamp(14px, 2vw, 28px); width: min(1300px, 100%); }
.card {
  position: relative; border-radius: var(--r-lg); padding: 0; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--panel); backdrop-filter: blur(10px);
  transition: transform .18s, border-color .18s, box-shadow .18s; font-family: inherit; overflow: hidden;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 45%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.card .in {
  background: transparent; border-radius: inherit; padding: clamp(18px, 2.2vw, 28px); height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--paper);
}
.card .stage {
  width: 100%; aspect-ratio: 2.1/1; border-radius: var(--r-md); display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 130%, color-mix(in srgb, var(--c1) 22%, transparent) 0%, transparent 70%), rgba(255, 255, 255, .02);
}
.card .stage .big { font-size: clamp(52px, 6vw, 84px); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); animation: iconpulse 2.4s ease-in-out infinite; }
@keyframes iconpulse { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.14) rotate(3deg); } }
.card .stage .orbit { position: absolute; font-size: clamp(18px, 2vw, 26px); opacity: .85; animation: orbit 5s linear infinite; }
@keyframes orbit { from { transform: rotate(0deg) translateX(clamp(64px, 7vw, 110px)) rotate(0deg); } to { transform: rotate(360deg) translateX(clamp(64px, 7vw, 110px)) rotate(-360deg); } }
.card h2 { font-family: 'Press Start 2P', monospace; font-size: clamp(12px, 1.3vw, 17px); color: var(--c1); }
.card .meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); }

/* inline mini icons (clock, trash…) & button glyphs */
.mi { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.bi { width: .85em; height: .85em; flex: 0 0 auto; }
.resetbtn { display: flex; align-items: center; gap: 7px; margin-left: auto; margin-right: auto; }
.card.teal { --c1: var(--teal); --c2: #015E68; }
.card.purple { --c1: var(--purple); --c2: #240750; }
.card.orange { --c1: var(--orange); --c2: #7A3706; }
.card.green { --c1: var(--green); --c2: #2E5A1C; }
.card.red { --c1: #AE5959; --c2: #4A0F0F; }

/* ══════════ GAME CHROME ══════════ */
.topbar { width: min(1100px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(8px, 1.5vh, 18px); }
.backbtn {
  background: var(--panel); border: 1px solid var(--stroke); color: var(--paper); border-radius: var(--r-sm);
  padding: 12px 18px; cursor: pointer; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 9px; font-family: inherit; font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px); letter-spacing: 1.5px;
  transition: color .15s, border-color .15s;
}
.backbtn svg { width: clamp(16px, 1.5vw, 20px); height: auto; }
.backbtn:hover { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 55%, transparent); }
.hudscore {
  display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--r-md); padding: 8px 20px; backdrop-filter: blur(8px);
}
.hudscore .ic svg { width: clamp(17px, 1.9vw, 24px); height: auto; display: block; }
.hudscore .val {
  font-family: 'Press Start 2P', monospace; font-size: clamp(16px, 2vw, 26px); color: var(--orange);
  min-width: 2ch; text-align: right; transition: transform .12s;
}
.hudscore .val.bump { transform: scale(1.35); }

/* ring timer */
.ring { position: relative; width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.ring .arc { fill: none; stroke: var(--teal); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring .tval { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Press Start 2P', monospace; font-size: clamp(13px, 1.5vw, 20px); }
.gtitle { font-family: 'Press Start 2P', monospace; font-size: clamp(10px, 1.2vw, 15px); color: var(--muted); letter-spacing: 1px; }

.gamearea { width: min(1100px, 100%); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2vh, 24px); }

.bigbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: var(--r-md); cursor: pointer; color: #fff; font-weight: 900; letter-spacing: 1px;
  font-size: clamp(17px, 1.9vw, 26px); padding: clamp(15px, 1.8vw, 22px) clamp(30px, 3.4vw, 52px);
  background: linear-gradient(135deg, var(--teal), #015E68); box-shadow: 0 10px 26px rgba(2, 131, 145, .22);
  transition: transform .1s, box-shadow .1s; font-family: inherit;
}
.bigbtn:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(2, 131, 145, .18); }
.bigbtn.orange { background: linear-gradient(135deg, var(--orange), #96430A); box-shadow: 0 10px 26px rgba(205, 92, 8, .22); }
.bigbtn.orange:active { box-shadow: 0 4px 12px rgba(205, 92, 8, .18); }

/* ══════════ QUIZ — visual ══════════ */
.qcard {
  width: 100%; background: var(--panel); border: 1px solid var(--stroke); backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 34px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-height: clamp(140px, 20vh, 210px); justify-content: center;
}
.qemoji { font-size: clamp(44px, 5.5vw, 76px); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.qtext { font-size: clamp(18px, 2.2vw, 30px); font-weight: 900; line-height: 1.35; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.5vw, 20px); width: 100%; }
@media (max-width: 560px) { .answers { grid-template-columns: 1fr; } }
.ans {
  position: relative; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r-md); color: var(--paper);
  font-size: clamp(16px, 1.8vw, 24px); font-weight: 700; padding: clamp(18px, 2.3vw, 26px); cursor: pointer;
  transition: transform .1s, border-color .12s, box-shadow .12s; font-family: inherit; line-height: 1.3; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 14px; text-align: left;
}
.ans .key {
  flex: 0 0 auto; width: clamp(34px, 3vw, 44px); height: clamp(34px, 3vw, 44px); border-radius: var(--r-sm); display: grid; place-items: center;
  font-family: 'Press Start 2P', monospace; font-size: clamp(11px, 1.1vw, 15px);
  color: var(--kc, var(--teal)); background: color-mix(in srgb, var(--kc, var(--teal)) 16%, transparent);
}
.answers .ans:nth-child(1) { --kc: var(--teal); }
.answers .ans:nth-child(2) { --kc: var(--purple); }
.answers .ans:nth-child(3) { --kc: var(--orange); }
.answers .ans:nth-child(4) { --kc: var(--green); }
.ans:hover { border-color: var(--kc, var(--teal)); box-shadow: 0 0 22px color-mix(in srgb, var(--kc, var(--teal)) 25%, transparent); transform: translateY(-3px); }
.ans.right { background: linear-gradient(135deg, rgba(121, 147, 81, .3), rgba(121, 147, 81, .1)); border-color: var(--green); box-shadow: 0 0 30px rgba(121, 147, 81, .5); }
.ans.wrong { background: linear-gradient(135deg, rgba(130, 0, 0, .3), rgba(130, 0, 0, .1)); border-color: var(--red); animation: shake .35s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.ans:disabled { cursor: default; }

/* ══════════ MEMORY ══════════ */
.memgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); width: min(600px, 100%, 62vh); }
.mem { aspect-ratio: 1; border-radius: var(--r-md); border: none; cursor: pointer; perspective: 700px; background: transparent; padding: 0; }
.mem .inner { position: relative; width: 100%; height: 100%; transition: transform .4s cubic-bezier(.4, 1.6, .5, 1); transform-style: preserve-3d; }
.mem.flip .inner { transform: rotateY(180deg); }
.mem .face { position: absolute; inset: 0; border-radius: var(--r-md); display: grid; place-items: center; backface-visibility: hidden; font-size: clamp(30px, 5vw, 56px); }
.mem .front {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke);
}
.mem .front::after {
  content: ""; width: 40%; height: 52%; opacity: .9;
  background: url("../assets/logo.svg") center/contain no-repeat;
}
.mem .back { background: rgba(24, 28, 38, .96); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); transform: rotateY(180deg); }
.mem.matched .back { border-color: var(--green); box-shadow: 0 0 20px rgba(121, 147, 81, .3); animation: matchpop .4s; }
@keyframes matchpop { 50% { transform: rotateY(180deg) scale(1.12); } }
.mempreview {
  margin-top: 12px; padding: 8px 20px; border-radius: var(--r-md);
  background: rgba(24, 28, 38, .96); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  font-weight: 800; letter-spacing: .08em; text-align: center;
  animation: previewpulse 1s ease-in-out infinite;
}
.mempreview b { color: var(--teal); font-size: 1.3em; margin-left: 6px; }
@keyframes previewpulse { 50% { transform: scale(1.05); } }

/* ══════════ BOT TAP ══════════ */
.tapgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); width: min(600px, 100%, 62vh); }
.hole {
  aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 78%, rgba(2, 131, 145, .08), transparent 62%), rgba(255, 255, 255, .03);
  border: 1px solid var(--stroke);
}
.hole::before { content: ""; position: absolute; bottom: 14%; width: 62%; height: 10%; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.hole span { font-size: clamp(42px, 7vw, 80px); transform: translateY(120%) scale(.4); transition: transform .16s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.hole.up span { transform: translateY(0) scale(1); }
.hole.pop { box-shadow: 0 0 30px rgba(121, 147, 81, .7) inset; border-color: var(--green); }
.hole.ouch { box-shadow: 0 0 30px rgba(130, 0, 0, .7) inset; border-color: var(--red); animation: shake .3s; }
.legend { display: flex; gap: clamp(16px, 3vw, 40px); font-weight: 900; font-size: clamp(15px, 1.5vw, 21px); }
.legend .good { color: var(--green); }
.legend .bad { color: var(--red); }

/* ══════════ OVERLAYS ══════════ */
.overlay { position: fixed; inset: 0; background: rgba(6, 7, 12, .8); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 50; padding: 18px; }
.overlay.active { display: grid; }
.modal {
  background: rgba(19, 22, 30, .97);
  border: 1px solid var(--stroke); border-radius: var(--r-xl); width: min(540px, 100%);
  padding: clamp(24px, 4vw, 44px); text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55); animation: modalin .35s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes modalin { from { transform: scale(.7); opacity: 0; } }
.modal h2 { font-family: 'Press Start 2P', monospace; font-size: clamp(15px, 2vw, 24px); line-height: 1.6; color: var(--teal); }
.modal .demo { font-size: clamp(44px, 6vw, 72px); }
.modal p { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; }
.modal .score { font-family: 'Press Start 2P', monospace; font-size: clamp(34px, 6vw, 64px); color: var(--orange); }
.modal input {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); border-radius: var(--r-sm); color: var(--paper);
  font-size: clamp(16px, 1.6vw, 22px); padding: 14px 16px; text-align: center; font-family: inherit; user-select: text;
}
.modal input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 16px rgba(2, 131, 145, .3); }
.stars { display: flex; gap: 10px; }
.stars i { font-style: normal; opacity: .18; transform: scale(.6); color: var(--muted); }
.stars i svg { width: clamp(34px, 4.5vw, 52px); height: auto; display: block; }
.stars i.on { opacity: 1; transform: scale(1); color: var(--orange); animation: starin .4s cubic-bezier(.3, 2, .5, 1) backwards; filter: drop-shadow(0 4px 14px rgba(205, 92, 8, .5)); }
.stars i.on:nth-child(2) { animation-delay: .15s; }
.stars i.on:nth-child(3) { animation-delay: .3s; }
@keyframes starin { from { transform: scale(2.4); opacity: 0; } }

/* ══════════ LEADERBOARD ══════════ */
.board { width: min(560px, 100%); background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: clamp(14px, 1.8vw, 24px); }
.board h3 { font-family: 'Press Start 2P', monospace; font-size: clamp(10px, 1.1vw, 14px); color: var(--muted); margin-bottom: 12px; text-align: center; letter-spacing: 1px; }
.board ol { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.board li { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .05); border-radius: var(--r-sm); padding: 9px 16px; font-size: clamp(14px, 1.3vw, 18px); font-weight: 700; }
.board li b { color: var(--teal); font-family: 'Press Start 2P', monospace; font-size: clamp(12px, 1.2vw, 16px); }
.board .empty { color: var(--muted); text-align: center; font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; }
.board .rank {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--muted);
  font-family: 'Press Start 2P', monospace; font-size: 11px; vertical-align: middle;
}
.board .rank.r1 { background: color-mix(in srgb, var(--orange) 22%, transparent); color: var(--orange); }
.board .rank.r2 { background: color-mix(in srgb, var(--teal) 25%, transparent); color: #06AABB; }
.board .rank.r3 { background: color-mix(in srgb, var(--purple) 20%, transparent); color: var(--purple); }
.resetbtn {
  display: block; margin: 12px auto 0; background: transparent; border: 1px solid var(--stroke); color: var(--muted);
  border-radius: var(--r-sm); padding: 8px 16px; font-family: inherit; font-size: clamp(12px, 1.1vw, 15px); cursor: pointer; transition: color .15s, border-color .15s;
}
.resetbtn:hover { color: var(--red); border-color: var(--red); }

/* ══════════ FLOATING SCORE PARTICLES ══════════ */
.pop-pt {
  position: fixed; z-index: 80; pointer-events: none; font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.2vw, 28px); animation: rise .8s ease-out forwards; text-shadow: 0 0 12px currentColor;
}
@keyframes rise { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-90px) scale(1.4); } }

/* ══════════ CONFETTI ══════════ */
.confetti { position: fixed; top: -16px; z-index: 60; pointer-events: none; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ══════════ FOOTER ══════════ */
footer { color: var(--muted); font-size: clamp(11px, 1vw, 14px); margin-top: clamp(10px, 2vh, 22px); text-align: center; }

/* ══════════ IMAGE ASSETS ══════════ */

/* card stage — main icon */
.card-asset {
  width: clamp(72px, 9vw, 120px);
  height: clamp(72px, 9vw, 120px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
  animation: iconpulse 2.4s ease-in-out infinite;
}

/* card stage — orbiting icon */
.orbit-asset {
  width: clamp(28px, 3.2vw, 44px);
  height: clamp(28px, 3.2vw, 44px);
  object-fit: contain;
}

/* floating background parts */
.part-img {
  width: clamp(26px, 3.5vw, 48px);
  height: clamp(26px, 3.5vw, 48px);
  object-fit: contain;
}

/* quiz question image */
.q-asset {
  width: clamp(56px, 7vw, 96px);
  height: clamp(56px, 7vw, 96px);
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5));
}

/* memory card back face image */
.mem-asset {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

/* bot tap hole image */
.tap-asset {
  width: clamp(48px, 8vw, 90px);
  height: clamp(48px, 8vw, 90px);
  object-fit: contain;
  pointer-events: none;
}

/* start overlay demo image */
.demo-asset {
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(2, 131, 145, .4));
}

/* leaderboard game icon */
.board-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 4px;
}

/* legend icons in bot tap */
.legend-icon {
  width: clamp(22px, 2.4vw, 32px);
  height: clamp(22px, 2.4vw, 32px);
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

/* ══════════ CUSTOM CURSORS ══════════ */
html, body {
  cursor: url("../assets/cursors/cursor.png") 6 3, auto;
}
button, a, .card, .ans, .mem, .bigbtn, .backbtn, .resetbtn {
  cursor: url("../assets/cursors/pointer.png") 6 3, pointer;
}
.hole { cursor: url("../assets/cursors/target.png") 16 16, crosshair; }
.modal input { cursor: text; }

/* ══════════ ACCESSIBILITY ══════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
