:root{--bg: #d9e6ef;--bg-pattern: #cfdde8;--sky: #7cc4f8;--sky-dark: #5aa7e0;--panel: #eeeeee;--panel-title: #dddddd;--panel-border: #cccccc;--item: #e4e4e4;--item-hover: #f4f4f4;--text: #111111;--muted: #777777;--playing: #ffbbbb;--playing-hover: #ffcccc;--create: #8ec0f3;--host: #e14e2d;--ready: #3a8bdf;--spectate: #8160ff;--current: #ddffdd;--gold: #deaf56;--turn-bg: #70712d;--turn-bar: #e6e846;--round-bg: #223c6c;--round-bar: #3573e4;--extreme: #ff6d6d;--error: #d64545;--radius: 10px;--shadow: 0 2px 3px rgba(20, 20, 20, .35);--font: "Nanum Gothic", "NanumBarunGothic", "Apple SD Gothic Neo", "Malgun Gothic", "돋움", sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,input,select,textarea,a,label{touch-action:manipulation}form{margin:0}body{min-height:var(--app-h, 100vh);font-family:var(--font);font-size:13px;color:var(--text);background-color:var(--bg);background-image:linear-gradient(45deg,var(--bg-pattern) 25%,transparent 25%,transparent 75%,var(--bg-pattern) 75%),linear-gradient(45deg,var(--bg-pattern) 25%,transparent 25%,transparent 75%,var(--bg-pattern) 75%);background-size:28px 28px;background-position:0 0,14px 14px}button,input,select{font-family:inherit;font-size:13px;color:inherit}input,select{padding:6px 9px;border:1px solid #aaaaaa;border-radius:var(--radius);background:#fff;outline:none;min-width:0}input:focus,select:focus{border-color:var(--sky-dark);box-shadow:0 0 0 2px #7cc4f873}.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center}.btn{padding:5px 12px;border:1px solid #aaaaaa;border-radius:var(--radius);background:#eee;cursor:pointer;transition:background-color .15s ease,color .15s ease;white-space:nowrap}.btn:hover{background:#fff}.btn:active{color:#eee;background:#444}.btn:disabled{opacity:.55;cursor:default}.btn-primary{border-color:var(--sky-dark);background:var(--sky)}.btn-primary:hover{background:#9ad3fb}.btn-danger{border-color:#d88;background:#ffd6d6}.btn-danger:hover{background:#ffe6e6}.btn-sm{padding:2px 8px;font-size:11px}.page{display:flex;justify-content:center;padding:16px 4px 24px}.game-window{position:relative;width:1010px;flex:none;border-radius:12px;overflow:hidden;background:#f6f6f6;box-shadow:0 6px 24px #14283c40}.menubar{display:flex;align-items:center;gap:8px;height:44px;padding:0 10px;background:var(--sky);box-shadow:0 2px 2px #0000002e;position:relative;z-index:2}.menubar-logo{font-size:18px;font-weight:800;letter-spacing:1px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);margin-right:10px}.menubar-buttons{display:flex;align-items:center;gap:6px;flex:1}.menu-btn{min-width:86px;padding:0 12px;border:none;border-radius:8px 8px 0 0;margin-top:14px;height:30px;font-weight:700;background:#c8e6fc;color:#111;cursor:pointer;transition:background-color .15s ease,margin .15s ease,height .15s ease}.menu-btn:hover{background:#fff;margin-top:10px;height:34px}.menu-btn-active{color:#eee;background:#444}.menu-btn-active:hover{background:#555}.menu-btn-primary{background:#ffe680}.menu-btn-danger{background:#ffc9c9}.menu-note{font-weight:700;color:#fff;padding:3px 10px;border-radius:8px;background:var(--spectate)}.menubar-user{display:flex;align-items:center;gap:6px;padding:3px 10px 3px 4px;border-radius:14px;background:#ffffff80;font-weight:700}.menubar-user-name{max-width:10em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menubar-settings{position:relative;display:none}.menubar-gear{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:none;border-radius:50%;color:#fff;background:#ffffff47;cursor:pointer}.menubar-gear.is-open{color:#2f7fc4;background:#fff}.sound-sheet{position:absolute;top:calc(100% + 6px);right:-4px;z-index:40;width:250px;max-width:calc(100vw - 24px);padding:12px;border-radius:12px;background:#fff;box-shadow:0 8px 26px #0000004d;animation:pop-in .15s ease}.sound-sheet-title{margin-bottom:8px;font-weight:700;font-size:14px}.sound-sheet-credit{margin:10px 0 0;font-size:11px;color:#888}.sound-sheet-credit a{color:inherit}.sound-controls{display:flex;align-items:center;gap:4px}.volume-wrap{display:flex;align-items:center}.volume-label{display:none}.sound-stacked{flex-direction:column;align-items:stretch;gap:8px}.sound-stacked .menu-sub-btn{min-height:44px;font-size:14px;border-radius:10px}.sound-stacked .volume-wrap{flex-direction:column;align-items:stretch;gap:2px}.sound-stacked .volume-label{display:block;font-size:13px;color:#555}.sound-stacked .volume{width:100%;height:36px}.menu-sub-btn{padding:3px 8px;border:1px solid rgba(0,0,0,.15);border-radius:8px;font-size:11px;background:#ffffffb3;cursor:pointer}.menu-sub-btn.is-off{color:#888;background:#ffffff4d;text-decoration:line-through}.volume{width:70px;padding:0;border:none;background:transparent;box-shadow:none!important;accent-color:#2f7fc4}.screen{height:640px;padding:8px}@media(min-width:1024px){.page:not(.page-login) .screen{height:max(640px,calc(var(--app-h, 100vh) - 106px))}}.credits{padding:4px 10px 6px;font-size:11px;color:#888;text-align:right;background:#f6f6f6}.credits a{color:inherit}.panel{display:flex;flex-direction:column;min-height:0;padding:5px;border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.panel-title{display:flex;justify-content:space-between;align-items:center;flex:none;padding:4px 8px;border-radius:5px;font-weight:700;color:#222;background:var(--panel-title);border-bottom:1px solid var(--panel-border)}.panel-title-right{font-weight:400;font-size:12px;color:#555}.panel-body{flex:1;min-height:0;padding:5px 2px 0}.avatar{display:flex;align-items:center;justify-content:center;flex:none;border-radius:50%;color:#fff;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.35);box-shadow:inset 0 -3px #0000001f;-webkit-user-select:none;user-select:none}.badge{display:inline-block;padding:1px 7px;border-radius:8px;font-size:11px;font-weight:700;color:#fff;background:#999;white-space:nowrap}.badge-host{background:var(--host)}.badge-ready{background:var(--ready)}.badge-spectate{background:var(--spectate)}.badge-idle{background:#aaa}.badge-rule{color:#5a3b00;background:#ffd36b;margin-left:4px}.chat-body{display:flex;flex-direction:column;gap:5px;padding-bottom:2px}.chat-log{flex:1;min-height:0;overflow-y:auto;padding:4px 6px;border-radius:6px;background:#fff}.chat-item{display:flex;gap:6px;align-items:baseline;padding:0;line-height:1.4}.chat-head{flex:none}.chat-text{flex:1;word-break:break-all}.chat-stamp{flex:none;font-size:10px;color:#aaa}.chat-system .chat-text{color:#1767ca;font-weight:700}.chat-empty{color:#aaa;padding:4px 0}.chat-input-row{display:flex;gap:5px;flex:none}.chat-input{flex:1}.login-screen{display:flex;align-items:center;justify-content:center}.login-card{width:360px}.login-card .panel-body{padding:18px 16px 14px}.login-logo{display:flex;justify-content:center;gap:6px;margin-bottom:10px}.logo-chip{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:10px;font-size:28px;font-weight:800;color:#eee;background:#232323;box-shadow:0 2px #000}.logo-chip-hl{color:#ffff3b;background:#3a3a3a}.login-form{display:flex;gap:6px;margin-top:10px}.login-form input{flex:1;font-size:15px;padding:8px 12px}.form-error{margin:8px 0 0;color:var(--error);font-weight:700}.lobby-tabs{display:none}.lobby-screen{display:grid;grid-template-columns:1fr 206px;gap:8px}.lobby-left{display:grid;grid-template-rows:minmax(0,1fr) minmax(210px,36%);gap:8px;min-height:0}.lobby-right{display:flex;min-height:0}.lobby-right .panel{flex:1}.room-list{display:grid;grid-template-columns:repeat(2,1fr);align-content:start;gap:6px;height:100%;overflow-y:auto;padding:0 2px 4px}.room-card{display:flex;align-items:stretch;gap:6px;height:70px;padding:4px 6px 4px 4px;border:none;border-radius:var(--radius);text-align:left;background:var(--item);cursor:pointer;box-shadow:0 1px 1px #00000040;transition:background-color .15s ease,transform .15s ease}.room-card:hover{background:var(--item-hover);transform:translateY(-1px)}.room-card.room-playing{background:var(--playing)}.room-card.room-playing:hover{background:var(--playing-hover)}.room-number{display:flex;align-items:center;justify-content:center;width:50px;flex:none;font-size:24px;border-right:1px solid #cccccc;color:#444}.room-playing .room-number{border-color:#c99}.room-main{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}.room-title{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-mode{display:flex;align-items:center;gap:2px;font-size:12px}.room-mode-label{font-weight:700;color:#2b6cb0}.room-status{margin-left:auto;font-size:11px;color:#3a8a3a;font-weight:700}.room-status.is-playing{color:#c0392b}.room-info{font-size:11px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-side{width:40px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.room-count{font-weight:700}.room-lock{height:18px;color:#555}.empty{grid-column:1 / -1;text-align:center;color:var(--muted);padding:60px 0}.user-list{list-style:none;margin:0;padding:0;height:100%;overflow-y:auto}.user-item{display:flex;align-items:center;gap:6px;padding:3px 4px;border-radius:6px}.user-item:hover{background:var(--item-hover)}.user-me{font-weight:700;background:#dfeefb}.user-name{flex:1;line-height:1.4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-room{font-size:10px;color:#777}.room-head{display:flex;align-items:center;gap:4px;height:30px;margin-bottom:8px;padding:0 6px;border-radius:var(--radius);background:var(--panel-title);box-shadow:var(--shadow)}.room-head>span{padding:0 6px}.room-head-number{font-weight:700;font-size:15px;border-right:1px solid #bbb}.room-head-title{flex:1;min-width:0;display:flex;align-items:center;gap:4px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.room-head-mode{font-weight:700;color:#2b6cb0}.room-head-item{color:#444;border-left:1px solid #c4c4c4}.room-head-status{font-weight:700;color:#3a8a3a;border-left:1px solid #c4c4c4}.room-head-status.is-playing{color:#c0392b}.room-screen{display:grid;grid-template-rows:auto minmax(0,1fr) minmax(200px,40%)}.room-screen .room-head,.player-panel{margin-bottom:8px}.player-panel .panel-body{overflow-y:auto}.player-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:2px}.player-card{position:relative;display:grid;grid-template-columns:74px 1fr;grid-template-rows:74px auto;padding:5px;border-radius:var(--radius);background:var(--item);box-shadow:0 1px 1px #00000040}.player-card .avatar{margin:5px}.player-me{outline:2px solid var(--sky-dark)}.player-ready{background:#dbe9fa}.player-stat{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding:4px}.player-score{margin-top:auto;font-size:16px;font-weight:700}.player-score small{font-size:11px;font-weight:400;color:#777}.player-name{grid-column:1 / -1;display:flex;align-items:center;gap:4px;min-width:0;padding:4px 4px 2px;font-size:14px;line-height:1.4;font-weight:700}.player-name-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.host-crown{display:inline-flex;color:var(--host)}.player-actions{position:absolute;inset:auto 4px 4px auto;display:flex;gap:3px;opacity:0;transition:opacity .15s ease}.player-card:hover .player-actions,.player-card:focus-within .player-actions{opacity:1}@media(hover:none),(pointer:coarse){.player-actions{opacity:1}}.room-hint{margin:8px 4px 0;color:var(--muted)}.game-screen{display:flex;flex-direction:column}.game-box{position:relative;flex:none;height:auto;padding:8px 10px;border-radius:var(--radius);color:#eee;background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.08),transparent 60%),linear-gradient(180deg,#3d4a5a,#2a323d);box-shadow:var(--shadow);overflow:hidden}.game-loading{display:flex;align-items:center;justify-content:center;font-size:16px}.game-top{display:grid;grid-template-columns:160px 1fr 160px;align-items:center;height:36px}.round-indicator{font-size:14px;text-shadow:0 1px 1px #141414}.round-indicator b{font-size:18px;color:#ffff3b}.title-row{display:flex;justify-content:center;gap:4px}.title-char{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;font-weight:700;font-size:15px;color:#ddd;background:#00000073;box-shadow:0 1px 1px #000;transition:all .3s ease}.title-past{opacity:.35}.title-current{width:34px;height:34px;font-size:20px;color:#222;background:#ffff3b;animation:title-pop .6s ease}@keyframes pop-in{0%{opacity:0;transform:scale(1.4)}to{opacity:1;transform:scale(1)}}@keyframes title-pop{0%{transform:scale(1.5)}to{transform:scale(1)}}.game-hints{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.hint-chip{padding:1px 8px;border-radius:8px;font-size:11px;font-weight:700;color:#222;background:#ffd36b}.hint-manner{background:#ff9e9e}.hint-short{display:none}.game-top-right{display:flex;justify-content:flex-end;align-items:center;min-width:0}.game-items{flex:none;display:flex;align-items:center;gap:4px;margin-left:6px;padding:2px 4px 2px 8px;border-radius:10px;font-size:11px;font-weight:700;color:#eee;background:#000000b3;white-space:nowrap}.game-items-char{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:16px;color:#131;background:#6f6;animation:game-items-pop .3s ease-out}@keyframes game-items-pop{0%{transform:scale(1.6)}to{transform:scale(1)}}.jjo-bar{width:500px;margin:8px auto 0;padding:8px 5px 5px;border:2px solid #000000;border-radius:10px;background:#deaf56}.jjo-display{height:39px;padding:8px 5px;border-radius:10px 10px 0 0;font-size:20px;line-height:23px;text-align:center;white-space:nowrap;color:#eee;background:#000000b3}.display-beat{display:inline-flex;vertical-align:top}.display-text{display:inline-block;flex:none;width:20px;text-align:center;animation:display-text-in .1s ease-in-out both}@keyframes display-text-in{0%{margin-top:-6px;font-size:36px}to{margin-top:0;font-size:20px}}.display-text.display-mission{color:#6f6;animation-name:display-mission-in}@keyframes display-mission-in{0%{margin-top:-6px;font-size:36px}to{margin-top:0;font-size:24px}}.display-mission-label{color:#6f6}.display-pulse-a .display-text,.display-pulse-a .display-plain{animation:display-pulse-a var(--tick, .1s) linear}.display-pulse-b .display-text,.display-pulse-b .display-plain{animation:display-pulse-b var(--tick, .1s) linear}@keyframes display-pulse-a{0%{font-size:21px}to{font-size:20px}}@keyframes display-pulse-b{0%{font-size:21px}to{font-size:20px}}.game-fail-text{color:#f77;animation:FailBlink 2s linear}@keyframes FailBlink{0%{text-decoration:line-through}25%{text-decoration:inherit}50%{text-decoration:line-through}75%{text-decoration:inherit}}.display-hint-rest{color:#aaa}.graph{height:20px;border-left:1px solid rgba(0,0,0,.7);border-right:1px solid rgba(0,0,0,.7);color:#fff;text-align:right;text-shadow:0 1px 3px #141414;overflow:hidden}.graph-bar{width:0;height:20px;padding-top:4px;font-size:11px;line-height:12px;white-space:nowrap;overflow:hidden}.jjo-turn-time{background:#70712d}.jjo-round-time{border-bottom:1px solid rgba(0,0,0,.7);border-radius:0 0 10px 10px;background:#223c6c}.jjo-turn-time .graph-bar{background:#e6e846}.jjo-round-time .graph-bar{background:#3573e4}.round-extreme{background:#ff6d6d!important}.round-effect{border-radius:6px;animation:RoundEffect .8s ease 1}@keyframes RoundEffect{0%{color:#ff4;background-color:#000}to{color:#fff;background-color:#0000}}.caret{display:inline-block;width:2px;height:14px;margin-left:2px;vertical-align:-2px;background:#eee;animation:blink 1s steps(1) infinite}@keyframes blink{50%{opacity:0}}.board-slot{display:flex;align-items:center;justify-content:center;height:56px;margin-top:4px}.turn-info{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:100%;min-width:0;font-size:13px;color:#cfd8e3}.turn-typing{max-width:100%;min-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;color:#fff}.turn-typing b{color:#8acfff}.turn-typing .muted{color:#9aa6b4;font-size:13px}.turn-next b{color:#fff}.turn-next-me{margin-right:6px;padding:0 8px;border-radius:8px;font-size:12px;font-weight:700;color:#1d3b1d;background:#9be89b;animation:soon-pulse 1.2s ease-in-out infinite alternate}@keyframes soon-pulse{0%{box-shadow:0 0 #9be89bb3}to{box-shadow:0 0 8px 2px #9be89bb3}}.game-here-wrap{width:min(500px,100%);animation:here-in .2s ease}@keyframes here-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.game-here{padding:5px;border:2px solid #6cc46c;border-radius:10px;background:#000000b3;box-shadow:0 0 12px #6cc46c99}.game-here .chat-input{height:40px;font-size:20px;color:#111}.game-here .btn{align-self:stretch}.history{display:flex;height:42px;overflow:hidden}.history-item{flex:none;width:200px;height:36px;margin:3px;padding:0 6px;border-radius:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:36px;text-align:center;font-size:14px;color:#eee;background:#232323;animation:history-grow .4s ease-in-out}@keyframes history-grow{0%{width:0;padding:0}}.history-item b{padding:0 1px;margin-right:1px;color:#111;background:#bbb}.history-strip{display:none}.game-players{display:flex;justify-content:center;justify-content:safe center;align-items:flex-start;gap:8px;padding:14px 4px 8px;flex:none;overflow-x:auto;overflow-y:hidden}.game-user{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;flex:none;width:112px;padding:6px 5px 4px;border:3px solid #dddddd;border-radius:var(--radius);background:#ddd;box-shadow:0 1px 1px #141414;transition:transform .3s ease,opacity .3s ease,background-color .3s ease,border-color .3s ease,filter .3s ease}.game-user-order{position:absolute;top:3px;left:4px;font-size:11px;font-weight:700;color:#888}.game-user-info{display:flex;flex-direction:column;align-items:center;gap:0;width:100%;min-width:0}.game-user-me{border-color:#b9dcf7}.game-players-active .game-user{opacity:.72;filter:saturate(.7)}.game-players-active .game-user.game-user-current,.game-players-active .game-user.game-user-bomb{opacity:1;filter:none}.game-user-current{z-index:1;transform:translateY(-10px);background:var(--current);border-color:#3eff3e;box-shadow:0 4px 10px #00000059;animation:CurrentBlink 2s linear infinite}@keyframes CurrentBlink{0%{border-color:#3eff3e}50%{border-color:#009000}to{border-color:#3eff3e}}.game-user-next{border-style:dashed;border-color:#9bbfe0}.game-user-bomb{border-color:#f66;background:#ffd6d6;animation:bomb-shake .5s ease 2}@keyframes bomb-shake{0%,to{transform:translate(0)}20%{transform:translate(-6px) rotate(-3deg)}40%{transform:translate(6px) rotate(3deg)}60%{transform:translate(-4px) rotate(-2deg)}80%{transform:translate(4px) rotate(2deg)}}.game-user-name{display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%;min-width:0;margin-top:2px;font-weight:700;line-height:1.4}.game-user-name-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.game-user-you{flex:none;padding:0 4px;border-radius:6px;font-size:10px;line-height:1.5;color:#fff;background:var(--sky-dark)}.game-user-score{font-size:20px;font-weight:700;line-height:1.25}.game-user-typing{max-width:100%;height:17px;font-size:12px;line-height:17px;color:#2b6cb0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-bubbles{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;pointer-events:none;overflow:hidden}.chat-bubble{--tail-x: 50%;position:absolute;top:0;left:0;width:max-content;min-width:28px;padding:4px 8px;border:1px solid rgba(0,0,0,.18);border-radius:10px;color:#222;background:#fff;box-shadow:0 2px 6px #00000047;font-size:12px;line-height:1.35;text-align:center;pointer-events:none;will-change:transform}.chat-bubble-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere;word-break:keep-all;white-space:pre-wrap;animation:bubble-in .18s ease-out}.chat-bubble:after{content:"";position:absolute;top:100%;left:var(--tail-x);margin-left:-6px;border:6px solid transparent;border-top-color:#fff;border-bottom-width:0;filter:drop-shadow(0 1px 0 rgba(0,0,0,.18))}.chat-bubble-below:after{top:auto;bottom:100%;border-top-width:0;border-bottom-width:6px;border-top-color:transparent;border-bottom-color:#fff;filter:drop-shadow(0 -1px 0 rgba(0,0,0,.18))}.chat-bubble-out{opacity:0;transition:opacity .3s ease}@keyframes bubble-in{0%{opacity:0;transform:translateY(4px) scale(.92)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.chat-bubble-text{animation:none}}@media(max-width:639px){.chat-bubble{padding:3px 7px;font-size:11px}.chat-bubble-text{-webkit-line-clamp:2;line-clamp:2}}.delta-score{position:absolute;top:100%;left:0;right:0;z-index:2;text-align:center;font-weight:700;color:#25f;text-shadow:0 1px 1px #000033;pointer-events:none;animation:ScoreGoing 2s ease 1 forwards,score-gone 0s linear 2s forwards}.delta-score.lost{color:#f59e9e}.delta-score.bonus{color:#66f;opacity:0;animation-delay:.5s,2.5s}@keyframes ScoreGoing{0%{margin-top:-80px;font-size:24px;opacity:1}10%{margin-top:-90px;font-size:30px;opacity:.9}to{margin-top:-25px;font-size:20px;opacity:.1}}@keyframes score-gone{to{visibility:hidden}}.game-chat{flex:1;min-height:0}.game-input-row{align-items:center}.game-input-myturn .chat-input{border-color:#6cc46c;box-shadow:0 0 0 2px #6cc46c80;font-weight:700}.myturn-label{flex:none;align-self:center;padding:3px 8px;border-radius:8px;font-weight:700;color:#fff;background:#3fa34d;animation:myturn-pulse .8s ease-in-out infinite alternate}@keyframes myturn-pulse{0%{background:#3fa34d}to{background:#62c96f}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:#00000059}.overlay-dark{background:#0009;z-index:100}.modal{max-width:100%;max-height:100%;display:flex;flex-direction:column;border-radius:var(--radius);background:var(--panel);box-shadow:0 8px 30px #00000059;animation:pop-in .18s ease}.modal-title{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;border-radius:var(--radius) var(--radius) 0 0;font-weight:700;background:var(--panel-title)}.modal-close{width:18px;height:18px;padding:0;border:none;border-radius:50%;line-height:18px;color:#fff;background:#e55;cursor:pointer}.modal-close:hover{background:#e77}.modal-body{padding:12px;overflow-y:auto}.modal-body p{margin:4px 0}.modal-footer{display:flex;justify-content:flex-end;gap:6px;padding:0 12px 12px}.form{display:flex;flex-direction:column;gap:8px}.form-row{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:8px}.form-label{font-weight:700;text-align:right;color:#333}.form-checks{display:flex;flex-direction:column;gap:6px}.check{display:flex;align-items:flex-start;gap:6px;cursor:pointer}.check input{margin-top:2px}.check span{display:flex;flex-direction:column}.check small{color:var(--muted)}.ranking{width:100%;border-collapse:collapse}.ranking th{padding:5px;background:var(--panel-title)}.ranking td{padding:5px;border-bottom:1px solid #ddd;background:#fff}.rank-cell{width:46px;text-align:center;font-weight:700}.score-cell{width:80px;text-align:right;font-weight:700}.ranking-name{display:flex;align-items:center;gap:6px}.rank-1 .rank-cell{background:gold}.rank-2 .rank-cell{background:silver}.rank-3 .rank-cell{background:#d2691e;color:#fff}.ranking-me td:not(.rank-cell){background:#e6f2fc}.toasts{position:fixed;top:16px;left:50%;transform:translate(-50%);z-index:200;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}.toast{max-width:min(90vw,480px);padding:8px 16px;border-radius:10px;color:#fff;background:#1e1e1ee0;box-shadow:0 3px 10px #0000004d;animation:pop-in .2s ease}.toast-error{background:#be3232eb}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media(hover:hover)and (pointer:fine){.chat-input-row>.btn{display:none}.chat-input-row{cursor:text}}@media(pointer:coarse),(hover:none),(max-width:1023px){input,select,textarea{font-size:16px}input,select{padding:7px 10px}.login-form input{font-size:16px}.btn{min-height:40px;padding:6px 14px}.btn-sm{min-height:36px;padding:4px 10px;font-size:12px}.modal-close{width:32px;height:32px;font-size:20px;line-height:32px}.check input{width:20px;height:20px;margin-top:0}.menu-btn:hover{margin-top:14px;height:30px}}@media(max-width:1023px){html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{min-height:0}.page{position:fixed;left:0;right:0;top:var(--vv-top, 0px);height:var(--app-h, 100dvh);display:block;padding:0}.game-window{display:flex;flex-direction:column;width:100%;height:100%;border-radius:0;box-shadow:none}.menubar{flex:none;height:auto;min-height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));align-items:flex-end}.menubar-logo,.menubar-settings,.menubar-user{align-self:center}.menu-btn,.menu-btn:hover{height:44px;margin-top:12px;min-width:72px}.menu-note{align-self:center}.sound-inline{display:none}.menubar-settings{display:block}.screen{flex:1;min-height:0;height:auto;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.kb-open .screen{padding-bottom:8px}.credits{display:none}.page-login .credits{display:block;flex:none;padding-bottom:max(6px,env(safe-area-inset-bottom))}.modal-backdrop{inset:auto 0 auto 0;top:var(--vv-top, 0px);height:var(--app-h, 100dvh)}.toasts{top:calc(var(--vv-top, 0px) + env(safe-area-inset-top) + 12px)}.login-card{width:min(400px,100%)}.login-form .btn{min-height:44px;min-width:72px}.lobby-screen{grid-template-columns:minmax(0,1fr) 180px}.lobby-left{grid-template-rows:minmax(0,1fr) minmax(150px,36%)}.room-list{grid-template-columns:repeat(2,minmax(0,1fr))}.room-card{height:auto;min-height:70px}.room-number{width:40px;font-size:20px}.user-item{min-height:36px}.room-screen{display:flex;flex-direction:column;gap:8px}.room-head{flex:none;margin:0;min-height:34px;height:auto;overflow:hidden}.room-screen .room-head{margin:0}.player-panel{flex:1 1 auto;min-height:120px;margin:0}.room-chat{flex:0 0 auto;height:max(170px,36%)}.kb-open .room-screen .room-head,.kb-open .room-screen .player-panel{display:none}.kb-open .room-screen .room-chat{flex:1;height:auto}.player-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.player-actions{position:static;grid-column:1 / -1;display:flex;gap:6px;padding:4px 2px 0;opacity:1}.player-actions .btn{flex:1;min-height:40px}.game-screen{display:flex;flex-direction:column;gap:8px}.game-box{height:auto;flex:none}.jjo-bar{width:min(500px,100%)}.game-players{padding-top:12px}.game-chat{flex:1 1 0;min-height:90px}.kb-open .game-screen .room-head{display:none}.modal{max-height:calc(var(--app-h, 100dvh) - 32px)}}@media(max-width:639px){.menubar{flex-wrap:wrap;column-gap:8px;row-gap:0;min-height:0}.menubar-logo{order:0;height:52px;line-height:52px;margin-right:auto}.menubar-settings{order:1}.menubar-user{order:2;max-width:42vw}.menubar-user-name{max-width:7em}.menubar-buttons{order:3;flex:1 1 100%;gap:6px;min-width:0}.menu-btn,.menu-btn:hover{flex:1 1 0;min-width:0;margin-top:0;padding:0 4px;white-space:nowrap}.menubar-game .menubar-buttons{order:0;flex:0 1 auto;justify-content:flex-start}.menubar-game .menubar-logo{margin-right:0}.menubar-game .menubar-buttons .menu-btn{flex:none;min-width:76px;margin-top:8px}.menubar-game .menubar-settings{margin-left:auto}.screen{padding-top:10px}.login-card .panel-body{padding:16px 12px 14px}.lobby-screen{display:flex;flex-direction:column;gap:8px}.lobby-tabs{display:flex;flex:none;padding:3px;border-radius:12px;background:var(--panel-title);box-shadow:var(--shadow)}.lobby-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;border:none;border-radius:9px;font-size:14px;font-weight:700;color:#555;background:transparent;cursor:pointer}.lobby-tab.is-active{color:#111;background:#fff;box-shadow:0 1px 2px #0003}.lobby-tab-count{font-size:12px;font-weight:400;color:#777}.lobby-tab.has-unread .lobby-tab-count{min-width:18px;padding:0 5px;border-radius:9px;color:#fff;background:var(--error)}.lobby-left{display:flex;flex-direction:column;flex:1;min-height:0}.lobby-left>.panel{flex:1;min-height:0}.lobby-tab-rooms .lobby-chat,.lobby-tab-chat .room-list-panel,.lobby-tab-users .lobby-left,.lobby-right{display:none}.lobby-tab-users .lobby-right{display:flex;flex:1;min-height:0}.room-list{grid-template-columns:minmax(0,1fr)}.user-item{min-height:44px;font-size:14px}.room-head-item,.room-head-mode{display:none}.player-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}.player-card{grid-template-columns:56px 1fr;grid-template-rows:56px auto;padding:4px}.player-card .avatar{width:46px!important;height:46px!important;font-size:21px!important}.player-score{font-size:15px}.player-actions .btn{min-height:44px;padding:4px 2px}.modal-backdrop{align-items:flex-end;padding:0}.modal{width:100%!important;max-height:calc(var(--app-h, 100dvh) - 24px);border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:sheet-up .22s ease}.kb-open .modal{padding-bottom:0}.modal-title{padding:10px 12px 10px 16px;border-radius:16px 16px 0 0;font-size:15px}.modal-body{padding:14px 16px;-webkit-overflow-scrolling:touch}.modal-footer{padding:0 16px 14px}.modal-footer .btn{flex:1;min-height:44px}.form-row{grid-template-columns:1fr;gap:4px}.form-label{text-align:left}.ranking td,.ranking th{padding:8px 6px}}@keyframes sheet-up{0%{transform:translateY(40%);opacity:.4}to{transform:none;opacity:1}}@media(max-width:639px),(max-width:1023px)and (max-height:500px){.game-screen{gap:6px;padding-top:8px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.game-screen .room-head{display:none}.game-box{padding:6px 8px 8px}.game-top{display:flex;align-items:center;gap:6px;height:auto;min-height:30px}.round-indicator{flex:none;font-size:11px}.round-indicator b{font-size:16px}.title-row{flex:1;min-width:0;gap:3px}.title-char{flex:0 1 24px;min-width:14px;width:24px;height:24px;font-size:13px;border-radius:5px}.title-current{flex-basis:28px;width:28px;height:28px;font-size:16px}.game-hints{flex:none;gap:2px}.hint-chip{padding:0 6px;font-size:10px;line-height:1.5}.hint-long{display:none}.hint-short{display:inline}.jjo-bar{width:100%;margin:6px 0 0}.board-slot{height:54px;margin-top:4px}.game-here-wrap{width:100%}.game-here{padding:4px}.game-here .chat-input{height:40px}.game-here .myturn-label{padding:2px 6px;font-size:12px}.history-inbox{display:none}.history-strip{display:flex;flex:none;height:38px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.history-strip::-webkit-scrollbar{display:none}.history-strip .history-item{width:120px;height:32px;margin:3px 3px 3px 0;line-height:32px;font-size:13px}.game-players{justify-content:flex-start;gap:6px;padding:6px 2px;scrollbar-width:none}.game-players::-webkit-scrollbar{display:none}.game-user{display:grid;grid-template-columns:34px auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:6px;row-gap:0;width:140px;padding:4px 8px 4px 6px;border-width:2px}.game-user .avatar{grid-column:1;grid-row:1 / 3}.game-user-info{display:contents}.game-user-name{grid-column:2 / 4;grid-row:1}.game-user-score{grid-column:2;grid-row:2}.game-user .avatar{width:34px!important;height:34px!important;font-size:15px!important}.game-user-order{display:none}.game-user-name{justify-content:flex-start;margin:0;font-size:12px}.game-user-score{font-size:15px}.game-user-current{transform:translateY(-3px)}.game-user-typing{grid-column:3;grid-row:2;height:auto;line-height:1.3;font-size:11px}.delta-score{animation-name:ScoreGoingCompact,score-gone}.game-chat{flex:1 1 0;min-height:0;padding:4px}.game-chat .chat-log{min-height:0}.is-myturn .game-chat .chat-input-row,.kb-open .page-game .menubar{display:none}.kb-open .page-game .game-screen{padding-top:max(6px,env(safe-area-inset-top))}.kb-open .game-screen .history-strip{display:none}}@media(max-width:1023px)and (max-height:500px){.menubar{min-height:calc(48px + env(safe-area-inset-top))}.menu-btn,.menu-btn:hover{margin-top:4px}.game-screen{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"box players" "box history" "box chat";column-gap:10px;row-gap:6px}.game-box{grid-area:box;align-self:start;max-height:100%;overflow-y:auto}.game-players{grid-area:players}.history-strip{grid-area:history}.game-chat{grid-area:chat}.kb-open .game-screen .game-players,.kb-open .game-screen .game-chat .chat-log{display:none}.lobby-left{grid-template-rows:minmax(0,1fr) minmax(120px,40%)}.room-chat{height:max(130px,40%)}.player-panel{min-height:90px}}@keyframes ScoreGoingCompact{0%{margin-top:-44px;font-size:18px;opacity:1}10%{margin-top:-50px;font-size:22px;opacity:.9}to{margin-top:-16px;font-size:15px;opacity:.1}}.check.is-disabled{opacity:.55}.badge-items{color:#fff;background:#7048e8}.hint-direction{background:#b9dcf7}.hint-random{color:#fff;background:#0c8599}.hint-direction.is-reverse{color:#fff;background:#7048e8;animation:game-items-pop .3s ease-out}.hint-timecut{color:#fff;background:#e03131;animation:game-items-pop .3s ease-out}.round-cut{animation:round-cut .8s ease-out}@keyframes round-cut{0%,40%{background:#ff4d4d;box-shadow:0 0 10px #ff4d4d}}.item-glyph{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:6px;font-size:13px;font-weight:700;line-height:1;color:#fff;background:#868e96;box-shadow:inset 0 -2px #00000040}.item-time_plus{background:#2f9e44}.item-slow{background:#e8590c}.item-shield{background:#1971c2}.item-reverse{background:#7048e8}.item-shuffle{background:#d6336c;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.18) 0 4px,transparent 4px 8px)}.item-long_word{background:#a61e4d}.item-skip{background:#0c8599}.item-time_cut{background:#e03131}.item-swap{background:#f59f00}.item-bar{width:min(500px,100%);margin:2px auto 4px;padding:5px 6px 4px;border-radius:10px;background:#00000059}.item-bar.has-armed{box-shadow:inset 0 0 0 1px #66ff6680}.item-bar-row{display:flex;align-items:center;gap:6px}.item-bar-label{display:flex;flex-direction:column;flex:none;line-height:1.15;font-size:12px}.item-bar-label small{font-size:10px;color:#b9c4d0}.item-slots{display:flex;flex:1;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none}.item-slots::-webkit-scrollbar{display:none}.item-slot{position:relative;display:flex;align-items:center;gap:4px;flex:1 0 74px;max-width:96px;height:32px;padding:0 6px 0 4px;border:2px solid rgba(255,255,255,.15);border-radius:8px;font:inherit;font-size:11px;font-weight:700;color:#eee;background:#ffffff14;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}button.item-slot:hover{background:#ffffff29}.item-slot.is-armed{border-color:#6f6;color:#131;background:#cfc;box-shadow:0 0 8px #6f69;transform:translateY(-1px)}.item-slot-empty{border-style:dashed;background:transparent;cursor:default}.item-slot-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item-slot-key{position:absolute;top:0;right:3px;font-size:8px;opacity:.5}.item-bar-foot{display:flex;align-items:center;gap:6px;margin-top:3px;min-height:18px}.item-disarm{flex:none;height:18px;padding:0 8px;border:0;border-radius:8px;font:inherit;font-size:11px;color:#fff;background:#c92a2a;cursor:pointer}.item-bar-info{flex:1;min-width:0;min-height:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:15px;color:#b9c4d0}.item-bar.has-armed .item-bar-info{color:#9f9}.item-bar-info.is-peek{color:#ffd36b;white-space:normal}.jjo-bar{position:relative}.item-announce{position:absolute;left:50%;bottom:calc(100% + 2px);z-index:3;display:flex;align-items:center;gap:6px;max-width:calc(100% - 12px);padding:3px 10px 3px 4px;border:2px solid #ffd36b;border-radius:10px;font-size:15px;font-weight:700;white-space:nowrap;color:#fff;background:#141428eb;box-shadow:0 4px 14px #00000080;pointer-events:none;transform:translate(-50%);animation:item-announce-in .25s ease-out both}.item-announce span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.item-announce.is-blocked{border-color:#4dabf7}@keyframes item-announce-in{0%{opacity:0;transform:translate(-50%,-8px) scale(1.15)}to{opacity:1;transform:translate(-50%) scale(1)}}.game-user-items{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:100%;font-size:10px;line-height:1.3;color:#555}.game-user-items-line{white-space:nowrap}.game-user-pending{position:absolute;top:1px;right:1px;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:1px}.pending-chip{padding:0 4px;font-size:10px;line-height:1.4;box-shadow:0 1px 2px #0000004d;border-radius:5px;font-weight:700;white-space:nowrap;color:#fff}.pending-slow{background:#e8590c}.pending-long{background:#a61e4d}.pending-plus{background:#2f9e44}@media(max-width:639px),(max-width:1023px)and (max-height:500px){.item-bar{margin:0 0 2px;padding:4px 5px 3px}.item-bar-label b{display:none}.item-slot{flex:0 0 auto;height:30px;padding:0 6px 0 3px}.item-slot-empty{width:30px}.item-disarm{height:24px}.item-glyph{width:20px;height:20px;font-size:12px}.item-announce{font-size:13px}.game-user-items{grid-column:2 / 4;grid-row:3;align-items:flex-start}}.badge-sami{color:#fff;background:#e8590c}.badge-random{color:#fff;background:#0c8599}.mode-name{margin-right:2px}.mode-desc{margin:-4px 0 2px;padding:6px 8px;border-radius:6px;font-size:12px;line-height:1.45;color:#444;background:#0000000d}.mode-lang{display:inline-block;margin-right:6px;padding:0 6px;border-radius:6px;font-size:11px;font-weight:700;color:#fff;background:#3573e4}.mode-lang-en{background:#2f9e44}.mode-no-options{margin:2px 0;font-size:12px}.jjo-display-word-length{margin-left:2px;font-size:14px;color:orange}.jjo-display-swap{margin-right:4px;font-size:14px;color:#f59f00;animation:item-announce-in .25s ease-out both}.jjo-display-swap s{opacity:.8}.display-beat-rev{justify-content:flex-end}.jjo-bar-rev .graph-bar{margin-left:auto;text-align:left}.history-end b{margin-right:0;margin-left:1px}.typing-display{overflow:hidden;text-overflow:ellipsis}.typing-current{color:#ff4}.typing-turn-time .graph-bar{width:100%;padding-left:4px;padding-right:4px;text-align:center;text-overflow:ellipsis;background:#70712d}.game-user-speed{color:#44f;animation:speed-in .3s ease 1s both}.game-user-speed small{margin-left:1px;font-size:11px}@keyframes speed-in{0%{opacity:0}to{opacity:1}}.ranking-kpm{display:block;white-space:nowrap;font-size:11px;font-weight:700;color:#44f}.guest-mark{display:inline-flex;align-items:center;flex:none;margin-right:3px;color:#8a8a8a;vertical-align:-2px}.avatar-img{display:block;object-fit:cover;background:#fff}button.menubar-user{border:0;font:inherit;color:inherit;cursor:pointer}button.menubar-user:hover{background:#fffc}.menubar-user .guest-mark{margin-right:-3px}.user-name .guest-mark,.player-name .guest-mark,.game-user-name .guest-mark{margin-right:2px}.chat-head{display:inline-flex;align-items:center}.ranking-name .guest-mark{margin-right:0}.login-tabs{display:flex;gap:4px;margin:4px 0 10px;padding:3px;border-radius:10px;background:#ddd}.login-tab{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:34px;border:0;border-radius:8px;background:transparent;font:inherit;font-weight:700;color:#555;cursor:pointer}.login-tab.is-active{background:#fff;color:var(--text);box-shadow:0 1px 2px #0003}.account-form{display:flex;flex-direction:column;gap:8px}.account-field{display:flex;flex-direction:column;gap:3px}.account-label{font-size:12px;font-weight:700;color:#444}.account-field input{width:100%;font-size:15px;padding:8px 12px}.account-submit{margin-top:4px;min-height:38px}.account-switch{margin:2px 0 0;text-align:center}.link-btn{border:0;padding:0;background:none;font:inherit;color:#1767ca;font-weight:700;text-decoration:underline;cursor:pointer}.form-ok{margin:8px 0 0;color:#2d8a3e;font-weight:700}.profile-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.profile-head-info{min-width:0;flex:1}.profile-name{display:flex;align-items:center;font-size:17px;font-weight:700;word-break:break-all}.profile-head .muted{margin:2px 0 6px}.profile-photo-actions{display:flex;flex-wrap:wrap;gap:5px}.profile-nick-row{display:flex;gap:6px}.profile-nick-row input{flex:1;min-width:0}@media(pointer:coarse),(hover:none),(max-width:1023px){.account-field input{font-size:16px}.login-tab{min-height:40px}}.emoji-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;padding:0;border:0;border-radius:8px;color:#777;background:transparent;cursor:pointer}.emoji-btn:hover,.emoji-btn.is-open{color:#2f6fd0;background:#2f6fd01f}.chat-item-emoji{align-items:flex-start}.chat-item-emoji>.chat-head,.chat-item-emoji>.chat-stamp{margin-top:2px}.chat-emoji{flex:1}.chat-emoji img{display:block;width:64px;height:64px;margin:2px 0;object-fit:contain;object-position:left center}.chat-bubble-emoji{padding:3px;min-width:0}.chat-bubble-img{display:block;width:40px;height:40px;object-fit:contain;animation:bubble-in .18s ease-out}.emoji-picker{--ep-bg: #2b2b2d;--ep-line: rgba(255, 255, 255, .1);--ep-text: #ececec;--ep-muted: #9a9a9e;--ep-chip: rgba(255, 255, 255, .08);--ep-accent: #3d84f5;--ep-accent-fill: rgba(61, 132, 245, .28);position:fixed;z-index:60;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:12px;color:var(--ep-text);background:var(--ep-bg);box-shadow:0 12px 40px #00000073,0 2px 8px #0000004d;font-size:13px;animation:emoji-pop .14s ease-out}@keyframes emoji-pop{0%{opacity:0;transform:translateY(6px) scale(.98)}}@media(prefers-reduced-motion:reduce){.emoji-picker,.chat-bubble-img{animation:none}}.emoji-search{flex:none;display:flex;align-items:center;gap:6px;padding:9px 10px 7px;color:var(--ep-muted)}.emoji-search input,.emoji-search input:focus{flex:1;min-width:0;padding:2px 0;border:0;border-radius:0;outline:none;box-shadow:none;color:var(--ep-text);background:transparent;font:inherit;font-size:14px}@media(pointer:coarse){.emoji-search input,.emoji-search input:focus{font-size:16px}}.emoji-search input::placeholder{color:var(--ep-muted)}.emoji-search-clear{flex:none;width:22px;height:22px;padding:0;border:0;border-radius:50%;color:var(--ep-bg);background:var(--ep-muted);font-size:15px;line-height:22px;cursor:pointer}.emoji-tabs{flex:none;display:flex;gap:4px;padding:0 10px 7px;overflow-x:auto;scrollbar-width:none}.emoji-tabs::-webkit-scrollbar{display:none}.emoji-tab{flex:none;display:inline-flex;align-items:baseline;gap:4px;padding:3px 9px;border:1.5px solid transparent;border-radius:999px;color:var(--ep-text);background:var(--ep-chip);font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}.emoji-tab span{color:var(--ep-muted)}.emoji-tab:hover{background:#ffffff21}.emoji-tab.is-active{border-color:var(--ep-accent);background:#2c4a7a}.emoji-tab.is-active span{color:#c5d6f2}.emoji-body{flex:1;min-height:0;overflow-y:auto;border-top:1px solid var(--ep-line);overscroll-behavior:contain}.emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:4px;padding:8px}.emoji-cell{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:4px;border:2px solid transparent;border-radius:9px;color:var(--ep-muted);background:transparent;font:inherit;cursor:pointer}.emoji-cell.is-selected{border-color:var(--ep-accent);color:var(--ep-text);background:var(--ep-accent-fill)}.emoji-cell-img{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;max-width:56px}.emoji-cell-img img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none}.emoji-cell-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px;white-space:nowrap}.emoji-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:100%;padding:20px;color:var(--ep-muted);text-align:center}.emoji-footer{flex:none;display:flex;align-items:center;gap:10px;padding:5px 10px;border-top:1px solid var(--ep-line);color:var(--ep-muted);font-size:10px}.emoji-count{display:inline-flex;align-items:center;gap:5px}.emoji-hints{display:flex;gap:8px;margin-left:auto}.emoji-hint{display:inline-flex;align-items:center;gap:4px}.emoji-hint kbd{padding:1px 5px;border-radius:4px;color:var(--ep-text);background:#ffffff1a;font:inherit}@media(pointer:coarse),(max-width:639px){.emoji-hints{display:none}}@media(max-width:639px){.emoji-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}.emoji-cell-img{max-width:52px}}.chat-input-row{position:relative}.cmd-suggest{position:absolute;left:0;bottom:calc(100% + 4px);z-index:40;display:flex;flex-direction:column;min-width:220px;max-width:min(360px,100%);padding:4px;border:1px solid #c9d3dc;border-radius:10px;color:var(--text);background:#fff;box-shadow:0 6px 18px #14283c38;font-size:12px;text-align:left}.cmd-item{display:flex;align-items:baseline;gap:8px;padding:6px 8px;border:0;border-radius:7px;color:inherit;background:transparent;font:inherit;text-align:left;cursor:pointer}.cmd-item.is-selected{background:#e2f0fd}.cmd-item b{flex:none;color:#1c6fc0}.cmd-alias{flex:none;color:var(--muted);font-size:11px}.cmd-desc{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:#555}.cmd-foot{padding:4px 8px 2px;border-top:1px solid #eef1f4;margin-top:2px;color:var(--muted);font-size:10px}@media(pointer:coarse){.cmd-item{min-height:40px;align-items:center}.cmd-foot{display:none}}
