/* Shared ready-screen presentation. Gameplay messages and replay controls stay separate. */
.game-start-area:has(.game-start-button:not([hidden])) {
 display:flex!important; flex-direction:column; align-items:center; gap:0;
 height:auto!important; text-align:center;
}
.game-start-area:has(.game-start-button:not([hidden])) .game-start-primary {
 order:0; margin:0 0 5px!important; font:700 19px/26px 'Segoe UI',system-ui,sans-serif!important;
 text-shadow:0 3px 4px #002a36;
}
.game-start-area:has(.game-start-button:not([hidden])) .game-start-secondary {
 order:1; margin:7px 0 14px!important; max-width:600px;
 font:700 17px/1.4 'Segoe UI',system-ui,sans-serif!important;
 text-shadow:0 3px 4px #002a36;
}
.game-start-area .game-start-button {
 position:relative; isolation:isolate; flex:none; order:2;
 width:min(420px,100%)!important; height:168px!important; min-height:168px!important;
 margin:0!important; padding:11px 20px!important; border:1px solid #84d9ff!important;
 border-radius:26px!important; background:#177ee9!important; color:#fff!important;
 font:850 64px 'Segoe UI',system-ui,sans-serif!important; letter-spacing:-1px;
 text-shadow:0 4px 5px #003b6f; box-shadow:0 4px 10px #002b3a60!important;
 cursor:pointer; transition:transform 160ms ease,box-shadow 160ms ease,filter 160ms ease;
}
@property --start-light-angle { syntax:'<angle>'; inherits:false; initial-value:0deg; }
.game-start-button::after {
 content:''; position:absolute; inset:-1px; padding:2px; border-radius:inherit;
 background:conic-gradient(from var(--start-light-angle),transparent 0deg 329deg,#77dfff55 340deg,#b8f7ff 351deg,#fff 356deg,transparent 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor; mask-composite:exclude;
 filter:drop-shadow(0 0 4px #a0efff); pointer-events:none;
 animation:start-border-light 2.8s linear infinite;
}
@keyframes start-border-light { to { --start-light-angle:360deg; } }
@media(hover:hover) and (pointer:fine) {
 .game-start-area .game-start-button:hover { transform:translateY(-3px); filter:brightness(1.07); box-shadow:0 7px 16px #002b3a70,0 0 22px #77dfff66!important; }
 .game-start-button:hover::after { animation-duration:2.5s; }
}
/* Palace's ready intro replaces only its ready message, not the gameplay zone. */
.palace-board:has(.palace-start-panel:not([hidden])) .palace-interaction { visibility:hidden; }
.palace-board .palace-start-panel { width:min(600px,calc(100% - 32px)); }
@media(max-width:900px) and (min-width:481px) {
 .game-start-area .game-start-button { height:130px!important; min-height:130px!important; font-size:clamp(36px,9vw,56px)!important; }
 .game-start-area:has(.game-start-button:not([hidden])) .game-start-secondary { font-size:14px!important; }
}
@media(max-width:480px) {
 .game-start-area .game-start-button { width:min(240px,100%)!important; height:64px!important; min-height:64px!important; font-size:30px!important; border-radius:18px!important; }
 .game-start-area:has(.game-start-button:not([hidden])) .game-start-primary { font-size:14px!important; line-height:19px!important; margin-bottom:4px!important; }
 .game-start-area:has(.game-start-button:not([hidden])) .game-start-secondary { font-size:11px!important; line-height:1.4!important; margin:4px 0 10px!important; }
}
@media(prefers-reduced-motion:reduce) {
 .game-start-button::after { animation:none; }
 .game-start-area .game-start-button { transition:none; }
 .game-start-area .game-start-button:hover { transform:none; }
}
/* Ready-only placement reserves room for the shared CTA without touching gameplay. */
.om-board:has(#om-start:not([hidden])) .om-interaction { top:calc(61% - 250px); }
.palace-board .palace-start-panel { top:calc(var(--original-board-height) * .52); }
.palace-start-panel .game-start-primary { color:var(--player-accent); }
@media(max-width:700px) { .palace-board .palace-start-panel { top:calc(var(--original-pile-top) + 110px); } }
@media(max-width:480px) { .om-board:has(#om-start:not([hidden])) .om-interaction { top:calc(max(330px,43%) + 86px); } }
@media(min-width:481px) {
 .om-board:has(#om-start:not([hidden])) .om-interaction { top:calc(30% + 135px); }
 .om-board:has(#om-start:not([hidden])) .om-seat--0 { top:calc(30% + 395px); }
}
@media(min-width:1200px) {
 .om-board:has(#om-start:not([hidden])) .om-interaction { top:calc(26% + 135px); }
 .om-board:has(#om-start:not([hidden])) .om-seat--0 { top:calc(26% + 395px); }
}

#palace-start-panel[hidden] { display:none!important; }
