/* DilSePlay — by DilSeCraft */
:root {
  --rose: #FF5C8A; --rose-deep: #E8457A; --rose-soft: #FFE1EA;
  --lav: #8A63F5; --lav-soft: #ECE5FF;
  --mint: #2FC9A0; --mint-soft: #DDF7EF;
  --sunny: #FFC23D; --sunny-soft: #FFF3D6;
  --sky: #5BB8FF; --peach: #FF9468;
  --bg: #FFF6F9; --bg2: #FFEAF1; --card: #FFFFFF; --card-2: #FFFAFC; --ink: #3B2340; --muted: #8C6F8F; --line: #F3D6E2;
  --glass: rgba(255, 255, 255, .72);
  --blob1: #FFC2D6; --blob2: #D9CBFF; --blob3: #C7F2E4; --blob4: #FFE7B0;
  --shadow: 0 18px 40px -18px rgba(232, 69, 122, .45);
  --shadow-sm: 0 6px 18px -8px rgba(59, 35, 64, .22);
  --r: 26px; --r-sm: 16px;
  --font-head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --board: #FFFDFE; --cell: #FFFFFF; --cell-line: #F0D7E2; --base-in: #FFFFFF;
  --grad-rose: linear-gradient(135deg, #FF7AA2 0%, #FF5C8A 45%, #F2477C 100%);
  --grad-lav: linear-gradient(135deg, #A88BFF 0%, #8A63F5 60%, #7550E6 100%);
  --grad-mint: linear-gradient(135deg, #5BE0BC 0%, #2FC9A0 100%);
  --grad-text: linear-gradient(100deg, #FF5C8A 0%, #B45CFF 50%, #8A63F5 100%);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160F1D; --bg2: #21162A; --card: #2A1D35; --card-2: #2F2140; --ink: #FFEFF6; --muted: #C3A8C8; --line: #3F2D4C;
    --glass: rgba(34, 23, 44, .72);
    --rose-soft: #4A2234; --lav-soft: #33275A; --mint-soft: #193D35; --sunny-soft: #45391A;
    --blob1: #5A1F3A; --blob2: #34246A; --blob3: #154236; --blob4: #4A3A12;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .55);
    --board: #2A1D35; --cell: #352645; --cell-line: #4A3759; --base-in: #22172C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #160F1D; --bg2: #21162A; --card: #2A1D35; --card-2: #2F2140; --ink: #FFEFF6; --muted: #C3A8C8; --line: #3F2D4C;
  --glass: rgba(34, 23, 44, .72);
  --rose-soft: #4A2234; --lav-soft: #33275A; --mint-soft: #193D35; --sunny-soft: #45391A;
  --blob1: #5A1F3A; --blob2: #34246A; --blob3: #154236; --blob4: #4A3A12;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .55);
  --board: #2A1D35; --cell: #352645; --cell-line: #4A3759; --base-in: #22172C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
main { flex: 1; position: relative; z-index: 1; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
img { height: auto; }
::selection { background: var(--rose); color: #fff; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: 14px; }
.grad-text { background: var(--grad-text); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.clay { display: block; filter: drop-shadow(0 10px 14px rgba(232, 69, 122, .18)); }

/* ambient background: soft blobs + drifting hearts */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 22s ease-in-out infinite alternate; }
.ambient .b1 { width: 46vmax; height: 46vmax; background: var(--blob1); top: -18vmax; left: -14vmax; }
.ambient .b2 { width: 40vmax; height: 40vmax; background: var(--blob2); top: 10vh; right: -18vmax; animation-delay: -6s; }
.ambient .b3 { width: 34vmax; height: 34vmax; background: var(--blob3); bottom: -16vmax; left: 20vw; animation-delay: -12s; opacity: .5; }
.ambient .h { position: absolute; bottom: -40px; width: 18px; height: 18px; opacity: 0; animation: rise 16s linear infinite; color: var(--rose); }
.ambient .h:nth-child(4) { left: 8%; animation-delay: 0s; } .ambient .h:nth-child(5) { left: 28%; animation-delay: -5s; width: 12px; color: var(--lav); }
.ambient .h:nth-child(6) { left: 52%; animation-delay: -9s; width: 22px; } .ambient .h:nth-child(7) { left: 74%; animation-delay: -3s; width: 14px; color: var(--lav); }
.ambient .h:nth-child(8) { left: 92%; animation-delay: -12s; }
@keyframes drift { 50% { transform: translate(6vw, 4vh) scale(1.08); } 100% { transform: translate(-4vw, 8vh) scale(.95); } }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .35; } 90% { opacity: .25; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .8s var(--ease-bounce); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* header */
.top { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.top .bar { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 10px 0 14px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px; box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--ink); }
.brand img { width: 44px; height: 40px; transition: transform .5s var(--ease-bounce); }
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
.brand b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--rose); line-height: 1; display: block; }
.brand b span { color: var(--lav); }
.brand small { display: block; font-size: .66rem; color: var(--muted); font-weight: 800; letter-spacing: .05em; margin-top: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--ink); font-weight: 800; padding: 9px 14px; border-radius: 999px; position: relative; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current]:not(.btn) { background: var(--rose-soft); color: var(--rose-deep); text-decoration: none; }
.icon-btn { border: 0; background: var(--card); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s ease, box-shadow .2s, color .2s; flex: none; }
.icon-btn:hover { color: var(--rose-deep); box-shadow: inset 0 0 0 1.5px var(--rose); transform: translateY(-1px); }
.icon-btn .i { width: 20px; height: 20px; }
.menu-btn { display: none; }
.me-link { padding: 3px !important; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .top .bar > .theme { margin-left: auto; }
  .nav { position: fixed; top: 84px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: var(--card); padding: 14px; gap: 4px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px) scale(.96); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-bounce), opacity .2s; transform-origin: top right; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 13px 16px; }
  .nav .btn { margin-top: 6px; }
}

/* avatars */
.av { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--rose-soft); flex: none; overflow: hidden; position: relative; }
.av img { width: 88%; height: 88%; object-fit: contain; }
.av.photo img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 84px; height: 84px; }
.av.xl { width: 110px; height: 110px; }
.c-rose { background: #FFD3E0; } .c-lavender { background: #E3D9FF; } .c-mint { background: #CDF4E8; }
.c-sunny { background: #FFEDC2; } .c-sky { background: #D2ECFF; } .c-peach { background: #FFE0D3; }

/* buttons: soft pills, coloured glow, gentle lift */
.btn { --c1: #FF6F98; --c2: #F2477C; --glow: rgba(242, 71, 124, .38); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; cursor: pointer; font: 800 1rem/1 var(--font); letter-spacing: .01em; padding: 0 24px; border-radius: 999px; color: #fff !important; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px var(--glow); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, filter .2s; white-space: nowrap; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 26px -10px var(--glow); filter: saturate(1.08); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px -6px var(--glow); }
.btn:focus-visible { outline: 3px solid var(--lav-soft); outline-offset: 3px; }
.btn .i { width: 19px; height: 19px; stroke-width: 2.4; }
.btn.lav { --c1: #9D7DFF; --c2: #7B55EE; --glow: rgba(123, 85, 238, .38); }
.btn.mint { --c1: #45D9B2; --c2: #22B78F; --glow: rgba(34, 183, 143, .35); }
.btn.sunny { --c1: #FFD465; --c2: #FFB529; --glow: rgba(255, 181, 41, .4); color: #4A3300 !important; }
.btn.wa { --c1: #34D673; --c2: #1DAE57; --glow: rgba(29, 174, 87, .35); }
.btn.ghost { background: var(--card); color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 12px -8px rgba(59, 35, 64, .25); }
.btn.ghost:hover { color: var(--rose-deep) !important; box-shadow: inset 0 0 0 1.5px var(--rose), 0 10px 20px -12px var(--glow); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9rem; gap: 6px; }
.btn.sm .i { width: 17px; height: 17px; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 1.08rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.pulse::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-130%); animation: sheen 3.2s ease-in-out infinite; z-index: -1; }
@keyframes sheen { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* cards & sections */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 24px; border: 1px solid var(--line); position: relative; }
.section { padding: 70px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); background: var(--rose-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow img { width: 20px; height: 20px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 560px) {
  .g4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g4 .game-card { padding: 14px; }
  .g4 .game-card::before { height: 110px; }
  .g4 .game-card .gi { width: 100px; height: 100px; }
  .g4 .game-card h3 { font-size: 1.05rem; }
  .g4 .game-card p { font-size: .85rem; line-height: 1.45; }
  .g4 .game-card .pill { font-size: .7rem; padding: 4px 8px; }
  .ribbon { font-size: .6rem; right: -38px; }
}
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 900; padding: 5px 11px; border-radius: 999px; background: var(--lav-soft); color: var(--lav); }
.pill.mint { background: var(--mint-soft); color: #14876A; } .pill.rose { background: var(--rose-soft); color: var(--rose-deep); } .pill.sunny { background: var(--sunny-soft); color: #9A6A00; }
:root[data-theme="dark"] .pill.mint { color: var(--mint); }
:root[data-theme="dark"] .pill.sunny { color: var(--sunny); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.sunny { color: var(--sunny); } :root:not([data-theme="light"]) .pill.mint { color: var(--mint); } }
.notice { background: var(--sunny-soft); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 800; }
.flash { display: flex; gap: 10px; align-items: center; background: var(--mint-soft); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 800; margin-bottom: 16px; animation: pop .45s var(--ease-bounce); }
.flash.err { background: var(--rose-soft); color: var(--rose-deep); animation: shake .45s ease; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }

/* hero */
.hero { padding: 30px 0 20px; }
.hero .wrap { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr 1.05fr; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.hero h1 .grad-text { animation: none; }
.hero h1 .grad-text .w { background: var(--grad-text); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero h1 .w { display: inline-block; animation: wordIn .8s var(--ease-bounce) both; animation-delay: calc(var(--i) * .09s + .1s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(.8); } }
.hero .squiggle { display: block; width: 210px; height: 16px; margin-top: -6px; }
.hero .squiggle path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s 1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; font-weight: 600; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: .88rem; box-shadow: var(--shadow-sm); }
.chip img { width: 26px; height: 26px; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 620px; aspect-ratio: 1200 / 700; }
.hero-art .main { position: absolute; inset: 6% 0 0; width: 100%; animation: bob 5s ease-in-out infinite; }
.hero-art .halo { position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rose) 28%, transparent), transparent 65%); filter: blur(10px); animation: breathe 4s ease-in-out infinite; }
.hero-art .floaty { position: absolute; width: 16%; animation: bob 4s ease-in-out infinite; }
.hero-art .f1 { left: 2%; top: -2%; animation-delay: -1s; } .hero-art .f2 { right: 4%; top: -6%; width: 13%; animation-delay: -2.5s; }
.hero-art .f3 { right: -2%; bottom: 4%; width: 12%; animation-delay: -.5s; }
.spark { position: absolute; width: 14px; height: 14px; color: var(--sunny); animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .cta, .hero .chips { justify-content: center; } .hero .squiggle { margin-left: auto; margin-right: auto; } .hero p.lead { margin: 0 auto; } .hero-art { order: -1; max-width: 460px; } }

/* marquee */
.marquee { overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; }
.marquee .track span { display: inline-flex; gap: 12px; align-items: center; font: 800 1.35rem var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee img { width: 56px; height: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* steps */
.steps { position: relative; }
.step { text-align: center; padding-top: 30px; transition: transform .4s var(--ease-bounce); }
.step:hover { transform: translateY(-8px) rotate(-1deg); }
.step .num { position: absolute; top: 16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--font-head); color: #fff; background: var(--grad-rose); }
.step:nth-child(2) .num { background: var(--grad-lav); } .step:nth-child(3) .num { background: var(--grad-mint); }
.step img { width: 128px; height: 128px; margin: 0 auto 8px; transition: transform .5s var(--ease-bounce); }
.step:hover img { transform: scale(1.12) rotate(-6deg); }

/* game cards */
.game-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none !important; transition: transform .45s var(--ease-bounce), box-shadow .3s; overflow: hidden; transform-style: preserve-3d; }
.game-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: var(--tint, var(--rose-soft)); border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 26px 26px; opacity: .9; }
.game-card:nth-child(4n+2) { --tint: var(--lav-soft); } .game-card:nth-child(4n+3) { --tint: var(--mint-soft); } .game-card:nth-child(4n+4) { --tint: var(--sunny-soft); }
.game-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow); }
.game-card .gi { position: relative; width: 140px; height: 140px; margin: -6px auto 4px; transition: transform .6s var(--ease-bounce); }
.game-card:hover .gi { transform: scale(1.12) rotate(-8deg) translateY(-6px); }
.game-card h3 { position: relative; margin: 6px 0 0; }
.game-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.game-card.soon { opacity: .82; }
.game-card.soon .gi { filter: saturate(.7); }
.ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(35deg); background: var(--grad-lav); color: #fff; font-weight: 900; font-size: .7rem; letter-spacing: .08em; padding: 4px 40px; text-transform: uppercase; z-index: 1; }

/* features */
.feat { display: flex; gap: 16px; align-items: center; transition: transform .35s var(--ease-bounce); }
.feat:hover { transform: translateX(6px); }
.feat img { width: 74px; height: 74px; flex: none; }
.feat h3 { margin: 0 0 2px; font-size: 1.15rem; }
.feat p { margin: 0; color: var(--muted); font-weight: 600; }

/* big CTA band */
.cta-band { background: var(--grad-rose); color: #fff; border-radius: 36px; padding: 34px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cta-band::before { width: 340px; height: 340px; right: -80px; top: -120px; } .cta-band::after { width: 200px; height: 200px; left: -60px; bottom: -90px; }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255, 255, 255, .9); font-weight: 700; }
.cta-band img { position: relative; z-index: 1; animation: bob 4.5s ease-in-out infinite; }
.cta-band .btn.ghost { background: #fff; color: var(--rose-deep) !important; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band img { max-width: 300px; margin: 0 auto; } }

details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; transition: box-shadow .2s; }
details.faq + details.faq { margin-top: 10px; }
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq summary { font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 800 1.4rem/1 var(--font-head); color: var(--rose); transition: transform .3s var(--ease-bounce); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 10px 0 0; color: var(--muted); font-weight: 600; }

.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.page-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.page-hero img { width: 96px; height: 96px; flex: none; animation: bob 4s ease-in-out infinite; }

/* forms */
label { display: block; font-weight: 900; margin-bottom: 7px; font-size: .95rem; }
.inp { position: relative; }
.inp .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 20px; height: 20px; }
.inp input { padding-left: 46px; }
.inp .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; display: grid; }
.inp .eye .i { position: static; transform: none; }
input, select, textarea { width: 100%; font: 700 16px var(--font); color: var(--ink); background: var(--card-2); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 14px 15px; outline: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 5px var(--rose-soft); }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
textarea { min-height: 130px; resize: vertical; }
.field + .field { margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .92rem; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); flex: none; margin-top: 2px; padding: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 900; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-pick label { margin: 0; }
.avatar-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-pick span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); cursor: pointer; border: 3px solid transparent; transition: transform .35s var(--ease-bounce), border-color .2s, background .2s; }
.avatar-pick span img { width: 82%; }
.avatar-pick span:hover { transform: scale(1.1) rotate(-6deg); }
.avatar-pick input:checked + span { border-color: var(--rose); background: var(--rose-soft); transform: scale(1.12); animation: jelly .6s var(--ease-bounce); }
.avatar-pick input:focus-visible + span { outline: 3px solid var(--lav); outline-offset: 2px; }
@keyframes jelly { 30% { transform: scale(1.25, .9); } 55% { transform: scale(.95, 1.18); } 80% { transform: scale(1.14, 1.05); } }
.code-input { text-transform: uppercase; letter-spacing: .38em; font: 800 1.6rem var(--font-head); text-align: center; padding: 14px 8px 14px 20px; }

