
/* IBERIONI CHESS V141 — Royal Obsidian. Visual layer only; no game logic. */
:root{--royal-bg:#070d12;--royal-panel:#101c23;--royal-edge:#9b783d;--royal-gold:#e9c982;--royal-cream:#f5e8cc;--royal-muted:#aeb9b8}
body{background:radial-gradient(ellipse at 50% 0%,#1d3032 0%,#0a1419 40%,#05090d 100%)!important;color:var(--royal-cream)!important}
.chess-wrap{max-width:760px!important;padding-top:92px!important;padding-bottom:55px!important}
.chess-wrap>h1{text-align:center!important;font-family:Georgia,serif!important;font-weight:600!important;letter-spacing:.11em!important;color:var(--royal-gold)!important;text-shadow:0 3px 20px #d9b65a35;font-size:clamp(23px,5vw,34px)!important}
#subtitle{text-align:center!important;color:#aebbb9!important;letter-spacing:.03em}
.chess-top{padding:8px 0!important}
.chess-panel,#game-area,.game-consent-bar{
 background:linear-gradient(145deg,rgba(29,45,49,.97),rgba(8,18,23,.98))!important;
 border:1px solid #95734370!important;border-radius:19px!important;
 box-shadow:0 16px 38px #0008,inset 0 1px #f9d99c18!important}
.chess-panel{padding:22px!important}
#setup-panel>b,#difficulty-label{color:var(--royal-gold)!important;letter-spacing:.045em}
.chess-wrap input,.chess-wrap select{background:#0a171d!important;color:#f5e8cc!important;border:1px solid #b58a4b65!important;border-radius:11px!important;min-height:42px;box-sizing:border-box}
.chess-wrap input:focus-visible,.chess-wrap select:focus-visible,.chess-wrap button:focus-visible,.setup-btn:focus-visible{outline:2px solid #ffe4a5!important;outline-offset:2px}
.setup-btn{background:linear-gradient(150deg,#1d3037,#0c1b23)!important;border:1px solid #ac854a85!important;color:#f4e7cb!important;border-radius:15px!important;padding:17px 12px!important;box-shadow:inset 0 1px #ffffff15,0 7px 14px #0003!important;font-weight:700!important}
.setup-btn:hover,.setup-btn.active{background:linear-gradient(140deg,#f8dc9a,#b78a43)!important;color:#171712!important;border-color:#ffe5aa!important;box-shadow:0 0 0 2px #d5a85533,0 8px 22px #c5a05130!important}
#mode-row .setup-btn{min-height:84px;display:flex;flex-direction:column;justify-content:center}
#difficulty-row .setup-btn{min-width:0;flex:1;padding:14px 7px!important}
#move-rule{background:#0b1a20!important;border:1px solid #a582483b!important;color:#cbd1c9!important}
.chess-wrap .btn{border-radius:12px!important;border:1px solid #b18c5480!important;background:linear-gradient(180deg,#20313a,#0b171e)!important;color:#f7e8c7!important;min-height:43px;box-shadow:inset 0 1px #ffffff1a,0 5px 14px #0004!important;font-weight:750!important;letter-spacing:.01em}
#start-btn,.chess-wrap .btn-gold{background:linear-gradient(135deg,#ffebb6,#b98b45)!important;color:#171711!important;border-color:#f9d89a!important;box-shadow:0 7px 25px #c49a4933!important}
#game-area{padding:13px!important}
#players-row{background:linear-gradient(100deg,#0b2026,#162a2d)!important;border:1px solid #b58a4b60!important;border-radius:12px!important;opacity:1!important}
#players-row .ib-player-name{color:#f9e7bf!important;font-weight:800!important}
#players-row .ib-player-sub{color:#c9c3ad!important}
#players-row .ib-avatar{border:2px solid #d4aa61!important;box-shadow:0 0 0 2px #07151a!important}
.clocks{margin:9px 0 11px!important}
.clock{background:#0c1c22!important;color:#f7e4bc!important;border:1px solid #a8884b70!important;border-radius:10px!important;font-weight:800!important;font-variant-numeric:tabular-nums!important}
.clock.active{background:linear-gradient(140deg,#efd49a,#ac8040)!important;color:#17201e!important}
.clock.low{background:#8f2630!important;color:white!important}
#turn-label{color:#d8c69d!important;font-weight:700!important}
#board{border:6px solid #73552d!important;outline:2px solid #d4aa64!important;outline-offset:0!important;border-radius:5px!important;box-shadow:0 0 0 4px #18272b,0 15px 34px #000b!important;background:#16242a!important}
.sqr.light{background:#e8d7b4!important}
.sqr.dark{background:#526e69!important}
.sqr.sel{outline:3px solid #ffdc70!important;outline-offset:-3px!important}
.sqr.last-move::before{background:#e9bd4a50!important;box-shadow:inset 0 0 0 2px #f7d37b80!important}
.sqr.move::after{background:#d2a54f95!important}
.sqr.capture::after{border-color:#d85e4d!important}
.piece-white{color:#ffffff!important;text-shadow:-1px 0 #111820,1px 0 #111820,0 -1px #111820,0 1px #111820!important}
.piece-black{color:#10151b!important;text-shadow:-1px 0 #fff,1px 0 #fff,0 -1px #fff,0 1px #fff!important}
.status-bar{background:#0a1920!important;border:1px solid #a07c414d!important;color:#e8d7b4!important;border-radius:10px!important}
#game-area>div:last-child{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}
#game-area>div:last-child .btn{margin:0!important;flex:1 1 110px;max-width:190px}
#terms-gate>div{background:linear-gradient(145deg,#23383b,#08171d)!important;border-color:#b89252!important}
.promo-box{background:#102329!important;border:1px solid #c29b5c!important}
.promo-box button{background:#e8d7b4!important;color:#172329!important}
@media(max-width:600px){
 .chess-wrap{padding:76px 10px 32px!important}
 .chess-wrap>h1{margin-top:8px!important}
 .chess-panel{padding:14px!important}
 #game-area{padding:8px!important}
 #board{border-width:4px!important;box-shadow:0 0 0 2px #18272b,0 10px 22px #0009!important}
 #players-row{padding:6px!important}
 .setup-row{gap:8px!important}
 #mode-row .setup-btn{min-width:0!important;font-size:12px!important}
 #difficulty-row .setup-btn{font-size:12px!important}
 #game-area>div:last-child .btn{font-size:12px!important;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.setup-btn,.piece,.clock{transition:none!important}}

#players-row .ib-player-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.25} 
#players-row .ib-player-meta{min-width:0}

/* Keep glyph edges crisp: no blurred shadow or subpixel hover scaling. */
#board .sqr .piece{filter:none!important;transform:none!important;text-rendering:geometricPrecision}
