:root{font-family:Noto Sans SC,PingFang SC,sans-serif;color:#1b1e1a;background:#f4f5f1;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #1b1e1a;--ink-soft: #3d423b;--paper: #ffffff;--canvas: #f4f5f1;--line: #dfe2da;--muted: #747a70;--coral: #ef5b4c;--coral-dark: #d74639;--mint: #2f9b79;--yellow: #f2c94c;--board: #1f2420;--board-cell: #303630;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--shadow: 0 1px 2px rgb(20 25 20 / 5%), 0 14px 36px rgb(20 25 20 / 8%);--ease: cubic-bezier(.2, 0, 0, 1);--font-cartoon: "ZCOOL KuaiLe", "Noto Sans SC", cursive}*{box-sizing:border-box}html{min-width:320px;background:var(--canvas)}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit;letter-spacing:0}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid rgb(47 155 121 / 25%);outline-offset:2px}button:active:not(:disabled){transform:scale(.97)}button:disabled{cursor:not-allowed;opacity:.45}.brand{display:inline-flex;align-items:center;gap:11px}.brand__mark{width:42px;height:42px;display:grid;place-items:center;color:#fff;background:var(--ink);border-radius:var(--radius-md);transform:rotate(-3deg)}.brand__mark svg{width:23px;height:23px}.brand__name{font-family:var(--font-cartoon);font-size:21px;line-height:1;font-weight:800}.brand__name--compact{font-size:18px}.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 20px;border:1px solid transparent;border-radius:var(--radius-md);cursor:pointer;font-size:14px;font-weight:700;transition:transform .16s var(--ease),background .16s var(--ease),border-color .16s var(--ease),box-shadow .16s var(--ease)}.button svg{width:18px;height:18px;stroke-width:2.3}.button--wide{width:100%}.button--primary{color:#fff;background:var(--coral);box-shadow:0 8px 18px #ef5b4c2e}.button--primary:hover:not(:disabled){background:var(--coral-dark);transform:translateY(-1px)}.button--secondary{color:#fff;background:var(--ink)}.button--secondary:hover:not(:disabled),.button--dark:hover:not(:disabled){background:#30352f;transform:translateY(-1px)}.button--ghost{color:var(--ink);background:transparent;border-color:#cfd3ca}.button--ghost:hover:not(:disabled){background:#fff;border-color:#aeb4a9;transform:translateY(-1px)}.button--dark{color:#fff;background:var(--ink)}.stagger-in{animation:enter .52s var(--ease) both}.stagger-in:nth-child(2){animation-delay:90ms}@keyframes enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.entry-shell{min-height:100vh;max-width:1240px;margin:0 auto;padding:32px clamp(20px,4vw,56px) 48px}.entry-header{height:48px;display:flex;align-items:center;justify-content:space-between}.entry-header__note{color:var(--muted);font-size:13px;font-weight:600}.entry-layout{min-height:calc(100vh - 128px);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);align-items:center;gap:clamp(48px,8vw,120px);padding:32px 0 8px}.entry-intro{max-width:610px}.entry-intro h1{margin:0;max-width:640px;font-family:var(--font-cartoon);font-size:clamp(42px,5.5vw,72px);line-height:1.06;font-weight:800;letter-spacing:0}.entry-intro p{max-width:510px;margin:24px 0 28px;color:var(--ink-soft);font-size:17px;line-height:1.8}.entry-demo{min-width:172px}.entry-rule{margin-top:32px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.entry-rule svg{width:18px}.entry-tool{background:var(--paper);border:1px solid #e4e6df;border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:clamp(24px,3vw,36px)}.entry-tabs{display:flex;align-items:center;gap:12px;margin-bottom:28px}.entry-tabs__item{min-height:34px;padding:0;color:var(--ink);background:none;border:none;font-size:17px;font-weight:800}.entry-tabs__divider{width:1px;height:17px;background:var(--line)}.entry-tabs__hint{color:var(--muted);font-size:12px}.entry-form{display:grid;gap:16px}.entry-form--join{grid-template-columns:1fr 1fr}.entry-form--join .button,.entry-form--join .form-error{grid-column:1 / -1}.field{display:grid;gap:8px}.field>span{color:var(--ink-soft);font-size:12px;font-weight:700}.field input{width:100%;height:48px;padding:0 14px;color:var(--ink);background:#f6f7f4;border:1px solid transparent;border-radius:var(--radius-sm);transition:border-color .18s var(--ease),background .18s var(--ease)}.field input:hover{background:#f1f3ef}.field input:focus{background:#fff;border-color:var(--mint);outline:3px solid rgb(47 155 121 / 14%)}.field input::placeholder{color:#a1a69d}.field__code{font-family:Manrope,monospace;font-weight:800;letter-spacing:3px}.entry-separator{display:flex;align-items:center;gap:12px;margin:28px 0 22px;color:#959b91;font-size:11px}.entry-separator:before,.entry-separator:after{content:"";height:1px;flex:1;background:#e9ebe5}.form-error{margin:0;color:var(--coral-dark);font-size:12px}.app-shell{min-height:100vh}.app-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,40px);background:#fffffff0;border-bottom:1px solid var(--line)}.app-header .brand__mark{width:36px;height:36px}.app-header .brand__mark svg{width:20px}.app-header__actions{display:flex;align-items:center;gap:8px}.room-code{min-height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;color:var(--ink);background:#f3f4f1;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer}.room-code:hover{background:#eceee9}.room-code span{color:var(--muted);font-size:11px}.room-code strong{font-family:Manrope,monospace;font-size:14px;letter-spacing:1px}.room-code svg{width:15px;height:15px;color:var(--muted)}.icon-button{width:42px;height:42px;display:grid;place-items:center;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer}.icon-button:hover{color:var(--ink);background:#f0f2ed}.icon-button svg{width:19px}.room-shell{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:48px 0}.room-shell--lobby{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.lobby-main{min-width:0;padding:clamp(28px,4vw,48px);background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:0 14px 36px #1419140d}.phase-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.phase-heading h1{margin:0 0 9px;font-family:var(--font-cartoon);font-size:clamp(25px,3vw,34px);line-height:1.2;font-weight:800}.phase-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}.phase-status{min-height:36px;flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:0 12px;color:#267f63;background:#edf8f3;border-radius:var(--radius-sm);font-size:12px;font-weight:700}.phase-status svg{width:16px}.settings-band{margin:40px 0 36px;display:grid;grid-template-columns:1.3fr 1fr;gap:28px 44px;padding:30px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.setting-group{display:grid;gap:16px}.setting-group__label{display:flex;align-items:center;gap:9px;color:var(--ink-soft);font-size:13px;font-weight:700}.setting-group__label svg{width:17px;color:var(--muted)}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#f0f2ed;border-radius:var(--radius-md)}.segmented button{min-height:43px;color:var(--muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:700}.segmented button:hover:not(:disabled){color:var(--ink)}.segmented button.is-active{color:var(--ink);background:#fff;box-shadow:0 2px 8px #14191414}.stepper{width:154px;height:51px;display:grid;grid-template-columns:46px 1fr 46px;align-items:center;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden}.stepper button{height:100%;color:var(--ink);background:#f7f8f5;border:none;cursor:pointer;font-size:21px}.stepper button:hover:not(:disabled){background:#ecefe9}.stepper strong{text-align:center;font-family:Manrope,sans-serif;font-size:17px}.setting-group--skills{grid-column:1 / -1;padding-top:26px;border-top:1px solid #e9ebe5}.skill-config-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.skill-config-heading>div{display:grid;gap:5px}.skill-config-heading strong{font-size:14px}.skill-config-heading span{color:var(--muted);font-size:11px;line-height:1.5}.skill-config-heading>span{flex:0 0 auto;color:var(--ink);font-family:Manrope,sans-serif;font-size:12px;font-weight:800}.skill-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.skill-config-card{min-width:0;min-height:116px;display:grid;grid-template-columns:42px minmax(0,1fr);align-content:center;gap:10px 12px;padding:14px;background:#f7f8f5;border:1px solid #e6e8e1;border-radius:var(--radius-md)}.skill-config-card__icon{width:42px;height:42px;display:grid;place-items:center;color:#fff;background:var(--skill-color);border-radius:var(--radius-sm);box-shadow:0 3px #1419141a}.skill-config-card__icon svg{width:21px;height:21px;stroke-width:2.4}.skill-config-card__copy{min-width:0;display:grid;align-content:center;gap:4px}.skill-config-card__copy strong{color:var(--ink);font-size:13px}.skill-config-card__copy span{color:var(--muted);font-size:10px;line-height:1.5}.skill-config-card--heal{--skill-color: var(--mint)}.skill-config-card--mine{--skill-color: #d5a82f}.skill-config-card--demon{--skill-color: #765bc5}.skill-config-card--scout{--skill-color: #278cba}.skill-stepper{grid-column:1 / -1;height:44px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm)}.skill-stepper button{height:44px;display:grid;place-items:center;padding:0;color:var(--ink);background:transparent;border:none;cursor:pointer}.skill-stepper button:hover:not(:disabled){background:#eef1eb}.skill-stepper button svg{width:15px;height:15px}.skill-stepper strong{text-align:center;font-family:Manrope,sans-serif;font-size:14px}.lobby-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.lobby-actions>div{display:grid;gap:8px}.lobby-actions__hint{color:var(--muted);font-size:11px}.lobby-actions__hint.is-error{color:var(--coral-dark)}.section-heading{height:42px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);border-bottom:1px solid var(--line);font-size:12px;font-weight:700}.section-heading strong{color:var(--ink);font-family:Manrope,sans-serif;font-size:13px}.section-heading svg{width:16px}.player-rail{min-width:0;padding:0 20px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg)}.player-list{padding-top:8px}.player-row{min-height:65px;display:flex;align-items:center;gap:11px;padding:8px 4px;border-bottom:1px solid #eef0eb;transition:background .18s var(--ease),opacity .18s var(--ease)}.player-row:last-child{border-bottom:none}.player-row--current{margin:0 -10px;padding-inline:14px;background:#f3f8f5;border-radius:var(--radius-sm);border-bottom-color:transparent}.player-row--dead{opacity:.42}.player-row__avatar-wrap{position:relative;width:36px;height:36px;flex:0 0 auto}.player-row__avatar{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:var(--player-color);border:2px solid #fff;border-radius:50%;box-shadow:0 3px #181e1821}.player-row__avatar svg{width:18px;stroke-width:2.4}.player-row__bubble{position:absolute;z-index:4;left:28px;bottom:26px;width:max-content;max-width:132px;overflow:hidden;padding:5px 7px;color:#27302a;background:#fffdf5;border:1px solid #e7dfbb;border-radius:6px;box-shadow:0 5px 14px #252a2321;font-size:10px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap;animation:chatBubbleIn .26s var(--ease) both}.player-row__bubble:after{position:absolute;left:5px;bottom:-5px;width:8px;height:8px;content:"";background:#fffdf5;border-right:1px solid #e7dfbb;border-bottom:1px solid #e7dfbb;transform:rotate(45deg)}.player-row__identity{min-width:0;flex:1;display:grid;gap:3px}.player-row__identity strong{overflow:hidden;color:var(--ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.player-row__identity small{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}.player-row__identity small svg{width:11px;height:11px;color:#b48719}.player-row__hp{display:flex;align-items:center;gap:4px;color:var(--coral);font-family:Manrope,sans-serif;font-size:12px;font-weight:800}.player-row__hp svg{width:13px;height:13px}.player-row__kick{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;padding:0;color:#c44b40;background:#fff3f0;border:1px solid #f0c6c0;border-radius:var(--radius-sm);cursor:pointer;transition:transform .15s var(--ease),background .15s var(--ease)}.player-row__kick:hover{background:#ffe2dc;transform:translateY(-1px)}.player-row__kick svg{width:17px}.game-shell{width:min(1440px,calc(100% - 32px));margin:0 auto;padding:24px 0 40px;display:grid;grid-template-columns:minmax(210px,250px) minmax(440px,1fr) minmax(210px,250px);align-items:start;gap:20px}.game-shell>.player-rail,.game-shell>.event-feed,.game-shell>.placement-guide{position:sticky;top:94px}.board-stage{min-width:0;display:flex;flex-direction:column;align-items:stretch}.phase-heading--board{align-items:center;margin:2px 0 20px}.phase-heading--board h1{font-size:clamp(22px,2.6vw,31px)}.bomb-counter{min-width:92px;height:47px;display:flex;align-items:center;justify-content:center;gap:5px;color:#fff;background:var(--coral);border-radius:var(--radius-md)}.bomb-counter svg{width:18px}.bomb-counter strong{font-family:Manrope,sans-serif;font-size:18px}.bomb-counter span{font-size:12px;opacity:.8}.board-wrap{width:100%;padding:clamp(10px,1.8vw,18px);background:var(--board);border-radius:var(--radius-lg);box-shadow:0 16px 40px #11151129}.game-board{width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(var(--board-size),minmax(0,1fr));grid-template-rows:repeat(var(--board-size),minmax(0,1fr));gap:clamp(3px,.55vw,7px)}.board-cell{position:relative;min-width:0;min-height:0;display:grid;place-items:center;padding:0;color:#9da69d;background:var(--board-cell);border:1px solid #3a423b;border-radius:clamp(3px,.6vw,7px);cursor:pointer;overflow:hidden;transition:transform .15s var(--ease),background .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease)}.board-cell:not(:disabled):hover{z-index:1;color:#d9ded7;background:#3a423a;border-color:#566057;transform:translateY(-1px)}.board-cell:disabled{opacity:1;cursor:default}.board-cell svg{width:clamp(14px,3.5vw,27px);height:clamp(14px,3.5vw,27px);stroke-width:2.3}.board-cell--private-mine{color:#fff;background:#2d342e;border-color:#647067;box-shadow:inset 0 0 0 1px #ffffff14}.board-cell--private-mine:after{content:"";position:absolute;top:8%;right:8%;width:clamp(7px,1.15vw,11px);aspect-ratio:1;background:var(--cell-color, var(--coral));border:2px solid var(--board-cell);border-radius:50%;box-shadow:0 1px 2px #00000047}.board-cell--private-mine:hover:not(:disabled){color:#fff;background:#39423a;border-color:#aab5aa}.board-cell--private-mine svg{position:relative;z-index:1}.board-cell--revealed{color:#aab3aa;background:#171b18;border-color:#232923;animation:cellReveal .26s var(--ease) both}.board-cell--blast{color:#fff;background:var(--cell-color, var(--coral));border-color:#ffffffe5;box-shadow:inset 0 0 0 2px #fff3,0 3px #00000029;animation:blastReveal .52s var(--ease) both}.board-cell--blast b{position:absolute;right:7%;bottom:6%;min-width:18px;height:18px;display:grid;place-items:center;color:var(--ink);background:#fff;border:2px solid rgb(0 0 0 / 10%);border-radius:50%;font-family:Manrope,sans-serif;font-size:10px;font-weight:800}.board-cell--card{background:#faf9f3;border:2px solid currentColor;box-shadow:inset 0 0 0 3px #ffffffb8,0 3px #0000001a;animation:cardReveal .46s var(--ease) both}.board-cell--card-heal{color:var(--mint)}.board-cell--card-mine{color:#bd8b16}.board-cell--card-demon{color:#765bc5}.board-cell--card svg{stroke-width:2.5}.board-cell--mine-target{border-color:#f4d467;box-shadow:inset 0 0 0 2px #f4d46757}.board-cell--mine-target:hover:not(:disabled){color:#fff2b8;background:#444637;border-color:#ffe48a}.board-cell--scout-target{border-color:#67c6e7;box-shadow:inset 0 0 0 2px #67c6e74f}.board-cell--scout-target:hover:not(:disabled){color:#d9f7ff;background:#24414a;border-color:#a5e8ff}.board-cell--scanned{color:#fff;border-width:2px}.board-cell--scanned-safe{background:#245a48;border-color:#72d9b0}.board-cell--scanned-danger{background:#6e3e43;border-color:#fa9a89}.board-cell--scanned svg{width:clamp(13px,3vw,23px);height:clamp(13px,3vw,23px)}.board-cell__scan-result{position:absolute;right:5%;bottom:5%;min-width:15px;height:15px;display:grid;place-items:center;padding:0 3px;color:var(--ink);background:#fff;border:1px solid rgb(0 0 0 / 10%);border-radius:7px;font-family:Manrope,sans-serif;font-size:7px;font-weight:800;line-height:1}.board-cell__card-badge{position:absolute;left:6%;bottom:6%;width:clamp(16px,2.4vw,24px);aspect-ratio:1;display:grid;place-items:center;color:#765bc5;background:#fff;border:2px solid rgb(0 0 0 / 12%);border-radius:50%}.board-cell__card-badge svg{width:62%;height:62%;stroke-width:2.5}@keyframes cellReveal{0%{transform:scale(.82);opacity:.5}to{transform:scale(1);opacity:1}}@keyframes blastReveal{0%{transform:scale(.68) rotate(-8deg);filter:brightness(1.35)}65%{transform:scale(1.08) rotate(3deg)}to{transform:scale(1) rotate(0)}}@keyframes cardReveal{0%{transform:translateY(8px) rotate(-5deg);opacity:0}70%{transform:translateY(-2px) rotate(2deg);opacity:1}to{transform:translateY(0) rotate(0);opacity:1}}.board-footer{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}.privacy-note{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.privacy-note svg{width:16px}.turn-order{margin:0;display:flex;align-items:baseline;gap:12px;color:var(--ink-soft);font-size:12px;line-height:1.6}.turn-order span{color:var(--muted);font-size:10px;font-weight:700}.placement-guide{padding:28px 24px;color:#fff;background:var(--ink);border-radius:var(--radius-lg)}.placement-guide__number{font-family:Manrope,sans-serif;font-size:50px;line-height:1;font-weight:800;color:var(--yellow)}.placement-guide h2{margin:15px 0 9px;font-size:17px}.placement-guide p{margin:0;color:#bbc1b8;font-size:12px;line-height:1.8}.turn-banner,.winner-banner{min-height:78px;margin-bottom:16px;display:flex;align-items:center;gap:14px;padding:13px 16px;color:#fff;background:var(--ink);border-radius:var(--radius-lg)}.turn-banner--mine{background:var(--mint)}.turn-banner--demon{background:#5c477f}.turn-banner__icon{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;color:var(--ink);background:#fff;border-radius:var(--radius-md)}.turn-banner__icon svg{width:21px}.turn-banner>div:nth-child(2),.winner-banner>div{min-width:0;flex:1}.turn-banner span,.winner-banner span{display:block;color:#ffffffa8;font-size:10px;font-weight:700}.turn-banner h1,.winner-banner h1{margin:2px 0 0;overflow:hidden;font-family:var(--font-cartoon);font-size:clamp(16px,2vw,21px);line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.turn-banner__bombs{flex:0 0 auto!important;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:6px}.turn-banner__bombs svg{width:17px}.turn-banner__bombs strong{font-family:Manrope,sans-serif;font-size:19px}.turn-banner__bombs span{grid-column:1 / -1;text-align:right}.winner-banner{background:#d9ad2f}.winner-banner>svg{width:32px;height:32px}.winner-banner .button{flex:0 0 auto}.skill-inventory{min-height:58px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 8px 7px 14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-md)}.skill-inventory__label{min-width:0;display:flex;align-items:center;gap:10px}.skill-inventory__label>span{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;color:var(--ink);background:#f1f3ee;border-radius:var(--radius-sm)}.skill-inventory__label svg{width:17px}.skill-inventory__label div{min-width:0;display:grid;gap:2px}.skill-inventory__label strong{font-size:12px}.skill-inventory__label small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.skill-inventory__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.skill-inventory__action{min-height:44px;flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:0 7px 0 10px;border:1px solid;border-radius:var(--radius-sm);cursor:pointer;font-size:11px;font-weight:800;transition:transform .15s var(--ease),background .15s var(--ease),color .15s var(--ease)}.skill-inventory__action:hover:not(:disabled){transform:translateY(-1px)}.skill-inventory__action--mine{color:#775713;background:#fff8dc;border-color:#ecd176}.skill-inventory__action--mine:hover:not(:disabled){background:#fff2bc}.skill-inventory__action--mine.is-active{color:#fff;background:#92701e;border-color:#92701e}.skill-inventory__action--scout{color:#17698c;background:#eaf8fd;border-color:#8bd1eb}.skill-inventory__action--scout:hover:not(:disabled){background:#d7f1fa}.skill-inventory__action--scout.is-active{color:#fff;background:#237eab;border-color:#237eab}.skill-inventory__action svg{width:16px}.skill-inventory__action strong{min-width:28px;height:28px;display:grid;place-items:center;color:var(--ink);background:#fff;border-radius:50%;font-family:Manrope,sans-serif;font-size:11px}.demon-picker{min-height:74px;margin-bottom:12px;display:flex;align-items:center;gap:12px;padding:11px 12px;color:#fff;background:#31263f;border:1px solid #8d72bd;border-radius:var(--radius-md);box-shadow:0 10px 24px #31263f29}.demon-picker__icon{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;color:#fff;background:#765bc5;border-radius:var(--radius-sm)}.demon-picker__icon svg{width:21px}.demon-picker__copy{min-width:0;flex:1;display:grid;gap:3px}.demon-picker__copy strong{font-family:var(--font-cartoon);font-size:15px;font-weight:400}.demon-picker__copy span{color:#ffffff9e;font-size:9px;line-height:1.5}.demon-picker__targets{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.demon-picker__targets button{min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;color:#fff;background:#ffffff14;border:1px solid rgb(255 255 255 / 18%);border-radius:var(--radius-sm);cursor:pointer;font-size:11px;font-weight:700}.demon-picker__targets button:hover{background:#ffffff29;transform:translateY(-1px)}.demon-picker__targets button>span{width:9px;height:9px;background:var(--player-color);border:1px solid #fff;border-radius:50%}.turn-track{min-height:58px;display:flex;align-items:center;justify-content:center;gap:2px;overflow-x:auto}.turn-track>div{display:flex;align-items:center;gap:6px;color:var(--muted);opacity:.55;white-space:nowrap;font-size:10px;transition:opacity .18s var(--ease),color .18s var(--ease)}.turn-track>div.is-current{color:var(--ink);opacity:1}.turn-track>div.is-dead{text-decoration:line-through;opacity:.28}.turn-track span{width:22px;height:22px;display:grid;place-items:center;color:#fff;background:var(--player-color);border-radius:50%;font-family:Manrope,sans-serif;font-size:9px;font-weight:800}.turn-track svg{width:13px}.event-feed{padding:0 20px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg)}.event-list{max-height:calc(100vh - 165px);padding-top:8px;overflow-y:auto}.event-item{min-height:61px;display:flex;align-items:flex-start;gap:9px;padding:11px 2px;border-bottom:1px solid #eef0eb}.event-item:last-child{border-bottom:none}.event-item__icon{width:26px;height:26px;flex:0 0 auto;display:grid;place-items:center;color:var(--mint);background:#edf8f3;border-radius:50%}.event-item--blast .event-item__icon{color:var(--coral);background:#fff0ed}.event-item--skill .event-item__icon{color:#a17612;background:#fff8dc}.event-item--demon .event-item__icon{color:#765bc5;background:#f2edff}.event-item__icon svg{width:13px}.event-item p{margin:2px 0 0;color:var(--ink-soft);font-size:11px;line-height:1.6}.blast-alert{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:24px;pointer-events:none;animation:blastAlertFade 4s var(--ease) both}.blast-alert__card{position:relative;width:min(460px,100%);overflow:hidden;padding:30px clamp(22px,5vw,42px) 28px;text-align:center;color:#fff;background:var(--coral);border:4px solid #fff;border-radius:18px;box-shadow:0 18px #78251f33,0 28px 64px #1c120f52;animation:blastAlertPop 4s var(--ease) both}.blast-alert__icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 13px;color:var(--coral);background:#fff;border-radius:50%;box-shadow:0 5px #0000001f}.blast-alert__icon svg{width:34px;height:34px;stroke-width:2.4}.blast-alert__eyebrow{margin:0 0 8px;color:#ffffffd4;font-size:12px;font-weight:800}.blast-alert h2{margin:0;font-family:var(--font-cartoon);font-size:clamp(23px,4vw,34px);line-height:1.34;font-weight:400}.blast-alert h2 strong{color:#fff7b9;font-weight:inherit}.blast-alert__damage{display:inline-flex;align-items:center;gap:8px;min-height:36px;margin:18px 0 0;padding:0 13px;color:var(--coral-dark);background:#fff;border-radius:18px;font-size:13px;font-weight:800}.blast-alert__damage svg{width:17px;stroke-width:2.5}.blast-alert__spark{position:absolute;display:grid;place-items:center;color:#fff7b9;animation:sparkle .8s var(--ease) infinite alternate}.blast-alert__spark svg{width:28px;height:28px;stroke-width:2.4}.blast-alert__spark--left{left:9%;top:16%}.blast-alert__spark--right{right:9%;top:25%;animation-delay:.18s}@keyframes blastAlertFade{0%,10%{opacity:0}18%,82%{opacity:1}to{opacity:0}}@keyframes blastAlertPop{0%,10%{transform:scale(.72) rotate(-5deg)}22%{transform:scale(1.05) rotate(2deg)}32%,82%{transform:scale(1) rotate(0)}to{transform:scale(.94) rotate(1deg)}}@keyframes sparkle{0%{transform:rotate(-10deg) scale(.8)}to{transform:rotate(10deg) scale(1.12)}}.auth-shell{min-height:100vh;padding:clamp(24px,6vw,72px) 24px;color:var(--ink);background:linear-gradient(135deg,#f4f5f1,#e9f2ec)}.auth-layout{width:min(100%,980px);min-height:calc(100vh - clamp(48px,12vw,144px));display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);align-items:center;gap:clamp(40px,9vw,120px);margin:0 auto}.auth-intro h1{max-width:560px;margin:0;font-family:var(--font-cartoon);font-size:clamp(42px,6vw,74px);font-weight:400;line-height:1.12}.auth-intro p{max-width:455px;margin:20px 0 0;color:var(--muted);font-size:15px;line-height:1.8}.auth-intro .brand{margin-bottom:26px}.auth-tool{padding:clamp(22px,4vw,38px);background:#fff;border:1px solid rgb(255 255 255 / 78%);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.auth-tabs{display:flex;gap:5px;padding:4px;background:#eef1eb;border-radius:var(--radius-sm)}.auth-tabs button{min-height:40px;flex:1;color:var(--muted);background:transparent;border:0;border-radius:5px;cursor:pointer;font-size:13px;font-weight:800}.auth-tabs button[aria-selected=true]{color:var(--ink);background:#fff;box-shadow:0 2px 7px #151f171a}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form .field{gap:7px}.auth-form .field input{height:46px;padding:0 13px;color:var(--ink);background:#f6f7f4;border:1px solid var(--line);border-radius:var(--radius-sm);outline:none;font:inherit}.auth-form .field input:focus{border-color:var(--mint);box-shadow:0 0 0 3px #2f9b7924}.auth-form .button{margin-top:4px}.auth-form__hint{margin:2px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.boot-screen{min-height:100vh;display:grid;place-items:center;color:var(--muted);background:var(--canvas);font-family:var(--font-cartoon);font-size:20px}.account-summary,.app-header__user{display:inline-flex;align-items:center;min-height:36px;color:var(--ink-soft);background:#f0f2ed;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:12px;font-weight:800}.account-summary{gap:4px;padding-left:11px}.account-summary button{width:34px;height:34px;display:grid;place-items:center;padding:0;color:var(--muted);background:transparent;border:0;cursor:pointer}.account-summary button:hover{color:var(--coral-dark)}.account-summary svg{width:16px}.app-header__user{max-width:132px;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.chat-dock{position:fixed;z-index:40;right:20px;bottom:20px;display:grid;justify-items:end;gap:10px}.chat-dock__toggle{width:52px;height:52px;display:grid;place-items:center;padding:0;color:#fff;background:var(--mint);border:3px solid #fff;border-radius:50%;box-shadow:0 8px 20px #1441313d;cursor:pointer;transition:transform .15s var(--ease),background .15s var(--ease)}.chat-dock__toggle:hover{background:#247d61;transform:translateY(-2px)}.chat-dock__toggle svg{width:23px}.chat-panel{width:min(340px,calc(100vw - 32px));overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:0 16px 44px #1820192e;animation:chatPanelIn .22s var(--ease) both}.chat-panel__header{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 0 16px;border-bottom:1px solid #edf0ea}.chat-panel__header>span{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-family:var(--font-cartoon);font-size:15px}.chat-panel__header svg{width:17px;color:var(--mint)}.chat-panel__header button{width:34px;height:34px;display:grid;place-items:center;padding:0;color:var(--muted);background:#f3f5f0;border:0;border-radius:50%;cursor:pointer}.chat-panel__header button svg{color:inherit}.chat-panel__messages{height:250px;display:grid;align-content:start;gap:8px;padding:13px;overflow-y:auto;background:#fafbf8}.chat-panel__messages p{display:grid;gap:3px;margin:0}.chat-panel__messages strong{color:var(--mint);font-size:10px}.chat-panel__messages span{width:fit-content;max-width:100%;padding:7px 9px;color:var(--ink-soft);background:#fff;border:1px solid #e8ece5;border-radius:6px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.chat-panel__empty{color:var(--muted);font-size:12px}.chat-panel__form{display:flex;gap:8px;padding:10px;border-top:1px solid #edf0ea}.chat-panel__form input{min-width:0;height:40px;flex:1;padding:0 10px;color:var(--ink);background:#f5f7f2;border:1px solid var(--line);border-radius:var(--radius-sm);outline:none;font:inherit;font-size:12px}.chat-panel__form input:focus{border-color:var(--mint)}.chat-panel__form button{width:40px;height:40px;display:grid;place-items:center;padding:0;color:#fff;background:var(--mint);border:0;border-radius:var(--radius-sm);cursor:pointer}.chat-panel__form button svg{width:17px}.skill-alert{position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;display:grid;place-items:center;padding:24px;pointer-events:none;animation:skillAlertFade 4s var(--ease) both}.skill-alert__card{width:min(380px,100%);display:grid;justify-items:center;gap:7px;padding:25px 24px 22px;text-align:center;color:#fff;border:4px solid #fff;border-radius:18px;box-shadow:0 20px #212a2324,0 28px 60px #181f1a47;animation:skillAlertPop 4s var(--ease) both}.skill-alert__icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:4px;color:var(--skill-color);background:#fff;border-radius:50%;box-shadow:0 5px #0000001f}.skill-alert__icon svg{width:30px;height:30px;stroke-width:2.4}.skill-alert p{margin:0;font-family:var(--font-cartoon);font-size:22px;line-height:1.35;font-weight:400}.skill-alert p strong{color:#fff9bf;font-weight:inherit}.skill-alert__card>span:last-child{color:#ffffffd1;font-size:12px;font-weight:800}.skill-alert--heal{--skill-color: var(--mint)}.skill-alert--heal .skill-alert__card{background:#2f9b79}.skill-alert--mine{--skill-color: #bd8b16}.skill-alert--mine .skill-alert__card{background:#d29a20}.skill-alert--demon{--skill-color: #765bc5}.skill-alert--demon .skill-alert__card{background:#5c477f}.skill-alert--scout{--skill-color: #237eab}.skill-alert--scout .skill-alert__card{background:#278cba}@keyframes chatBubbleIn{0%{transform:translateY(4px) scale(.94);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes chatPanelIn{0%{transform:translateY(8px) scale(.97);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes skillAlertFade{0%,10%{opacity:0}18%,82%{opacity:1}to{opacity:0}}@keyframes skillAlertPop{0%,10%{transform:scale(.72) rotate(-4deg)}22%{transform:scale(1.04) rotate(2deg)}32%,82%{transform:scale(1) rotate(0)}to{transform:scale(.94) rotate(1deg)}}@media (max-width: 980px){.game-shell{grid-template-columns:210px minmax(0,1fr)}.game-shell>.event-feed,.game-shell>.placement-guide{display:none}}@media (max-width: 760px){.entry-shell{padding-top:20px}.entry-layout{min-height:auto;grid-template-columns:1fr;gap:32px;padding-top:54px}.entry-intro h1{font-size:clamp(38px,12vw,54px)}.entry-intro p{margin:18px 0 22px;font-size:15px}.entry-rule{margin-top:22px}.entry-tool{padding:24px}.entry-form--join{grid-template-columns:1fr}.entry-form--join .button,.entry-form--join .form-error{grid-column:auto}.auth-shell{padding:20px}.auth-layout{min-height:auto;grid-template-columns:1fr;gap:34px;padding:54px 0 28px}.auth-intro h1{font-size:clamp(40px,12vw,56px)}.auth-tool{width:100%}.room-shell{width:min(100% - 24px,620px);padding:24px 0 40px}.room-shell--lobby{grid-template-columns:1fr}.settings-band{grid-template-columns:1fr;gap:28px;margin:30px 0}.setting-group--skills{grid-column:auto}.skill-config-grid{grid-template-columns:1fr}.lobby-main{padding:24px}.game-shell{width:min(100% - 20px,640px);padding-top:16px;grid-template-columns:1fr;gap:16px}.game-shell>.player-rail{position:static;order:2}.board-stage{order:1}.game-shell>.event-feed{order:3}.game-shell>.player-rail .player-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.game-shell>.player-rail .player-row{min-width:0}.phase-heading--board{margin-bottom:14px}}@media (max-width: 520px){.app-header{height:62px;padding-inline:12px}.app-header .brand__name,.room-code span,.entry-header__note{display:none}.entry-layout{padding-top:42px}.entry-intro h1{font-size:39px}.entry-intro p{line-height:1.7}.entry-tool{margin-inline:-8px;padding:22px 18px}.phase-heading{align-items:flex-start}.phase-status{display:none}.lobby-actions{align-items:stretch;flex-direction:column}.lobby-actions .button{width:100%}.lobby-actions__hint{text-align:center}.game-shell{width:calc(100% - 16px);padding-top:10px}.game-shell>.player-rail .player-list{grid-template-columns:1fr}.phase-heading--board p{max-width:245px;font-size:12px}.bomb-counter{min-width:72px;height:42px}.board-wrap{padding:7px;border-radius:var(--radius-md)}.game-board{gap:3px}.board-wrap:has(.game-board--9){overflow-x:auto}.game-board--9{min-width:420px;min-height:420px}.board-cell{border-radius:3px}.board-cell--blast b{min-width:12px;height:12px;font-size:7px}.blast-alert{padding:16px}.blast-alert__card{padding:26px 18px 24px;border-radius:16px}.blast-alert__icon{width:56px;height:56px}.blast-alert__icon svg{width:29px;height:29px}.blast-alert h2{font-size:24px}.skill-inventory__label small{display:none}.demon-picker{align-items:flex-start;flex-wrap:wrap}.demon-picker__copy{min-width:calc(100% - 58px)}.demon-picker__targets{width:100%;justify-content:stretch}.demon-picker__targets button{min-height:44px;flex:1;justify-content:center}.board-footer{min-height:62px}.turn-order{align-items:flex-start;flex-direction:column;gap:3px}.turn-banner,.winner-banner{min-height:70px;margin-bottom:10px;padding:11px}.turn-banner__icon{width:38px;height:38px}.turn-banner__bombs span{display:none}.winner-banner>svg{display:none}.winner-banner .button{min-width:44px;padding:0 12px}.winner-banner .button{font-size:0}.winner-banner .button svg{margin:0}.turn-track{justify-content:flex-start}.app-header__user{display:none}.skill-inventory{align-items:stretch;flex-direction:column;gap:8px;padding:9px}.skill-inventory__label{padding-inline:4px}.skill-inventory__actions{width:100%}.skill-inventory__action{min-width:0;flex:1;justify-content:center;padding-left:8px}.skill-inventory__action span{white-space:nowrap}.chat-dock{right:12px;bottom:12px}.chat-panel__messages{height:min(250px,40vh)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
