@import url('/decision-dialog.css');
@import url('/practice-entry.css');
:root{font-family:Georgia,'Times New Roman',serif;color:#f3eee0;background:#0b1823;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #72868c88;background:#233e50;border-radius:7px;padding:10px 14px;line-height:1.2}button:hover{filter:brightness(1.15)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #e5be67;outline-offset:2px}.primary{background:linear-gradient(#d2b269,#967335);color:#121d25;border-color:#e8cd8c;font-weight:bold}input,select{color:#f3eee0;background:#102b3b;border:1px solid #617883;border-radius:5px;padding:10px;min-width:0}a{color:#e4c985}h1,h2,h3,p{overflow-wrap:anywhere}p{line-height:1.5}.eyebrow{font:10px system-ui,sans-serif;letter-spacing:2px;color:#ccb37c}.muted{color:#b7c4c9;font:13px/1.5 system-ui,sans-serif}.loading-screen{padding:35vh 0;text-align:center;letter-spacing:5px}.lobby{max-width:700px;margin:auto;padding:40px 22px;min-height:100dvh;background:radial-gradient(ellipse at top,#285068,#102330 65%)}.lobby header{display:flex;justify-content:space-between;align-items:center}.brand{font-size:16px;letter-spacing:4px;color:#d4bb80}.lobby h1{font-size:clamp(36px,9vw,62px);font-weight:normal;line-height:1.12;margin:54px 0 18px}.lobby .intro{max-width:440px;color:#c8d3d6}.login{display:flex;gap:10px;margin:30px 0}.login input{flex:1}.queue-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:30px}.queue-option{text-align:left;padding:24px 16px;background:#173646;min-height:160px}.queue-option strong{display:block;font-size:46px;color:#e4cb8c}.queue-option span{display:block;margin-top:10px}.queue-wait{text-align:center;padding:25px;background:#183646;border:1px solid #6d7f83;border-radius:10px;margin:30px 0}.lobby-footer{margin-top:40px;display:flex;gap:12px;flex-wrap:wrap}.stage{max-width:780px;margin:auto;min-height:100dvh;padding:20px;background:radial-gradient(ellipse at top,#2a4b60,#102330 75%)}.stage-header{display:flex;justify-content:space-between;align-items:center;gap:15px}.stage h1{font-weight:normal;font-size:32px;margin:28px 0 10px}.countdown{font:tabular-nums 20px system-ui,sans-serif;white-space:nowrap;color:#e4cb8c}.stage .identity-panel{max-width:420px;margin:12vh auto;text-align:center;border:1px solid #b19c70;border-radius:12px;padding:32px;background:#1a3746}.identity-panel h2{font-size:36px;color:#e1c383}.players-ready{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.players-ready span{border:1px solid #6b7c82;border-radius:5px;padding:8px;font:12px system-ui}.players-ready .ready{border-color:#92bc9f;color:#b8e2bf}.candidate-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:22px 0}.candidate{border:1px solid #6e8189;border-radius:8px;background:#153345;overflow:hidden;min-width:0}.candidate img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}.candidate h3{font-size:14px;margin:9px 7px;min-height:35px}.candidate button{width:calc(100% - 10px);margin:0 5px 7px;font:12px system-ui;padding:10px 4px}.lord-showcase{display:flex;align-items:flex-start;gap:14px;padding:14px;background:#193b4b;border-radius:9px;margin:16px 0}.lord-showcase>img{width:76px;aspect-ratio:2/3;object-fit:cover;border:1px solid #b8a16a}.lord-showcase h3{margin:0 0 6px}.lord-showcase p{font:12px/1.4 system-ui;margin:7px 0}.inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.stage-banner{padding:12px;border:1px solid #d6b76c;border-radius:7px;background:#233d4b;font:13px/1.45 system-ui}.table{position:relative;height:100dvh;min-height:570px;width:min(100vw,56dvh);min-width:300px;margin:auto;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 55% 28%,#68869855,transparent 65%),linear-gradient(#24475d,#34566d 75%,#1a3546);box-shadow:0 0 80px #0009}.table-header{position:absolute;inset:2% 3% auto;display:flex;gap:8px;align-items:flex-start;z-index:3}.table-header>button{padding:7px 9px;background:#1b3549b3}.goal{flex:1;text-align:center;min-width:0}.goal small{font:9px system-ui;letter-spacing:1px;color:#dfd0ad}.goal strong{display:block;font-size:12px;line-height:1.35;max-width:250px;margin:4px auto}.deck{position:absolute;top:10%;left:2%;display:flex;flex-direction:column;text-align:center;border:1px solid #b7a36e;padding:5px 6px;z-index:2;background:#1c3b4dcc;border-radius:3px;font:9px system-ui}.deck b{font-size:17px;color:#e7cf94}.phase-label{position:absolute;top:8%;left:19%;right:19%;text-align:center;font:10px system-ui;color:#e5d2a8;letter-spacing:.6px}.hero-card{position:absolute;display:block;padding:0;aspect-ratio:2/3;width:24.6%;border:1px solid #c4b07a;border-radius:5px;box-shadow:0 3px 12px #0a192a99;overflow:visible;text-align:left;background:#152d3e}.hero-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:4px}.hero-card:after{content:'';position:absolute;inset:46% 0 0;background:linear-gradient(transparent,#0d1728e8 77%);border-radius:0 0 4px 4px;pointer-events:none}.hero-card .hero-name{position:absolute;z-index:1;left:6%;right:6%;bottom:24%;font-size:clamp(11px,2.9dvh,15px);line-height:1.1;font-weight:bold;text-shadow:0 1px 4px #000;overflow-wrap:anywhere}.hero-card .identity{position:absolute;z-index:2;top:-7px;left:-5px;min-width:23px;text-align:center;padding:4px;border-radius:4px;background:#756481;border:1px solid #d4b9de;font:15px Georgia}.identity.lord{background:#923d4a;border-color:#dba66d}.hero-card .seat-number{position:absolute;top:5px;right:5px;background:#173444cc;border-radius:3px;padding:3px;font:9px system-ui;z-index:1}.hero-card .hand-count{position:absolute;bottom:7%;left:7%;z-index:1;font:12px system-ui}.hero-card .hp{position:absolute;bottom:5%;right:6%;z-index:1;font:bold 16px Georgia;color:#f1a6a6;text-shadow:0 1px 2px #000}.hero-card .health-line{position:absolute;bottom:-8px;left:4%;right:4%;height:4px;background:#112731}.health-line i{display:block;height:100%;background:#62d4ad}.hero-card .equip-dot{position:absolute;top:31px;right:4px;z-index:2;background:#162c3ddd;padding:2px 4px;border:1px solid #8e9b99;font:9px system-ui}.hero-card.active-turn{outline:2px solid #d3b46e;outline-offset:2px}.hero-card.responding{box-shadow:0 0 17px #7be3c599;outline:2px solid #85d7b9}.hero-card.targeted{outline:3px solid #fff0ac;outline-offset:3px}.target-order{position:absolute;z-index:3;right:-6px;bottom:42%;border-radius:50%;background:#d4b268;color:#152c3c;min-width:23px;text-align:center;font:bold 14px system-ui;padding:4px}.hero-card.dead{filter:grayscale(1);opacity:.58}.hero-card .member-state{position:absolute;top:45%;left:5%;right:5%;z-index:2;text-align:center;font:10px system-ui;background:#172633d9;padding:3px}.five .right-lower{right:2.5%;top:40%}.five .top-right{right:17%;top:14%}.five .top-left{left:17%;top:14%}.five .left-lower{left:2.5%;top:40%}.eight .hero-card:not(.self-card){width:22.4%}.eight .top-left{left:3%;top:13%}.eight .top-mid{left:38.8%;top:13%}.eight .top-right{right:3%;top:13%}.eight .right-upper{right:2.5%;top:31.3%}.eight .left-upper{left:2.5%;top:31.3%}.eight .right-lower{right:2.5%;top:49.6%}.eight .left-lower{left:2.5%;top:49.6%}.center-activity{position:absolute;top:36%;bottom:33%;left:29%;right:29%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;text-align:center}.center-activity .watermark{font-size:13px;letter-spacing:2px;color:#d2d9ce55}.center-activity p{font:11px/1.4 system-ui;margin:4px 0;max-height:65px;overflow:auto}.eight .center-activity{top:35%}.played-card{width:66px;max-height:105px;aspect-ratio:2/3;background:#f7f0d9;border:1px solid #b99d62;color:#233445;position:relative;border-radius:5px;overflow:hidden;padding:5px}.played-card img{width:100%;height:64%;object-fit:contain}.played-card strong{display:block;font-size:11px}.table-clock{font:11px system-ui;letter-spacing:.5px;color:#f2d990}.clock-track{height:3px;width:100%;background:#0c2535}.clock-fill{display:block;height:100%;background:#dcc17b;transition:width .1s linear}.actions{position:absolute;bottom:27.5%;left:7%;right:7%;display:flex;justify-content:center;gap:7px;align-items:center;z-index:4;flex-wrap:wrap}.actions button{font:12px system-ui;min-height:33px;padding:8px 12px}.action-options{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;width:100%}.action-options select{font:11px system-ui;max-width:47%;padding:5px}.instruction{position:absolute;bottom:22.1%;left:3%;right:3%;height:4.6%;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;background:#173144cc;clip-path:polygon(3% 0,97% 0,100% 50%,97% 100%,3% 100%,0 50%);padding:4px 14px;font:11px/1.25 system-ui;z-index:3}.own-dock{position:absolute;bottom:0;left:0;right:0;height:22%;background:linear-gradient(#18334799,#102a3ce8);border-top:1px solid #7c9195}.own-dock .self-card{left:2.5%;bottom:10%;height:82%;width:auto;max-width:25%;aspect-ratio:2/3}.skill-row{position:absolute;top:5%;left:29%;right:2%;display:grid;grid-template-columns:1fr 1fr;gap:5px;height:23%}.skill-row button{padding:4px;overflow:hidden;min-width:0;border-radius:5px;background:linear-gradient(#536b7e,#29445c)}.skill-row strong{display:block;font-size:12px;line-height:1.1;overflow-wrap:anywhere}.skill-row small{font:7px system-ui;color:#d4d7d0}.hand{position:absolute;top:29%;bottom:1%;left:28%;right:0;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:9px 12px 5px 5px;scrollbar-width:thin;touch-action:pan-x;isolation:isolate}.hand-card{height:100%;border:0;background:none;padding:0;position:relative;display:block;transition:transform .12s}.hand-card.selected{transform:translateY(-6px)}.card-face{display:block;height:100%;border:1px solid #b49a5e;border-radius:4px;background:linear-gradient(#fffbed,#e5dfc9);color:#172d40;overflow:hidden;box-shadow:0 2px 4px #0007}.hand-card.selected .card-face{border:2px solid #f0d68b}.card-rank{position:absolute;left:5px;top:4px;font:14px Georgia;line-height:1}.red{color:#af3340}.card-symbol{display:block;height:68%;position:absolute;top:22%;right:1px}.card-symbol img{height:100%;width:100%;object-fit:contain}.card-kind{text-transform:uppercase}.empty-hand{font:12px system-ui;color:#b6c6cc;align-self:center}.dialog-clock{position:sticky;top:0;background:#112d3b;border-bottom:1px solid #60777f;padding:8px;z-index:4;text-align:right;font:12px system-ui}dialog{padding:0;background:#142f40;color:#f3eee0;border:1px solid #a89567;border-radius:12px;width:min(580px,96vw);max-height:87dvh;box-shadow:0 20px 80px #000b}dialog::backdrop{background:#08131bc7;backdrop-filter:blur(3px)}.reader-head{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:15px;align-items:center;background:#18384a;padding:14px 18px;border-bottom:1px solid #819096}.reader-head h2{font-size:22px;margin:0}.reader-body{padding:6px 20px 24px;font:14px/1.6 system-ui}.reader-body h3{font:20px Georgia;color:#e3c987;margin-bottom:5px}.reader-body .reader-portrait{float:right;width:30%;margin:12px 0 16px 18px;border:1px solid #a89567;border-radius:5px}.reader-body .reader-portrait img{display:block;width:100%}.reader-body .card-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.reader-body .card-list button{text-align:left;font-size:13px}.reader-body button{font:13px system-ui}.reader-body hr{border:0;border-top:1px solid #607b87;margin:20px 0}.reader-body ul{padding-left:22px}.notice-list{display:flex;flex-wrap:wrap;gap:6px}.score-table{width:100%;border-collapse:collapse;font:12px/1.4 system-ui}.score-table th,.score-table td{border-bottom:1px solid #5e7781;padding:9px 5px;text-align:left}.score-table .mvp{color:#f0ce7e}.results{overflow-y:auto}.score-breakdown{font:12px/1.5 system-ui;color:#bccbd0}#toast,#voice-subtitle,#connection{position:fixed;z-index:20;left:50%;transform:translateX(-50%);background:#0b1e2df2;border:1px solid #baa574;border-radius:7px;padding:10px 16px;max-width:90vw;width:max-content;font:13px/1.4 system-ui;box-shadow:0 4px 30px #0008}#toast{top:10px}#voice-subtitle{bottom:24%;max-width:min(480px,95vw)}#connection{top:12px;border-color:#e09d68;background:#4f3427}.error{color:#ffc6ab}.turn-tip{font:10px system-ui;color:#d7c18e}.connection-dot{height:7px;width:7px;border-radius:50%;background:#84b59b;display:inline-block;margin-right:4px}.connection-dot.offline{background:#b08c80}.small-button{padding:5px 8px!important;font-size:11px!important}@media(max-width:550px){.candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.candidate h3{min-height:30px;font-size:12px}.candidate img{max-height:180px}.stage{padding:16px}.stage h1{font-size:26px}.lobby{padding:24px 20px}.lobby h1{margin-top:42px}}@media(max-height:700px){.hero-card .hero-name{font-size:11px}.hero-card .hp{font-size:14px}.skill-row strong{font-size:11px}.table-header .goal strong{font-size:10px}.hand .card-title{font-size:10.5px!important}.actions button{font-size:11px;min-height:29px;padding:6px 9px}.instruction{font-size:10px}.center-activity p{font-size:10px}.phase-label{font-size:9px}.hero-card .hand-count{font-size:11px}}

.arena-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin-top:18px;padding:17px 18px;text-align:left;background:#183444;border-color:#627a8488}.arena-entry:disabled{opacity:.7}.arena-entry strong{display:block;font-size:21px;font-weight:normal;color:#e4cb8c}.arena-entry small{display:block;margin-top:6px;font:12px/1.4 system-ui,sans-serif;color:#c5d1d4}.arena-entry #arena-status{flex-shrink:0;padding:6px 10px;border:1px solid #78909c66;border-radius:20px;font:12px/1.4 system-ui,sans-serif;color:#d7e0df}

