/* Latest layout rules: size public supplies by content and reserve identity rows. */
.supply .center-colors{max-height:none;overflow:visible}
.starter-badge{display:inline-block;vertical-align:middle;margin-top:4px;font-size:15px;line-height:1.25;padding:3px 7px}
.opponent-boards .board-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px;height:auto;min-height:54px;flex-shrink:0;margin-bottom:6px}
.opponent-boards .player-identity:has(.player-avatar){display:grid;grid-template-columns:44px minmax(0,1fr);gap:7px;align-items:start;flex-wrap:nowrap}
.opponent-boards .player-avatar{width:44px;height:44px;min-width:0;flex-basis:44px}
.opponent-boards .player-name-block{min-width:0}.opponent-boards .player-name-block h3{line-height:20px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opponent-boards .player-faction-name{white-space:normal;line-height:16px;margin-top:2px;font-size:13px}
.opponent-boards .self-label{position:absolute;top:4px;right:4px;font-size:11px;padding:1px 3px}
.opponent-boards .starter-badge{display:block;width:max-content;max-width:100%;font-size:13px;line-height:16px;margin-top:3px;padding:1px 5px;white-space:nowrap}
.opponent-boards .score{font-size:26px;padding:3px 5px;line-height:1.2;min-width:36px}
.primary-board .board-head{height:auto;min-height:0}
@media(min-width:1100px) and (min-height:650px) and (orientation:landscape){
 .active-area .primary-board .board-grid{align-content:start}.active-area .primary-board:has(.portrait-standing) .board-grid{--tile:clamp(20px,calc((100cqh - 300px)/5),54px)}
 .opponent-boards .board-grid{--opponent-tile:clamp(12px,calc((100dvh - 585px)/18),24px);grid-template-rows:18px repeat(5,var(--opponent-tile));grid-auto-rows:var(--opponent-tile);align-content:start;row-gap:2px;margin:0;flex:1}
 .opponent-boards .board-label{font-size:13px;line-height:16px;padding:0}
 .opponent-boards .floor{min-height:28px;height:28px;margin-top:4px;align-items:start;padding-top:3px}
 .opponent-boards .floor-slot .tile{width:16px;height:16px}.opponent-boards .floor-slot{line-height:10px;gap:1px}
 .supply .center{flex:1;margin-bottom:0}.supply .center-colors{align-content:start}
}
@media(min-width:1100px) and (min-height:650px) and (max-height:800px) and (orientation:landscape){
 .active-area .primary-board .board-grid,.active-area .primary-board:has(.portrait-standing) .board-grid{--tile:clamp(20px,calc((100cqh - 270px)/5),22px)}
 .opponent-boards .board-head{min-height:42px;margin-bottom:3px}.opponent-boards .player-identity:has(.player-avatar){grid-template-columns:32px minmax(0,1fr);gap:5px}.opponent-boards .player-avatar{width:32px;height:32px;flex-basis:32px}
 .opponent-boards .player-name-block h3{font-size:15px;line-height:17px}.opponent-boards .player-faction-name{font-size:12px;line-height:14px}.opponent-boards .starter-badge{font-size:12px;line-height:14px;margin-top:2px;padding:0 4px}.opponent-boards .score{font-size:22px;min-width:30px}
 .opponent-boards .board-grid{grid-template-rows:repeat(5,var(--opponent-tile));row-gap:2px}.opponent-boards .floor{height:24px;min-height:24px;margin-top:2px}.opponent-boards .player-board{padding-top:5px;padding-bottom:5px}
}
/* Celebrations begin after flight arrival; overlays never move or capture controls. */
.pattern-line.feedback-full{outline:2px solid #b78924;background:#f8e6a5;animation:forge-halo 2.1s ease-out both}
.pattern-line.feedback-full::before{content:'';position:absolute;inset:-8px;border:2px solid #d5ad4b;border-radius:8px;pointer-events:none;animation:forge-ring 2s ease-out both}
.pattern-line.feedback-full::after{inset:-4px;background:linear-gradient(110deg,transparent 20%,#fff8cdbb 48%,transparent 72%);animation:forge-sweep 1.8s ease-in-out both;pointer-events:none}
.pattern-line.feedback-full>.tile{animation:forge-stone 1.65s ease-out var(--shine-delay,0ms) both}
.full-line-badge{animation:seal-impact .6s ease-out!important;font-size:17px!important;padding:4px 9px!important}
.starter-announcement,.row-celebration{position:fixed!important;top:43%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;display:flex;flex-direction:column;align-items:center;gap:7px;max-width:min(620px,90vw);min-width:300px;padding:20px 30px!important;text-align:center;white-space:normal!important;pointer-events:none;z-index:40;border:2px solid #ba913c!important;background:#fcf1d9f5!important;color:#6e481d!important;box-shadow:0 8px 30px #59462033,0 0 0 6px #eacb7844;animation:ceremony-pop .6s cubic-bezier(.2,.8,.2,1) both!important}
.starter-announcement strong,.row-celebration strong{font-size:38px;line-height:1.2;letter-spacing:3px}.starter-announcement span,.row-celebration span{font-size:20px;line-height:1.5}
@keyframes forge-halo{0%{box-shadow:0 0 0 0 #debb5266}35%{box-shadow:0 0 0 10px #debb5233,0 0 22px #d7a43d66}100%{box-shadow:0 0 0 18px #debb5200}}
@keyframes forge-ring{0%{transform:scale(.96);opacity:0}20%{opacity:1}100%{transform:scale(1.07,1.5);opacity:0}}
@keyframes forge-sweep{0%{transform:translateX(-60%);opacity:0}35%,65%{opacity:1}100%{transform:translateX(60%);opacity:0}}
@keyframes forge-stone{0%{transform:scale(1)}25%{transform:translateY(-4px) scale(1.09);filter:brightness(1.3);box-shadow:0 0 14px #efc961}65%,100%{transform:scale(1);filter:none}}
@keyframes ceremony-pop{0%{opacity:0;scale:.85}65%{opacity:1;scale:1.04}100%{scale:1}}
/* Entry and preparation keep the established paper artwork and SDK actions. */
.home-layout .home-entry-card{animation:entry-reveal .7s ease-out both}.home-hero{animation:entry-reveal .8s ease-out both}.home-learn{animation:entry-reveal .85s .1s ease-out both}
.home-layout .home-entry-card>.muted,.home-layout .entry-network{font-size:16px}.home-layout .entry-field{font-size:17px;margin:18px 0 12px}.home-layout .entry-field select{min-height:42px;padding:7px 10px}.home-layout .home-entry-card .button{font-size:18px;min-height:46px}.home-layout .home-entry-card>.button{width:100%;margin-top:8px}.home-layout .home-how span{font-size:16px}.home-layout .entry-divider{font-size:15px;margin:16px 0 10px}
.room-lobby:not(.home-layout){max-width:1120px}.lobby-card .lobby-seats{margin:20px 0;gap:16px}.lobby-card .lobby-seat{position:relative;clip-path:none;border-radius:4px;gap:8px;min-height:210px}.lobby-seat:nth-child(2){animation-delay:.08s}.lobby-seat:nth-child(3){animation-delay:.16s}.lobby-seat:nth-child(4){animation-delay:.24s}.member-avatar{width:56px;height:56px;font-size:32px}.member-name{font-size:20px}.member-role{font-size:15px}.member-ready-status{font-size:17px;color:#826c46;padding:4px 10px;border:1px dashed #b6aa8e;background:#faf3e4}.member-ready .member-ready-status{color:#365f49;background:#e5edd9;border:1px solid #8fa784}.member-ready .member-avatar{background:#426b56}.member-ready{border-color:#8fa784!important}.lobby-seat .button{font-size:14px;padding:5px 10px;min-height:32px}.room-start-bar{flex-wrap:wrap;gap:12px}.room-start-bar>.button{min-width:150px;font-size:18px;min-height:48px}.lobby-card>.muted,.room-action-reason{font-size:16px}.opening-steps span{font-size:16px}.room-lobby .button:active:not(:disabled){scale:.97;transition:scale .1s}
.opening-status h2{font-size:27px;margin:16px 0 7px}.opening-status p{font-size:17px}.dice-players{gap:18px;margin:20px 0}.dice-player{padding:18px 12px;min-width:0;max-width:220px}.dice-player strong{font-size:19px}.dice-player>.muted{display:block;font-size:16px;line-height:1.5;min-height:48px}.stone-die{width:96px;height:96px;margin:20px auto;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:8px;padding:15px;border-radius:14px;background:#fff8e9;border:2px solid #c4a56f;box-shadow:0 5px 0 #c3b292,0 8px 15px #60543b25;line-height:1;font-size:52px;transform-origin:center;position:relative}.die-pip{border-radius:50%;background:#a44735;opacity:0;align-self:center;justify-self:center;width:13px;height:13px}.die-pip.visible{opacity:1}.die-question{grid-column:1/-1;grid-row:1/-1;align-self:center;justify-self:center;color:#987b4f}.dice-landed{border-color:#a78035}.dice-player.me .dice-landed{box-shadow:0 5px 0 #c3b292,0 0 0 4px #55836633}.dice-player.tied{border:2px solid #b47839}.roll-button{font-size:21px;min-height:54px}.faction-picker>p,.faction-card small,.seat-choice span,.opening-confirm,.queue-person{font-size:16px}.faction-card{transition:transform .18s,box-shadow .18s}.faction-card:hover:not(:disabled),.seat-choice:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 5px 12px #766b4933}.seat-choice.selected,.faction-card.selected{box-shadow:0 0 0 4px #53816d33}.opening-history{font-size:15px}
@keyframes entry-reveal{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
.die-question[hidden]{display:none}
/* Six physical faces, shaded ivory and recessed cinnabar pips. Motion is sampled
   from one per-throw trajectory; the cast shadow is intentionally hidden. */
.stone-die{--die-size:96px;--die-half:47px;width:var(--die-size);height:var(--die-size);padding:0;display:block;perspective:760px;perspective-origin:50% 45%;background:transparent;border:0;box-shadow:none;overflow:visible;isolation:isolate;animation:none!important}
.die-cube{position:absolute;inset:0;transform-style:preserve-3d;animation:none!important}
.dice-tumbling .die-cube{will-change:transform}
.die-face{position:absolute;inset:0;box-sizing:border-box;display:grid;grid-template:repeat(3,minmax(0,1fr))/repeat(3,minmax(0,1fr));gap:8px;padding:16px;border:1px solid #ba9f74;border-radius:7px;background:radial-gradient(ellipse at 25% 15%,#fffef6cc,transparent 65%),repeating-linear-gradient(117deg,#bba57a09 0 1px,transparent 1px 5px),linear-gradient(135deg,#f5edda 10%,#eee0c3 75%,#d8c29b);box-shadow:inset 0 0 0 2px #fff8e1aa,inset 3px 3px 5px #fffff4cc,inset -3px -3px 6px #98754855;backface-visibility:hidden;filter:brightness(var(--face-light,1))}
.die-face::after{content:'';position:absolute;inset:3px;border:1px solid #fffdf143;border-radius:4px;pointer-events:none}
.die-face-1{transform:translateZ(var(--die-half))}.die-face-6{transform:rotateY(180deg) translateZ(var(--die-half))}.die-face-2{transform:rotateX(90deg) translateZ(var(--die-half))}.die-face-5{transform:rotateX(-90deg) translateZ(var(--die-half))}.die-face-3{transform:rotateY(90deg) translateZ(var(--die-half))}.die-face-4{transform:rotateY(-90deg) translateZ(var(--die-half))}
.die-face .die-pip{width:14px;height:14px;background:radial-gradient(circle at 63% 75%,#b64e37 8%,#933824 56%,#5c261d 100%);box-shadow:inset 1px 2px 3px #47211899,0 1px 0 1px #fffbdfaa;border:1px solid #8c4f37}
.die-face-1 .die-pip.visible{width:19px;height:19px}
.die-shadow{display:none}
.stone-die .die-question{position:absolute;inset:15px;display:grid;place-items:center;background:#fff8e9;border:2px solid #c4a56f;border-radius:12px}
.stone-die .die-question[hidden]{display:none}
.dice-player .stone-die{margin:78px auto 42px}
.dice-waiting .die-cube{visibility:hidden}.dice-landed{border:0}.dice-player.me .dice-landed{box-shadow:none}
@media(min-width:900px) and (max-height:800px){.stone-die{--die-size:80px;--die-half:39px}.die-face{padding:12px;gap:6px}.die-face .die-pip{width:12px;height:12px}}
@media(max-width:700px){.stone-die{--die-size:76px;--die-half:37px}.die-face{padding:11px;gap:6px}.die-face .die-pip{width:11px;height:11px}.dice-player .stone-die{margin:76px auto 38px}}
@media(min-width:900px) and (max-height:800px){.home-layout{margin:12px auto}.home-collage{height:270px}.home-layout .home-entry-card{padding:18px 24px}.home-layout .entry-field{margin:10px 0}.home-layout .entry-network{margin:10px 0}.room-lobby:not(.home-layout){margin:12px auto}.lobby-card{padding:20px 26px}.lobby-card .lobby-seat{min-height:180px;padding:12px}.opening-status h2{font-size:24px}.opening-status p{font-size:16px}.dice-players{margin:14px 0}.stone-die{width:80px;height:80px;margin:14px auto;gap:6px;padding:12px}.die-pip{width:11px;height:11px}.dice-player{padding:12px 8px}.roll-button{margin-bottom:12px;min-height:48px;padding:10px}.starter-announcement strong,.row-celebration strong{font-size:32px}}
@media(max-width:700px){.lobby-card .lobby-seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lobby-card .lobby-seat{min-height:180px}.dice-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dice-player{max-width:none}.dice-player strong{font-size:17px}.stone-die{width:76px;height:76px;padding:11px;gap:6px;margin:14px auto}.die-pip{width:10px;height:10px}.starter-announcement strong,.row-celebration strong{font-size:28px}.starter-announcement span,.row-celebration span{font-size:18px}.home-layout .entry-join-row .button{font-size:15px}}

[data-feedback-motion=reduced] .pattern-line.feedback-full::before,[data-feedback-motion=reduced] .pattern-line.feedback-full::after{display:none}
[data-feedback-motion=reduced] .row-celebration,[data-feedback-motion=reduced] .starter-announcement{animation:none!important}
[data-feedback-motion=reduced] .room-lobby *,[data-feedback-motion=reduced] .home-layout *{animation:none!important;transition:none!important}
@media(min-width:900px) and (max-height:800px){body:has(.home-layout) #app>footer{display:none}.home-layout{margin-bottom:0}.home-layout .home-learn{padding-top:10px;padding-bottom:10px}}