/* auth split screen */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 20px auto 40px; border-radius: 34px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-art { position: relative; background: var(--grad-rose); padding: 40px 32px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 560px; }
.auth-art.lav { background: var(--grad-lav); }
.auth-art.mint { background: linear-gradient(135deg, #34D3A8, #5BB8FF); }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); position: relative; z-index: 1; }
.auth-art p { position: relative; z-index: 1; font-weight: 700; color: rgba(255, 255, 255, .9); }
.auth-art .art { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 10px auto 0; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .2)); }
.auth-art .ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); animation: spin 40s linear infinite; }
.auth-art .ring.r1 { width: 520px; height: 520px; right: -200px; bottom: -160px; }
.auth-art .ring.r2 { width: 300px; height: 300px; left: -120px; top: -100px; animation-direction: reverse; }
.auth-art .fh { position: absolute; width: 44px; animation: bob 3.5s ease-in-out infinite; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 4px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.gnote { font-size: .8rem; text-align: center; color: var(--muted); margin-top: 6px; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; margin-top: 6px; border-radius: 28px; }
  .auth-art { min-height: 0; padding: 26px 22px 0; text-align: center; }
  .auth-art .art { max-width: 260px; }
  .auth-art .hide-sm { display: none; }
  .auth-form { padding: 26px 20px 30px; }
}
.auth-box { max-width: 460px; margin: 30px auto; }

