:root{--bg:#150d1d;--surface:#221530;--surface-raised:#2e1d40;--line:#452d5e;--text:#f8efe6;--muted:#b9a6c9;--accent:#ff4f7b;--accent-warm:#ff8a5c;--gold:#ffd166;--p1:#ff5d8f;--p2:#35d0ba;--good:#4fd98a;--bad:#ff7a7a;--radius:18px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);font-family:ui-rounded,Nunito,Segoe UI,system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.4}*{box-sizing:border-box}body{background:radial-gradient(120% 60% at 0% 0%, #ff4f7b2e, transparent 60%), radial-gradient(100% 50% at 100% 10%, #35d0ba1a, transparent 60%), var(--bg);-webkit-tap-highlight-color:transparent;background-attachment:fixed;min-height:100dvh;margin:0}button,input{font:inherit;color:inherit}h1,h2,p,ul,fieldset{margin:0;padding:0}fieldset{border:0;min-width:0}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.screen{width:100%;max-width:460px;min-height:100dvh;padding:12px 16px calc(20px + env(safe-area-inset-bottom));flex-direction:column;gap:12px;margin:0 auto;display:flex}.brand{white-space:nowrap;letter-spacing:-.01em;font-size:1.15rem;font-weight:800}.brand span{background:linear-gradient(90deg, var(--accent), var(--accent-warm));color:#0000;-webkit-background-clip:text;background-clip:text}.brand-xl{font-size:2.4rem}.button{border-radius:var(--radius);cursor:pointer;border:0;width:100%;min-height:56px;padding:12px 18px;font-size:1.05rem;font-weight:800;transition:transform .12s,filter .12s}.button:active,.choice:active{transform:scale(.97)}.button-primary{color:#2a0a16;background:linear-gradient(135deg, var(--accent), var(--accent-warm));box-shadow:0 8px 24px #ff4f7b59}.button-secondary{background:var(--surface-raised);border:2px solid var(--line)}.button-ghost{min-height:48px;color:var(--muted);background:0 0;font-weight:700}.button-xl{min-height:68px;font-size:1.25rem}.button-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.button-quit{border:1px solid var(--line);min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border-radius:999px;padding:8px 12px;font-size:.85rem}:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.setup{justify-content:center;gap:24px}.setup-hero{text-align:center}.setup-logo{font-size:2.6rem}.setup-tagline{color:var(--muted);margin-top:6px}.setup-form{flex-direction:column;gap:20px;display:flex}.setup-form legend{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;font-size:.8rem;font-weight:800}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:.8rem;display:flex}.field input{border:2px solid var(--line);background:var(--surface);border-radius:14px;width:100%;min-height:50px;padding:0 14px;font-size:1.05rem;font-weight:700}.segment:has(:focus-visible){outline:3px solid var(--gold);outline-offset:2px}.segmented{border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);grid-template-columns:repeat(4,1fr);gap:6px;padding:5px;display:grid}.segment{min-height:46px;color:var(--muted);cursor:pointer;border-radius:13px;place-items:center;font-size:.9rem;font-weight:700;display:grid}.segment-selected{color:#2a0a16;background:linear-gradient(135deg, var(--accent), var(--accent-warm))}.topbar{align-items:center;gap:10px;display:flex}.turn-counter{white-space:nowrap;color:var(--muted);margin-left:auto;font-size:.85rem}.players{grid-template-columns:1fr 1fr;gap:8px;display:grid}.player{background:var(--surface);opacity:.7;border:2px solid #0000;border-radius:16px;align-items:center;gap:8px;min-width:0;padding:8px 10px;transition:opacity .2s,border-color .2s;display:flex;position:relative}.player-active{opacity:1}.player-p1.player-active{border-color:var(--p1)}.player-p2.player-active{border-color:var(--p2)}.player-avatar{color:#1a0d22;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-weight:800;display:grid}.player-p1 .player-avatar,.lobby-player-p1 .player-avatar{background:var(--p1)}.player-p2 .player-avatar,.lobby-player-p2 .player-avatar{background:var(--p2)}.player-info{flex-direction:column;min-width:0;display:flex}.player-name{white-space:nowrap;text-overflow:ellipsis;font-weight:800;overflow:hidden}.player-meta{color:var(--muted);white-space:nowrap;font-size:.78rem}.player-turn{text-transform:uppercase;letter-spacing:.06em;color:#1a0d22;border-radius:999px;padding:1px 8px;font-size:.68rem;font-weight:800;position:absolute;top:-9px;right:10px}.player-p1 .player-turn{background:var(--p1)}.player-p2 .player-turn{background:var(--p2)}.board{background:var(--surface);border:1px solid var(--line);border-radius:22px;width:100%;height:auto;padding:6px;display:block}.board-path{fill:none;stroke:#6b4a8f;stroke-width:12px;stroke-linecap:round;stroke-linejoin:round}.board-arrow{fill:none;stroke:var(--text);stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}.tile{fill-opacity:.2;stroke-opacity:.75;stroke-width:1.5px}.tile-base{fill:var(--surface)}.tile-number{fill:var(--muted);font-size:9px;font-weight:700}.tile-level{fill:var(--text);text-anchor:end;font-size:9px;font-weight:800}.tile-emoji{text-anchor:middle;dominant-baseline:central;font-size:20px}.pawn{transition:transform .18s ease-out}.pawn-body{stroke:#fff;stroke-width:2.5px}.pawn-p1 .pawn-body{fill:var(--p1)}.pawn-p2 .pawn-body{fill:var(--p2)}.pawn-halo{fill:none;stroke-width:2px;opacity:0}.pawn-p1 .pawn-halo{stroke:var(--p1)}.pawn-p2 .pawn-halo{stroke:var(--p2)}.pawn-active .pawn-halo{animation:1.4s ease-in-out infinite halo}.pawn-initial{fill:#1a0d22;text-anchor:middle;dominant-baseline:central;font-size:13px;font-weight:800}.pawn-shield{font-size:11px}@keyframes halo{0%,to{opacity:.15}50%{opacity:.9}}.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;flex-direction:column;flex:1;padding:18px 16px;display:flex}.panel-body{flex-direction:column;flex:1;justify-content:center;gap:12px;animation:.22s ease-out appear;display:flex}@keyframes appear{0%{opacity:0;transform:translateY(8px)}}.chip{border:1.5px solid;border-radius:999px;align-self:flex-start;padding:3px 10px;font-size:.78rem;font-weight:800}.eyebrow{color:var(--muted);font-size:.88rem;font-weight:700}.question{font-size:1.3rem;font-weight:800;line-height:1.25}.question-muted{color:var(--muted);font-size:1rem;font-weight:600}.quote{background:var(--surface-raised);text-align:center;border-radius:16px;padding:14px;font-size:1.25rem;font-weight:800}.hint{color:var(--muted);text-align:center;font-size:.85rem}.error{color:var(--bad);text-align:center;margin-top:10px;font-size:.9rem}.choices{flex-direction:column;gap:8px;display:flex}.choice{border:2px solid var(--line);background:var(--surface-raised);text-align:left;cursor:pointer;border-radius:16px;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:54px;padding:10px 16px;font-size:1.02rem;font-weight:700;transition:transform .12s,border-color .12s;display:flex}@media (hover:hover){.choice:hover{border-color:var(--accent)}.button:hover{filter:brightness(1.08)}}.choice-detail{color:var(--muted);font-size:.8rem;font-weight:600}.panel-waiting,.panel-dice,.panel-finish{text-align:center;align-items:center}.panel-waiting .chip,.panel-reveal .chip{align-self:center}.waiting-text{font-size:1.1rem;font-weight:700}.dots span{animation:1.2s infinite both blink}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.15}40%{opacity:1}}.finish-trophy{font-size:3rem;line-height:1}.dice{width:96px;height:96px}.dice-body{fill:var(--text);stroke:var(--gold);stroke-width:3px}.dice-pip{fill:#2a0a16}.dice-rolling{animation:.32s linear infinite tumble}.dice-settled{animation:.26s ease-out settle}@keyframes tumble{0%{transform:rotate(-14deg)translateY(0)}50%{transform:rotate(14deg)translateY(-8px)}to{transform:rotate(-14deg)translateY(0)}}@keyframes settle{0%{transform:scale(1.25)}}.panel-reveal{text-align:center}.reveal-title{font-size:1.45rem;font-weight:800}.reveal-rows{text-align:left;flex-direction:column;gap:6px;display:flex}.reveal-row{background:var(--surface-raised);border-radius:14px;flex-direction:column;padding:9px 14px;display:flex}.reveal-label{color:var(--muted);font-size:.76rem}.reveal-value{font-weight:800}.reveal-good{color:var(--good)}.reveal-bad{color:var(--bad)}.effects{border:1.5px dashed var(--gold);color:var(--gold);text-align:left;border-radius:14px;flex-direction:column;gap:4px;padding:10px 14px;font-weight:700;list-style:none;display:flex}.stats{border-collapse:collapse;width:100%;font-size:.95rem}.stats th,.stats td{border-bottom:1px solid var(--line);padding:7px 6px}.stats tbody th{text-align:left;color:var(--muted);font-weight:600}.stats td{font-variant-numeric:tabular-nums;font-weight:800}.stats-p1{color:var(--p1)}.stats-p2{color:var(--p2)}.complicity{width:100%}.complicity-header{justify-content:space-between;margin-bottom:6px;font-size:.95rem;display:flex}.complicity-track{background:var(--surface-raised);border-radius:999px;height:12px;overflow:hidden}.complicity-fill{background:linear-gradient(90deg, var(--p1), var(--gold), var(--p2));border-radius:999px;height:100%}.legend{background:var(--surface);color:var(--muted);border-radius:16px;padding:10px 14px;font-size:.85rem}.legend summary{cursor:pointer;min-height:28px;font-weight:700}.legend ul{flex-direction:column;gap:8px;margin-top:10px;list-style:none;display:flex}.legend li{align-items:center;gap:10px;display:flex}.legend strong{color:var(--text)}.legend-emoji{border:1.5px solid var(--line);border-radius:10px;flex:none;place-items:center;width:32px;height:32px;display:grid}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.action-screen{z-index:10;background:radial-gradient(120% 60% at 0% 0%, #ff4f7b38, transparent 60%), radial-gradient(100% 50% at 100% 100%, #35d0ba1f, transparent 60%), var(--bg);opacity:0;visibility:hidden;transition:opacity .32s,visibility 0s linear .32s;position:fixed;inset:0;overflow-y:auto}.action-screen-visible{opacity:1;visibility:visible;transition:opacity .32s}.action-screen-content{width:100%;max-width:460px;min-height:100%;padding:16px 16px calc(24px + env(safe-area-inset-bottom));flex-direction:column;gap:12px;margin:0 auto;display:flex}.mini-status{color:var(--muted);grid-template-columns:1fr 1fr;gap:8px;font-size:.78rem;display:grid}.mini-player{background:var(--surface);white-space:nowrap;text-overflow:ellipsis;border-left:4px solid;border-radius:12px;padding:6px 10px;overflow:hidden}.mini-player strong{color:var(--text);display:block}.mini-player-p1{border-color:var(--p1)}.mini-player-p2{border-color:var(--p2)}.panel-dock{min-height:170px}.panel-dice{gap:20px}.panel-dice .dice{width:min(56vw,220px);height:min(56vw,220px)}.dice-value{background:linear-gradient(135deg, var(--gold), var(--accent-warm));color:#0000;-webkit-background-clip:text;background-clip:text;font-size:5.5rem;font-weight:800;line-height:1;animation:.32s ease-out settle}.dice-value-hidden{visibility:hidden;animation:none}.notice{border:1.5px solid var(--line);background:var(--surface-raised);text-align:center;border-radius:16px;flex-direction:column;justify-content:center;gap:2px;min-height:64px;padding:10px 14px;animation:.32s cubic-bezier(.2,1.4,.4,1) notice-pop;display:flex}.notice-title{font-size:1.05rem;font-weight:800}.notice-detail{color:var(--muted);font-size:.88rem}.notice-capture{border-color:var(--accent);background:#ff4f7b2e;animation:.32s cubic-bezier(.2,1.4,.4,1) notice-pop,.42s ease-in-out .32s shake}.notice-capture .notice-detail{color:var(--text)}@keyframes notice-pop{0%{opacity:0;transform:scale(.9)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.tile-highlight{fill:none;stroke:var(--gold);stroke-width:3px;animation:.8s ease-in-out infinite tile-pulse}@keyframes tile-pulse{0%,to{opacity:1}50%{opacity:.25}}.panel-intro{text-align:center;align-items:center;gap:16px}.intro-emoji{background:var(--surface);border:3px solid;border-radius:34px;place-items:center;width:132px;height:132px;font-size:4.2rem;line-height:1;animation:.52s cubic-bezier(.2,1.3,.4,1) card-flip;display:grid}@keyframes card-flip{0%{opacity:0;transform:rotateY(90deg)scale(.7)}}.intro-text{font-size:1.1rem;font-weight:600;line-height:1.45}.panel-intro .button{margin-top:8px}.powers-title{text-align:center;margin-top:4px}.powers{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.power{border:2px solid var(--gold);text-align:center;cursor:pointer;background:#ffd1661a;border-radius:16px;flex-direction:column;align-items:center;gap:2px;min-height:108px;padding:8px 6px;transition:transform .12s;display:flex}.power:active{transform:scale(.96)}.power:disabled{border-color:var(--line);background:var(--surface-raised);opacity:.45;cursor:not-allowed}.power-emoji{font-size:1.5rem;line-height:1.1}.power-label{font-size:.82rem;font-weight:800}.power-detail{color:var(--muted);flex:1;font-size:.7rem;line-height:1.2}.power-cost{color:var(--gold);font-size:.85rem;font-weight:800}.language-switcher{border:1px solid var(--line);background:var(--surface);border-radius:999px;align-self:flex-end;gap:2px;padding:3px;display:inline-flex}.topbar .language-switcher{align-self:auto}.language-option{min-width:40px;min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:0 8px;font-size:.8rem;font-weight:700}.language-option-selected{color:#2a0a16;background:linear-gradient(135deg, var(--accent), var(--accent-warm))}.home-actions{text-align:center;flex-direction:column;gap:8px;display:flex}.home-actions .hint{margin-bottom:10px}.segmented-2{grid-template-columns:repeat(2,1fr)}.code-input{text-align:center;letter-spacing:.25em;text-transform:uppercase;font-size:1.6rem;font-weight:800}.lobby-code{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-align:center;flex-direction:column;align-items:center;gap:8px;padding:18px 16px;display:flex}.lobby-code-value{letter-spacing:.2em;color:var(--gold);-webkit-user-select:all;user-select:all;padding-left:.2em;font-size:2.8rem;font-weight:800}.lobby-players{flex-direction:column;gap:8px;margin-top:8px;list-style:none;display:flex}.lobby-player{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);align-items:center;gap:10px;min-height:56px;padding:8px 12px;display:flex}.lobby-player-name{flex:1;font-weight:700}.lobby-player-empty{color:var(--muted);border-style:dashed;justify-content:center}.connection-banner{z-index:50;text-align:center;color:#2a0a16;background:var(--gold);padding:8px 16px;font-size:.85rem;font-weight:700;position:fixed;top:0;left:0;right:0}.topbar .language-option{min-width:34px;padding:0 6px}
