@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#11131d;--panel:#1b1e2b;--edge:#2b2e40;--text:#f4f3fa;--muted:#a0a2b8;--purple:#b8a5fc;--green:#c6f48b;--ink:#212431}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Rubik,Arial,sans-serif;font-size:15px;min-height:100vh}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button{transition:background .15s,transform .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(1.07)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--purple);outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.hidden{display:none!important}.ambient{position:fixed;pointer-events:none;z-index:-1;inset:0;background:radial-gradient(ellipse at 78% 28%,#3c315d22,transparent 48%),radial-gradient(ellipse at 15% 80%,#6b4f8c0d,transparent 45%)}.header{height:100px;max-width:1360px;padding:0 50px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0b}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:900;font-size:36px;letter-spacing:-2px;line-height:1}.brand-dot{color:var(--green)}.brand-symbol{background:var(--purple);border-radius:12px;width:39px;height:39px;display:grid;place-items:center;transform:rotate(6deg);color:#25213b}.brand-symbol svg{height:34px;width:34px;stroke-width:2.4}.header-note{color:var(--muted);font-size:13px;letter-spacing:.1px}.connection{display:flex;gap:8px;align-items:center;font-size:12px;color:#a6b2a4}.connection i,.live-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;box-shadow:0 0 12px #c6f43333}.connection.offline{color:#ffb4ae}.connection.offline i{background:#ffb4ae}.home{max-width:1190px;margin:0 auto;padding:65px 34px 55px;display:grid;grid-template-columns:1.15fr 1fr;gap:80px;align-items:start}.eyebrow{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;letter-spacing:.6px;color:var(--purple);margin-bottom:21px}.eyebrow span{width:20px;height:2px;background:var(--purple)}h1,h2,h3,p{margin:0}h1{font-size:clamp(40px,4.8vw,65px);line-height:1.15;font-weight:800;letter-spacing:-2.5px}em{font-style:normal;color:var(--purple)}.hero-copy{font-size:17px;line-height:1.85;color:var(--muted);margin-top:24px}.hero-meta{display:flex;gap:20px;color:var(--muted);font-size:12px;margin:27px 0}.hero-meta span+span{padding-right:20px;border-right:1px solid var(--edge)}.hero-meta b{font-weight:600;color:#e1dfea}.art-board{background:#f5f0e7;border-radius:20px;position:relative;width:90%;max-width:440px;margin:37px 10px 0 0;transform:rotate(-4deg);box-shadow:0 15px 70px #0002;isolation:isolate;overflow:visible;color:#76717e}.art-board:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#9995a84d 1px,transparent 1px);background-size:18px 18px;border-radius:20px;z-index:-1}.art-board>svg{width:100%;height:auto;display:block;padding:16px 0}.art-label{position:absolute;top:15px;right:20px;font-size:10px;color:#9d93a4}.art-answer{position:absolute;bottom:14px;left:20px;font-size:12px;color:#716a80}.floating-pencil{position:absolute;bottom:27px;left:-20px;background:var(--green);width:65px;height:65px;border:7px solid var(--bg);border-radius:19px;display:grid;place-items:center;color:#263623;transform:rotate(15deg)}.floating-pencil svg{width:32px;height:32px}.entry-card{background:linear-gradient(155deg,#242537,#1c1e2c 70%);border:1px solid #353447;border-radius:25px;padding:32px;box-shadow:0 25px 100px #0002;position:relative}.entry-card:before{content:'';position:absolute;top:-1px;right:25%;left:25%;height:1px;background:#c7b5fb99}.mini-label{color:var(--muted);font-size:11px;font-weight:500}.card-top h2{font-size:29px;letter-spacing:-.9px;margin:6px 0}.card-top p{font-size:12px;color:var(--muted)}.avatar-preview{height:130px;display:grid;place-items:center;margin:10px 0}.avatar-preview svg{width:112px;height:112px;filter:drop-shadow(0 9px 12px #0003)}.avatar-picker{display:flex;justify-content:center;gap:7px;margin:0 0 27px;direction:ltr}.avatar-option{padding:3px;width:35px;height:35px;border-radius:11px;background:#ffffff06;border:1px solid transparent;display:grid;place-items:center}.avatar-option svg{width:27px;height:27px}.avatar-option.selected{border-color:var(--purple);background:#b8a5fc1c}.entry-card>label{display:block;font-weight:500;font-size:12px;margin-bottom:8px}input{width:100%;min-width:0;background:#141621;border:1px solid #36374b;border-radius:10px;padding:12px 14px;outline:none;color:var(--text);height:47px;transition:border .2s}input::placeholder{color:#73768d}input:focus{border-color:var(--purple);box-shadow:0 0 0 3px #b8a5fc10}.primary{border:0;background:var(--purple);color:#211d32;border-radius:11px;min-height:48px;padding:11px 20px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px}.primary span{font-size:23px;font-weight:400;line-height:20px}.entry-card>.primary{margin-top:15px;width:100%}.separator{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:11px;color:#85889d}.separator:before,.separator:after{content:'';height:1px;background:var(--edge);flex:1}.join-row{display:flex;gap:10px}.join-row input{text-align:center;letter-spacing:3px;text-transform:uppercase;flex:1}.join-row input::placeholder{letter-spacing:0}.secondary{border:1px solid #3d3e52;background:#ffffff04;color:#e0dcea;border-radius:10px;padding:10px 20px;min-height:46px;font-weight:500}.card-footer{border-top:1px solid var(--edge);margin-top:22px;padding-top:19px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#808398}.card-footer svg{height:15px;width:15px}.error{font-size:12px;color:#ffb4ae;line-height:1.6;margin-top:10px}.error:empty{display:none}.footer{max-width:1260px;margin:0 auto;padding:24px 0;border-top:1px solid #ffffff09;display:flex;justify-content:space-between;color:#626679;font-size:11px}.room{max-width:1400px;margin:auto;padding:25px 40px 50px}.room-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.room-top>div:first-child{display:flex;align-items:center;gap:13px}.code-button{border:1px solid var(--edge);background:#ffffff03;padding:7px 12px;border-radius:9px;color:var(--text);display:flex;gap:12px;align-items:center;direction:ltr}.code-button b{letter-spacing:3px;font-size:15px;font-weight:600}.code-button svg{width:16px;height:16px;color:var(--muted)}.room-actions{display:flex;align-items:center;gap:15px}.pill{padding:6px 12px;border-radius:30px;border:1px solid var(--edge);font-size:12px;color:var(--muted)}.icon-button{background:none;border:0;color:var(--muted);width:40px;height:40px;display:grid;place-items:center;border-radius:9px}.panel{background:var(--panel);border:1px solid var(--edge);border-radius:18px}.lobby-layout{display:grid;grid-template-columns:1fr 330px;gap:24px;max-width:1160px;margin:25px auto}.lobby-main{padding:38px 42px;position:relative}.lobby-main h1{font-size:48px}.muted{color:var(--muted);font-size:14px;line-height:1.8}.lobby-main>.muted{margin:18px 0}.invite{display:flex;align-items:center;gap:12px;font-size:12px}.invite svg{width:17px;height:17px}.lobby-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:16px;margin:35px 0 25px;min-height:128px}.lobby-player{text-align:center}.lobby-player svg{width:76px;height:76px;margin-bottom:8px}.lobby-player h3{font-size:13px;font-weight:500;overflow-wrap:anywhere}.lobby-player small{font-size:10px;color:var(--purple);display:block;margin-top:4px}.empty-player{color:#585d76}.empty-player>div{width:76px;height:76px;border:1px dashed #3a3e56;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;font-size:30px;font-weight:400}.empty-player span{font-size:11px}.lobby-bottom{border-top:1px solid var(--edge);padding-top:25px}.settings{display:flex;gap:16px;margin-bottom:22px}.settings label{display:flex;flex:1;flex-direction:column;gap:7px;color:var(--muted);font-size:11px}select{color:var(--text);border:1px solid #383d52;background:#151824;border-radius:8px;padding:10px;cursor:pointer}.lobby-bottom .primary{width:100%}.small{font-size:11px;margin-top:9px;text-align:center}.how{padding:32px 28px}.how h2{font-size:30px;line-height:1.3;margin:15px 0 34px;letter-spacing:-.5px}.how-step{display:flex;gap:17px;margin-bottom:27px}.how-step>b{direction:ltr;font-size:13px;color:var(--purple);padding-top:3px}.how-step h3{font-size:14px;font-weight:600;margin-bottom:5px}.how-step p{font-size:12px;color:var(--muted);line-height:1.8}.tip{border-top:1px solid var(--edge);padding-top:23px;color:#ad9de5;font-size:12px;line-height:1.9}.game-layout{display:grid;grid-template-columns:200px minmax(350px,1fr) 260px;gap:16px;align-items:stretch}.players-panel{padding:16px 12px;display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 7px 17px;border-bottom:1px solid var(--edge)}.panel-heading h3{font-size:13px;font-weight:600}.panel-heading>span{font-size:11px;color:var(--muted)}.score-player{display:flex;align-items:center;gap:8px;padding:14px 5px;border-bottom:1px solid #ffffff06;border-radius:8px}.score-player.drawing{background:#b8a5fc10}.score-player.correct{background:#c6f48b0c}.rank{font-size:10px;color:#656a83;min-width:10px}.score-player svg{width:37px;height:37px}.player-info{flex:1;min-width:0}.player-info b{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info small{font-size:9px;color:var(--muted)}.score{color:var(--purple);font-size:13px;font-weight:600;direction:ltr}.scoring-note{font-size:10px;color:#6f758c;line-height:1.9;padding:20px 7px 0;margin-top:auto}.canvas-panel{min-width:0}.game-status{display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 10px 15px;gap:12px}.drawing-player{display:flex;align-items:center;gap:7px;max-width:28%;font-size:11px;color:var(--muted)}.drawing-player svg{width:32px;height:32px}.word-block{text-align:center;flex:1;min-width:0}.word-block span{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.word-block b{font-size:23px;line-height:1;letter-spacing:2px;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}.timer{width:45px;height:45px;border:3px solid var(--purple);border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:600;direction:ltr;flex-shrink:0}.timer.urgent{border-color:#ff9e92;color:#ff9e92}.canvas-wrap{position:relative;background:white;border-radius:13px;overflow:hidden;aspect-ratio:10/7;box-shadow:0 12px 40px #0002}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.canvas-badge{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);white-space:nowrap;pointer-events:none;font-size:11px;color:#c1beca;background:#fff9;padding:5px 10px;border-radius:20px}.toolbar{display:flex;align-items:center;gap:8px;justify-content:center;background:var(--panel);border:1px solid var(--edge);border-radius:12px;padding:11px 8px;margin-top:12px;min-height:61px;flex-wrap:wrap}.colors{display:flex;align-items:center;gap:5px;direction:ltr}.color{border:2px solid transparent;border-radius:50%;width:23px;height:23px;padding:0;position:relative}.color.active{outline:2px solid #fff;outline-offset:2px}.tool-divider{height:23px;width:1px;background:var(--edge);margin:0 3px}.tool{display:grid;place-items:center;color:#acb0c9;background:none;border:1px solid transparent;border-radius:6px;width:29px;height:31px;padding:3px}.tool.selected{color:var(--green);border-color:#c6f48b55}.tool svg{width:19px;height:19px}.toolbar select{padding:5px 4px;font-size:16px;height:31px}.guess-hint{text-align:center;font-size:11px;color:#7c819b;padding:18px 0 0}.chat-panel{display:flex;flex-direction:column;padding:17px 12px 10px;min-height:480px;max-height:650px}.messages{flex:1;overflow:auto;overflow-wrap:anywhere;word-break:break-word;min-width:0;padding:10px 2px;min-height:150px;scrollbar-width:thin;scrollbar-color:#41445c transparent}.msg{font-size:12px;line-height:1.65;padding:7px 9px;overflow-wrap:anywhere}.msg.chat b{font-weight:600;color:#cfc4f6;margin-left:6px}.msg.system{font-size:10px;color:#6f7891;padding:11px 9px}.msg.correct{background:#c6f48b12;border:1px solid #c6f48b20;border-radius:8px;color:var(--green);font-size:11px;margin:7px 0}.msg.reveal{background:#b8a5fc14;color:var(--purple);border-radius:8px;font-size:12px;margin:7px 0}.guess-form{position:relative;display:flex;gap:5px;margin-top:8px}.guess-form input{padding-left:42px;height:44px;font-size:16px}.guess-form button{position:absolute;left:5px;top:5px;width:34px;height:34px;border:0;background:var(--purple);color:#211d32;border-radius:7px;display:grid;place-items:center}.guess-form button svg{transform:scaleX(-1);width:19px;height:19px}.chat-hint{min-height:24px;padding:6px 4px 0;color:#848aa3;font-size:9px}.canvas-overlay{position:absolute;inset:0;background:#f9f8ffed;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ink);text-align:center;padding:25px}.canvas-overlay small{font-size:14px;color:#858193;margin-bottom:12px}.canvas-overlay strong{font-size:42px;color:#6861b8;margin-bottom:10px;letter-spacing:-1px}.canvas-overlay p{font-size:13px;color:#8f8b9d}.results{max-width:680px;padding:42px;margin:20px auto;text-align:center}.results .eyebrow{justify-content:center}.results h1{font-size:48px}.results #winnerAvatar svg{width:84px;height:84px;margin:16px 0 8px}.results h2{font-size:29px}.results .muted{font-size:12px;margin-top:8px}.final-scores{margin:25px 0}.final-score{display:flex;align-items:center;gap:13px;padding:14px;border-top:1px solid var(--edge);font-size:14px}.final-score svg{width:35px;height:35px}.final-score b{flex:1;text-align:right;font-weight:500}.final-score strong{color:var(--purple);direction:ltr}.results .primary{width:100%}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,30px);background:#e6e0fa;color:#282137;padding:12px 24px;border-radius:12px;font-size:13px;box-shadow:0 10px 50px #0005;opacity:0;pointer-events:none;transition:.2s;z-index:50;max-width:90%;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}
@media(min-width:1450px){.home{padding-top:80px;padding-bottom:80px}.game-layout{grid-template-columns:210px minmax(350px,1fr) 280px}}@media(max-width:1100px){.home{gap:40px;padding-top:45px}.header{padding:0 30px}.game-layout{grid-template-columns:155px minmax(300px,1fr) 220px;gap:10px}.room{padding:25px 20px}.colors{gap:4px}.color{width:21px;height:21px}.toolbar{gap:5px}.drawing-player{display:none}.footer{margin:0 30px}.lobby-layout{grid-template-columns:1fr 290px}}@media(max-width:850px){.game-layout{grid-template-columns:minmax(0,1fr) 245px}.players-panel{grid-column:1/-1;display:block;padding:10px}.players-panel .panel-heading,.scoring-note{display:none}#scoreboard{display:flex;overflow-x:auto;gap:8px}.score-player{min-width:130px;border:0;padding:4px}.score-player svg{width:30px;height:30px}.game-status{height:65px;padding-top:0}.chat-panel{min-height:420px}.home{gap:30px;padding-right:25px;padding-left:25px}h1{font-size:45px}.entry-card{padding:25px}.hero-meta{gap:10px}.hero-meta span+span{padding-right:10px}.lobby-layout{grid-template-columns:1fr 250px;gap:15px}.lobby-main{padding:30px}.how{padding:25px 20px}}@media(max-width:650px){.header{height:76px;padding:0 22px}.brand{font-size:30px}.brand-symbol{width:33px;height:33px;border-radius:10px}.brand-symbol svg{width:28px;height:28px}.header-note{display:none}.home{display:flex;flex-direction:column;gap:34px;padding:35px 22px 40px}.hero{width:100%;text-align:center}.hero .eyebrow{justify-content:center;font-size:10px;margin-bottom:16px}.hero h1{font-size:43px;line-height:1.17;letter-spacing:-1.5px}.hero h1 br:nth-child(2){display:none}.hero h1 em{display:block}.hero-copy{font-size:14px;line-height:1.7;margin-top:17px}.hero-copy br{display:none}.hero-meta{justify-content:center;font-size:10px;margin:19px 0 0;gap:16px}.hero-meta span+span{padding-right:16px}.art-board{display:none}.entry-card{width:100%;max-width:450px;margin:auto;padding:25px;border-radius:20px}.card-top h2{font-size:26px}.card-top p{font-size:11px}.avatar-preview{height:112px;margin-top:12px}.avatar-preview svg{width:100px;height:100px}.avatar-picker{margin-bottom:23px;gap:6px}.avatar-option{width:33px;height:33px}.avatar-option svg{width:26px;height:26px}.footer{margin:0 22px;padding:20px 0;font-size:10px}.footer span:last-child{display:none}.room{padding:17px 12px 30px}.room-top{margin-bottom:18px}.room-top>div:first-child{gap:8px}.room-top .mini-label{display:none}.room-actions{gap:6px}.pill{font-size:10px;padding:5px 10px}.code-button{padding:6px 10px}.code-button b{font-size:13px}.lobby-layout{display:flex;flex-direction:column;margin-top:15px}.lobby-main{padding:28px 23px}.lobby-main h1{font-size:39px}.lobby-main>.muted{font-size:12px}.lobby-players{gap:10px;margin:28px 0 20px;grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}.lobby-player svg,.empty-player>div{width:64px;height:64px}.how{padding:25px}.how h2{font-size:24px;margin:10px 0 24px}.how h2 br{display:none}.how-step{margin-bottom:20px}.how .tip{font-size:11px}.game-layout{display:flex;flex-direction:column;gap:10px}.players-panel{order:0;padding:7px;border-radius:11px}.score-player{min-width:118px;padding:3px}.score-player svg{width:29px;height:29px}.score{font-size:12px}.player-info b{font-size:11px}.canvas-panel{order:1}.game-status{height:62px;padding:4px 5px 12px}.word-block b{font-size:23px}.drawing-player{display:flex;font-size:10px;max-width:32%}.drawing-player svg{width:27px;height:27px}.timer{width:40px;height:40px;font-size:15px}.canvas-wrap{border-radius:10px}.canvas-badge{font-size:9px;bottom:8px}.toolbar{padding:10px 7px;gap:7px;margin-top:9px;min-height:56px}.colors{gap:6px}.color{width:23px;height:23px}.tool-divider{display:none}.tool{width:27px}.toolbar select{font-size:16px}.guess-hint{padding:9px 0;font-size:10px}.chat-panel{order:2;min-height:260px;height:300px;max-height:350px;padding:12px 11px 7px;border-radius:12px}.chat-panel .panel-heading{padding-bottom:10px}.messages{min-height:90px}.guess-form input{font-size:16px}.chat-hint{font-size:10px;min-height:20px}.results{padding:30px 20px}.results h1{font-size:39px}.canvas-overlay strong{font-size:34px}.settings select{font-size:16px}.entry-card input{font-size:16px}.connection{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media(max-width:850px){.score-player{flex-shrink:0}.player-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media(max-width:650px){.score-player{min-width:132px;max-width:132px}}
.loading-screen{position:fixed;inset:0;background:#11131d;z-index:1000;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .45s ease,visibility .45s ease}.loading-screen.loaded{opacity:0;visibility:hidden;pointer-events:none}.loading-mark{width:100px;height:100px;border-radius:28px;background:var(--purple);display:grid;place-items:center;box-shadow:0 0 90px #b8a5fc24;animation:float-mark 2.8s ease-in-out infinite}.loading-mark svg{width:78px;height:78px;stroke:#302745;stroke-width:4;stroke-dasharray:155;stroke-dashoffset:155;animation:draw-mark 2.5s ease-in-out infinite}.loading-screen h2{font-size:26px;margin-top:32px;letter-spacing:-.8px}.loading-screen p{font-size:12px;color:var(--muted);margin-top:11px}.loading-track{margin-top:28px;width:130px;height:3px;overflow:hidden;border-radius:4px;background:#292b40}.loading-track span{display:block;height:100%;width:40%;background:var(--purple);border-radius:4px;animation:loading-track 1.3s ease-in-out infinite}.loading-screen button{margin-top:32px;font-size:12px}.screen-enter{animation:screen-enter .45s cubic-bezier(.2,.7,.25,1) both}.lobby-player.player-arrive{animation:screen-enter .4s ease both}.msg{animation:message-enter .22s ease both}.score-player{transition:background .25s ease}.avatar-option:hover{transform:translateY(-3px)}.avatar-preview svg{animation:float-avatar 4s ease-in-out infinite}.entry-card{animation:screen-enter .65s ease both}.primary:hover:not(:disabled){box-shadow:0 5px 24px #b8a5fc28;transform:translateY(-1px)}.primary.is-loading{background:linear-gradient(110deg,#b8a5fc 30%,#d4c7ff 45%,#b8a5fc 60%);background-size:250% 100%;animation:button-load 1.5s infinite}.success-flash{animation:correct-flash 1s ease}.timer.urgent{animation:timer-pulse 1s ease-in-out infinite}.connection i{animation:live-pulse 3s ease-in-out infinite}@keyframes draw-mark{0%{stroke-dashoffset:155}55%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-155}}@keyframes loading-track{0%{transform:translateX(220%)}100%{transform:translateX(-320%)}}@keyframes screen-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes message-enter{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}@keyframes float-mark{50%{transform:translateY(-7px) rotate(3deg)}}@keyframes float-avatar{50%{transform:translateY(-4px)}}@keyframes live-pulse{50%{box-shadow:0 0 12px #c6f48b66}}@keyframes timer-pulse{50%{box-shadow:0 0 0 4px #ff9e9212}}@keyframes button-load{100%{background-position:-250% 0}}@keyframes correct-flash{30%{box-shadow:0 0 0 3px #c6f48b55}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.loading-mark svg{stroke-dashoffset:0}}
.loading-percent{margin-top:14px;color:var(--purple);font-size:11px;font-weight:500;direction:ltr;font-variant-numeric:tabular-nums}.loading-track{margin-top:24px}.entry-card .primary,.entry-card .join-row{animation:menu-pop .7s cubic-bezier(.2,.8,.25,1) both;animation-delay:.15s}.entry-card .join-row{animation-delay:.25s}.lobby-player.player-arrive:nth-child(2){animation-delay:.06s}.lobby-player.player-arrive:nth-child(3){animation-delay:.12s}.lobby-player.player-arrive:nth-child(4){animation-delay:.18s}.turn-intro{position:absolute;inset:0;display:grid;place-items:center;z-index:8;overflow:hidden}.intro-curtain{position:absolute;top:0;bottom:0;width:51%;background:#252338;box-shadow:0 0 30px #0003}.intro-curtain.right{right:0}.intro-curtain.left{left:0}.intro-active .intro-curtain.right{animation:curtain-right .45s ease-out both}.intro-active .intro-curtain.left{animation:curtain-left .45s ease-out both}.intro-card{z-index:1;display:flex;align-items:center;flex-direction:column;text-align:center;color:white;padding:20px;animation:intro-card .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:.2s}.intro-card #introAvatar svg{width:90px;height:90px;filter:drop-shadow(0 4px 20px #0003)}.intro-card #introLabel{font-size:13px;color:#b9b3cc;margin:15px 0 12px}.intro-card #introWord{font-size:37px;line-height:1.3;color:var(--purple);display:flex;justify-content:center;flex-wrap:wrap;max-width:90%}.intro-card #introWord span{display:inline-block;animation:letter-reveal .35s ease both}.intro-card #introCount{margin-top:23px;width:52px;height:52px;background:var(--green);color:#2a3423;border-radius:50%;display:grid;place-items:center;font-size:27px;font-weight:700;animation:countdown-pulse 1s ease infinite}.canvas-refresh canvas{animation:canvas-refresh .5s ease-out both}.celebration{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:70}.confetti-piece{position:absolute;top:30%;width:7px;height:13px;border-radius:2px;animation:confetti-fall 1.6s ease-out both}.flying-score{position:fixed;z-index:71;font-size:36px;font-weight:800;color:var(--green);text-shadow:0 3px 20px #0006;pointer-events:none;direction:ltr}.results{overflow:hidden;position:relative}.results:before{content:'';position:absolute;top:-200px;left:0;right:0;height:500px;pointer-events:none;background:radial-gradient(ellipse at 50% 30%,#b8a5fc1c,transparent 65%);animation:spotlight 3s ease-in-out infinite}.podium{display:flex;justify-content:center;align-items:flex-end;gap:12px;margin:30px 0 15px;min-height:210px}.podium-column{width:29%;max-width:135px;animation:podium-rise 1s cubic-bezier(.2,.8,.2,1) both}.podium-column.place-2{animation-delay:.2s}.podium-column.place-3{animation-delay:.35s}.podium-avatar svg{width:56px;height:56px;margin-bottom:7px}.podium-block{padding:14px 8px 17px;border-radius:12px 12px 0 0;background:linear-gradient(#39334e,#252333);border:1px solid #4f4569;border-bottom:0;display:flex;align-items:center;flex-direction:column;gap:4px;min-height:120px}.place-1 .podium-block{background:linear-gradient(#665391,#30283e);min-height:165px;border-color:#8b75bb}.place-3 .podium-block{min-height:90px}.podium-block>strong{font-size:28px;color:var(--purple)}.podium-block>b{font-size:13px;font-weight:500}.podium-block>small{font-size:10px;color:#b9afca}.place-1 .podium-avatar{position:relative}.place-1 .podium-avatar:before{content:'';position:absolute;inset:-15px 20px 0;background:radial-gradient(#c6f48b22,transparent 70%);z-index:-1}.final-scores{margin-top:15px}@keyframes menu-pop{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes curtain-right{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes curtain-left{from{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes intro-card{from{opacity:0;transform:scale(.9) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes letter-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes countdown-pulse{0%{transform:scale(.9);opacity:.8}40%,80%{transform:scale(1);opacity:1}100%{transform:scale(.9);opacity:.8}}@keyframes canvas-refresh{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-30px) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--drift),65vh) rotate(540deg)}}@keyframes podium-rise{from{opacity:0;transform:translateY(150px)}to{opacity:1;transform:translateY(0)}}@keyframes spotlight{50%{opacity:.55;transform:scale(1.1)}}@media(max-width:650px){.intro-card #introAvatar svg{width:55px;height:55px}.intro-card #introLabel{font-size:10px;margin:8px 0}.intro-card #introWord{font-size:25px}.intro-card #introCount{width:38px;height:38px;font-size:22px;margin-top:13px}.podium{gap:8px;min-height:190px}.podium-block>b{font-size:12px}.podium-block>small{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.loading-name{font-size:42px;font-weight:900;letter-spacing:-2px;margin-top:16px;color:transparent;-webkit-text-stroke:1px var(--purple);animation:logo-fill 2.5s ease-in-out infinite}.loading-name span{-webkit-text-stroke-color:var(--green)}.loading-screen h2{margin-top:10px;font-size:22px}@keyframes logo-fill{0%,10%{color:transparent}50%,90%{color:var(--purple)}100%{color:transparent}}@media(prefers-reduced-motion:reduce){.loading-name{color:var(--purple);animation:none!important}}
.intro-card{width:90%;max-width:520px}.intro-card #introWord{display:block;max-width:100%;white-space:nowrap;font-size:clamp(24px,3vw,37px)}

body,button,input,select,textarea{font-family:Rubik,Arial,sans-serif}

.brand-symbol svg{stroke-dasharray:80;animation:kavBrandMark 3s ease-in-out infinite}@keyframes kavBrandMark{0%{stroke-dashoffset:80}45%,80%{stroke-dashoffset:0}100%{stroke-dashoffset:-80}}@media(prefers-reduced-motion:reduce){.brand-symbol svg{animation:none;stroke-dashoffset:0}}

.account-nav{display:flex;gap:18px;font-size:13px;color:#c7b2f4}.account-nav a{text-decoration:none;color:inherit}.system-announcement{position:fixed;z-index:900;top:20%;left:50%;transform:translateX(-50%);width:400px;max-width:90%;padding:30px;background:#29243c;border:1px solid #bea8fb;border-radius:22px;box-shadow:0 20px 100px #000a;text-align:center}.system-announcement b{font-size:24px}.system-announcement p{line-height:1.9;color:#d2c6e8}.system-announcement button{background:#bda7ff;color:#252033;border:0;padding:12px 24px;border-radius:10px}.avatar-frame{border-radius:50%;outline:3px double #bfa6ff;box-shadow:0 0 16px #bfa6ff44}.avatar-frame.creator{outline:4px double #e7d489;box-shadow:0 0 20px #d2b96133}.cosmetic-badge{display:inline-block;font-size:9px;background:#514163;color:#dac7f6;padding:3px 7px;border-radius:8px;margin-top:4px}.cosmetic-badge.creator{background:#51472d;color:#f0dea1}@media(max-width:650px){.account-nav{gap:10px;font-size:10px}.header{flex-wrap:wrap}.account-nav{order:3;width:100%;justify-content:center;padding-top:8px}}

.guest-invite{padding:15px 20px;border:1px solid #514264;border-radius:14px;color:#c8b7df;background:#241f32;font-size:12px;line-height:1.8;grid-column:1/-1}.guest-invite a{color:#d6f2ac}.brand{cursor:default}.avatar-frame{display:inline-flex}.avatar-frame svg{display:block}
/* Core review corrections */
.canvas-overlay{position:static;inset:auto;display:flex;align-items:flex-start;justify-content:center;text-align:right;padding:15px 20px;background:#fff8d9;color:#393141;border-top:1px solid #e5dbaa;min-height:98px;box-shadow:0 -3px 14px #0001}.canvas-overlay small{font-size:11px;margin:0;color:#776a5a}.canvas-overlay strong{font-size:25px;letter-spacing:0;margin:2px 0}.canvas-overlay p{font-size:11px;color:#706352;margin:0}.canvas-wrap{overflow:hidden}.results-actions{position:relative;margin-top:28px;padding:24px 0 16px;border-top:1px solid var(--edge)}.results{margin-bottom:130px}.results-actions .primary{min-height:56px}.active-turn .bottom-nav a[href="/play"],.active-turn .bottom-nav a[href="/season"]{display:none}.active-turn .bottom-nav{width:230px}.invited .hero-copy,.invited .hero-meta,.invited .art-board{display:none}.invited .hero h1{font-size:60px}.invited .entry-card{align-self:start}@media(max-width:650px){.invited .hero h1{font-size:37px}.invited{gap:18px}.results{margin-bottom:120px}.canvas-overlay{padding:12px 16px}.canvas-overlay strong{font-size:23px}}
.canvas-panel>.canvas-overlay{border-radius:12px;margin-top:10px;width:100%;box-shadow:0 5px 20px #0002}.show-results .results-actions{position:fixed;left:50%;transform:translateX(-50%);bottom:105px;width:min(600px,calc(100% - 36px));padding:13px;background:#242131f5;border:1px solid #625376;border-radius:18px;z-index:140;box-shadow:0 8px 45px #0008}.show-results .results{padding-bottom:40px;margin-bottom:230px}.results-actions .primary{color:#252033;opacity:1}
body>.results-actions{display:none}body.show-results>.results-actions{display:block;margin:0}body>.results-actions .primary{width:100%}.show-results .results{padding-bottom:90px}

.notebook-view{max-width:1200px;margin:45px auto;padding:0 24px 150px}.notebook-head h1{font-size:43px;color:#c6b3ff;margin:12px 0}.notebook-head p{color:#aaa1ba;font-size:14px}.notebook-actions{display:flex;gap:12px;margin:25px 0 32px}.notebook-actions button{padding:13px 25px;width:auto}.notebook-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.note-card{background:#252334;border:1px solid #494057;border-radius:18px;overflow:hidden}.note-paper{position:relative;background:#fff9e7;background-image:radial-gradient(#c8bd9a66 1px,transparent 1px);background-size:18px 18px;aspect-ratio:1.4}.note-paper canvas{width:100%;height:100%;display:block}.note-caption{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.note-caption h2{font-size:20px;margin:0}.note-caption p{font-size:11px;color:#aaa1ba;margin:5px 0}.note-caption button{font:inherit;font-size:11px;border-radius:9px;background:#392d49;color:#dac4ff;border:1px solid #78618e;padding:10px}.notebook-note{font-size:12px;color:#aaa1ba;line-height:1.9;margin-top:28px}body.notebook-open #room,body.notebook-open>.results-actions{display:none}body.notebook-open .notebook-view{display:block!important}#openNotebook{margin:20px auto;padding:12px 24px}@media(max-width:650px){.notebook-view{margin-top:28px;padding:0 20px 130px}.notebook-grid{grid-template-columns:1fr}.notebook-head h1{font-size:34px}.notebook-actions{flex-direction:column}.notebook-actions button{width:100%}}

.header .connection{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.game-wallet{display:inline-flex;align-items:center;gap:8px;background:#232532;border:1px solid #514966;border-radius:14px;padding:9px 13px;color:#e9d59b;direction:ltr;font-size:16px;text-decoration:none}.game-wallet svg{width:25px;height:25px;fill:#e6c76b16;stroke:#e9ce7b;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}@media(max-width:650px){.game-wallet{font-size:14px;padding:8px 11px}}

.creator-entry-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:1600;background:#12131d}.regular-entry-banner{position:fixed;top:100px;left:50%;transform:translateX(-50%);width:380px;max-width:calc(100% - 40px);z-index:500;border:1px solid #8970ac;border-bottom:3px solid #bca6ff;border-radius:18px;background:#292339f5;box-shadow:0 15px 70px #0007;padding:17px 20px;display:flex;align-items:center;gap:14px;animation:entryBanner .25s ease both}.regular-entry-banner b{font-size:15px}.regular-entry-banner p{font-size:11px;color:#bfb0d2;margin:6px 0 0}.entry-initial{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#bca6ff22;color:#cdb8ff;font-size:24px;flex-shrink:0}@keyframes entryBanner{from{opacity:0;translate:0 -12px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.regular-entry-banner{animation:none}}

/* Room screens keep navigation clear of lobby controls and guesses. */
body:has(#room:not(.hidden)) .bottom-nav{display:none!important}

.show-results #results .results-actions{display:block;position:static;left:auto;bottom:auto;transform:none;width:100%;margin:24px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--edge);border-radius:0;background:none;box-shadow:none}.show-results .results{padding-bottom:28px;margin-bottom:40px}.results-actions .primary{width:100%}

#colors{flex-wrap:wrap;max-width:236px;justify-content:center}

/* Party event overlay */
.party-layer{position:fixed;inset:0;pointer-events:none;z-index:65;overflow:hidden}
.party-beams i{position:absolute;top:-15%;width:170px;height:130%;opacity:.34;filter:blur(5px);transform-origin:top center;animation:partySweep 3.2s ease-in-out infinite alternate}
.party-beams .pb1{right:4%;background:linear-gradient(#b8a5fc,transparent 75%)}
.party-beams .pb2{right:24%;background:linear-gradient(#e5738e,transparent 75%);animation-delay:-0.9s}
.party-beams .pb3{right:46%;background:linear-gradient(#c6f48b,transparent 75%);animation-delay:-1.7s}
.party-beams .pb4{right:66%;background:linear-gradient(#7fc4e8,transparent 75%);animation-delay:-2.4s}
.party-beams .pb5{right:84%;background:linear-gradient(#f6c64d,transparent 75%);animation-delay:-0.5s;opacity:.26}
@keyframes partySweep{from{transform:rotate(-22deg)}to{transform:rotate(22deg)}}
.party-strobe{position:absolute;width:180px;height:180px;border-radius:50%;filter:blur(30px);opacity:.4;animation:partyStrobe .95s ease-in-out infinite}
.party-strobe.ps1{top:4%;right:3%;background:#e5738e}
.party-strobe.ps2{bottom:4%;left:3%;background:#b8a5fc;animation-delay:.48s}
@keyframes partyStrobe{0%,100%{opacity:.12;transform:scale(.8)}50%{opacity:.5;transform:scale(1.15)}}
.party-confetti i{position:absolute;top:-4%;width:11px;height:17px;border-radius:2px;animation:partyFall linear both}
@keyframes partyFall{to{top:104%}}
.party-chip{position:fixed;bottom:102px;left:14px;pointer-events:auto;display:flex;align-items:center;gap:8px;background:#141625e6;color:#f4f3fa;border:1px solid #2b2e40;border-radius:11px;padding:7px 13px;font:12px Rubik,Arial,sans-serif;cursor:pointer;z-index:66}
.party-eq{display:inline-flex;gap:2.5px;align-items:flex-end;height:13px}
.party-eq i{width:3.5px;background:#c6f48b;border-radius:2px;height:100%;transform-origin:bottom;animation:partyEq .7s ease-in-out infinite}
.party-eq i:nth-child(2){animation-delay:.15s}.party-eq i:nth-child(3){animation-delay:.3s}.party-eq i:nth-child(4){animation-delay:.45s}
@keyframes partyEq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
body.party-on #game{animation:partyShake .476s ease-in-out infinite}
@keyframes partyShake{0%,100%{transform:translate(0,0)}25%{transform:translate(1.5px,-1px)}50%{transform:translate(-1.5px,1px)}75%{transform:translate(1px,1.5px)}}
body.party-on #canvas{box-shadow:0 0 44px #b8a5fc88,0 0 90px #e5738e44}
@media(prefers-reduced-motion:reduce){.party-beams i,.party-confetti i,.party-eq i,.party-strobe,body.party-on #game{animation:none}}


/* level system */
.lvl{display:inline-flex;align-items:center;gap:4px;background:#222636;border:1px solid #2b2e40;border-radius:8px;padding:1px 8px;font-size:11px;font-weight:700;color:#c6f48b;vertical-align:2px}
.lvl b{font-size:12px}
.lvl.l5{color:#b8a5fc}.lvl.l9{color:#f6c64d}
.final-score .lvl{margin-inline-start:6px}
.profile-avatar{position:relative;display:inline-block}
.plvl{position:absolute;bottom:-8px;right:-8px;background:linear-gradient(135deg,#c6f48b,#9ed86a);color:#11131d;font-weight:900;font-size:13px;border-radius:10px;padding:2px 9px;box-shadow:0 0 16px #c6f48b55}
.ptitle{font-weight:800;margin-top:10px;font-size:17px}
.level-progress{height:7px;background:#11131d;border:1px solid #2b2e40;border-radius:8px;margin-top:8px;max-width:320px}
.level-progress span{display:block;height:100%;background:#c6f48b;border-radius:8px}
.pnext{color:#a0a2b8;font-size:12.5px;margin-top:6px}
.leaderrow .lvl{margin-inline-start:8px}

.game-wallet.xp-wallet{color:#d8f0b2;border-color:#4c6244;background:#232a25}
.game-wallet.xp-wallet svg{width:19px;height:19px;fill:#cdf49c22;stroke:#cdf49c;stroke-width:1.7}

.wallet-group{display:inline-flex;align-items:center;gap:10px}
body{padding-top:env(safe-area-inset-top)}

/* disconnect await overlay */
.dc-overlay{position:fixed;inset:0;background:#11131d99;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center;z-index:500;padding:20px}
.dc-overlay.hidden{display:none}
.dc-card{background:#1c1c2c;border:1px solid #6b5788;border-radius:23px;width:min(92vw,360px);padding:34px 26px 26px;text-align:center;box-shadow:0 25px 100px #000a;animation:dcPop .35s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes dcPop{from{opacity:0;transform:scale(.92) translateY(10px)}to{opacity:1;transform:none}}
.dc-icon{width:54px;height:54px;margin:0 auto 2px;border-radius:16px;background:#b8a5fc18;border:1px solid #b8a5fc30;display:grid;place-items:center}
.dc-icon svg{width:26px;height:26px;stroke:#bda7ff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dc-card h1{font-size:26px;font-weight:800;margin:14px 0 8px;letter-spacing:-.5px}
.dc-ring{width:150px;height:150px;margin:6px auto 4px;position:relative}
.dc-ring svg{width:150px;height:150px;transform:rotate(-90deg)}
.dc-track{fill:none;stroke:#292b40;stroke-width:7}
.dc-prog{fill:none;stroke:url(#dcGrad);stroke-width:7;stroke-linecap:round;stroke-dasharray:427;stroke-dashoffset:0;filter:drop-shadow(0 0 10px #b8a5fc55)}
.dc-num{position:absolute;inset:0;display:grid;place-items:center}
.dc-num b{font-size:42px;font-weight:900;letter-spacing:-1px;font-variant-numeric:tabular-nums;background:linear-gradient(135deg,#d9ccff,#b8a5fc);-webkit-background-clip:text;background-clip:text;color:transparent}
.dc-num small{display:block;font-size:11px;color:#8f91a5;font-weight:500;margin-top:2px;-webkit-text-fill-color:#8f91a5}
.dc-sub{color:#a6a4b8;font-size:13px;line-height:1.7;margin-bottom:22px}
.dc-sub b{color:#c6f48b;font-weight:600}
.dc-leave{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#ffffff08;color:#dad1f1;border:1px solid #655675;border-radius:11px;padding:12px 22px;font:600 13px Rubik,sans-serif;cursor:pointer}
.dc-leave svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
