:root{--ink:#1a1033;--bg:#6c3cf0;--bg-dark:#4b22c4;--white:#ffffff;--muted:#5b5470;--soft:#f3eeff;--line:#ede7ff;--yellow:#ffd23f;--pink:#ff6fa8;--blue:#5aa9ff;--green:#3ddc97;--orange:#ff9f43;--red:#ff4d6d;--mint:#d9fbea;--radius:24px;--shadow:6px 6px 0 var(--ink);--font-display:"Fredoka",system-ui,sans-serif;--font-body:"Inter",system-ui,sans-serif}*{box-sizing:border-box}body,html{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased}button,input{font-family:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.page{min-height:100vh;padding:24px 16px 40px}.wrap{max-width:1240px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.logo{font-family:var(--font-display);font-weight:700;font-size:34px;color:var(--white);letter-spacing:-.5px;margin:0}.logo span{color:var(--yellow)}.header-right{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.lang{display:flex;border:3px solid var(--ink);border-radius:999px;overflow:hidden;background:var(--bg-dark)}.lang button{border:0;background:transparent;color:var(--white);font-weight:800;font-size:14px;padding:8px 14px;min-height:40px}.lang button[aria-pressed=true]{background:var(--white);color:var(--ink)}.card{background:var(--white);border:4px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.chip{gap:6px;border:2px solid var(--ink);border-radius:999px;padding:4px 12px;font-size:13px;white-space:nowrap}.btn,.chip{display:inline-flex;align-items:center;font-weight:800}.btn{justify-content:center;gap:8px;border:3px solid var(--ink);border-radius:16px;box-shadow:4px 4px 0 var(--ink);padding:0 22px;min-height:56px;font-size:17px;background:var(--green);color:var(--ink);transition:transform .08s ease,box-shadow .08s ease}.btn:active:not(:disabled){transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}.btn-yellow{background:var(--yellow)}.btn-white{background:var(--white)}.btn-big{min-height:64px;font-size:20px;width:100%}.ad{border:3px dashed var(--white);border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--white);text-align:center}.ad strong{font-size:15px}.ad span{font-size:13px}.lobby{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;justify-content:center}.lobby-card{flex:1 1 520px;max-width:640px;gap:22px;padding:28px}.lobby-card,.lobby-hero{display:flex;flex-direction:column}.lobby-hero{text-align:center;gap:8px}.lobby-emojis{font-size:64px;letter-spacing:10px;line-height:1.1}.lobby-hero p{margin:0;font-size:18px;font-weight:600}.field{display:flex;flex-direction:column;gap:8px}.field-label{font-weight:800;font-size:15px}.text-input{height:56px;border:3px solid var(--ink);border-radius:16px;padding:0 16px;font-size:18px;background:var(--white);width:100%}.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.mode-btn{border:3px solid var(--ink);border-radius:18px;padding:14px;text-align:left;background:var(--white);display:flex;flex-direction:column;gap:4px;min-height:84px;box-shadow:3px 3px 0 var(--ink)}.mode-btn strong{font-family:var(--font-display);font-size:24px}.mode-btn span{font-size:14px;font-weight:600;color:var(--muted)}.mode-btn[aria-pressed=true].normal{background:var(--green)}.mode-btn[aria-pressed=true].adult{background:var(--pink)}.mode-btn[aria-pressed=true] span{color:var(--ink)}.confirm{display:flex;gap:12px;align-items:flex-start;background:#fff0f6;border:3px solid var(--ink);border-radius:16px;padding:14px;font-weight:700;font-size:15px}.confirm input{width:24px;height:24px;margin:0;flex-shrink:0;accent-color:var(--ink)}.times{display:flex;flex-wrap:wrap;gap:10px}.time-btn{min-width:64px;min-height:48px;border:3px solid var(--ink);border-radius:14px;background:var(--white);font-weight:800;font-size:16px}.time-btn[aria-pressed=true]{background:var(--yellow);box-shadow:3px 3px 0 var(--ink)}.lobby-actions{display:flex;flex-direction:column;gap:12px}.soon-badge{background:var(--white);border:2px solid var(--ink);border-radius:999px;padding:2px 8px;font-size:12px}.lobby-side{flex:0 1 300px;display:flex;flex-direction:column;gap:16px}.lobby-side .ad{height:250px}.game{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.game-main{flex:999 1 560px;flex-direction:column}.game-main,.game-side{min-width:0;display:flex;gap:20px}.game-side{flex:1 1 300px;flex-direction:column}.game-side .ad{height:250px}.timer-row{gap:18px}.timer-circle,.timer-row{display:flex;align-items:center}.timer-circle{width:92px;height:92px;flex-shrink:0;border-radius:50%;border:4px solid var(--ink);box-shadow:4px 4px 0 var(--ink);justify-content:center;font-family:var(--font-display);font-weight:700;font-size:48px;background:var(--yellow);transition:background .2s}.timer-circle.danger{background:var(--red)}.timer-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:10px}.timer-labels{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:var(--white);font-weight:700;font-size:15px}.timer-track{height:22px;background:var(--bg-dark);border:3px solid var(--ink);border-radius:999px;overflow:hidden}.timer-fill{height:100%;background:var(--yellow);border-right:3px solid var(--ink);transition:width .1s linear,background .2s}.timer-fill.danger{background:var(--red)}.puzzle{display:flex;flex-direction:column;align-items:center;gap:22px;padding:32px 24px;border-radius:28px;box-shadow:8px 8px 0 var(--ink);position:relative}.puzzle-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.puzzle-emojis{font-size:124px;line-height:1.05;letter-spacing:18px;text-align:center;word-break:break-word}.slots{gap:8px;flex-wrap:wrap}.slot,.slots{display:flex;justify-content:center}.slot{width:46px;height:54px;border:3px solid var(--ink);border-radius:12px;background:var(--soft);align-items:center;font-family:var(--font-display);font-weight:700;font-size:26px;text-transform:uppercase}.slot.revealed{background:var(--yellow)}.reveal{text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center}.reveal-title{font-family:var(--font-display);font-weight:700;font-size:32px;margin:0}.reveal-answer{font-size:20px;font-weight:700;margin:0}.reveal.correct .reveal-title{color:#0b7a4b}.reveal.timeout .reveal-title{color:#c2183d}.points-pop{font-family:var(--font-display);font-weight:700;font-size:28px;background:var(--green);border:3px solid var(--ink);border-radius:999px;padding:4px 16px}.guesses{gap:14px;padding:16px}.feed,.guesses{display:flex;flex-direction:column}.feed{gap:8px;height:150px;overflow-y:auto}.feed-empty{color:var(--muted);font-weight:600;margin:auto 0;text-align:center}.feed-row{display:flex;align-items:center;gap:8px;font-size:16px;padding:2px 4px}.dot{width:12px;height:12px;border-radius:50%;border:2px solid var(--ink);flex-shrink:0;background:var(--yellow)}.feed-name{font-weight:800}.feed-system{background:var(--mint);border:2px solid var(--ink);border-radius:12px;padding:8px 12px;font-weight:700;font-size:15px}.guess-form{display:flex;gap:10px}.guess-input{flex:1 1;min-width:0;height:58px;border:3px solid var(--ink);border-radius:16px;padding:0 18px;font-size:18px;background:var(--white)}.guess-input.shake{animation:shake .3s}@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}.players{display:flex;flex-direction:column;gap:10px}.players-head{display:flex;justify-content:space-between;align-items:baseline}.players-head h2{margin:0;font-family:var(--font-display);font-weight:700;font-size:26px}.players-head span{font-weight:700;font-size:14px;color:var(--muted)}.player{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;border:3px solid var(--line);background:var(--white)}.player.me{border-color:var(--ink);background:#fff6d1}.logo-btn{background:none;border:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit}.logo-btn span{color:var(--yellow)}.lobby-card.wide{max-width:none}.room-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.room-code{display:inline-block;background:var(--white);border:3px solid var(--ink);border-radius:999px;padding:8px 16px;font-family:var(--font-display);font-weight:700;font-size:22px;letter-spacing:1px;align-self:center}.hint{margin:0;font-size:15px;font-weight:600;color:var(--muted)}.hint.strong{color:var(--ink);font-weight:800;text-align:center;font-size:17px}.message-title{font-family:var(--font-display);font-weight:700;font-size:26px;margin:8px 0}.quit-btn.dark{color:var(--ink);align-self:center}.ranking{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:10px}.ranking li{display:flex;align-items:center;gap:12px;padding:10px 14px;border:3px solid var(--line);border-radius:16px;text-align:left}.ranking li:first-child{background:var(--yellow);border-color:var(--ink)}.ranking li.me{border-color:var(--ink)}.rank{font-family:var(--font-display);font-weight:700;font-size:22px;width:24px}.ranking-name{flex:1 1;min-width:0;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking-name,.ranking-score{font-weight:800}.avatar{width:44px;height:44px;flex-shrink:0;border-radius:50%;border:3px solid var(--ink);background:var(--yellow);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:18px;text-transform:uppercase}.player-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}.player-name{font-weight:800;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-score{font-size:13px;font-weight:600;color:var(--muted)}.quit-btn{align-self:flex-start;background:transparent;border:0;color:var(--white);font-weight:700;text-decoration:underline;padding:8px 0;min-height:44px}.end{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;align-items:flex-start}.end-card{flex:1 1 480px;max-width:600px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;padding:32px 24px}.end-card h2{font-size:40px;margin:0}.end-card h2,.end-score{font-family:var(--font-display)}.end-score{font-weight:700;font-size:72px;line-height:1}.end-meta{font-size:18px;font-weight:700;margin:0}.end-actions{display:flex;flex-direction:column;gap:12px;width:100%}@media (max-width:640px){.page{padding:16px 16px 32px}.logo{font-size:28px}.puzzle{padding:22px 14px}.puzzle-emojis{font-size:84px;letter-spacing:10px}.slot{width:36px;height:44px;font-size:20px}.timer-circle{width:64px;height:64px;font-size:34px}.feed{height:120px}.lobby-card{padding:20px}.lobby-emojis{font-size:48px}.game-side .ad,.lobby-side .ad{height:60px}}.player-tools{display:flex;gap:4px}.icon-btn{width:40px;height:40px;border:2px solid var(--line);border-radius:12px;background:var(--white);display:flex;align-items:center;justify-content:center;color:var(--muted);padding:0}.icon-btn:hover{border-color:var(--ink);color:var(--ink)}.icon-btn.on{background:var(--ink);color:var(--white);border-color:var(--ink)}.sound-btn{width:46px;height:46px;border:3px solid var(--ink);border-radius:999px;background:var(--white);display:flex;align-items:center;justify-content:center;color:var(--ink);padding:0}.sound-btn[aria-pressed=false]{background:var(--bg-dark);color:var(--white)}.ad-real{min-height:100px;background:transparent}@keyframes pop-in{0%{transform:scale(.4) rotate(-6deg);opacity:0}70%{transform:scale(1.08) rotate(2deg);opacity:1}to{transform:scale(1) rotate(0)}}@keyframes bounce-in{0%{transform:scale(.3)}60%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes slide-in{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}.puzzle-emojis{animation:pop-in .4s ease-out both}.points-pop,.reveal-title{animation:bounce-in .35s ease-out both}.slot.revealed{animation:bounce-in .3s ease-out both}.feed-row,.feed-system{animation:slide-in .2s ease-out both}.timer-circle.danger{animation:pulse .5s ease-in-out infinite alternate}@keyframes pulse{to{transform:scale(1.08)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important}}.footer{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:8px 0 0}.footer a{color:var(--white);font-weight:600;font-size:14px;text-decoration:underline;text-underline-offset:3px;opacity:.9;padding:10px 2px}.footer a:hover{opacity:1}.legal{max-width:820px;margin:0 auto;padding:32px;display:flex;flex-direction:column;gap:6px;line-height:1.6;font-size:16px}.legal h2{font-family:var(--font-display);font-size:34px;margin:0 0 8px}.legal h3{font-size:19px;margin:18px 0 2px}.legal p,.legal ul{margin:4px 0}.legal ul{padding-left:22px}.legal a{color:#4b22c4;font-weight:700}.legal .todo{background:#fff0b3;padding:0 4px;border-radius:4px}.legal-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.back-link{color:var(--white);font-weight:800;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:44px}@media (max-width:640px){.legal{padding:20px}.legal h2{font-size:28px}.slots{gap:5px}.slot{width:30px;height:38px;font-size:18px;border-radius:9px}.game{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:16px}.game-side{display:contents}.game-side .players{order:-1}.game-main{order:0;gap:16px}.game-side .ad,.game-side .ad-real{order:1}.players{flex-direction:row;overflow-x:auto;padding:10px;gap:8px;border-width:3px;box-shadow:4px 4px 0 var(--ink)}.players-head{display:none}.player{flex:0 0 auto;flex-direction:column;align-items:center;width:96px;padding:8px 4px;gap:4px;text-align:center}.player .avatar{width:38px;height:38px;font-size:16px}.player-info{align-items:center}.player-name{font-size:13px;max-width:86px}.player-score{font-size:12px}.player .chip{font-size:11px;padding:2px 8px}.player-tools{gap:2px}.icon-btn{width:36px;height:36px}}.puzzle-clue{font-family:var(--font-display);font-weight:600;font-size:34px;line-height:1.25;text-align:center;max-width:640px;margin:4px 0;animation:pop-in .4s ease-out both}.puzzle-clue:before{content:"“";color:var(--bg)}.puzzle-clue:after{content:"”";color:var(--bg)}@media (max-width:640px){.puzzle-clue{font-size:24px}}.puzzle-emojis.has-words{letter-spacing:0;word-spacing:8px}