/* WALKERBEX CHESS — Stage 07 local Bot Arena audio layer on the Stage 06 interaction foundation on the approved Stage 05 layout.
   This file intentionally scopes the focused game layout to arena.html. */
body[data-stage="arena06"]{
  --arena-bg:#f1f1ee;
  --arena-surface:#fbfbf8;
  --arena-surface-2:#ecece8;
  --arena-ink:#171719;
  --arena-muted:#737378;
  --arena-line:#d7d7d2;
  --arena-graphite:#232326;
  --arena-danger:#8f352e;
  --arena-danger-soft:#f2dedb;
  --arena-board-max:820px;
  margin:0;
  padding:0;
  min-height:100dvh;
  overflow:hidden;
  color:var(--arena-ink);
  background:var(--arena-bg);
  color-scheme:light;
}
body[data-stage="arena06"]:before{display:none!important}
body[data-stage="arena06"] button:focus-visible,
body[data-stage="arena06"] a:focus-visible,
body[data-stage="arena06"] select:focus-visible,
body[data-stage="arena06"] summary:focus-visible,
body[data-stage="arena06"] input[type="range"]:focus-visible{outline:2px solid #1b1b1d;outline-offset:3px}

.arena-topbar{
  height:50px;
  padding:0 clamp(14px,2.2vw,34px);
  border-bottom:1px solid var(--arena-line);
  background:rgba(248,248,245,.96);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
  z-index:20;
}
.arena-brand{display:inline-flex;align-items:center;gap:10px;font:800 13px/1 Manrope,system-ui,sans-serif;letter-spacing:.02em;color:var(--arena-ink)}
.arena-brand img{width:24px;height:24px;filter:none}.arena-brand b{font-weight:500;color:var(--arena-muted)}
.arena-top-meta{display:flex;align-items:center;gap:8px;min-width:0}.match-type{display:inline-flex;align-items:center;gap:7px;color:var(--arena-muted);font-size:10px;letter-spacing:.08em;white-space:nowrap}.match-type i{width:6px;height:6px;background:#1b1b1d;border-radius:50%}
.top-action{border:1px solid var(--arena-line);border-radius:8px;padding:7px 10px;background:transparent;color:var(--arena-ink);font-size:10px;line-height:1}.top-action.strong{background:#1d1d20;border-color:#1d1d20;color:#fff}

.arena-workspace{height:calc(100dvh - 50px);max-width:1600px;margin:0 auto;padding:10px clamp(14px,2.2vw,34px);overflow:hidden}
.arena-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,30vw,390px);gap:clamp(16px,2vw,28px);align-items:stretch}
.board-zone{min-width:0;min-height:0;display:grid;grid-template-rows:48px minmax(0,1fr) 48px;justify-items:center;align-items:center;align-content:center}
.board-zone>.player,.board-window{width:min(100%,calc(100dvh - 166px),var(--arena-board-max))}
.board-window{position:relative;min-width:0;background:#171719;border:1px solid #29292c;border-radius:10px;overflow:hidden;box-shadow:0 16px 42px rgba(15,15,18,.16)}
.board-shell{padding:6px;background:#161619}
.board-bottom{display:none}

.player-strip{height:48px;min-height:48px;padding:4px 0!important;gap:10px;color:var(--arena-ink)}
.player-strip .bot-avatar,.player-strip .you-avatar{width:38px;height:38px;border-radius:9px;object-fit:cover;border:1px solid var(--arena-line);background:#e7e7e3}
.player-strip .you-avatar{display:grid;place-items:center;font:700 13px/1 Manrope,sans-serif;color:#202023}
.player-name{flex:1;min-width:0}.player-name strong{display:block;color:var(--arena-ink);font-size:12px!important;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-name small{display:block;margin-top:2px!important;color:var(--arena-muted)!important;font-size:9px!important;letter-spacing:.02em}.captured{margin-top:2px!important;min-height:10px!important;color:#97979b!important;font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clock{min-width:104px;padding:7px 12px;border:1px solid #cfcfca;border-radius:8px;background:#e3e3df;color:#59595e;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:24px!important;font-weight:700!important;font-variant-numeric:tabular-nums;letter-spacing:-1.2px;text-align:center;box-shadow:none}
.clock.running{background:#1c1c1f!important;border-color:#1c1c1f!important;color:#fff!important}.clock.low{background:var(--arena-danger-soft)!important;border-color:#b56d66!important;color:#70251f!important;animation:low-time 1.2s ease-in-out infinite alternate}
@keyframes low-time{to{box-shadow:0 0 0 2px rgba(143,53,46,.12)}}

/* Board presentation: Stage 05 viewport fit preserved; Stage 06 refines interaction only. */
body[data-stage="arena06"] .obsidian-frame{width:100%;aspect-ratio:1;padding:8.1%;box-sizing:border-box}
body[data-stage="arena06"] .board{width:100%;height:100%;aspect-ratio:1;box-shadow:0 0 0 1px rgba(255,255,255,.12);isolation:isolate;transition:opacity .09s ease;user-select:none;-webkit-user-select:none}
body[data-stage="arena06"] .square{touch-action:manipulation;user-select:none;-webkit-user-select:none;cursor:default}
body[data-stage="arena06"] .square .piece{width:78%;height:78%;max-width:84%;max-height:86%;object-fit:contain;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;will-change:transform;cursor:default;transition:opacity .09s ease}
body[data-stage="arena06"] .square[data-movable="true"] .piece{cursor:grab}
body[data-stage="arena06"] .square.last:before{background:rgba(34,34,38,.14);box-shadow:inset 0 0 0 1px rgba(30,30,34,.18)}
body[data-stage="arena06"] .square.selected:before{background:rgba(28,28,31,.19);box-shadow:inset 0 0 0 2px rgba(18,18,20,.58)}
body[data-stage="arena06"] .square.legal:after{width:18%;height:18%;border-radius:50%;background:rgba(26,26,29,.42);pointer-events:none}
body[data-stage="arena06"] .square.capture-legal:after{width:82%;height:82%;border:2px solid rgba(20,20,23,.48);background:none}
body[data-stage="arena06"] .square.check:before{background:radial-gradient(circle,rgba(126,38,34,.56),rgba(126,38,34,.08));box-shadow:inset 0 0 0 2px rgba(126,38,34,.58)}
body[data-stage="arena06"] .square.hint-from:before{background:rgba(77,77,83,.13);box-shadow:inset 0 0 0 2px rgba(64,64,70,.38)}
body[data-stage="arena06"] .square.hint-to:after{width:74%;height:74%;border:2px dashed rgba(54,54,59,.5);background:rgba(255,255,255,.08)}
body[data-stage="arena06"] .square.dragging:before{background:rgba(24,24,27,.12);box-shadow:inset 0 0 0 2px rgba(24,24,27,.3)}
body[data-stage="arena06"] .square.drag-over:after{width:82%;height:82%;border:2px solid rgba(18,18,20,.62);background:rgba(255,255,255,.09)}
body[data-stage="arena06"] .coord{font-size:clamp(7px,.65vw,9px)!important;pointer-events:none}
body[data-stage="arena06"] .piece-animating{z-index:7!important;pointer-events:none!important;filter:drop-shadow(0 8px 7px rgba(0,0,0,.26))!important}
body[data-stage="arena06"] .board.input-locked .square[data-movable="true"] .piece{cursor:default}
body[data-stage="arena06"] .board.flipping{opacity:.72}
body[data-stage="arena06"] .board.position-syncing{animation:position-sync .09s ease-out}
@keyframes position-sync{from{opacity:.72}to{opacity:1}}
.piece-dragging-live{position:fixed!important;z-index:70!important;left:0;top:0;transform:translate3d(0,0,0) translate(-50%,-50%) scale(1.035);object-fit:contain;pointer-events:none!important;touch-action:none;user-select:none;filter:drop-shadow(0 12px 10px rgba(0,0,0,.3))!important;will-change:transform;cursor:grabbing!important}
.piece-dragging-live.returning{filter:drop-shadow(0 8px 7px rgba(0,0,0,.22))!important}
.piece-captured{position:fixed!important;z-index:60!important;transform:translate(-50%,-50%);object-fit:contain;pointer-events:none!important;user-select:none;will-change:opacity,transform}

.rightbar{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(150px,1fr) auto auto;gap:8px;overflow:hidden}
.panel{margin:0!important;border:1px solid var(--arena-line)!important;border-radius:10px!important;background:var(--arena-surface)!important;color:var(--arena-ink)!important;overflow:hidden;box-shadow:none!important}.panel-header{height:38px;padding:0 12px!important;border-bottom:1px solid var(--arena-line)!important;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:700;letter-spacing:.02em}.panel-header .eyebrow{font-size:8px;letter-spacing:.12em;color:var(--arena-muted)}.panel-body{padding:11px 12px!important}
.bot-presence-body{display:grid;gap:8px}.bot-presence #opponent-card>div{display:flex!important;gap:9px!important;align-items:center!important}.bot-presence .bot-avatar{width:42px;height:42px;border-radius:10px;object-fit:cover;border:1px solid var(--arena-line)}.bot-presence h3{margin:0;font:700 13px/1.1 Manrope,sans-serif}.bot-presence .note{font-size:9px!important;line-height:1.4!important;margin-top:3px;color:var(--arena-muted)!important}.opponent-quote{margin:0!important;color:#626267!important;font-size:10px!important;line-height:1.45!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bot-message{display:flex;gap:7px;align-items:flex-start;border-top:1px solid #e2e2dd;padding-top:7px;color:#3a3a3e}.message-mark{font-size:10px;color:#8a8a8f}.bot-message p{margin:0;font-size:10px;line-height:1.45}

.moves-panel{min-height:0;display:grid;grid-template-rows:38px minmax(0,1fr) 36px}.move-list{min-height:0!important;max-height:none!important;overflow-y:auto;font-variant-numeric:tabular-nums;scrollbar-width:thin;scrollbar-color:#bbb transparent}.move-row{display:grid;grid-template-columns:28px 1fr 1fr;align-items:center;padding:5px 10px!important;font-size:11px}.move-row:nth-child(even){background:#f4f4f1!important}.move-row>span:first-child{font-size:8px!important;color:#929297!important}.move-row button{text-align:left;padding:4px 6px;border-radius:5px;color:#333337}.move-row button.current{background:#deded9!important;color:#111113!important;font-weight:700}.empty{padding:18px 12px!important;color:#8b8b90!important;font-size:10px!important;line-height:1.6!important}.history-actions{height:36px;padding:4px 7px!important;border-top:1px solid var(--arena-line)!important;display:flex;justify-content:flex-start;gap:3px}.history-actions button{min-width:31px;padding:4px 7px!important;border-radius:5px;color:#69696e;font-size:10px}.history-actions button:hover:not(:disabled){background:#e7e7e2;filter:none}.history-actions #export{margin-left:auto}

.controls-panel .panel-body{display:grid;gap:9px}.status{min-height:15px;margin:0!important;color:#4f4f54!important;font-size:9px!important;line-height:1.45!important}.control-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}.control-grid .btn{min-width:0;padding:8px 6px!important;border:1px solid #d2d2cd!important;border-radius:7px!important;background:#f4f4f1!important;color:#222225!important;font-size:9px!important;line-height:1!important;white-space:nowrap}.control-grid .btn:hover:not(:disabled){background:#e8e8e3!important;filter:none}.control-grid .btn.danger{color:#7b2d27!important;background:#fbf4f2!important;border-color:#e6c8c4!important}.save-note{margin:0!important;color:#929297!important;font-size:8px!important;line-height:1.45!important}

.appearance-panel{display:block}.appearance-panel summary{height:36px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:9px;font-weight:700;list-style:none}.appearance-panel summary::-webkit-details-marker{display:none}.appearance-panel summary:after{content:'+';font-size:13px;color:#77777c;margin-left:8px}.appearance-panel[open] summary:after{content:'−'}.appearance-panel .eyebrow{margin-left:auto;font-size:8px;color:#929297;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appearance-body{border-top:1px solid var(--arena-line);display:grid;gap:8px}.theme-label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;color:#77777c;font-size:9px}.theme-label select{max-width:150px;padding:6px 8px;border:1px solid #d1d1cc;border-radius:6px;background:#fff;color:#202023;font-size:9px}.audio-level{display:grid;grid-template-columns:1fr minmax(88px,1.15fr) 34px;align-items:center;gap:8px;color:#77777c;font-size:9px}.audio-level input{width:100%;accent-color:#222225;cursor:pointer}.audio-level output{font-variant-numeric:tabular-nums;text-align:right;color:#66666b;font-size:9px}
.appearance-copy{display:none}.map-options-compact{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.map-option{width:100%;min-width:0;padding:5px!important;margin:0!important;border:1px solid #d6d6d1!important;border-radius:6px!important;background:#f7f7f4!important;display:flex!important;align-items:center!important;gap:5px!important;text-align:left}.map-option[aria-pressed="true"]{border-color:#262629!important;background:#ecece8!important}.map-option:disabled{opacity:.5}.map-option[aria-pressed="true"]:disabled{opacity:1}.map-swatch{width:18px!important;height:18px!important;border-radius:4px!important;flex:0 0 18px}.map-option strong{display:block;font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-option small{display:none!important}

.risk-countdown{position:absolute;inset:0!important;z-index:15;background:rgba(18,18,20,.91)!important;color:#fff;display:grid;place-items:center;align-content:center;gap:6px;text-align:center}.risk-countdown[hidden]{display:none}.risk-countdown strong{font:800 52px/1 ui-monospace,monospace}.risk-countdown>span:last-child{color:#bbb;font-size:10px}
.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(90vw,520px);padding:9px 14px;border-radius:8px;background:#1e1e21!important;color:#fff!important;font-size:10px;box-shadow:0 12px 30px rgba(0,0,0,.2)}.toast:empty{display:none}
dialog{width:min(430px,90vw);padding:22px;border:1px solid #d2d2cd!important;border-radius:12px!important;background:#fafaf7!important;color:#171719!important;box-shadow:0 28px 80px rgba(0,0,0,.24)}dialog::backdrop{background:rgba(12,12,14,.42);backdrop-filter:blur(3px)}dialog .eyebrow{color:#818186}dialog h2{margin:8px 0 7px;font-size:22px}dialog p{margin:0 0 18px;color:#69696e;line-height:1.55;font-size:11px}.dialog-actions{display:flex;gap:6px;flex-wrap:wrap}.dialog-actions .btn{padding:8px 11px;border:1px solid #d3d3ce;background:#f0f0ec;color:#202023}.dialog-actions .primary{background:#1e1e21!important;border-color:#1e1e21!important;color:#fff!important}.promo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.promo-grid button{border:1px solid #d2d2cd;background:#f2f2ee;border-radius:8px;padding:7px;display:grid;gap:3px;place-items:center}.promo-grid img{width:100%;height:64px;object-fit:contain}.promo-grid span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#67676c}

/* Preserve board theme assets while keeping the game shell WalkerBex-neutral. */
body[data-stage="arena06"].obsidian-board,
body[data-stage="arena06"][data-theme="velocity"],
body[data-stage="arena06"][data-theme="arcane"]{background:var(--arena-bg)!important;color:var(--arena-ink)!important;color-scheme:light}
body[data-stage="arena06"].obsidian-board .panel,
body[data-stage="arena06"][data-theme="velocity"] .panel,
body[data-stage="arena06"][data-theme="arcane"] .panel{background:var(--arena-surface)!important;color:var(--arena-ink)!important;border-color:var(--arena-line)!important}
body[data-stage="arena06"].obsidian-board .board-shell{background:#141416!important;padding:6px!important}
body[data-stage="arena06"] .clock.running{background:#1c1c1f!important;color:#fff!important;border-color:#1c1c1f!important}
body[data-stage="arena06"] .clock.low{background:var(--arena-danger-soft)!important;color:#70251f!important;border-color:#b56d66!important}

.focus-mode .arena-topbar,.focus-mode .rightbar{display:none}.focus-mode .arena-workspace{height:100dvh;padding:8px}.focus-mode .arena-layout{display:block;height:100%}.focus-mode .board-zone{height:100%;grid-template-rows:46px minmax(0,1fr) 46px}.focus-mode .board-zone>.player,.focus-mode .board-window{width:min(100%,calc(100dvh - 108px),900px)}

@media(max-width:1050px){
  .arena-layout{grid-template-columns:minmax(0,1fr) minmax(270px,34vw)}
  .rightbar{grid-template-rows:auto minmax(130px,1fr) auto auto}
  .bot-presence .opponent-quote{display:none}
  .board-zone>.player,.board-window{width:min(100%,calc(100dvh - 166px),720px)}
  .control-grid .btn{font-size:8.5px!important}
}
@media(max-width:820px){
  body[data-stage="arena06"]{overflow:auto}
  .arena-topbar{height:48px;padding:0 12px}.arena-top-meta .match-type{display:none}.top-action{padding:7px 8px}
  .arena-workspace{height:auto;min-height:calc(100dvh - 48px);padding:8px 10px 18px;overflow:visible}
  .arena-layout{display:grid;grid-template-columns:1fr;gap:10px;height:auto}
  .board-zone{display:grid;grid-template-rows:46px auto 46px;min-height:0}
  .board-zone>.player,.board-window{width:min(100%,calc(100vw - 20px),680px)}
  .board-bottom{display:flex;align-items:center;justify-content:space-between;padding:5px 1px 0;color:#aaa;font-size:8px}.board-bottom button{padding:4px 6px;color:#ddd;font-size:8px}
  .rightbar{height:auto;overflow:visible;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:8px}
  .bot-presence{grid-column:1/-1}.moves-panel{grid-column:1/-1;min-height:210px}.controls-panel,.appearance-panel{min-width:0}.move-list{max-height:220px!important}.appearance-panel{display:block}
}
@media(max-width:560px){
  .arena-brand span{font-size:11px}.arena-top-meta a.top-action{display:none}.top-action{font-size:9px}
  .arena-workspace{padding-left:6px;padding-right:6px}.board-zone>.player,.board-window{width:min(100%,calc(100vw - 12px))}.board-shell{padding:4px!important}
  .player-strip{height:44px;min-height:44px}.player-strip .bot-avatar,.player-strip .you-avatar{width:34px;height:34px}.clock{min-width:88px;font-size:21px!important;padding:6px 8px}.captured{display:none}
  .rightbar{grid-template-columns:1fr}.bot-presence,.moves-panel,.controls-panel,.appearance-panel{grid-column:1}.moves-panel{min-height:190px}.control-grid{grid-template-columns:repeat(3,1fr)}.panel-header{height:36px}.appearance-panel summary{height:36px}
  body[data-stage="arena06"] .obsidian-frame{padding:7.5%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.piece-dragging-live.promotion-held{filter:drop-shadow(0 9px 8px rgba(0,0,0,.24))!important}

/* WALKERBEX CHESS — Stage 11 gameplay V2: naked local board + compact material/player bars. */
body[data-stage="arena06"] .board-window,
body[data-stage="arena06"] .board-shell,
body[data-stage="arena06"] .obsidian-frame{
  padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
}
body[data-stage="arena06"] .board-window{position:relative}
body[data-stage="arena06"] .board{
  width:100%!important;height:auto!important;aspect-ratio:1/1!important;padding:0!important;margin:0!important;
  border:1px solid #c8c8c3!important;border-radius:2px!important;background:transparent!important;overflow:hidden!important;
  box-shadow:0 8px 24px rgba(17,17,19,.10)!important;box-sizing:border-box!important;
}
body[data-stage="arena06"] .board-bottom{display:none!important}
body[data-stage="arena06"] .player-name{position:relative;padding-right:58px}
body[data-stage="arena06"] .turn-label{position:absolute;right:0;top:1px;display:inline-flex;min-height:11px;align-items:center;color:#77777c;font-size:6.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
body[data-stage="arena06"] .turn-label.active{color:#242427}body[data-stage="arena06"] .turn-label.check{color:#8f352e}
body[data-stage="arena06"] .capture-line{height:15px;margin-top:2px;display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}
body[data-stage="arena06"] .capture-icons{display:flex;align-items:center;min-width:0;height:15px;overflow:hidden}
body[data-stage="arena06"] .capture-icons img{width:13px;height:13px;object-fit:contain;flex:0 0 auto;filter:none!important;opacity:.92}
body[data-stage="arena06"] .capture-icons img+img{margin-left:-2px}
body[data-stage="arena06"] .material-score{flex:0 0 auto;font:800 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#242427;font-variant-numeric:tabular-nums}
body[data-stage="arena06"] .clock{font-variant-numeric:tabular-nums lining-nums;transition:background-color .08s ease,color .08s ease,border-color .08s ease,box-shadow .08s ease}
body[data-stage="arena06"] .clock.running{box-shadow:0 0 0 1px rgba(0,0,0,.05)!important}
body[data-stage="arena06"] .square.last:before{background:rgba(42,42,46,.12);box-shadow:inset 0 0 0 1px rgba(30,30,34,.16)}
body[data-stage="arena06"] .square.selected:before{background:rgba(20,20,23,.22);box-shadow:inset 0 0 0 2px rgba(17,17,19,.70)}
body[data-stage="arena06"] .square.legal:after{background:rgba(25,25,28,.40)}
body[data-stage="arena06"] .square.capture-legal:after{border-color:rgba(17,17,20,.56)}
body[data-stage="arena06"] .piece-captured{filter:drop-shadow(0 5px 4px rgba(0,0,0,.16))}
@media(max-width:560px){
  body[data-stage="arena06"] .player-name{padding-right:47px}
  body[data-stage="arena06"] .turn-label{font-size:6px;letter-spacing:.07em}
  body[data-stage="arena06"] .capture-icons img{width:11px;height:11px}
  body[data-stage="arena06"] .capture-line{height:13px;gap:4px}
  body[data-stage="arena06"] .material-score{font-size:9px}
}

/* WALKERBEX CHESS — Stage 13 HUD V2: information clarity around the locked Stage 12 board. */
body[data-stage="arena06"] .player-strip{
  box-sizing:border-box;
  border-radius:8px;
  padding:3px 4px!important;
  transition:background-color .08s ease,box-shadow .08s ease;
}
body[data-stage="arena06"] .player-strip.active-turn{
  background:rgba(20,20,23,.035);
  box-shadow:inset 2px 0 0 #242427;
}
body[data-stage="arena06"] .player-strip.in-check{box-shadow:inset 2px 0 0 #8f352e}
body[data-stage="arena06"] .player-name{padding-right:0;position:relative}
body[data-stage="arena06"] .player-title-row{min-width:0;display:flex;align-items:center;gap:6px;height:14px}
body[data-stage="arena06"] .player-title-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-stage="arena06"] .color-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;color:#77777c;font-size:6.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
body[data-stage="arena06"] .color-chip i{width:7px;height:7px;border-radius:50%;border:1px solid #8f8f93;box-sizing:border-box;background:#fff}
body[data-stage="arena06"] .color-chip.black i{background:#242427;border-color:#242427}
body[data-stage="arena06"] .turn-label{position:static;right:auto;top:auto;margin-left:auto;min-height:0;font-size:6.5px;letter-spacing:.08em}
body[data-stage="arena06"] .turn-label.active:before{content:'';display:inline-block;width:4px;height:4px;margin-right:4px;border-radius:50%;background:currentColor;vertical-align:middle}
body[data-stage="arena06"] .clock{min-width:108px;padding:7px 11px;font-size:25px!important;letter-spacing:-1px}
body[data-stage="arena06"] .clock.running{font-weight:800!important}
body[data-stage="arena06"] .material-score{font-size:9px;color:#4d4d51}
body[data-stage="arena06"] .capture-icons img{opacity:.88}

body[data-stage="arena06"] .game-hud-panel .panel-body{padding:9px 11px!important}
body[data-stage="arena06"] .bot-presence-body{gap:6px}
body[data-stage="arena06"] .bot-presence #opponent-card>div{gap:8px!important}
body[data-stage="arena06"] .bot-presence #opponent-card .bot-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:9px!important;object-fit:cover!important}
body[data-stage="arena06"] .bot-presence h3{font-size:12px}
body[data-stage="arena06"] .opponent-quote{font-size:9px!important}
body[data-stage="arena06"] .bot-message{padding-top:6px}
body[data-stage="arena06"] .bot-message p{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-stage="arena06"] .game-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body[data-stage="arena06"] .game-facts span{min-width:0;padding:6px 7px;border:1px solid #e0e0dc;border-radius:6px;background:#f6f6f3;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:7.5px}
body[data-stage="arena06"] .game-facts b{color:#8a8a8f;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
body[data-stage="arena06"] .game-facts em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;color:#303034;font-weight:750;text-align:right}
body[data-stage="arena06"] .hud-state-line{display:flex;align-items:center;gap:6px;min-height:16px;color:#57575c;font-size:8.5px}
body[data-stage="arena06"] .hud-state-line i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#9b9b9f}
body[data-stage="arena06"] .hud-state-line i.live{background:#242427}
body[data-stage="arena06"] .hud-state-line i.check,body[data-stage="arena06"] .hud-state-line i.result{background:#8f352e}
body[data-stage="arena06"] .hud-state-line strong{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body[data-stage="arena06"] .move-row button.current{background:#d9d9d4!important;box-shadow:inset 2px 0 0 #202023;color:#111113!important}
body[data-stage="arena06"] .move-row button{transition:background-color .08s ease,box-shadow .08s ease}
body[data-stage="arena06"] .moves-panel{min-height:0}
@media(min-width:821px){
  body[data-stage="arena06"] .rightbar{display:flex;flex-direction:column;gap:8px;overflow:hidden}
  body[data-stage="arena06"] .moves-panel{flex:1 1 auto;min-height:145px}
  body[data-stage="arena06"] .bot-presence,body[data-stage="arena06"] .controls-panel,body[data-stage="arena06"] .appearance-panel,body[data-stage="arena06"] .result-banner{flex:0 0 auto}
}

body[data-stage="arena06"] .result-banner{border:1px solid #cfcfca;border-radius:10px;background:#f8f8f5;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
body[data-stage="arena06"] .result-banner[hidden]{display:none!important}
body[data-stage="arena06"] .result-copy{min-width:0}
body[data-stage="arena06"] .result-copy strong{display:block;font-size:10px;letter-spacing:.06em}
body[data-stage="arena06"] .result-copy span{display:block;margin-top:2px;color:#77777c;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-stage="arena06"] .result-actions{display:flex;gap:5px;flex:0 0 auto}
body[data-stage="arena06"] .result-actions .btn{min-height:28px;padding:6px 8px!important;border:1px solid #d2d2cd!important;border-radius:6px!important;background:#f0f0ec!important;color:#202023!important;font-size:8px!important;white-space:nowrap}
body[data-stage="arena06"] .result-actions .btn.primary{background:#1d1d20!important;border-color:#1d1d20!important;color:#fff!important}

@media(max-width:820px){
  body[data-stage="arena06"] .game-hud-panel{grid-column:1/-1}
  body[data-stage="arena06"] .result-banner{grid-column:1/-1}
}
@media(max-width:560px){
  body[data-stage="arena06"] .player-strip{padding:2px 2px!important}
  body[data-stage="arena06"] .player-title-row{gap:4px}
  body[data-stage="arena06"] .color-chip{font-size:5.8px;letter-spacing:.05em}
  body[data-stage="arena06"] .color-chip i{width:6px;height:6px}
  body[data-stage="arena06"] .turn-label{font-size:5.8px;letter-spacing:.05em}
  body[data-stage="arena06"] .clock{min-width:84px;font-size:21px!important;padding:6px 7px}
  body[data-stage="arena06"] .game-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-stage="arena06"] .game-facts span{padding:5px 6px}
  body[data-stage="arena06"] .result-banner{align-items:flex-start;flex-direction:column}
  body[data-stage="arena06"] .result-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-stage="arena06"] .result-actions .btn{min-width:0}
}

/* Stage 13 mobile HUD: keep game-state facts available instead of inheriting the legacy first-panel hide. */
@media(max-width:750px){
  body[data-stage="arena06"] .rightbar .bot-presence{display:block!important}
  body[data-stage="arena06"] .bot-presence #opponent-card,
  body[data-stage="arena06"] .bot-presence .opponent-quote,
  body[data-stage="arena06"] .bot-presence .bot-message{display:none!important}
  body[data-stage="arena06"] .bot-presence-body{padding:8px 10px!important;gap:5px}
}

/* WALKERBEX CHESS — Stage 15: clean light-grey Arena canvas and naked 8×8 board. */
body[data-stage="arena06"]{--arena-bg:#eeeeeb!important;background:#eeeeeb!important}
body[data-stage="arena06"] .board-zone{position:relative}
body[data-stage="arena06"] .board-zone>.player,
body[data-stage="arena06"] .board-zone>.board{width:min(100%,calc(100dvh - 166px),var(--arena-board-max))!important}
body[data-stage="arena06"] .board-window,
body[data-stage="arena06"] .board-shell,
body[data-stage="arena06"] .obsidian-frame{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body[data-stage="arena06"] .appearance-panel{background:#fbfbf8!important}
body[data-stage="arena06"] .risk-countdown{inset:auto!important;left:50%;top:50%;width:min(100%,calc(100dvh - 166px),var(--arena-board-max));aspect-ratio:1;transform:translate(-50%,-50%);border-radius:6px;background:rgba(24,24,26,.88)!important;backdrop-filter:blur(3px)}
@media(max-width:1050px){body[data-stage="arena06"] .board-zone>.player,body[data-stage="arena06"] .board-zone>.board{width:min(100%,calc(100dvh - 166px),720px)!important}}
@media(max-width:820px){body[data-stage="arena06"] .board-zone>.player,body[data-stage="arena06"] .board-zone>.board{width:min(100%,calc(100vw - 20px),680px)!important}body[data-stage="arena06"] .risk-countdown{width:min(100%,calc(100vw - 20px))}}
@media(max-width:560px){body[data-stage="arena06"] .board-zone>.player,body[data-stage="arena06"] .board-zone>.board{width:min(100%,calc(100vw - 12px))!important}}
