@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Prata&display=swap');
:root{--paper:#f8f2e9;--paper-2:#fffaf3;--ink:#402d2a;--muted:#81746c;--red:#8e3832;--red-deep:#69231f;--sage:#798677;--line:#e6dbcd;--shadow:0 18px 55px rgba(77,55,42,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:radial-gradient(circle at 0 15%,#e5e8db 0,transparent 30%),radial-gradient(circle at 100% 42%,#f5ddd2 0,transparent 32%),var(--paper);font-family:'DM Sans',Arial,sans-serif;font-size:15px;line-height:1.5}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #a0ab91;outline-offset:3px}img{max-width:100%}h1,h2,h3,p{margin:0}.site-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;padding:0 clamp(20px,5vw,74px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dcd1c3a6;background:#f8f2e9d9;backdrop-filter:blur(14px);position:relative;z-index:10}.wordmark{font-family:Prata,Georgia,serif;font-size:25px;letter-spacing:-1.5px;color:var(--red-deep)}.wordmark i{font-style:normal;color:var(--red)}.wordmark span{color:#cfa276;font-size:29px;line-height:0;margin-left:3px}.top-actions{display:flex;align-items:center;gap:24px}.text-control{border:0;background:none;color:var(--red);font-weight:600}.text-control:hover{text-decoration:underline;text-underline-offset:5px}.local-pill{border:1px solid #d5c9ba;border-radius:100px;padding:5px 11px;font-size:11px;color:#796e64;letter-spacing:.04em}.footer{margin-top:auto;border-top:1px solid var(--line);padding:22px clamp(20px,5vw,74px);display:flex;justify-content:space-between;gap:20px;color:#8f8379;font-size:12px}.loading{text-align:center;padding:100px 20px;color:var(--muted)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--red)}.title{font:normal clamp(38px,5vw,70px)/1.12 Prata,Georgia,serif;letter-spacing:-2px;color:var(--red-deep)}.title em{font-style:italic;color:var(--sage)}.lead{font-size:17px;line-height:1.8;color:#6f615b;max-width:600px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--paper-2);color:var(--red-deep);border:1px solid #d9c8b6;border-radius:11px;min-height:48px;padding:11px 22px;font-weight:700;transition:transform .18s,box-shadow .18s,background .18s}.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #6a3d311f}.button.primary{background:var(--red);color:#fff;border-color:var(--red)}.button.small{min-height:35px;padding:7px 12px;font-size:12px}.button.ghost{background:transparent}.button.full{width:100%}.hero{max-width:1350px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:clamp(30px,6vw,100px);align-items:center;padding:65px clamp(24px,5vw,70px) 80px}.hero-copy>.eyebrow{margin-bottom:23px}.hero-copy>.title{max-width:720px}.hero-copy>.lead{margin-top:28px}.hero-details{display:flex;gap:9px;flex-wrap:wrap;margin:26px 0}.hero-details span{background:#fffaf2b8;border:1px solid #e6dace;border-radius:100px;padding:8px 13px;color:#79685e;font-size:12px}.hero-ornament{position:relative;min-height:120px;margin:18px 0}.hero-ornament:before{content:'';position:absolute;width:76%;height:1px;background:linear-gradient(90deg,#bc9990,transparent);top:55px;left:0}.hero-ornament:after{content:'✦';position:absolute;top:32px;left:72%;font-size:34px;color:#c7a982}.hero-board{position:relative;display:flex;justify-content:center;align-items:center;min-height:660px}.hero-board:before{content:'';position:absolute;width:490px;height:490px;border-radius:50%;background:#e9ded0;filter:blur(2px);left:50%;top:50%;transform:translate(-50%,-50%)}.hero-board img{position:relative;width:min(385px,78%);height:660px;object-fit:cover;object-position:center 37%;border:8px solid #fffaf3;border-radius:220px 220px 22px 22px;box-shadow:0 20px 60px #674c3d33}.hero-floating{position:absolute;background:#fffaf1eb;border:1px solid #e2d0be;border-radius:16px;padding:12px 17px;box-shadow:0 14px 32px #674c3d18;font:18px Prata,Georgia,serif;z-index:2}.hero-floating.one{left:0;top:23%}.hero-floating.two{right:0;bottom:19%}.join-zone{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.entry-card{background:#fffaf3d9;border:1px solid #eaded1;padding:23px;border-radius:18px;box-shadow:0 10px 35px #7657470c}.entry-card h2{font:23px Prata,Georgia,serif;color:var(--red-deep);margin-bottom:8px}.entry-card p{font-size:13px;color:var(--muted);margin-bottom:18px}.entry-card .button{width:100%}.form-panel{max-width:820px;margin:50px auto 90px;padding:0 24px}.form-panel>.eyebrow{margin-bottom:10px}.form-panel h1{font:42px Prata,Georgia,serif;margin-bottom:15px;color:var(--red-deep)}.form-panel>.lead{font-size:15px;margin-bottom:25px}.paper-card{background:#fffaf4;border:1px solid #e5d8c9;border-radius:22px;padding:30px;box-shadow:var(--shadow)}.field-label{display:block;color:#65544d;font-size:13px;font-weight:700;margin:15px 0 8px}.text-input,textarea{width:100%;border:1px solid #dccdc0;background:#fffcf8;border-radius:11px;padding:13px 15px;color:var(--ink);font-size:16px;outline:none}.text-input:focus,textarea:focus{border-color:#a97668;box-shadow:0 0 0 3px #a9766825}.organ-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:16px 0 26px}.organ-option{border:1px solid #e0d4c8;background:#fcf8f1;border-radius:15px;min-height:123px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#654d46;font-size:12px}.organ-option img{height:68px;width:80px;object-fit:contain;filter:drop-shadow(0 6px 6px #53473d22)}.organ-option.selected{border:2px solid var(--red);background:#f5e7dd;box-shadow:0 0 0 2px #8e383225}.organ-option.taken{opacity:.36}.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.form-error{padding:12px 14px;background:#f8e1dc;color:#8e3832;border-radius:9px;margin:16px 0;font-size:13px}.room-head{max-width:1300px;margin:0 auto;padding:29px 25px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.room-head h1{font:34px Prata,Georgia,serif;color:var(--red-deep)}.room-head .eyebrow{margin-bottom:4px}.room-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.code-chip{border:1px solid #cdbcae;background:#fffaf3;border-radius:10px;padding:8px 13px;font-weight:700;letter-spacing:.13em;color:var(--red)}.waiting{max-width:1030px;padding:20px 25px 100px;margin:auto;display:grid;grid-template-columns:1fr 300px;gap:25px}.waiting .paper-card h2{font:25px Prata,Georgia,serif;color:var(--red-deep)}.waiting .paper-card>p{color:var(--muted);margin-top:10px}.player-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:25px 0}.player-tile{background:#f6eee4;border:1px solid #e8dbce;border-radius:15px;padding:14px;display:flex;align-items:center;gap:12px}.player-tile img{width:43px;height:43px;object-fit:contain}.player-tile strong{font-size:14px}.player-tile span{font-size:11px;color:var(--muted);display:block}.waiting-art{background:#e9ebe2;border-radius:23px;display:grid;place-items:center;overflow:hidden;min-height:390px}.waiting-art img{width:250px;max-height:360px;object-fit:contain;filter:drop-shadow(0 10px 15px #5f554e22)}.hint{font-size:12px;color:var(--muted);line-height:1.6}.game-shell{max-width:1520px;margin:auto;padding:0 24px 60px}.deckbar{display:flex;gap:12px;overflow-x:auto;padding:10px 3px 24px;scrollbar-color:#c9b8a4 transparent}.deck-item{flex:0 0 auto;width:95px;text-align:center;color:#756459;font-size:12px}.deck-item img{height:115px;width:67px;object-fit:cover;border-radius:8px;box-shadow:4px 4px 0 #dcc7b7,0 9px 15px #3e2a1d1d;display:block;margin:0 auto 9px}.game-grid{display:grid;grid-template-columns:minmax(220px,270px) minmax(320px,1fr) minmax(245px,310px);gap:24px;align-items:start}.panel{background:#fffaf3d9;border:1px solid #e5d8c9;border-radius:19px;padding:21px;box-shadow:0 11px 31px #5b423510}.panel h2{font:23px Prata,Georgia,serif;color:var(--red-deep)}.turn-panel{position:sticky;top:20px}.current-person{display:flex;align-items:center;gap:10px;margin:21px 0 4px}.current-person img{height:58px;width:58px;object-fit:contain}.current-person strong{font:22px Prata,Georgia,serif}.turn-panel>.hint{margin:8px 0 20px}.die{width:98px;height:98px;margin:14px auto 25px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(135deg,#fffcf8,#e6d8c9);box-shadow:0 9px 0 #d1bca9,0 16px 20px #68453624;border:1px solid #d9c7b7;font:56px Prata,Georgia,serif;color:var(--red);transform:rotate(-6deg)}.die.rolling{animation:roll .22s alternate infinite}.status-line{text-align:center;color:var(--muted);font-size:12px;margin-bottom:15px}.player-list{border-top:1px solid var(--line);margin-top:23px;padding-top:15px}.player-row{display:flex;align-items:center;gap:8px;padding:7px;border-radius:9px;font-size:13px}.player-row.active{background:#efe5d9}.player-row img{width:31px;height:31px;object-fit:contain}.player-row span{flex:1;min-width:0;overflow-wrap:anywhere}.player-row small{color:var(--red);white-space:nowrap}.board-wrap{position:relative;max-width:520px;margin:auto;box-shadow:0 20px 50px #61493624;border-radius:12px;overflow:hidden;line-height:0;background:#f4eee6}.board-wrap>img{display:block;width:100%}.token{position:absolute;width:42px;height:42px;transform:translate(-50%,-63%);z-index:3;filter:drop-shadow(0 4px 4px #3d2c2b88);transition:left .45s ease,top .45s ease;pointer-events:none}.token.active{z-index:6;filter:drop-shadow(0 0 2px white) drop-shadow(0 5px 5px #3d2c2bcc)}.token img{width:100%;height:100%;object-fit:contain}.token:after{content:'';position:absolute;inset:-5px;border:2px solid #fffaf3;border-radius:50%;opacity:.85}.token-label{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);font-size:9px;line-height:1;background:#fffaf3e8;border-radius:4px;padding:2px 4px;white-space:nowrap;color:var(--red-deep)}.history-panel{position:sticky;top:20px;max-height:calc(100vh - 40px);display:flex;flex-direction:column}.history-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-head span{font-size:12px;color:var(--muted)}.history-list{overflow-y:auto;margin-top:15px;scrollbar-color:#ccb9a7 transparent}.history-entry{padding:14px 0;border-top:1px solid var(--line)}.history-entry:first-child{border-top:0}.history-entry .meta{display:flex;justify-content:space-between;color:var(--red);font-size:12px;font-weight:700}.history-entry .meta small{font-size:11px;color:var(--muted)}.history-entry p{font-size:12px;color:#685a52;margin:7px 0;white-space:pre-wrap}.history-entry button{display:flex;align-items:center;gap:10px;border:0;padding:7px;background:#f3e9dc;border-radius:9px;text-align:left;width:100%;color:var(--ink);font-size:12px}.history-entry button img{width:31px;height:52px;object-fit:cover;border-radius:3px}.history-entry .special-tag{display:inline-block;padding:3px 7px;border-radius:99px;background:#e5ece1;color:#4d6f54;font-size:11px;margin-top:3px}.empty-history{text-align:center;padding:50px 10px;color:var(--muted)}.empty-history span{font:39px Prata,Georgia,serif;color:#b99f88;display:block;margin-bottom:12px}.overlay{position:fixed;inset:0;z-index:40;background:#3528219c;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:15px}.card-modal{background:#fcf7ee;border-radius:24px;border:1px solid #fff7ed;width:min(920px,100%);max-height:95vh;overflow:auto;box-shadow:0 25px 100px #24130c70;padding:23px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.modal-head h2{font:26px Prata,Georgia,serif;color:var(--red-deep)}.close{font-size:28px;border:0;background:none;color:var(--red);line-height:1}.card-modal-grid{display:grid;grid-template-columns:300px 1fr;gap:26px}.card-photo{width:100%;max-height:66vh;object-fit:contain;filter:drop-shadow(0 12px 17px #54322533)}.card-side-toggle{border:0;background:none;color:var(--red);font-size:12px;text-decoration:underline;display:block;margin:12px auto}.card-work h3{font:22px Prata,Georgia,serif;margin:15px 0 8px}.card-work p{color:var(--muted);font-size:13px;line-height:1.6}.card-work textarea{min-height:115px;resize:vertical;margin-top:10px}.special-box{margin-top:19px;background:#edf0e8;border:1px solid #dce3d3;border-radius:14px;padding:15px}.special-box h3{color:#4c6a52;font-size:19px;margin:0 0 6px}.special-box textarea{background:#fbfdf9}.checkbox-row{display:flex;align-items:flex-start;gap:10px;margin:15px 0;font-size:13px}.checkbox-row input{width:18px;height:18px;accent-color:#7c9a78;flex-shrink:0}.card-actions{margin-top:20px}.notice{background:#e9efe3;color:#4b6b50;border-radius:10px;padding:11px 13px;font-size:13px;margin-bottom:15px}.rules-dialog{border:1px solid #e1d4c6;background:#fffaf4;border-radius:20px;padding:24px;max-width:min(740px,calc(100vw - 22px));max-height:90vh;color:var(--ink);box-shadow:var(--shadow)}.rules-dialog::backdrop{background:#392a249c}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{font:27px Prata,Georgia,serif;color:var(--red-deep)}.dialog-head button{border:0;background:none;color:var(--red);font-size:28px}.rules-copy{display:grid;gap:12px;margin:18px 0}.rules-copy p{line-height:1.6;color:#6f6057}.rules-note{font-size:12px!important;color:#8e3832!important}.rules-dialog details{margin-top:15px}.rules-dialog summary{cursor:pointer;color:var(--red);font-size:13px}.rules-dialog details img{display:block;width:100%;margin-top:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#7d3430;color:#fff;padding:12px 20px;border-radius:10px;z-index:80;box-shadow:var(--shadow);max-width:calc(100vw - 30px);font-size:13px}@keyframes roll{to{transform:rotate(12deg) translateY(-5px)}}
@media(max-width:1120px){.game-grid{grid-template-columns:220px minmax(300px,1fr)}.history-panel{grid-column:1/-1;position:static;max-height:none}.history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;max-height:none}.hero{gap:30px}.hero-board:before{width:350px;height:350px}.hero-floating.one{left:-10px}.hero-floating.two{right:-10px}}
@media(max-width:750px){.topbar{height:65px;padding:0 16px}.wordmark{font-size:21px}.top-actions{gap:7px}.local-pill{display:none}.text-control{font-size:12px}.footer{padding:18px;flex-direction:column;gap:5px;text-align:center}.hero{grid-template-columns:1fr;padding:37px 20px 65px;gap:20px}.hero-copy>.title{font-size:47px}.hero-board{min-height:450px;order:-1}.hero-board img{width:240px;height:420px;border-width:6px}.hero-board:before{width:290px;height:290px}.hero-floating{font-size:14px;padding:8px 11px}.hero-floating.one{left:4%;top:20%}.hero-floating.two{right:4%;bottom:14%}.join-zone{grid-template-columns:1fr}.hero-ornament{display:none}.form-panel{margin:35px auto 60px;padding:0 16px}.form-panel h1{font-size:31px}.paper-card{padding:20px}.organ-grid{gap:5px}.organ-option{min-height:90px;padding:5px;font-size:10px}.organ-option img{width:48px;height:50px}.room-head{padding:23px 16px 13px;align-items:flex-start;flex-direction:column}.room-head h1{font-size:27px}.waiting{display:block;padding:10px 16px 70px}.waiting-art{display:none}.game-shell{padding:0 12px 50px}.game-grid{display:flex;flex-direction:column;gap:15px}.turn-panel,.board-wrap,.history-panel{position:static;width:100%;max-width:520px;margin:0 auto}.turn-panel{order:0}.board-wrap{order:1}.history-panel{order:2;max-height:none}.history-list{display:block}.token{width:34px;height:34px}.token-label{display:none}.deck-item{width:72px}.deck-item img{height:82px;width:49px}.card-modal{padding:16px;max-height:94vh}.card-modal-grid{display:flex;flex-direction:column;gap:5px}.card-photo{height:42vh;max-height:360px}.card-work h3{font-size:20px}.card-work textarea{min-height:75px}.overlay{align-items:center}.form-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.token{transition:left .95s cubic-bezier(.2,.75,.25,1),top .95s cubic-bezier(.2,.75,.25,1)}
.token.moving{z-index:9;filter:drop-shadow(0 0 10px #fff) drop-shadow(0 8px 10px #7d3430)}
.token.moving:after{border-color:#8e3832;box-shadow:0 0 0 9px #fffaf38c}
.optional{font:12px 'DM Sans',Arial,sans-serif;color:var(--muted);font-weight:400}
.special-card-preview{display:flex;align-items:center;gap:12px;margin-top:13px}
.special-card-preview img{width:100px;max-height:155px;object-fit:contain;border-radius:7px;box-shadow:0 5px 14px #54322529}
.special-card-preview .card-side-toggle{margin:0}
.history-special-photo{display:block;width:150px;max-height:245px;object-fit:contain;margin:10px 0}

.auth-panel{max-width:580px}
.auth-panel .paper-card{margin-top:22px}
.legacy-link{margin-top:20px;color:var(--red);font-size:13px;text-decoration:underline}
.admin-shell,.dashboard-shell{max-width:1180px;margin:20px auto 80px;padding:0 24px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:22px;align-items:start}
.admin-shell h2,.dashboard-shell h2,.conductor-waiting h2{font:25px Prata,Georgia,serif;color:var(--red-deep);margin:8px 0 12px}
.admin-shell .hint,.dashboard-shell .hint{margin:7px 0 17px}
.account-list,.room-list{display:grid;gap:9px;margin-top:22px}
.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f5eee4;border:1px solid #e8d8c8;border-radius:12px}
.account-row strong,.account-row span{display:block}.account-row span{font-size:11px;color:var(--muted);margin-top:2px}
.format-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}
.format-option{display:flex;align-items:center;gap:10px;padding:14px;background:#f8f1e8;border:1px solid #e2d4c6;border-radius:13px;cursor:pointer}
.format-option:has(input:checked){border-color:#9c514a;background:#f5e4dc;box-shadow:0 0 0 2px #9c514a20}
.format-option input{accent-color:#8e3832}
.format-option strong,.format-option small{display:block}.format-option small{color:var(--muted);font-size:11px;margin-top:2px}
.saved-room{border:1px solid #e2d4c6;background:#f8f1e8;border-radius:12px;padding:14px;text-align:left;color:var(--ink)}
.saved-room:hover{border-color:#9c514a;background:#f4e7dc}
.saved-room strong,.saved-room span,.saved-room small{display:block}.saved-room span{color:#756459;font-size:12px;margin:4px 0}.saved-room small{color:var(--red)}
.conductor-waiting .player-roster{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.link-button{margin-top:10px;background:#edf0e8;border-color:#c4d4c0;color:#45694a}
.link-dialog{max-width:560px;padding:27px}
.link-dialog>p{color:var(--muted);font-size:13px;line-height:1.6}
.link-dialog textarea{min-height:135px;resize:vertical}
.link-dialog .form-actions{margin-top:18px}
.link-overlay{z-index:52}
.link-entry{background:#eaf0e7;border:1px solid #d4e0d1;border-radius:10px;padding:12px;margin:7px 0}
.link-entry .meta span{color:#416947}
select.text-input{appearance:auto}
@media(max-width:750px){.admin-shell,.dashboard-shell{display:block;padding:0 14px}.admin-shell>.paper-card,.dashboard-shell>.paper-card{margin-bottom:14px}.format-options{grid-template-columns:1fr}.link-dialog{padding:18px}}

.board-stage{width:100%;max-width:560px;min-width:0;margin:0 auto;background:#fffaf3;border:1px solid #e3d5c6;border-radius:18px;box-shadow:0 20px 50px #61493624;overflow:hidden}
.board-stage-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 17px;background:#fbf5ec;border-bottom:1px solid #e3d5c6}
.board-stage-head strong{display:block;font:16px Prata,Georgia,serif;color:var(--red-deep);margin-top:3px}
.board-stage-tip{font-size:11px;color:var(--muted);text-align:right}
.board-viewport{height:clamp(440px,70vh,820px);overflow-y:auto;overflow-x:hidden;scrollbar-color:#c9b8a4 #f5ece0;overscroll-behavior:contain}
.board-stage .board-wrap{width:100%;max-width:none;margin:0;box-shadow:none;border-radius:0;overflow:visible}
.board-stage .token{width:clamp(39px,4.1vw,53px);height:clamp(39px,4.1vw,53px);transition:left 1.25s cubic-bezier(.22,.65,.25,1),top 1.25s cubic-bezier(.22,.65,.25,1);filter:drop-shadow(0 0 3px #fff) drop-shadow(0 5px 6px #3d2c2bcc)}
.board-stage .token.active{z-index:8}
.board-stage .token:after{border:2px solid #fff;box-shadow:0 0 0 2px #8e3832b0}
.board-stage .token.moving{z-index:12;filter:drop-shadow(0 0 10px #fff) drop-shadow(0 7px 12px #7d3430)}
.board-stage .token.moving:after{box-shadow:0 0 0 3px #8e3832,0 0 0 11px #fffaf399}
.board-motion-label{height:0;overflow:hidden;text-align:center;color:#fff;background:var(--red);font-size:13px;font-weight:700;transition:height .2s,padding .2s}
.board-stage.is-moving .board-motion-label{height:42px;padding:10px}
@media(max-width:750px){.board-stage{order:1;width:100%;max-width:520px}.board-viewport{height:min(68vh,680px)}.board-stage .token{width:42px;height:42px}.board-stage .token-label{display:block;font-size:10px}.board-stage-head{padding:10px 12px}.board-stage-tip{max-width:100px}}
.board-stage .board-wrap>img{aspect-ratio:3/8;height:auto}

.turn-panel .player-row{display:grid;grid-template-columns:20px 30px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:7px;row-gap:1px;align-items:center;padding:8px 5px}
.turn-panel .player-row>.player-number{grid-column:1;grid-row:1/3}
.turn-panel .player-row>img{grid-column:2;grid-row:1/3;width:27px;height:31px}
.turn-panel .player-row>span{grid-column:3;grid-row:1;font-weight:600;font-size:12px}
.turn-panel .player-row>.player-position{grid-column:3;grid-row:2;font-size:10px;color:var(--red);white-space:nowrap}
.turn-panel .player-row>.player-links{grid-column:4;grid-row:1/3;font-size:11px}
.player-number{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px;border-radius:50%;background:#8e3832;color:#fff;font-size:11px;line-height:1;font-weight:700}
.board-stage .token{width:28px;height:28px;transform:translate(-50%,-50%);filter:drop-shadow(0 1px 2px #3d2c2bcc)}
.board-stage .token:after{inset:-2px;border:1px solid #fff;box-shadow:0 0 0 1px #8e3832a8}
.board-stage .token-number{position:absolute;top:-7px;right:-8px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#8e3832;color:white;border:1px solid white;font:700 9px/1 Arial,sans-serif;box-shadow:0 1px 3px #3d2c2b80}
.board-stage .token.moving{filter:drop-shadow(0 0 7px #fff) drop-shadow(0 4px 6px #7d3430)}
.board-stage .token.moving:after{box-shadow:0 0 0 2px #8e3832,0 0 0 6px #fffaf399}
.board-legend{display:flex;flex-wrap:wrap;gap:6px 10px;padding:10px 12px;border-top:1px solid #e3d5c6;background:#fbf5ec}
.board-legend-player{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border-radius:7px;font-size:11px;color:#675750;white-space:nowrap}
.board-legend-player.active{background:#f1e2d8;color:#713b33;font-weight:700}
.board-legend-player .player-number{width:15px;height:15px;flex-basis:15px;font-size:9px}
.board-legend-player small{font-size:10px;color:var(--red)}
@media(max-width:750px){.board-stage .token{width:24px;height:24px}.board-stage .token-number{width:13px;height:13px;font-size:8px;top:-6px;right:-7px}.board-legend{gap:3px 7px;padding:8px}.board-legend-player{font-size:10px}.turn-panel .player-row>span{font-size:12px}}

.special-card-zoom{display:flex;flex-direction:column;align-items:center;gap:7px;flex:0 0 auto;padding:0;border:0;background:none;color:var(--red);cursor:zoom-in;font-size:11px;text-decoration:underline}
.special-card-zoom img{display:block;width:100px;max-height:155px;object-fit:contain;border-radius:7px;box-shadow:0 5px 14px #54322529;transition:transform .18s,box-shadow .18s}
.special-card-zoom:hover img,.special-card-zoom:focus-visible img{transform:scale(1.04);box-shadow:0 8px 22px #54322545}
.card-zoom{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#241b18de;backdrop-filter:blur(10px)}
.card-zoom-content{position:relative;display:flex;flex-direction:column;align-items:center;max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px);padding:14px 18px 9px;border-radius:18px;background:#fcf7ee;box-shadow:0 25px 90px #140d0aaa}
.card-zoom-content img{display:block;width:auto;height:auto;max-width:min(88vw,620px);max-height:calc(100dvh - 105px);object-fit:contain;border-radius:9px}
.card-zoom-content p{padding:7px 0 2px;color:var(--red-deep);font-size:13px;text-align:center}
.card-zoom-close{position:absolute;top:6px;right:7px;z-index:1;width:38px;height:38px;border:0;border-radius:50%;background:#fff9f0e8;color:var(--red);font-size:27px;line-height:1;box-shadow:0 2px 10px #27171140}
@media(max-width:750px){.card-zoom{padding:8px}.card-zoom-content{max-width:calc(100vw - 16px);padding:9px}.card-zoom-content img{max-width:calc(100vw - 34px);max-height:calc(100dvh - 80px)}}
