/* Paper thickness belongs to backing layers, never to glossy bevels. */
:root{--deckle:var(--art-paper-deckle)}
body{background-image:var(--art-nuwa-hold),var(--art-scene-landscape);background-size:auto 88vh,cover;background-repeat:no-repeat;background-position:right bottom;background-attachment:fixed}
.home-hero .home-stones{position:relative;width:72%;align-self:flex-start;min-height:170px}
.home-hero .home-stones::after{content:'';position:absolute;left:104%;bottom:0;width:130px;height:190px;background:var(--art-nuwa-hold) center/contain no-repeat;pointer-events:none}
@media(max-width:600px){.home-hero .home-stones{width:70%;min-height:130px}.home-hero .home-stones::after{width:90px;height:140px}}
.illustrated-avatar{display:inline-block;vertical-align:middle;background:var(--portrait-image) var(--portrait-x) var(--portrait-y)/var(--portrait-size) no-repeat!important;filter:drop-shadow(0 1px 1px #49352226);overflow:hidden}
.illustrated-avatar::before,.illustrated-avatar::after{display:none!important}


.faction-card .illustrated-avatar{width:64px;height:64px;flex:0 0 64px;margin:auto;clip-path:none}
.faction-card{grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;min-width:0}
.faction-card .illustrated-avatar{grid-column:1;grid-row:1 / 3}
.faction-card>strong,.faction-card>small{grid-column:2;min-width:0;overflow-wrap:anywhere}
.faction-card>strong{grid-row:1;align-self:end}.faction-card>small{grid-row:2;align-self:start}
.settlement-score-card h3{display:flex;align-items:center;gap:5px;min-width:0}
.settlement-score-card .illustrated-avatar,.victory-table .illustrated-avatar{width:28px;height:28px;flex:0 0 28px;margin-right:5px}
.settlement-score-card.is-self .illustrated-avatar,.victory-table .is-self .illustrated-avatar{width:42px;height:42px;flex-basis:42px}
.primary-board .player-avatar{width:56px;height:56px;flex-basis:56px}
.primary-board .board-head{height:auto;min-height:56px}
.standing-badge{color:#53614a;font-weight:600;border-top:1px dashed #c4b491;margin-top:5px;padding-top:3px}
.round-nuwa{display:flex;align-items:center;gap:14px;height:82px;margin:0 0 8px;background:linear-gradient(90deg,#c5d1b92a,transparent);overflow:hidden}
.round-nuwa img{width:82px;height:100px;object-fit:contain;object-position:center top;animation:nuwa-round-arrive 1.3s ease-out both}
.round-nuwa strong{font-family:KaiTi,serif;font-size:19px;color:#496049}.round-nuwa p{font-size:11px;color:#79745d}
@keyframes nuwa-round-arrive{from{opacity:0;transform:translateX(-14px) rotate(-4deg)}to{opacity:1;transform:none}}
.round-nuwa.reduced img{animation:none}
.replay-ceremony{font-size:11px;margin-top:8px;padding:5px 10px}
.nuwa-paper{transform-origin:50% 85%}
.sky-ceremony:not(.settled) .nuwa-paper{animation:nuwa-offering 2.5s ease-in-out both}
@keyframes nuwa-offering{0%{opacity:0;transform:translateY(12px) rotate(-5deg)}30%{opacity:1;transform:rotate(-2deg)}65%{transform:translateY(-4px) rotate(2deg)}100%{transform:none}}

@media(max-height:760px){.faction-card{grid-template-columns:48px minmax(0,1fr)}}
@media(max-width:600px){.settlement-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.faction-cards{grid-template-columns:1fr}.round-nuwa{height:70px}.round-nuwa strong{font-size:16px}}
.victory-table th .illustrated-avatar{vertical-align:middle}
.home-title{font-size:0!important;background:var(--art-brand-title) left center/contain no-repeat;width:min(100%,420px);height:116px;margin:4px 0!important}
.brand h1{font-size:0!important;background:var(--art-brand-title) center/contain no-repeat;width:146px;height:42px}
.panel::after,.setup-card::after{clip-path:none;background:none;border-image:var(--deckle) 100 fill / 12px / 0 stretch;inset:-5px -5px -8px;box-shadow:none}
.panel::before,.setup-card::before{inset:6px -8px -11px 4px;filter:drop-shadow(1px 3px 2px #44372735);background:var(--backing)}
.opponent-boards .panel::after{inset:-3px -3px -5px}
.opponent-boards .panel::before{inset:4px -5px -8px 3px}
.button::before,.feedback-toggle::before,.score-info-button::before,.segmented button::before{clip-path:none;inset:-5px -5px -6px;background:var(--deckle) center/106% 120% no-repeat;filter:drop-shadow(0 1px 1px #3f332a26)}
.button::after,.feedback-toggle::after,.score-info-button::after,.segmented button::after{inset:3px 0 -3px 1px;transform:rotate(-.5deg)}
.button.primary::before,.button.danger::before,.segmented button.active::before{background:linear-gradient(#9a3b28dd,#9a3b28dd),var(--deckle) center/106% 120%;background-blend-mode:multiply;mask:var(--deckle) center/106% 120% no-repeat}
.button:disabled::before{filter:grayscale(.45);opacity:.7}
.button.primary:disabled::before{background:var(--deckle) center/106% 120%;mask:none}
.button:focus-visible,.feedback-toggle:focus-visible,.score-info-button:focus-visible{outline:2px solid #375c4b!important;outline-offset:5px}
.factory,.factory.empty{clip-path:none;background:none;border-image:var(--deckle) 100 fill / 7px / 0 stretch;box-shadow:none;filter:drop-shadow(1px 2px 1px #49392224)}
.factory.empty{opacity:.62}
.factory-number{background:#cdb98948}
.supply::after{filter:sepia(.16) saturate(.8)}
.center{background:linear-gradient(#d6c2a51a,#d6c2a533),var(--fiber) center/280px;padding:10px 4px 4px}
.floor-title{padding:2px 5px;background:#a18a6530;clip-path:var(--tear-b)}
.score::before{clip-path:none;background:var(--deckle) center/106% 120% no-repeat;inset:-2px -3px -4px}
.tile.marker,.first-marker{border-radius:0!important;border:0!important;background:var(--deckle) center/106% 120% no-repeat!important;color:#9a3f2e!important;font-family:KaiTi,serif;font-weight:900;filter:drop-shadow(1px 2px 0 #6b573a40)}
.confirm-dialog,.settlement-dialog{border:3px solid #eadfc7;box-shadow:2px 3px 0 #faf0d8,4px 5px 0 #bdac8c,7px 9px 0 #e4d5b5,9px 12px 5px #302b2540}
.lobby-seat,.seat-choice,.faction-card,.dice-player{box-shadow:1px 2px 0 #f8efda,2px 4px 0 #b6a58645}
.faction-card.selected,.seat-choice.selected{outline:2px solid #547361;outline-offset:2px}
.entry-field input,.entry-join input,.name-field input{border:1px solid #b6a485;background:linear-gradient(#fff8eac9,#fff8eac9),var(--fiber);box-shadow:inset 0 2px 2px #6c593019,1px 2px 0 #fff8e4,2px 3px 0 #a9957133;border-radius:1px}
.victory-crown{box-shadow:1px 2px 0 #f6e4b7,2px 4px 0 #70413040;transform:rotate(-2deg)}
.ceremony-cloud{position:absolute;pointer-events:none;width:150px;height:60px;object-fit:contain;animation:paper-cloud-enter 1.8s ease-out both}
.ceremony-cloud.back{top:-7px;right:0;z-index:1;opacity:.65}
.ceremony-cloud.front{bottom:-13px;left:0;z-index:4;animation-delay:.15s}
@keyframes paper-cloud-enter{from{translate:-12px 0;opacity:0}to{translate:0 0}}
.sky-ceremony.settled .ceremony-cloud,.reduced .ceremony-cloud,[data-motion=reduced] .ceremony-cloud{animation:none}

@media(max-height:760px){.home-title{height:86px}.faction-card .illustrated-avatar{width:48px;height:48px;flex-basis:48px}}
@media(max-width:650px){.brand h1{width:110px;height:34px}.home-title{height:90px}}
/* Bound the table to its useful content; portraits remain readable. */
@media(min-width:1000px) and (orientation:landscape){
 .game-layout{max-width:1560px}
 .play-area{grid-template-columns:300px minmax(0,1fr)}
 .player-workspace{grid-template-columns:minmax(0,1fr) 276px}
}
.primary-board .player-avatar{width:80px;height:80px;flex-basis:80px}
.primary-board .board-head{min-height:80px}
.opponent-boards .player-avatar{width:48px;height:48px;flex-basis:48px}
.opponent-boards .board-head{min-height:48px}
.settlement-score-card .illustrated-avatar,.victory-table .illustrated-avatar{width:44px;height:44px;flex-basis:44px}
.settlement-score-card.is-self .illustrated-avatar,.victory-table .is-self .illustrated-avatar{width:56px;height:56px;flex-basis:56px}
@media(max-height:760px){
 .primary-board .player-avatar{width:64px;height:64px;flex-basis:64px}
 .primary-board .board-head{min-height:64px}
 .opponent-boards .player-avatar{width:40px;height:40px;flex-basis:40px}
 .opponent-boards .board-head{min-height:40px}
 .settlement-score-card .illustrated-avatar,.victory-table .illustrated-avatar{width:36px;height:36px;flex-basis:36px}
 .settlement-score-card.is-self .illustrated-avatar,.victory-table .is-self .illustrated-avatar{width:48px;height:48px;flex-basis:48px}
}
@media(min-width:700px) and (max-height:760px){
 .compact-settlement .victory-table th,.compact-settlement .victory-table td{padding-top:2px;padding-bottom:2px}
 .victory-header{min-height:120px}
 .sky-ceremony{height:120px}.sky-scene{transform:scale(.85);transform-origin:left top}
}
/* v0.3.4: licensed type and visible fibrous, layered paper edges. */
@font-face{font-family:'LXGW WenKai';src:url('../assets/fonts/LXGWWenKai-ui-v8.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root{font-size:16px;--muted:#686653}
/* Keep the subset font inside game-owned content, including native portals. */
:where(#app,.nuwa-game-panel,dialog.confirm-dialog,dialog.settlement-dialog,dialog.board-zoom-dialog){font-family:'LXGW WenKai',serif!important}
:where(#app,.nuwa-game-panel,dialog.confirm-dialog,dialog.settlement-dialog,dialog.board-zoom-dialog) :is(button,input,select,summary,h1,h2,h3,.home-poem,.brand-icon,.avatar-glyph,.member-avatar,.victory-stage .victory-crown,.round-nuwa strong,.tile.marker,.first-marker){font-family:'LXGW WenKai',serif!important}
.score,.victory-score,.replay-points,.settlement-net{font-variant-numeric:tabular-nums}
.button,.feedback-toggle,.entry-settings summary{font-size:15px}
.board-action .button,.pick-hint .button,.floor .button{font-size:14px}
.end-hint,.save-note,.player-faction-name,.standing-badge,.round-nuwa p{font-size:13px}
.primary-board .board-label{font-size:15px}.opponent-boards .player-identity h3{font-size:15px}
.opponent-boards .board-label,.opponent-boards .floor-title,.factory-number,.marker-label{font-size:12px}
.settlement-score-card p,.settlement-score-card b,.victory-table,.victory-reason,.victory-tie-note{font-size:13px}
.entry-subtitle,.home-description,.entry-field,.entry-join input,.entry-field input{font-size:16px}
.panel::after,.setup-card::after{border-image-width:20px;filter:drop-shadow(0 1px 0 #fff8e9) drop-shadow(1px 2px 1px #68513830)}
.panel::before,.setup-card::before{inset:7px -7px -12px 4px;background:#c8b99a;clip-path:var(--tear-a);filter:drop-shadow(2px 4px 2px #44372738)}
.opponent-boards .panel::after{border-image-width:12px}
.opponent-boards .panel::before{inset:5px -4px -8px 3px}
.button,.feedback-toggle,.score-info-button,.segmented button{background:transparent!important;border-color:transparent;box-shadow:none}
.button::before,.feedback-toggle::before,.score-info-button::before,.segmented button::before{inset:-7px -7px -8px;background:var(--deckle) center/100% 100% no-repeat;filter:drop-shadow(0 1px 0 #fff8e9) drop-shadow(1px 3px 1px #49382455)}
.button::after,.feedback-toggle::after,.score-info-button::after,.segmented button::after{inset:3px -1px -5px 2px;background:#c8b999;clip-path:var(--tear-b);transform:rotate(-.7deg)}
.button.primary::before,.button.danger::before,.segmented button.active::before{background:linear-gradient(#a34832dd,#943c29dd),var(--deckle) center/100% 100% no-repeat;background-blend-mode:multiply;mask:var(--deckle) center/100% 100% no-repeat;filter:drop-shadow(0 1px 0 #f7e4be)}
.button.primary::after,.button.danger::after{background:#ddc8a1;inset:2px -2px -6px 1px}
.button:hover:not(:disabled)::before{filter:brightness(1.04) drop-shadow(1px 3px 1px #49382455)}
.button:active:not(:disabled){transform:translateY(1px)}
.factory,.factory.empty{border-image-width:11px;filter:drop-shadow(1px 3px 1px #49392238)}
.confirm-dialog,.settlement-dialog{border-image:var(--deckle) 100 fill / 16px / 4px stretch;box-shadow:3px 5px 0 #ede0c2,5px 7px 0 #b8a684,8px 10px 0 #e4d5b5,10px 13px 5px #302b2540}
@media(min-width:1000px) and (max-height:760px){.opponent-boards .board-label{font-size:10px}.opponent-boards .board-head{margin-bottom:2px}.opponent-boards .player-faction-name{font-size:12px}.end-hint{font-size:12px}.factory-number{font-size:11px}}
.button.primary{font-size:16px}.victory-table{font-size:14px}.victory-table thead{font-size:12px}
.score,.victory-score,.replay-points,.settlement-net{font-weight:700}
/* Five stones form a pentagon; connection marks are decoration, not new rules. */
.ceremony-stone{left:var(--stone-x);top:var(--stone-y);--tile:24px;filter:drop-shadow(1px 2px 1px #453d3155)}
.five-stone-lines{position:absolute;left:109px;top:10px;width:120px;height:120px;z-index:2;overflow:visible;fill:none;stroke:#f8edcf;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #6d736a)}
.formation-outline{stroke-dasharray:1;stroke-dashoffset:0;animation:formation-connect .65s 1.45s ease-out both}
.formation-spokes{stroke-width:.9;opacity:.65;animation:formation-appear .3s 1.95s both}
.formation-seal{position:absolute;left:157px;top:55px;width:25px;height:29px;display:grid;place-items:center;z-index:4;background:#a04a37;color:#fff2d5;clip-path:var(--tear-b);font-family:'LXGW WenKai',serif;font-size:11px;letter-spacing:1px;writing-mode:vertical-rl;transform:rotate(-4deg);animation:formation-appear .3s 2.1s both}
.sky-seal{right:21px;bottom:0;font-family:'LXGW WenKai',serif;font-size:12px;letter-spacing:2px}
@keyframes formation-connect{from{stroke-dashoffset:1;opacity:0}to{stroke-dashoffset:0;opacity:1}}
@keyframes formation-appear{from{opacity:0}to{opacity:1}}

.compact-settlement .victory-stage{margin-bottom:6px}
/* v0.3.6: protect the character silhouette and separate celebration from scores. */
.brand-icon{position:relative;font-size:0!important;background:#9b402f!important;color:transparent;box-shadow:1px 2px 0 #e7d4b0;isolation:isolate}
.brand-icon::after{content:'';position:absolute;inset:3px;background:#fff4db;mask:var(--art-brand-title) 100% 50%/400% 100% no-repeat}
body:has(.home-layout){background-image:linear-gradient(#faf6ec65,#faf6ec65),var(--art-scene-landscape)}
.home-layout{max-width:1560px;grid-template-columns:minmax(0,1.05fr) minmax(320px,1fr) minmax(210px,.75fr);gap:24px;align-items:center;margin:clamp(24px,5vh,70px) auto}
.home-hero,.home-entry-card{padding:24px;align-self:stretch}
.home-nuwa{margin:0;min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center;pointer-events:none}
.home-nuwa img{width:100%;height:100%;max-height:600px;object-fit:contain;filter:drop-shadow(3px 6px 2px #584a3430)}
.home-hero .home-stones{width:100%;min-height:150px}.home-hero .home-stones::after{display:none}
.home-title{height:100px}.home-poem{font-size:22px}.home-how{gap:9px}.home-how span{font-size:12px}
@media(min-width:1000px) and (orientation:landscape){
 .play-area{align-items:stretch}.supply{height:100%;display:flex;flex-direction:column}
 .supply .factories{flex:1;align-content:space-evenly}.supply .center{min-height:92px}
 .game-layout{padding-top:clamp(12px,calc(25vh - 185px),72px)}
}
.round-nuwa{height:96px;overflow:visible;align-items:center}
.round-portrait{width:96px;height:92px;flex:0 0 96px;overflow:hidden;mask:linear-gradient(#000 0 83%,transparent 100%)}
.round-nuwa .round-portrait img{display:block;width:96px;height:144px;max-width:none;object-fit:contain;object-position:top;animation:none;transform:none}
.ranking-header{display:block;min-height:0;text-align:center;padding:8px 0}

.nuwa-celebration{position:relative;min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:12px;padding:12px 16px 16px;isolation:isolate;animation:celebration-duration 2.8s linear both}
.celebration-nuwa{width:240px;height:300px;object-fit:contain;z-index:1;transform-origin:50% 90%;animation:nuwa-greeting 2.8s ease-in-out both}
.celebration-cloud{position:absolute;left:50%;top:190px;transform:translateX(-50%);width:340px;height:135px;object-fit:contain;z-index:-1;opacity:.65;animation:celebration-cloud 2.8s ease-out both}
.celebration-greeting{font-size:23px;text-align:center;max-width:100%;overflow-wrap:anywhere}
.settlement-replay:has(.showing-celebration)>button,.round-summary:has(.showing-celebration)>details,.round-summary:has(.showing-celebration)>.endgame-actions,.round-summary:has(.showing-celebration)>.endgame-hint{display:none}
@keyframes celebration-duration{from{opacity:.99}to{opacity:1}}
@keyframes nuwa-greeting{0%{opacity:0;transform:translateY(15px) rotate(-4deg)}25%{opacity:1}65%{transform:translateY(-3px) rotate(2deg)}100%{opacity:1;transform:none}}
@keyframes celebration-cloud{from{opacity:0;translate:-15px 0}to{opacity:.65;translate:0 0}}
.nuwa-celebration.still,.nuwa-celebration.still *{animation:none!important}

@media(max-height:760px){.home-layout{margin:22px auto}.home-title{height:82px}.home-entry-card h2{font-size:25px}.home-nuwa img{max-height:520px}.nuwa-celebration{min-height:335px}.celebration-nuwa{height:245px;width:200px}.celebration-cloud{top:155px}}
@media(max-width:999px){.home-layout{grid-template-columns:1fr 1fr}.home-nuwa{grid-column:1/-1;grid-row:1;height:260px}.home-nuwa img{width:auto;max-width:100%;height:260px}.home-entry-card,.home-hero{padding:22px}}
@media(max-width:620px){.home-layout{display:flex;flex-direction:column}.home-nuwa{order:-1;align-self:center}.home-entry-card,.home-hero{width:100%}.celebration-greeting{font-size:19px}}
@media(min-width:1000px) and (orientation:landscape){
 .play-area{grid-template-columns:300px minmax(0,1fr) 276px;grid-template-rows:auto auto;align-items:stretch}
 .player-workspace,.active-area{display:contents}
 .play-area>.supply{grid-column:1;grid-row:1;margin:3px;height:auto}
 .primary-board{grid-column:2;grid-row:1;display:flex;flex-direction:column}
 .primary-board .board-grid{width:100%;margin-top:auto;margin-bottom:auto}
 .end-hint{grid-column:2;grid-row:2;padding-top:0}
 .opponent-boards{grid-column:3;grid-row:1 / 3;align-self:start}
}
.ranking-header .victory-copy{position:relative;padding:0 112px;min-height:85px}
.ranking-header .replay-ceremony{position:absolute;right:0;top:25px;margin:0}
@media(max-width:620px){.ranking-header .victory-copy{padding:0}.ranking-header .replay-ceremony{position:static;margin-top:8px}}

/* v0.3.8: readable faces, one reveal per result, optional close inspection. */
.primary-board .player-avatar{width:112px;height:112px;flex-basis:112px}
.primary-board .board-head{min-height:112px}
.opponent-boards .player-avatar{width:72px;height:72px;flex-basis:72px}
.opponent-boards .board-head{min-height:72px}
.player-name-block{min-width:0}
.portrait-standing{display:block;font-size:12px;color:#687457;margin-top:3px}
.settlement-score-card .illustrated-avatar,.victory-table .illustrated-avatar{width:76px;height:76px;flex-basis:76px;margin-right:8px}
.settlement-score-card.is-self .illustrated-avatar,.victory-table .is-self .illustrated-avatar{width:92px;height:92px;flex-basis:92px}
.settlement-score-card h3{display:flex;align-items:center;min-width:0;overflow-wrap:anywhere}
.faction-card .illustrated-avatar{width:80px;height:80px;flex-basis:80px}
.faction-card{grid-template-columns:80px minmax(0,1fr)}
.illustrated-avatar{position:relative;flex-shrink:0;transform-origin:center 70%;transition:scale .18s ease,filter .18s ease;outline-offset:3px;cursor:zoom-in}
.illustrated-avatar:hover,.illustrated-avatar:focus-visible{scale:1.55;z-index:12;filter:drop-shadow(0 3px 3px #49352260);outline:2px dashed #a5884c}
.expression-reveal{animation:portrait-unfold .9s ease-out both}
.expression-reveal[data-expression=regret]{animation-name:portrait-sigh}
.expression-reveal[data-expression=joy]{filter:drop-shadow(0 0 5px #c79b4d80)}
@keyframes portrait-unfold{0%{opacity:.3;transform:translateY(5px) scale(.86)}45%{opacity:1;transform:translateY(-3px) scale(1.12) rotate(-3deg)}72%{transform:scale(.98) rotate(2deg)}100%{transform:none}}
@keyframes portrait-sigh{0%{opacity:.3;transform:translateY(-3px) rotate(-5deg)}50%{opacity:1;transform:translateY(3px) rotate(3deg)}100%{transform:none}}
[data-motion=reduced] .expression-reveal,.reduced .expression-reveal{animation:none}
@media(max-height:760px){
 .primary-board .player-avatar{width:88px;height:88px;flex-basis:88px}.primary-board .board-head{min-height:88px}
 .opponent-boards .player-avatar{width:60px;height:60px;flex-basis:60px}.opponent-boards .board-head{min-height:60px}
 .settlement-score-card .illustrated-avatar,.victory-table .illustrated-avatar{width:60px;height:60px;flex-basis:60px}
 .settlement-score-card.is-self .illustrated-avatar,.victory-table .is-self .illustrated-avatar{width:76px;height:76px;flex-basis:76px}
 .faction-card .illustrated-avatar{width:64px;height:64px;flex-basis:64px}.faction-card{grid-template-columns:64px minmax(0,1fr)}
}
@media(max-width:620px){.settlement-score-card h3{flex-wrap:wrap}.primary-board .player-identity{gap:6px}.primary-board .player-avatar{width:80px;height:80px;flex-basis:80px}}

@media(min-width:1000px) and (max-height:760px) and (orientation:landscape){
 .opponent-boards:has(.player-board:nth-of-type(3)) .board-label{display:none}
 .opponent-boards:has(.player-board:nth-of-type(3)){gap:4px}
 .opponent-boards .portrait-standing{font-size:10px;margin-top:0}
}
@media(min-width:700px) and (max-height:760px){
 .compact-settlement:has(.victory-stage){max-height:94dvh}
 .ranking-header{padding:2px 0}
 .ranking-header .victory-copy{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:0;min-height:52px;text-align:left}
 .ranking-header .victory-crown{grid-column:1;grid-row:1 / 3;margin:0!important}
 .ranking-header .victory-name{grid-column:2;grid-row:1}
 .ranking-header .victory-reason{grid-column:2;grid-row:2}
 .ranking-header .replay-ceremony{position:relative;inset:auto;grid-column:3;grid-row:1 / 3}
 .endgame-actions{margin-top:6px}.endgame-hint{margin-top:4px}
}
.faction-card .illustrated-avatar:hover{scale:1;outline:none;cursor:inherit}
[data-motion=reduced] .illustrated-avatar,.reduced .illustrated-avatar{transition:none}
/* Audio cues mirror one short paper gesture; never introduce score multipliers. */
.audio-volume{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;padding:6px 4px}.audio-volume input{width:100px;accent-color:#a04a37}
.feedback-new{animation:stone-paper-land .32s ease-out both}.feedback-full{animation:paper-full .6s ease-out}.cue-preview{animation:paper-full .6s ease-out}
@keyframes stone-paper-land{0%{transform:translateY(-4px) scale(.9)}65%{transform:scale(1.08)}100%{transform:none}}
@keyframes paper-full{0%,100%{filter:none}40%{filter:drop-shadow(0 0 5px #c69b51)}}
[data-feedback-motion=reduced] .feedback-new,[data-feedback-motion=reduced] .feedback-full{animation:none}

.entry-settings .feedback-controls{width:260px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 75px);overflow-y:auto;gap:5px}
.audio-volume{white-space:nowrap}.audio-volume input{min-width:0;flex:1;max-width:135px}

/* Independent irregular paper stones, shared with the final ceremony. */
.ceremony-stone{width:28px;height:28px;object-fit:contain}


/* Keep follow controls with the enlarged board in the existing desktop grid. */
@media(min-width:1000px) and (orientation:landscape){
 .play-area .active-area{display:flex;flex-direction:column;grid-column:2;grid-row:1 / 3;min-width:0}
 .play-area .active-area .primary-board{flex:1;min-height:520px}
 .play-area .active-area .watch-toolbar,.play-area .active-area .attention-status{flex-shrink:0}
}
.watch-row{outline:2px dashed #388b83;outline-offset:4px;position:relative}
.watch-row::after{content:'';position:absolute;pointer-events:none;top:-4px;bottom:-4px;width:var(--watch-width);left:var(--watch-left);border:3px solid #388b83;border-radius:3px;z-index:4;box-sizing:border-box}
@media(max-width:620px){.active-area .primary-board .board-grid{--tile:clamp(24px,6.7vw,30px);gap:7px 9px}.active-area .primary-board .board-head{min-height:70px}.active-area .primary-board .player-avatar{width:68px;height:68px;flex-basis:68px}}


