:root {
  --bg: #EFFAF0;
  --bg-dots: #CDEFD3;
  --card: #FFFFFF;
  --ink: #2B2140;
  --muted: #6E6488;
  --line: #2B2140;
  --green: #5ED483;
  --pink: #FF4F9A;
  --mint: #3DD6C3;
  --purple: #7B61FF;
  --orange: #FF8A3D;
  --sky: #4FB3FF;
  --yellow: #5ED483; /* the old yellow slot is now mplampla green */
  --stripes: repeating-linear-gradient(90deg, #5ED483 0 64px, #3DD6C3 64px 76px, #4FB3FF 76px 88px, #7B61FF 88px 100px, #FF4F9A 100px 112px, #FF8A3D 112px 124px);
  --red: #FF5B5B;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  --radius: 26px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1F17; --bg-dots: #183024; --card: #1B3226; --ink: #F0FFF4; --muted: #A9CDB6; --line: #07120C; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800; color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(var(--bg-dots) 3px, transparent 3px);
  background-size: 30px 30px;
  line-height: 1.45; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* header: rainbow stripe */
.top {
  position: sticky; top: 0; z-index: 20; color: #2B2140;
  background: var(--stripes);
  border-bottom: 4px solid var(--line);
}
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-face { font-size: 38px; display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.logo-text {
  font-family: "Bagel Fat One", "Nunito", sans-serif; font-size: 30px; color: #fff;
  -webkit-text-stroke: 2px #2B2140; paint-order: stroke fill; text-shadow: 3px 3px 0 #2B2140; letter-spacing: .5px;
}
.logo-text b { font-weight: 400; color: #FF4F9A; margin-left: 3px; }
.top-r { margin-left: auto; display: flex; gap: 8px; }
.sound, .me {
  background: #fff; border: 3px solid var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--line);
  padding: 6px 12px; font-size: 17px; color: #2B2140; display: flex; align-items: center; gap: 6px;
}
.me span:last-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound:active, .me:active, .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }

.clouds { position: fixed; inset: 70px 0 auto; pointer-events: none; z-index: 0; opacity: .7; }
.clouds span { position: absolute; font-size: 60px; animation: drift 40s linear infinite; }
.clouds span:nth-child(1) { top: 20px; animation-duration: 55s; }
.clouds span:nth-child(2) { top: 200px; font-size: 44px; animation-delay: -20s; }
.clouds span:nth-child(3) { top: 380px; font-size: 70px; animation-delay: -38s; animation-duration: 65s; }

.wrap { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 16px 40px; }
.hello {
  font-family: "Bagel Fat One", sans-serif; font-weight: 400; font-size: clamp(34px, 7vw, 56px); margin: 6px 0 0; text-align: center;
  color: var(--pink); -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--line);
}
.wave { display: inline-block; animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
.sub { text-align: center; font-size: 20px; color: var(--muted); margin: 8px 0 26px; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.game-card {
  display: block; text-decoration: none; cursor: pointer;
  position: relative; text-align: left; border: 4px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 20px 18px; color: #2B2140; transition: transform .15s;
}
.game-card:hover { transform: translateY(-4px) rotate(-1deg); }
.game-card:nth-child(9n+1) { background: #FFB4D6; }
.game-card:nth-child(9n+2) { background: #A8E6FF; }
.game-card:nth-child(9n+3) { background: #B8F2C4; }
.game-card:nth-child(9n+4) { background: #C8F5D2; }
.game-card:nth-child(9n+5) { background: #D7CCFF; }
.game-card:nth-child(9n+6) { background: #FFCBA4; }
.game-card:nth-child(9n+7) { background: #9FF0E4; }
.game-card:nth-child(9n+8) { background: #FFC2C2; }
.game-card:nth-child(9n+9) { background: #D9F7A1; }
.game-card .ge { font-size: 74px; display: block; animation: bob 3s ease-in-out infinite; }
.game-card h2 { font-family: "Bagel Fat One", sans-serif; font-weight: 400; font-size: 32px; margin: 4px 0; }
.game-card p { margin: 0 0 12px; font-size: 17px; }
.game-card .top3 { list-style: none; margin: 0 0 14px; padding: 10px 12px; background: rgba(255,255,255,.7); border: 3px solid var(--line); border-radius: 16px; font-size: 15px; }
.game-card .top3 li { display: flex; gap: 6px; }
.game-card .top3 li span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card .play-btn { display: inline-block; }

.btn {
  border: 4px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding: 10px 22px;
  font-size: 20px; font-weight: 900; background: var(--yellow); color: #2B2140;
}
.btn.go { background: var(--green); }
.btn.alt { background: var(--sky); }
.btn.back { background: #fff; font-size: 17px; padding: 7px 16px; }

/* play screen */
#play { display: grid; grid-template-columns: 1fr 290px; gap: 20px; align-items: start; }
.play-head, .hud { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play-head h2 {
  font-family: "Bagel Fat One", sans-serif; font-weight: 400; font-size: clamp(28px, 5vw, 40px); margin: 0;
  color: var(--yellow); -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--line);
}
.levels { display: flex; gap: 8px; margin-left: auto; }
.levels button { border: 3px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff; color: #2B2140; box-shadow: 3px 3px 0 var(--line); font-size: 16px; }
.levels button.on { background: var(--pink); color: #fff; }
.pill { background: var(--card); border: 3px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 20px; box-shadow: 3px 3px 0 var(--line); }
.pill b { font-variant-numeric: tabular-nums; }
.pill.p { background: var(--mint); color: #2B2140; }

.stage {
  position: relative; min-height: 420px; background: var(--card); border: 4px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden; user-select: none; touch-action: manipulation;
}
.start-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; text-align: center; gap: 12px; }
.start-box .big { font-size: 90px; animation: bob 2s ease-in-out infinite; }
.start-box p { font-size: 20px; max-width: 420px; margin: 0; }

.board-card { background: var(--card); border: 4px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.board-card h3 { margin: 0 0 8px; font-size: 22px; }
.board-card h3 small { color: var(--muted); font-size: 15px; }
.board { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.board li { counter-increment: r; display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 2px dashed var(--bg-dots); font-size: 16px; }
.board li::before { content: counter(r); width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg-dots); color: #2B2140; font-size: 14px; }
.board li:nth-child(1)::before { content: "🥇"; background: none; font-size: 22px; }
.board li:nth-child(2)::before { content: "🥈"; background: none; font-size: 22px; }
.board li:nth-child(3)::before { content: "🥉"; background: none; font-size: 22px; }
.board li .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .s { font-variant-numeric: tabular-nums; }
.board li.me { background: #C8F5D2; color: #2B2140; border-radius: 10px; }
.board .empty { color: var(--muted); }
.board .empty::before { display: none; }
.mybest { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* memory */
.mem { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols), 1fr); max-width: 640px; margin: 0 auto; perspective: 800px; }
.mcard { aspect-ratio: 1; border: 0; padding: 0; background: none; position: relative; transform-style: preserve-3d; transition: transform .35s; }
.mcard .f, .mcard .b {
  position: absolute; inset: 0; border: 4px solid var(--line); border-radius: 18px; box-shadow: 3px 3px 0 var(--line);
  display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.mcard .b { background: repeating-linear-gradient(45deg, var(--purple) 0 12px, #9A86FF 12px 24px); font-size: clamp(22px, 5vw, 36px); }
.mcard .f { background: #F2FFF5; transform: rotateY(180deg); font-size: clamp(32px, 8vw, 58px); }
.mcard.open { transform: rotateY(180deg); }
.mcard.done .f { background: #C9F7D4; animation: pop .4s; }
.mcard.wrong .f { background: #FFC9C9; }

/* counting */
.count-area { position: relative; height: 300px; border: 4px dashed var(--bg-dots); border-radius: 20px; margin-bottom: 16px; background: rgba(205,239,211,.25); }
.count-area span { position: absolute; font-size: clamp(38px, 9vw, 52px); line-height: 1; animation: pop .35s backwards; }
.count-q { text-align: center; font-size: 24px; margin: 0 0 12px; }
.choices { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.choices button {
  width: 80px; height: 80px; border-radius: 22px; border: 4px solid var(--line); box-shadow: var(--shadow);
  font-size: 38px; font-family: "Bagel Fat One", sans-serif; color: #2B2140;
}
.choices button:nth-child(1) { background: #FFB4D6; }
.choices button:nth-child(2) { background: #A8E6FF; }
.choices button:nth-child(3) { background: #B8F2C4; }
.choices button:nth-child(4) { background: #D7CCFF; }
.choices button.no { animation: shake .4s; opacity: .45; }
.choices button.yes { animation: pop .4s; background: var(--green); }

/* balloons */
.sky { position: relative; height: 460px; border-radius: 20px; background: linear-gradient(#BDE7FF, #E9F7FF); overflow: hidden; }
.balloon {
  position: absolute; width: 74px; height: 92px; border: 4px solid var(--line); border-radius: 50% 50% 46% 46%;
  font-family: "Bagel Fat One", sans-serif; font-size: 34px; color: #fff; -webkit-text-stroke: 1.5px var(--line); paint-order: stroke fill;
  display: grid; place-items: center; animation: float 3s ease-in-out infinite; transition: transform .2s, opacity .2s;
}
.balloon::after { content: ""; position: absolute; bottom: -26px; left: 50%; width: 2px; height: 24px; background: var(--line); }
.balloon.popped { transform: scale(1.6); opacity: 0; pointer-events: none; }
.balloon.no { animation: shake .4s; }
.next-tip { text-align: center; font-size: 22px; margin: 0 0 10px; }
.next-tip b { display: inline-block; min-width: 46px; padding: 0 10px; border-radius: 999px; background: var(--pink); color: #fff; border: 3px solid var(--line); }

/* quiz games */
.quiz-show { display: flex; justify-content: center; margin: 4px 0 18px; }
.sum { font-family: "Bagel Fat One", sans-serif; font-size: clamp(48px, 11vw, 80px); padding: 6px 26px; background: #F2FFF5; color: #2B2140; border: 4px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.sum span { color: var(--pink); }
.target { width: 110px; height: 110px; padding: 10px; background: #F2FFF5; border: 4px dashed var(--line); border-radius: 24px; }
.shp { width: 100%; height: 100%; display: block; }
.shadow { font-size: clamp(100px, 22vw, 150px); line-height: 1.1; filter: brightness(0); opacity: .85; }
@media (prefers-color-scheme: dark) { .shadow { filter: brightness(0) invert(1); } }
.choices.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); max-width: 520px; margin: 0 auto; gap: 10px; }
.choices.grid button { width: auto; height: auto; aspect-ratio: 1; background: #fff; font-family: inherit; font-size: clamp(30px, 8vw, 50px); padding: 8px; }
.choices.pics button { width: 96px; height: 96px; font-family: inherit; font-size: 54px; }

/* spell */
.spell-pic { text-align: center; font-size: clamp(90px, 20vw, 130px); line-height: 1.1; animation: bob 2.4s ease-in-out infinite; }
.slots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 22px; }
.slots span { width: 56px; height: 64px; border-bottom: 6px solid var(--line); font-family: "Bagel Fat One", sans-serif; font-size: 44px; display: grid; place-items: center; }
.slots span.ok { color: var(--pink); animation: pop .3s; }
.slots.done span { color: var(--green); }
.tiles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tile { width: 64px; height: 64px; border: 4px solid var(--line); border-radius: 18px; background: var(--sky); color: #fff; box-shadow: var(--shadow); font-family: "Bagel Fat One", sans-serif; font-size: 34px; -webkit-text-stroke: 1.5px var(--line); paint-order: stroke fill; }
.tile.used { opacity: .25; }
.tile.no, .hole.no { animation: shake .4s; }

/* moles */
.field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 460px; margin: 10px auto; padding: 16px; background: #8BD66B; border: 4px solid var(--line); border-radius: 26px; }
.hole { position: relative; aspect-ratio: 1; border: 4px solid var(--line); border-radius: 50%; background: radial-gradient(#4A2E1E 55%, #6B4430 56%); overflow: hidden; padding: 0; }
.mole { position: absolute; left: 0; right: 0; bottom: -80%; font-size: clamp(44px, 12vw, 70px); line-height: 1; transition: bottom .12s; pointer-events: none; }
.hole.up .mole { bottom: 12%; }
.hole.bonk { background: radial-gradient(#FF4F9A 40%, #6B4430 41%); }

/* yeti flight */
canvas.flight { display: block; width: 100%; height: auto; border: 4px solid var(--line); border-radius: 20px; touch-action: none; cursor: pointer; background: #6EC6FF; }
.flight-help { text-align: center; margin: 10px 0 0; font-size: 17px; color: var(--muted); }

.get-app { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px auto 0; max-width: 680px; padding: 16px 20px; background: var(--card); border: 4px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.get-app .ga-e { font-size: 50px; }
.get-app div { flex: 1; min-width: 180px; font-size: 18px; }
.get-app small { color: var(--muted); font-size: 15px; }
.get-app .btn { text-decoration: none; }

/* arcade canvases + touch pads */
canvas.gcv { display: block; width: 100%; height: auto; margin: 0 auto; border: 4px solid var(--line); border-radius: 18px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pad { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px auto 0; user-select: none; -webkit-user-select: none; }
.pad.cross { display: grid; grid-template-columns: repeat(3, 68px); grid-template-rows: repeat(2, 68px); gap: 8px; justify-content: center; }
.padbtn { width: 68px; height: 68px; border: 4px solid var(--line); border-radius: 20px; background: #fff; color: #2B2140; box-shadow: 3px 3px 0 var(--line); font-size: 30px; font-weight: 900; touch-action: none; display: grid; place-items: center; padding: 0; }
.padbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); background: #C8F5D2; }
.pad.cross .u { grid-column: 2; grid-row: 1; } .pad.cross .l { grid-column: 1; grid-row: 2; }
.pad.cross .d { grid-column: 2; grid-row: 2; } .pad.cross .r { grid-column: 3; grid-row: 2; }
.game-card .new { position: absolute; top: -14px; right: 16px; background: #FF4F9A; color: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 2px 14px; font-size: 17px; transform: rotate(6deg); box-shadow: 3px 3px 0 var(--line); animation: bob 2s ease-in-out infinite; }

/* 3D block games */
#play.wide { grid-template-columns: 1fr; }
.b3 { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 340px; max-height: 78vh; border: 4px solid var(--line); border-radius: 18px; overflow: hidden; background: #9EDBFF; touch-action: none; user-select: none; -webkit-user-select: none; }
.b3 > canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { .b3.tall:not(.full) { aspect-ratio: 4 / 5; max-height: 62vh; } }
body.b3full { overflow: hidden; }
body.b3full .wrap { z-index: 60; }
.b3.full { position: fixed; inset: 0; z-index: 45; border: 0; border-radius: 0; aspect-ratio: auto; max-height: none; min-height: 0; }
.b3 .cross { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; pointer-events: none; }
.b3 .cross::before, .b3 .cross::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 2px rgba(43,33,64,.7); }
.b3 .cross::before { left: 10px; top: 0; width: 4px; height: 24px; } .b3 .cross::after { top: 10px; left: 0; height: 4px; width: 24px; }
.b3 .hud3 { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.9); border: 3px solid #2B2140; border-radius: 999px; padding: 4px 12px; font-size: 16px; color: #2B2140; pointer-events: none; }
.b3 .tb { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.b3 .tb button, .b3 .tbtns button { border: 3px solid #2B2140; border-radius: 14px; background: rgba(255,255,255,.92); color: #2B2140; font-size: 20px; padding: 4px 10px; box-shadow: 2px 2px 0 #2B2140; touch-action: none; }
.b3 .tbtns { position: absolute; right: 14px; bottom: 74px; display: grid; gap: 10px; }
.b3 .tbtns.low { bottom: 16px; }
.b3 .tbtns button { width: 62px; height: 62px; border-radius: 50%; font-size: 28px; padding: 0; }
.b3 .hotbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; background: rgba(43,33,64,.65); border-radius: 12px; max-width: calc(100% - 20px); overflow-x: auto; }
.b3 .hotbar button { flex: 0 0 auto; width: 44px; height: 44px; padding: 3px; border: 3px solid transparent; border-radius: 9px; background: rgba(255,255,255,.18); }
.b3 .hotbar button.on { border-color: #fff; background: rgba(255,255,255,.45); }
.b3 .hotbar img { width: 100%; height: 100%; image-rendering: pixelated; display: block; border-radius: 3px; }
.b3 .joy { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255,255,255,.22); border: 3px solid rgba(255,255,255,.8); pointer-events: none; }
.b3 .joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; background: rgba(255,255,255,.85); border: 3px solid #2B2140; }
.b3 .toast { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-family: "Bagel Fat One", sans-serif; font-size: clamp(26px, 5vw, 42px); color: #fff; -webkit-text-stroke: 2px #2B2140; paint-order: stroke fill; text-shadow: 3px 3px 0 #2B2140; pointer-events: none; white-space: nowrap; transition: opacity .4s; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(43,33,64,.55); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-card { margin: auto 0; }
.modal-card {
  width: 100%; max-width: 440px; background: var(--card); border: 4px solid var(--line); border-radius: 30px;
  box-shadow: 8px 8px 0 var(--line); padding: 22px; text-align: center; animation: pop .35s;
}
.modal-card h2 { font-family: "Bagel Fat One", sans-serif; font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.modal-card h3 { margin: 14px 0 8px; }
.big-emoji { font-size: 70px; line-height: 1; animation: bob 2s ease-in-out infinite; }
#name-input { width: 100%; font: inherit; font-size: 26px; text-align: center; padding: 10px; border: 4px solid var(--line); border-radius: 18px; background: #F2FFF5; color: #2B2140; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 14px; }
.avatars button { font-size: 28px; border: 3px solid transparent; border-radius: 14px; background: none; padding: 2px; }
.avatars button.on { border-color: var(--line); background: var(--yellow); }
.err { color: var(--red); margin: 0 0 10px; }
.btn.skip { background: #fff; font-size: 16px; padding: 7px 16px; margin-top: 10px; }
.win-time { font-size: 30px; margin: 0; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 3px; animation: fall linear forwards; }

.foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 15px; padding: 16px; }

@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 15%,45% { transform: rotate(18deg) } 30% { transform: rotate(-10deg) } }
@keyframes drift { from { transform: translateX(-120px) } to { transform: translateX(110vw) } }
@keyframes pop { 0% { transform: scale(.3) } 70% { transform: scale(1.12) } 100% { transform: scale(1) } }
@keyframes shake { 0%,100% { translate: 0 } 25% { translate: -8px } 75% { translate: 8px } }
@keyframes float { 0%,100% { margin-top: 0 } 50% { margin-top: -12px } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg) } }
.mcard.done .f, .mcard.open { animation-fill-mode: none; }

@media (max-width: 820px) {
  #play { grid-template-columns: 1fr; }
  .levels { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .top-in { gap: 8px; padding: 8px 10px; }
  .logo-text { font-size: 19px; -webkit-text-stroke-width: 1.5px; text-shadow: 2px 2px 0 #2B2140; }
  .logo-face { font-size: 26px; }
  .sound, .me { padding: 4px 9px; font-size: 15px; }
  .me span:last-child { max-width: 58px; }
  .stage { padding: 10px; }
  .mem { gap: 6px; }
  .choices button { width: 66px; height: 66px; font-size: 32px; }
  .balloon { width: 60px; height: 76px; font-size: 28px; }
  .slots span { width: 44px; height: 54px; font-size: 34px; }
  .tile { width: 54px; height: 54px; font-size: 28px; }
  .choices.pics button { width: 74px; height: 74px; font-size: 42px; }
  .choices.grid { gap: 6px; }
  .modal { padding: 10px; }
  .modal-card { padding: 16px 14px; border-radius: 24px; box-shadow: 5px 5px 0 var(--line); }
  .modal-card h2 { font-size: 26px; margin-bottom: 8px; }
  .modal-card h3 { margin: 10px 0 6px; font-size: 17px; }
  .big-emoji { font-size: 48px; }
  #name-input { font-size: 21px; padding: 8px; }
  .avatars { grid-template-columns: repeat(8, 1fr); gap: 3px; }
  .avatars button { font-size: 22px; padding: 1px; border-radius: 10px; }
  .modal-card .btn { font-size: 18px; padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