/* dashboard */
.dash-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0; }
.action-card { text-align: center; overflow: hidden; }
.action-card img { width: 120px; height: 120px; margin: -4px auto 4px; transition: transform .5s var(--ease-bounce); }
.action-card:hover img { transform: scale(1.1) rotate(-6deg); }
.stat { text-align: center; padding: 18px; }
.stat img { width: 46px; height: 46px; margin: 0 auto 4px; }
.stat b { display: block; font: 800 2.1rem/1.1 var(--font-head); color: var(--rose); }
.stat:nth-child(2) b { color: var(--lav); } .stat:nth-child(3) b { color: #1FAF88; } .stat:nth-child(4) b { color: #E0A100; font-size: 1.3rem; padding: 6px 0 5px; }
.stat span { color: var(--muted); font-weight: 800; font-size: .85rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 140px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--bg2); }
td .gm { display: inline-flex; align-items: center; gap: 8px; }
td .gm img { width: 30px; height: 30px; }

/* footer */
.foot { position: relative; z-index: 1; margin-top: 60px; padding: 30px 0 28px; background: var(--bg2); }
.foot .wave { position: absolute; top: -38px; left: 0; width: 100%; height: 40px; color: var(--bg2); }
.foot .cols { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot h4 { font-size: 1.05rem; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 5px 0; }
.foot a { color: var(--ink); font-weight: 700; }
.foot .by { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-weight: 800; color: var(--muted); font-size: .9rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.foot .by a { color: var(--rose-deep); }
.foot .heart { display: inline-block; color: var(--rose); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@media (max-width: 640px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ROOM */
.room-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.room-code { display: inline-flex; align-items: center; gap: 8px; font: 800 1.1rem var(--font-head); letter-spacing: .2em; background: var(--card); border: 2px dashed var(--rose); color: var(--rose-deep); padding: 6px 14px; border-radius: 14px; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .82rem; color: var(--muted); }
.conn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.conn.live { color: var(--mint); } .conn.live::before { animation: beat 1.6s infinite; }
.players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.player { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 22px; padding: 8px 12px 8px 8px; border: 3px solid transparent; box-shadow: var(--shadow-sm); min-width: 0; transition: border-color .3s, transform .4s var(--ease-bounce), box-shadow .3s; }
.player.right { flex-direction: row-reverse; text-align: right; padding: 8px 8px 8px 12px; }
.player .av { width: 46px; height: 46px; }
.player .nm { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .st { font-size: .75rem; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.player.right .st { justify-content: flex-end; }
.player .dot { width: 9px; height: 9px; border-radius: 50%; background: #c9b8cc; display: inline-block; }
.player.online .dot { background: var(--mint); }
.player.turn { border-color: var(--rose); transform: scale(1.04); box-shadow: 0 0 0 6px var(--rose-soft), var(--shadow-sm); }
.player.s1.turn { border-color: var(--lav); box-shadow: 0 0 0 6px var(--lav-soft), var(--shadow-sm); }
.player.turn .av { animation: jelly 1.2s var(--ease-bounce) infinite; }
.vs { font: 800 1rem var(--font-head); color: #fff; background: var(--grad-text); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.stage { position: relative; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
@media (max-width: 920px) { .room-layout { grid-template-columns: 1fr; } }
.status-line { text-align: center; font: 800 1.15rem var(--font-head); margin: 4px 0 10px; min-height: 1.6em; }
.status-line .flashy { display: inline-block; animation: pop .45s var(--ease-bounce); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 900; z-index: 80; opacity: 0; transition: opacity .25s, transform .35s var(--ease-bounce); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.lobby h2 { text-align: center; }
.game-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.game-pick button { all: unset; cursor: pointer; background: var(--card-2); border: 3px solid var(--line); border-radius: 22px; padding: 10px 10px 14px; text-align: center; font-weight: 900; transition: transform .35s var(--ease-bounce), border-color .2s, background .2s; }
.game-pick button img { width: 84px; height: 84px; margin: 0 auto; display: block; transition: transform .45s var(--ease-bounce); }
.game-pick button:hover img { transform: scale(1.1) rotate(-6deg); }
.game-pick button[aria-pressed="true"] { border-color: var(--rose); background: var(--rose-soft); transform: translateY(-4px); }
.game-pick button[aria-pressed="true"] img { animation: jelly .6s var(--ease-bounce); }
.mode-pick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.mode-pick button { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--card-2); border: 2px solid var(--line); font-weight: 900; font-size: .9rem; transition: all .2s; }
.mode-pick button[aria-pressed="true"] { border-color: var(--lav); background: var(--lav-soft); color: var(--lav); }
.invite { text-align: center; overflow: hidden; }
.invite img.env { width: 150px; margin: 0 auto; animation: bob 3.5s ease-in-out infinite; }
.invite .big-code { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.invite .big-code span { width: 46px; height: 58px; display: grid; place-items: center; font: 800 2rem var(--font-head); color: var(--rose); background: var(--rose-soft); border-radius: 14px; animation: wordIn .6s var(--ease-bounce) both; animation-delay: calc(var(--i) * .07s); }
.waiting-dots span { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--rose); animation: dots 1.2s infinite ease-in-out; }
.waiting-dots span:nth-child(2) { animation-delay: .15s; background: var(--lav); } .waiting-dots span:nth-child(3) { animation-delay: .3s; background: var(--mint); }
@keyframes dots { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1.2); opacity: 1; } }
.side .card + .card { margin-top: 12px; }
.side .card { padding: 16px; }
.side h3 { font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.side h3 img { width: 26px; height: 26px; }
.chat-log { height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.chat-log .m { max-width: 85%; padding: 8px 13px; border-radius: 18px 18px 18px 6px; background: var(--bg2); font-size: .93rem; font-weight: 600; word-wrap: break-word; align-self: flex-start; animation: pop .35s var(--ease-bounce); }
.chat-log .m.me { align-self: flex-end; background: var(--grad-rose); color: #fff; border-radius: 18px 18px 6px 18px; }
.chat-log .empty { margin: auto; color: var(--muted); font-weight: 700; font-size: .9rem; text-align: center; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { padding: 11px 13px; }
.chat-form .btn { padding: 0; width: 46px; min-height: 46px; flex: none; }
.reacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.reacts button { all: unset; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: var(--bg2); transition: transform .3s var(--ease-bounce), background .2s; }
.reacts button img { width: 70%; }
.reacts button:hover { transform: scale(1.12) rotate(-8deg); background: var(--rose-soft); }
.reacts button:active { transform: scale(.85); }
.burst { position: fixed; z-index: 90; width: 64px; height: 64px; pointer-events: none; animation: burst 1.8s ease-out forwards; }
@keyframes burst { 0% { transform: translateY(0) scale(.3) rotate(-20deg); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.25) rotate(10deg); } 100% { transform: translateY(-260px) scale(.9) rotate(-10deg); opacity: 0; } }
.over-card { text-align: center; overflow: hidden; animation: pop .6s var(--ease-bounce); }
.over-card img.big { width: 140px; margin: 0 auto; animation: jelly 1.4s var(--ease-bounce) infinite; }
.confetti { position: fixed; top: -30px; z-index: 85; pointer-events: none; animation: fall linear forwards; border-radius: 3px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.sound-btn.off { opacity: .5; }

/* LUDO */
.ludo-wrap { max-width: min(560px, calc(100svh - 240px)); min-width: 280px; margin: 0 auto; }
.ludo { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: var(--shadow); background: var(--board); touch-action: manipulation; border: 6px solid var(--card); }
.ludo .cell { fill: var(--cell); stroke: var(--cell-line); stroke-width: .045; }
.ludo .basein { fill: var(--base-in); }
.ludo .tok { cursor: default; transition: transform .16s cubic-bezier(.3, 1.4, .6, 1); }
.ludo .tok .body { transition: transform .2s; }
.ludo .tok.can { cursor: pointer; }
.ludo .tok.can .ring { animation: pulse 0.9s ease-in-out infinite; }
.ludo .tok.can .body { animation: hopIdle 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { r: 0.5; opacity: .2; } }
@keyframes hopIdle { 50% { transform: translateY(-.12px); } }
.dice-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 6px; perspective: 600px; }
.dice-btn { all: unset; cursor: pointer; width: 80px; height: 80px; position: relative; border-radius: 22px; }
.dice-btn:focus-visible { outline: 3px solid var(--lav); outline-offset: 6px; }
.dice-btn[disabled] { cursor: default; }
.dice-btn[disabled] .cube { opacity: .6; }
.dice-btn.ready::before { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 3px dashed var(--rose); animation: spin 6s linear infinite; }
.dice-btn.s1.ready::before { border-color: var(--lav); }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, 1.3, .4, 1); }
.cube .face { position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(145deg, #fff, #FFE6EE); border: 2px solid #F6CBDA; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 13px; box-shadow: inset 0 -6px 0 rgba(232, 69, 122, .12); backface-visibility: hidden; }
.dice-btn.s1 .cube .face { background: linear-gradient(145deg, #fff, #EEE7FF); border-color: #D9CCFF; box-shadow: inset 0 -6px 0 rgba(138, 99, 245, .14); }
.cube .face i { width: 13px; height: 13px; border-radius: 50%; place-self: center; }
.cube .face i.on { background: var(--rose); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.dice-btn.s1 .cube .face i.on { background: var(--lav); }
.cube .f1 { transform: translateZ(40px); } .cube .f6 { transform: rotateY(180deg) translateZ(40px); }
.cube .f2 { transform: rotateY(90deg) translateZ(40px); } .cube .f5 { transform: rotateY(-90deg) translateZ(40px); }
.cube .f3 { transform: rotateX(90deg) translateZ(40px); } .cube .f4 { transform: rotateX(-90deg) translateZ(40px); }
.cube.shake { animation: diceShake .5s ease-in-out infinite; }
@keyframes diceShake { 25% { translate: -4px -6px; } 75% { translate: 4px -2px; } }
.dice-hint { font-weight: 900; color: var(--muted); font-size: .85rem; text-align: center; }
.base-av { pointer-events: none; }

/* small games */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 380px; margin: 0 auto; }
.ttt button, .mem button { all: unset; cursor: pointer; aspect-ratio: 1; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-sm); display: grid; place-items: center; border: 3px solid var(--line); transition: transform .3s var(--ease-bounce), background .2s; }
.ttt button:not(:disabled):hover { transform: scale(1.05); background: var(--rose-soft); }
.ttt button img { width: 72%; animation: stamp .45s var(--ease-bounce); }
@keyframes stamp { from { transform: scale(2) rotate(-25deg); opacity: 0; } }
.ttt button.win { background: var(--rose-soft); border-color: var(--rose); animation: jelly .8s var(--ease-bounce) infinite; }
.ttt button:disabled { cursor: default; }
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: var(--grad-lav); padding: 12px; border-radius: 24px; max-width: 470px; margin: 0 auto; box-shadow: var(--shadow); }
.c4 button { all: unset; cursor: pointer; aspect-ratio: 1; border-radius: 50%; background: var(--bg); box-shadow: inset 0 4px 8px rgba(0, 0, 0, .22); }
.c4 button.p0 { background: radial-gradient(circle at 35% 30%, #FF9BB8, #FF5C8A 60%, #E8457A); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.c4 button.p1 { background: radial-gradient(circle at 35% 30%, #FFE08A, #FFC23D 60%, #F0A800); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.c4 button.win { outline: 4px solid #fff; outline-offset: -4px; animation: jelly .8s var(--ease-bounce) infinite; }
.c4 button.drop { animation: drop .5s cubic-bezier(.5, 0, .6, 1.4); }
@keyframes drop { from { transform: translateY(-500%); } }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; margin: 0 auto; perspective: 800px; }
.mem.big { grid-template-columns: repeat(6, 1fr); max-width: 540px; }
.mem button { position: relative; padding: 0; border: 0; box-shadow: none; background: none; transform-style: preserve-3d; transition: transform .5s var(--ease-bounce); }
.mem button .back, .mem button .front { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; box-shadow: var(--shadow-sm); }
.mem button .back { background: var(--grad-rose); }
.mem button .back img { width: 46%; opacity: .9; }
.mem button .front { background: var(--card); border: 3px solid var(--line); transform: rotateY(180deg); font-size: clamp(1.5rem, 7vw, 2.4rem); }
.mem button.up { transform: rotateY(180deg); }
.mem button.m0 .front { background: var(--rose-soft); border-color: var(--rose); }
.mem button.m1 .front { background: var(--lav-soft); border-color: var(--lav); }
.scores { display: flex; justify-content: center; gap: 14px; font-weight: 900; margin-bottom: 12px; }
.scores span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); padding: 5px 14px 5px 5px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.scores .av { width: 30px; height: 30px; }

/* admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 20px; }
.admin-nav a { padding: 9px 15px; border-radius: 999px; background: var(--card); font-weight: 900; color: var(--ink); border: 1px solid var(--line); }
.admin-nav a[aria-current] { background: var(--grad-rose); color: #fff; border-color: transparent; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpis .card { padding: 16px; }
.kpis b { display: block; font: 800 1.8rem var(--font-head); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.bars div { flex: 1; background: var(--grad-rose); border-radius: 8px 8px 0 0; min-height: 3px; transform-origin: bottom; animation: grow .8s var(--ease-bounce) both; }
.bars div:nth-child(even) { background: var(--grad-lav); }
@keyframes grow { from { transform: scaleY(0); } }
.inline-form { display: inline; }
.switch { position: relative; width: 52px; height: 30px; display: inline-block; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .35s var(--ease-bounce); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(22px); }

/* ===== Room v2: phone-first game screen ===== */
.room { padding-top: 2px; padding-bottom: 96px; }
.is-room .foot { display: none; }
.room-top .grow { flex: 1; }
.conn { width: auto; }
.player .who { min-width: 0; flex: 1; }
.player .pts { font: 800 1.35rem var(--font-head); color: var(--rose); padding: 0 4px; }
.player.s1 .pts { color: var(--lav); }
.link-btn { all: unset; cursor: pointer; font-weight: 800; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.invite-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.lobby-foot { margin-top: 16px; }
.game-pick button span { display: block; font-size: .92rem; line-height: 1.2; }
.game-pad { max-width: 560px; margin: 0 auto; }

/* bottom sheet + floating chat button (phones / tablets) */
.fab, .sheet-head, .sheet-backdrop { display: none; }
@media (max-width: 920px) {
  .is-room .top { padding: 6px 0; }
  .is-room .top .bar { height: 54px; }
  .is-room .brand img { width: 38px; height: 34px; }
  .is-room .brand b { font-size: 1.25rem; }
  .room-top { flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; }
  .room-top .lbl { display: none; }
  .room-top .btn.sm { min-height: 38px; width: 40px; padding: 0; }
  .room-top .icon-btn { width: 38px; height: 38px; }
  .room-code { font-size: .92rem; padding: 6px 10px; letter-spacing: .14em; border-width: 1.5px; }
  .conn::before { width: 10px; height: 10px; }
  .players { gap: 6px; margin-bottom: 8px; }
  .player { padding: 5px 8px 5px 5px; gap: 7px; border-radius: 18px; border-width: 2px; }
  .player.right { padding: 5px 5px 5px 8px; }
  .player .av { width: 36px; height: 36px; }
  .player .nm { font-size: .9rem; }
  .player .st { font-size: .7rem; }
  .player .pts { font-size: 1.15rem; }
  .player.turn { transform: none; box-shadow: 0 0 0 4px var(--rose-soft); }
  .player.s1.turn { box-shadow: 0 0 0 4px var(--lav-soft); }
  .vs { width: 30px; height: 30px; font-size: .8rem; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--card); border-radius: 26px 26px 0 0; padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 78svh; overflow-y: auto; transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -16px 40px rgba(59, 35, 64, .25); }
  .side.open { transform: none; }
  .side .card { box-shadow: none; border: 0; padding: 10px 0; background: none; }
  .side .card + .card { margin-top: 0; border-top: 1px dashed var(--line); }
  .sheet-head { display: flex; justify-content: center; align-items: center; position: sticky; top: -6px; background: var(--card); padding: 6px 0; z-index: 1; }
  .sheet-head .handle { width: 46px; height: 5px; border-radius: 3px; background: var(--line); }
  .sheet-head .icon-btn { position: absolute; right: 0; width: 34px; height: 34px; }
  .side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .side-actions form { margin: 0 !important; }
  .chat-log { height: 180px; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 74; background: rgba(30, 15, 35, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet-backdrop.on { opacity: 1; pointer-events: auto; }
  .fab { display: inline-flex; align-items: center; gap: 6px; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; border: 0; cursor: pointer; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--card); color: var(--ink); font: 900 .95rem var(--font); box-shadow: 0 10px 26px -8px rgba(59, 35, 64, .4), inset 0 0 0 1.5px var(--line); }
  .fab img { width: 30px; height: 30px; }
  .fab .badge { position: absolute; top: -4px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rose); color: #fff; font-size: .75rem; display: grid; place-items: center; animation: pop .4s var(--ease-bounce); }
  .toast { bottom: 84px; }
  .ludo-wrap { max-width: min(520px, calc(100svh - 270px)); min-width: 0; }
  .ludo { border-width: 4px; border-radius: 20px; }
  .dice-row { margin: 10px 0 2px; }
  .dice-btn { width: 70px; height: 70px; }
  .cube .f1 { transform: translateZ(35px); } .cube .f6 { transform: rotateY(180deg) translateZ(35px); }
  .cube .f2 { transform: rotateY(90deg) translateZ(35px); } .cube .f5 { transform: rotateY(-90deg) translateZ(35px); }
  .cube .f3 { transform: rotateX(90deg) translateZ(35px); } .cube .f4 { transform: rotateX(-90deg) translateZ(35px); }
  .cube .face { padding: 11px; }
  .status-line { font-size: 1.02rem; margin: 2px 0 8px; }
  .lobby { padding: 18px 14px; }
  .lobby h2 { font-size: 1.45rem; }
  .game-pick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-pick button { padding: 8px 4px 10px; border-radius: 18px; border-width: 2px; }
  .game-pick button img { width: 58px; height: 58px; }
  .game-pick button span { font-size: .78rem; }
}
@media (min-width: 921px) { .side { position: sticky; top: 96px; } }

/* game-over pop-up */
.over-modal { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 16px; background: rgba(30, 15, 35, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.over-modal .over-card { width: 100%; max-width: 400px; padding: 26px 22px; }
.over-modal.peek { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; place-items: end center; pointer-events: none; }
.over-modal.peek .over-card { pointer-events: auto; padding: 12px; max-width: 360px; }
.over-modal.peek .over-card > :not(.over-btns) { display: none; }
.over-modal.peek [data-look] { display: none; }
.over-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.over-score { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 4px 0 10px; font: 800 1.6rem var(--font-head); }
.over-score span { display: inline-flex; align-items: center; gap: 8px; }
.over-score i { font-style: normal; color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } }

/* tic-tac-toe + connect four touches */
.ttt.my-turn button:not(:disabled) { border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); }
.ttt button img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.c4-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 470px; margin: 0 auto 6px; padding: 0 12px; }
.c4-cols button { all: unset; cursor: pointer; height: 22px; border-radius: 0 0 50% 50%; background: var(--line); opacity: .35; transition: opacity .2s, transform .2s; }
.c4-cols.on button { opacity: 1; background: var(--rose); animation: hopIdle2 1.2s ease-in-out infinite; }
.c4-cols.on.p1 button { background: var(--sunny); }
.c4-cols button:nth-child(2n) { animation-delay: .15s; }
@keyframes hopIdle2 { 50% { transform: translateY(3px); } }
.mem button .front img { width: 82%; }

/* quiz */
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.q-about { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.q-about .av { width: 32px; height: 32px; }
.q-card { background: var(--card); border-radius: var(--r); padding: 20px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.q-card h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); text-align: center; margin-bottom: 16px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px 12px; min-height: 92px; border-radius: 18px; background: var(--card-2); border: 2px solid var(--line); font-weight: 800; line-height: 1.3; transition: transform .2s, border-color .2s, background .2s; }
.q-opt .l { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--lav-soft); color: var(--lav); }
.q-opt:not(:disabled):hover { transform: translateY(-2px); border-color: var(--rose); }
.q-opt.picked { border-color: var(--rose); background: var(--rose-soft); }
.q-opt:disabled { cursor: default; }
.q-card.reveal .q-opt { opacity: .55; }
.q-card.reveal .q-opt.is-answer, .q-card.reveal .q-opt.is-guess { opacity: 1; }
.q-opt.is-answer { border-color: var(--mint); background: var(--mint-soft); }
.q-opt.is-guess:not(.is-answer) { border-color: var(--rose); background: var(--rose-soft); animation: shake .45s ease; }
.q-opt .tag { position: absolute; top: -10px; right: -6px; }
.q-opt .tag.guess { right: 26px; }
.q-opt .tag .av { width: 30px; height: 30px; box-shadow: 0 0 0 3px var(--card); }
.q-next { text-align: center; }
.q-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 2px auto 12px; max-width: 260px; }
.q-bar i { display: block; height: 100%; background: var(--grad-rose); transform-origin: left; animation: qbar 6s linear forwards; }
@keyframes qbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* truth or dare */
.td-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.td-choice { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; border-radius: 24px; padding: 18px 10px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); transition: transform .25s var(--ease-bounce); }
.td-choice img { width: 84px; height: 84px; }
.td-choice b { font: 800 1.6rem var(--font-head); }
.td-choice span { font-weight: 700; opacity: .9; font-size: .85rem; }
.td-choice.truth { background: var(--grad-lav); }
.td-choice.dare { background: var(--grad-rose); }
.td-choice:not(:disabled):hover { transform: translateY(-4px) rotate(-1.5deg); }
.td-choice:disabled { opacity: .55; cursor: default; filter: saturate(.7); }
.td-last { margin-top: 14px; font-weight: 700; }
.td-card { position: relative; border-radius: 26px; padding: 34px 22px 30px; color: #fff; text-align: center; box-shadow: var(--shadow); animation: cardIn .6s var(--ease-bounce); margin-bottom: 14px; }
.td-card.truth { background: var(--grad-lav); }
.td-card.dare { background: var(--grad-rose); }
.td-card p { font: 800 clamp(1.25rem, 5.4vw, 1.6rem)/1.3 var(--font-head); margin: 10px 0 0; }
.td-kind { display: inline-block; background: rgba(255, 255, 255, .22); padding: 5px 14px; border-radius: 999px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
@keyframes cardIn { from { transform: rotateY(90deg) scale(.8); opacity: 0; } }
.td-judge { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }

/* doodle */
.dd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dd-word { font: 800 1.1rem var(--font-head); text-align: center; flex: 1; }
.dd-word span { color: var(--rose); }
.dd-word .hint { color: var(--ink); letter-spacing: .12em; }
.dd-word small { color: var(--muted); font: 700 .78rem var(--font); }
.dd-time { font: 800 1.1rem var(--font-head); color: var(--lav); min-width: 42px; text-align: right; }
.dd-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.dd-bar i { display: block; height: 100%; background: var(--grad-lav); transform-origin: left; transition: transform .25s linear; }
.dd-bar.low i { background: var(--grad-rose); }
.dd-canvas { position: relative; }
.dd-canvas canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); border: 3px solid var(--line); touch-action: none; }
.dd-canvas canvas.can-draw { border-color: var(--rose); cursor: crosshair; }
.dd-reveal { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; background: rgba(255, 255, 255, .86); border-radius: 22px; animation: fadeIn .3s; color: #3B2340; }
.dd-reveal[hidden] { display: none; }
.dd-reveal img { width: 110px; animation: jelly 1.2s var(--ease-bounce) infinite; }
.dd-reveal b { font: 800 1.6rem var(--font-head); }
.dd-reveal span { font-weight: 800; }
.dd-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; }
.dd-tools[hidden] { display: none; }
.dd-tools .sw { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); display: grid; place-items: center; color: #8C6F8F; transition: transform .15s; }
.dd-tools .sw.on { transform: scale(1.18); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--rose); }
.dd-tools .sw .i { width: 14px; height: 14px; }
.dd-tools .sz { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.dd-tools .sz i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--ink); }
.dd-tools .sz.on { box-shadow: inset 0 0 0 2px var(--rose); }
.dd-tools .sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.tool-btn { all: unset; cursor: pointer; font-weight: 800; font-size: .82rem; padding: 7px 12px; border-radius: 999px; background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.tool-btn:hover { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-deep); }
.dd-guess form { display: flex; gap: 8px; margin-top: 10px; }
.dd-guess input { padding: 12px 14px; }
.dd-guess .btn { width: 50px; padding: 0; flex: none; }
.dd-feed { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.dd-feed .gs { padding: 4px 11px; border-radius: 999px; background: var(--bg2); font-weight: 800; font-size: .85rem; text-decoration: line-through; color: var(--muted); animation: pop .3s var(--ease-bounce); }
.dd-feed .gs.ok { background: var(--mint-soft); color: #14876A; text-decoration: none; }

/* header menu button sits on the right even without the theme toggle */
@media (max-width: 820px) {
  .top .bar > .menu-btn { margin-left: auto; }
  .top .bar > .theme + .menu-btn { margin-left: 0; }
}

/* ===== Dashboard ===== */
.dash { padding-bottom: 20px; }
.dash-hero { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.dash-hero h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0; }
.dash-hero p { margin: 2px 0 0; font-weight: 700; }
.dash-hero .grow { flex: 1; min-width: 0; }
.quick { grid-template-columns: 1fr 1fr; gap: 14px; }
.quick .action-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; }
.quick .action-card img { width: 92px; height: 92px; margin: 0; }
.quick .action-card h2 { font-size: 1.25rem; margin: 0; }
.quick .action-card p { margin: 0; font-weight: 600; font-size: .9rem; }
.quick .code-input { font-size: 1.2rem; padding: 10px 6px 10px 14px; }
.dash-sec { margin-top: 30px; }
.dash-sec > h2, .h-row { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.h-row { font-size: 1.2rem; }
.h-row .more { margin-left: auto; font: 800 .88rem var(--font); }
.room-card { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; transition: transform .2s; }
.room-card:hover { transform: translateY(-3px); }
.room-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.room-card .muted { font-size: .85rem; font-weight: 600; }
.dash-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dash-games form { margin: 0; }
.dg { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px 16px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-bounce), border-color .2s; }
.dg img { width: 96px; height: 96px; transition: transform .4s var(--ease-bounce); }
.dg b { font: 800 1.02rem/1.2 var(--font-head); }
.dg span { font-size: .78rem; font-weight: 800; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.dg:hover { transform: translateY(-4px); border-color: var(--rose); }
.dg:hover img { transform: scale(1.1) rotate(-6deg); }
.dg:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
.stats4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-two { margin-top: 30px; }
.dash-two .list li > img { width: 40px; height: 40px; }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .dash-hero { margin-top: 6px; }
  .dash-hero .av.lg { width: 64px; height: 64px; }
  .quick { gap: 10px; }
  .quick .action-card { padding: 14px 10px; }
  .quick .action-card img { width: 70px; height: 70px; }
  .quick .action-card h2 { font-size: 1.05rem; }
  .quick .action-card p { display: none; }
  .dash-games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dg img { width: 78px; height: 78px; }
  .stats4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Voice chat ===== */
.voice-btn { --c1: #45D9B2; --c2: #22B78F; --glow: rgba(34, 183, 143, .35); }
.voice-btn.on { --c1: #FF6F98; --c2: #F2477C; --glow: rgba(242, 71, 124, .38); }
.voice-btn.ring { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 183, 143, .5); } 50% { box-shadow: 0 0 0 10px rgba(34, 183, 143, 0); } }
.voice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border-radius: 18px; padding: 8px 10px 8px 14px; margin-bottom: 8px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: .9rem; animation: pop .35s var(--ease-bounce); }
.voice-bar[hidden] { display: none; }
.voice-bar .vb-text { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 8px; }
.voice-bar .vb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sunny); flex: none; }
.voice-bar.live .vb-dot { background: var(--mint); animation: beat 1.6s infinite; }
.voice-bar small { display: block; font-weight: 700; color: var(--muted); font-size: .75rem; }
.voice-bar .btn.sm { min-height: 36px; }
.voice-bar.invite { box-shadow: inset 0 0 0 2px var(--mint); }
.player .mic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: #fff; margin-left: 4px; vertical-align: -4px; }
.player .mic .i { width: 12px; height: 12px; stroke-width: 2.6; }
.player .mic.muted { background: var(--muted); }
.player.speaking .av { box-shadow: 0 0 0 3px var(--mint), 0 0 18px var(--mint); }
.over-links { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }

/* fixes */
.fab .badge[hidden] { display: none; }
@media (max-width: 920px) {
  .voice-bar { padding: 6px 6px 6px 12px; gap: 6px; flex-wrap: nowrap; }
  .voice-bar .vb-text { min-width: 0; font-size: .82rem; line-height: 1.25; }
  .voice-bar small { display: none; }
  .voice-bar .btn.sm { min-height: 36px; padding: 0 12px; font-size: .82rem; flex: none; }
}

/* "you two write it" games: quiz + truth or dare */
.q-card .muted.center { margin: -8px 0 12px; font-weight: 600; font-size: .9rem; }
.q-kicker { display: block; text-align: center; font-weight: 900; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.write-box { display: flex; flex-direction: column; gap: 10px; }
.write-box label { margin: 0; }
.write-box textarea { min-height: 76px; resize: none; font-size: 16px; }
.write-box input { font-size: 16px; }
.ans-label { display: flex; align-items: center; gap: 6px; color: var(--lav); }
.ideas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: -2px 0 2px; }
.ideas::-webkit-scrollbar { display: none; }
.ideas span { flex: none; font-size: .78rem; font-weight: 800; color: var(--muted); align-self: center; }
.ideas button { all: unset; flex: none; cursor: pointer; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--lav-soft); color: var(--lav); }
.ideas button:hover { background: var(--lav); color: #fff; }
.wait-card { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; padding: 22px 16px; border-radius: var(--r); background: var(--card); border: 1.5px dashed var(--line); margin: 12px 0; }
.wait-card p { margin: 0; font-weight: 800; }
.wait-card .av { width: 44px; height: 44px; animation: bob 2.4s ease-in-out infinite; }
.say { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; animation: pop .4s var(--ease-bounce); }
.say .av { width: 36px; height: 36px; flex: none; }
.say p { margin: 0; background: var(--bg2); padding: 10px 14px; border-radius: 4px 18px 18px 18px; font-weight: 700; word-break: break-word; }
.say.answer p { background: var(--mint-soft); }
.say.guess p { background: var(--lav-soft); }
.say.guess.no p { text-decoration: line-through; text-decoration-color: rgba(232, 69, 122, .6); }
.secret { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--muted); margin: 6px 0; }
.secret b { color: var(--ink); }
.judge-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.verdict { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; font: 800 1.15rem var(--font-head); }
.verdict img { width: 54px; height: 54px; animation: jelly 1.2s var(--ease-bounce) infinite; }
.td-h { font-size: 1.5rem; margin: 6px 0 14px; }
.td-last { text-align: center; font-weight: 800; color: var(--muted); background: var(--card); border-radius: 999px; padding: 6px 14px; margin: 0 auto 12px; width: fit-content; box-shadow: inset 0 0 0 1.5px var(--line); }
.td-card { padding: 26px 18px 22px; }
.own-word { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.own-word[hidden] { display: none; }
.own-word input { padding: 10px 12px; }

.dd-tools { flex-direction: column; gap: 8px; }
.dd-tools .tool-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; }
.hist li > img { width: 44px; height: 44px; flex: none; }
.hist .grow { display: flex; flex-direction: column; min-width: 0; }
.hist .muted { font-size: .85rem; font-weight: 600; }
.dash-games { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 820px) { .auth-art .fh { display: none; } }
@media (max-width: 640px) { .dash-games { grid-template-columns: repeat(2, 1fr); } }
