/* Duell Studio — shared visual layer, original engines and hit targets preserved. */
:root{color-scheme:dark;--ground:#0b0d10;--ground-glow:#262b22;--panel:#161a1dd9;--panel-2:#252b2f;--line:#42484b;--grid:#636e63;--node:#90988d;--text:#f5f7f8;--muted:#b4babd;--human:#f4f6f8;--human-soft:#ffffff15;--robot:#c4f52c;--robot-soft:#c4f51c16;--led:#c4f52c;--led-ink:#111707;--board-ink:#0c0f11;--display:'Segoe UI',system-ui,sans-serif;--body:'Segoe UI',system-ui,sans-serif;--duel-lime:#c4f52c;--duel-border:#4a5053}
html{background:#0b0d10}body{color:var(--text);font-family:var(--body);font-size:15px;line-height:1.5;background:radial-gradient(ellipse at 50% 15%,#202822 0,transparent 62%),#0b0d10;min-height:100vh;margin:0}
*{box-sizing:border-box}button,input,select,summary{font-family:var(--body);font-size:14px;line-height:1.4}button{min-height:44px;cursor:pointer}button:disabled{cursor:not-allowed}a{color:var(--duel-lime)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--duel-lime);outline-offset:4px}
button:not(.square),select,input:not([type=range]){border-radius:9px}.btn-primary,.primary{background:var(--duel-lime);border-color:var(--duel-lime);color:#101506;font-weight:750}.btn-primary:hover,.primary:hover:not(:disabled){background:#d6ff66;color:#101506;border-color:#d6ff66}.btn,button:not(.square):not(.primary):not(.btn-primary){border:1px solid var(--duel-border);background:#1b2024;color:var(--text)}button:not(.square):hover:not(:disabled){border-color:var(--duel-lime)}
.duel-stage{position:relative;isolation:isolate;min-width:0;border:1px solid #41494a;border-radius:18px;background:#14191b;overflow:hidden;box-shadow:0 24px 70px #0006;padding-bottom:20px}
.duel-opponent{display:block;width:100%;height:clamp(210px,24vw,350px);object-fit:cover;object-position:50% 0;user-select:none;pointer-events:none;mask-image:linear-gradient(#000 82%,transparent 100%)}
.duel-stage .board-wrap{position:relative;z-index:1;width:83%;max-width:590px;aspect-ratio:1;margin:-17px auto 10px;transform:perspective(1400px) rotateX(13deg);transform-origin:50% 0;transition:transform .35s;border-radius:13px;box-shadow:0 13px 0 #292f2e,0 16px 0 var(--duel-lime),0 30px 38px #000a;background:#101415}
.duel-flat .duel-stage .board-wrap{transform:none}.duel-view{display:block;margin:20px auto 0;padding:8px 16px;font-size:12px!important;min-height:38px;position:relative;z-index:1}.duel-thinking .duel-stage,body.thinking .duel-stage{border-color:var(--duel-lime);box-shadow:0 0 28px #c4f52c18,0 24px 70px #0006}
.duel-stage:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff06}
.duel-robot-thumb{width:96px;height:96px;object-fit:cover;object-position:50% 21%;border-radius:50%;background:#202727;border:1px solid #555f48}

/* Shared radio: native audio, no autoplay and no simulated progress. */
.duel-radio{border:1px solid var(--duel-border);border-radius:13px;padding:18px;background:#13181beb;min-width:0;text-align:left;color:var(--text)}
.duel-radio-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.duel-radio h3{font-size:16px;line-height:1.3;margin:0;color:#fff;font-weight:650}.duel-air{font-size:10px;letter-spacing:.12em;color:var(--muted)}.is-playing .duel-air{color:var(--duel-lime)}
.duel-now{min-height:53px}.duel-now strong{font-size:13px;line-height:1.5;display:block;overflow-wrap:anywhere;font-weight:650}.duel-now small{display:block;color:#aeb5b8;font-size:11px;margin-top:3px;letter-spacing:.03em}.duel-transport{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0}.duel-transport button{width:44px;height:44px;padding:10px;display:grid;place-items:center;background:transparent!important;border:0!important}.duel-transport button[data-action=play]{width:52px;height:52px;border:1px solid #e2e8da!important;border-radius:50%}.duel-transport svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.duel-transport [data-action=play] svg{fill:currentColor;stroke-width:1.7}.duel-time{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.duel-radio input[type=range]{width:100%;margin:4px 0 14px;accent-color:var(--duel-lime);height:20px;cursor:pointer}.duel-radio input:disabled{cursor:default}.duel-track-label{display:block;margin:0 0 12px}.duel-track-label>span{display:none}.duel-radio select{display:block;width:100%;min-height:40px;border:1px solid #4d555b;background:#22282b;color:#fff;padding:7px;font-size:11px;text-overflow:ellipsis}.duel-volume-label{display:grid;grid-template-columns:1fr auto;font-size:11px;color:var(--muted);gap:4px 8px}.duel-volume-label input{grid-column:1/-1;margin-bottom:0!important}.duel-radio-error{font-size:12px;color:#ffbeb5;margin:12px 0 0}.duel-audio{display:none}

/* Mühle: three columns, compact live scores and the original accessible SVG board. */
body[data-game=muehle] .wrap{max-width:1480px;padding:18px 24px 44px;gap:16px}body[data-game=muehle] .topbar{display:flex;justify-content:space-between;align-items:center;height:38px;max-width:none;padding:0;width:100%;margin:0}.duel-game-name{font-size:14px;letter-spacing:.13em;color:#b7c0b7;text-transform:uppercase;font-weight:600}.duel-sibling{font-size:13px;text-decoration:none}
body[data-game=muehle] header.title{margin-top:-40px;pointer-events:none;width:60%;align-self:center;gap:0}body[data-game=muehle] header.title h1{font-size:clamp(27px,3vw,44px);font-weight:750;letter-spacing:-.04em}body[data-game=muehle] header.title .sub{font-size:13px;letter-spacing:0;color:var(--muted);font-weight:400;margin-top:6px}body[data-game=muehle] .scoreboard{padding:11px 18px 10px;border-radius:12px;background:#171c1ed9;box-shadow:none;border-color:#414a44;gap:7px 20px;max-width:1040px;width:100%;align-self:center}.sb-team{flex-direction:row;align-items:center!important;gap:16px}.sb-team.human{justify-content:flex-end}.sb-team.robot{justify-content:flex-start}.sb-name{font-size:11px;font-weight:650;letter-spacing:.07em}.seg7{height:29px}.sb-colon{gap:7px}.sb-colon i{width:4px;height:4px}.sb-strip{font-size:10px;letter-spacing:.02em;gap:4px 16px;padding-top:6px;border-color:#3d453d;color:var(--muted)}.sb-strip span b{color:var(--text);font-weight:650}.sb-strip .linkbtn{font-size:10px;min-height:0!important;padding:0!important;border:0!important;background:none!important;color:var(--muted)!important}.ticker{display:none}
body[data-game=muehle] .arena{display:grid;grid-template-columns:210px minmax(0,1fr) 250px;grid-template-areas:'human board robot';gap:20px;align-items:start}.duel-left{grid-area:human;display:flex;flex-direction:column;gap:18px}.duel-left .card{width:100%}.duel-left .duel-radio{width:100%}body[data-game=muehle] .card{border-radius:13px;padding:18px 14px;background:var(--panel);border-color:#444c4d;gap:14px;box-shadow:none}body[data-game=muehle] .card.human.active{border-color:#dce4d9;box-shadow:0 0 20px #ffffff08}body[data-game=muehle] .card.robot.active{border-color:var(--duel-lime);box-shadow:0 0 20px #c4f52c12}.card .avatar-ring{display:none}.card .who .label{font-weight:600;font-size:14px;letter-spacing:.04em}.card .turn-chip{border-radius:5px;font-size:9px;color:#101506}.card.human .turn-chip{color:#101415}#playerName{max-width:none;text-align:left;font-size:15px;padding:11px}#playerName::placeholder{color:var(--muted)}.stones{gap:7px}.stone-legend{font-size:11px}.status-row{gap:10px}.phase{border-radius:4px;border:0;background:#ffffff0a;font-size:10px;letter-spacing:.06em}#status{font-size:14px;text-wrap:pretty;line-height:1.5}.bubble{font-size:13px;text-align:left;padding:13px;line-height:1.5;border-radius:9px;background:#23292b;border-color:#49514e}.bubble:before{display:none}.controls{width:100%;gap:12px;flex-direction:column}.controls .seg{display:grid;width:100%;gap:7px;border:0;padding:0;background:none;border-radius:0}.controls .seg button{border:1px solid #424b45!important;background:#242a2c!important;min-height:40px;border-radius:8px;font-size:12px;font-weight:500;letter-spacing:0;padding:9px 8px;color:#fff!important}.controls .seg button[aria-pressed=true]{border-color:var(--duel-lime)!important;box-shadow:inset 0 0 0 1px #c4f52c28;background:#303828!important}.controls #newBtn{order:-1;width:100%;background:var(--duel-lime);border:1px solid var(--duel-lime);color:#121707;font-size:14px;font-weight:700;letter-spacing:0}.controls #newBtn.armed{background:var(--danger);border-color:var(--danger)}.level-note{font-size:11px;text-align:left;line-height:1.6}.board-col{gap:14px}.duel-stage #board{filter:none;border-radius:13px}#board .coord{fill:#adb5ad}#board .target{fill:#d8f6a1;opacity:.6;animation:none}.leader{max-width:none;background:#161b1dd9;border-color:#424a4d;border-radius:13px;padding:20px}.leader h2{font-size:19px;letter-spacing:0;font-weight:650;color:white}.leader th{letter-spacing:.04em;font-size:11px}.leader th,.leader td{border-color:#333d37}.rank.r1{background:var(--duel-lime)}.leader-scroll{scrollbar-width:thin}.seg.lang{border-radius:8px;background:#14191b;gap:2px;padding:2px}.seg.lang button{padding:6px 9px;min-height:32px;font-size:11px;border:0!important}.seg.lang button[aria-pressed=true]{background:#333f24!important;color:var(--duel-lime)!important;box-shadow:none}.splash{background:#080c0ff5;z-index:100;gap:20px;padding:24px}.splash img{width:min(900px,94vw);height:min(58vh,600px);object-fit:cover;object-position:center 28%;border-radius:18px;border:1px solid #4c5840;box-shadow:0 25px 80px #000a}.splash .duel-splash-title{font-size:clamp(26px,5vw,50px);margin:0;font-weight:750;letter-spacing:-.04em;color:#fff}.splash .duel-splash-title span{color:var(--duel-lime)}.splash-go .btn,.splash-go .btn-primary{font-size:15px;letter-spacing:0;font-weight:650}.result-card{background:#161c1e;border-color:#728c3f}.result-title{font-weight:700}.result-kicker{font-size:12px}body[data-game=muehle] details{background:#151a1b;border-color:#424a4d;border-radius:10px}

/* Schach: preserve color choice, history, promotion, Stockfish and all native board controls. */
body[data-game=chess] .topbar{max-width:1410px;margin:0 auto;padding:20px 30px 22px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}body[data-game=chess] .title h1{font-size:36px;font-weight:750;letter-spacing:-.04em}body[data-game=chess] .title h1 em{color:var(--duel-lime);font-style:normal}body[data-game=chess] .title p{font-size:13px;color:var(--muted);margin-top:5px}body[data-game=chess] .layout{max-width:1410px;padding:0 30px 45px;grid-template-columns:minmax(0,1fr) 320px;gap:28px}body[data-game=chess] .arena{min-width:0}body[data-game=chess] .rail{border:0;border-radius:13px;padding:22px;background:#151a1ddb;align-self:start;box-shadow:inset 0 0 0 1px #424a4d}body[data-game=chess] .rail .hero{display:none}body[data-game=chess] .rail h2{font-size:22px}body[data-game=chess] .duel-line{color:var(--duel-lime);font-size:13px;margin-bottom:22px}body[data-game=chess] .player{margin:0 0 12px;padding:13px 17px;border-radius:12px;background:#161c1dd9;gap:12px}body[data-game=chess] .player h2{font-size:15px;font-weight:650}body[data-game=chess] .player p{font-size:12px;color:var(--muted)}body[data-game=chess] .player.human{margin:16px 0 0}body[data-game=chess] .player.human p{color:#e4eadc}body[data-game=chess] .disc{width:24px;height:24px;border:1px solid #9da88c;box-shadow:none;background:#303930}body[data-game=chess] .human .disc{background:#f4f7ef;box-shadow:0 0 15px #ffffff14}body[data-game=chess] .duel-stage .board-wrap{padding:15px 15px 24px 28px;width:81%;max-width:630px;background:#1a2121;aspect-ratio:auto;border:1px solid #768166}body[data-game=chess] .board{border-color:#617151;border-radius:4px;box-shadow:none;display:grid;height:auto}body[data-game=chess] .square{background:#dce1d7;padding:7%;border-radius:0;color:#121716}body[data-game=chess] .square.dark{background:#48534b}body[data-game=chess] .square:hover:not(:disabled){background:#b4c499}body[data-game=chess] .square.dark:hover:not(:disabled){background:#647350}body[data-game=chess] .square.last{box-shadow:inset 0 0 0 100px #bbf52f25}body[data-game=chess] .square.selected{box-shadow:inset 0 0 0 4px #c4f52c;background:#98ac6f}body[data-game=chess] .square.target:after{background:#26351980}body[data-game=chess] .square.capture:after{background:none;border-color:#c4f52c}body[data-game=chess] .square.check{background:#af5550}body[data-game=chess] .piece.white{color:#fff;stroke:#293129;filter:drop-shadow(0 3px 2px #0007)}body[data-game=chess] .piece.black{color:#121916;stroke:#a4afa0;filter:drop-shadow(0 3px 2px #0008)}body[data-game=chess] .ranks{top:15px;bottom:24px;width:24px;font-size:11px;color:#c5cdc0}body[data-game=chess] .files{left:28px;right:15px;bottom:2px;font-size:11px;color:#c5cdc0}body[data-game=chess] .segmented{border-color:#4a5547}.segmented input:checked+span{background:#d3f688;color:#162014}.segmented label{font-size:13px}body[data-game=chess] .actions{gap:10px}body[data-game=chess] .actions button{font-size:12px;padding:9px}body[data-game=chess] .duel-radio{margin-top:22px;padding:16px;background:#0d1214;border-color:#424a44}body[data-game=chess] .moves{height:115px;border-color:#3b463d}body[data-game=chess] .moves-section{border-color:#3b463d;margin-top:20px}.moves>p{font-size:12px;color:var(--muted)}.move-row span:first-child{color:#aab7a1}.text-button{color:var(--muted)!important;background:none!important;border:0!important}.utilities{border-color:#3b463d}.utilities summary{color:var(--muted);font-size:13px}.help{color:var(--muted)}body[data-game=chess] .instruction,body[data-game=chess] .storage,body[data-game=chess] .credits{color:#adb7ae}body[data-game=chess] .instruction{margin:12px 0;font-size:12px}body[data-game=chess] dialog{background:#171d1e;color:#fff;border-color:#566448}body[data-game=chess] dialog p{color:var(--muted)}body[data-game=chess] .result{border-color:var(--duel-lime);background:#c4f52c0b;margin-left:0}.thinking #engine-state:after{color:var(--duel-lime)}

@media(min-width:1650px){.duel-stage .board-wrap{max-width:660px}.duel-opponent{height:380px}body[data-game=muehle] .wrap{max-width:1600px}body[data-game=chess] .layout,body[data-game=chess] .topbar{max-width:1520px}}
@media(max-width:1150px){body[data-game=muehle] .arena{grid-template-columns:165px minmax(0,1fr) 205px;gap:14px}body[data-game=muehle] .wrap{padding-inline:16px}.duel-radio{padding:13px}.duel-transport{gap:10px}.duel-stage .board-wrap{width:88%}body[data-game=chess] .layout{grid-template-columns:minmax(0,1fr) 285px;gap:20px;padding-inline:20px}body[data-game=chess] .rail{padding:17px}body[data-game=chess] .duel-stage .board-wrap{width:88%}}
@media(max-width:900px){body[data-game=muehle] .arena{grid-template-columns:minmax(0,1fr) 250px;grid-template-areas:'board robot' 'board human'}.duel-left{gap:14px}.duel-left .card{padding:15px}.duel-opponent{height:230px}.card .duel-robot-thumb{width:68px;height:68px}.duel-stage .board-wrap{width:88%}body[data-game=muehle] .scoreboard{max-width:none}.sb-strip{gap:4px 10px}body[data-game=chess] .layout{grid-template-columns:minmax(0,1fr) 245px;gap:16px}body[data-game=chess] .topbar{padding-inline:20px}body[data-game=chess] .title h1{font-size:29px}body[data-game=chess] .duel-stage .board-wrap{width:90%;padding:10px 10px 22px 23px}body[data-game=chess] .files{left:23px;right:10px}body[data-game=chess] .ranks{top:10px;bottom:22px;width:20px}}
@media(max-width:700px){body[data-game=muehle] .wrap{padding:14px 12px 32px;gap:13px}body[data-game=muehle] header.title{width:100%;margin-top:0}body[data-game=muehle] header.title h1{font-size:32px}body[data-game=muehle] header.title .sub{font-size:12px}body[data-game=muehle] .arena{display:flex;flex-direction:column;gap:16px}.board-col{order:0;width:100%}.duel-left{order:1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}body[data-game=muehle] #cardRobot{order:2;width:100%;display:grid;grid-template-columns:70px 1fr;gap:12px;text-align:left}.card.robot .duel-robot-thumb{grid-column:1;grid-row:1/3}.card.robot .who{align-items:flex-start}.card.robot .stones{justify-content:flex-start}.card.robot .stone-legend,.card.robot .bubble,.card.robot .controls,.card.robot .level-note{grid-column:1/-1}.controls .seg{grid-template-columns:repeat(3,1fr)}.controls #newBtn{min-height:44px}.duel-stage{border-radius:13px;padding-bottom:15px}.duel-opponent{height:clamp(170px,46vw,270px)}.duel-stage .board-wrap{width:86%;margin-top:-8px;transform:perspective(1100px) rotateX(9deg)}.duel-view{font-size:11px!important;margin-top:18px}.sb-name{font-size:10px;letter-spacing:0}.sb-team{gap:9px}.sb-strip{font-size:9px}.seg7{height:25px}.splash{padding:18px}.splash img{height:48vh;object-position:50% 18%}.splash-go{gap:10px}.splash-go .btn,.splash-go .btn-primary{font-size:13px;padding:12px 16px}.leader{padding:16px}.leader h2{font-size:17px}.leader td{font-size:12px;padding:7px 5px}.leader th{font-size:10px;padding:7px 5px}.leader-head p,.leader-note{font-size:12px}.chip{font-size:10px;padding:2px 5px}
body[data-game=chess] .topbar{padding:16px 15px;grid-template-columns:1fr auto;gap:12px}body[data-game=chess] .topbar .title{grid-column:1/-1;grid-row:2}body[data-game=chess] .topbar .title h1{font-size:32px}body[data-game=chess] .layout{display:block;padding:0 12px 30px}body[data-game=chess] .rail{margin-top:20px;padding:20px;border:0}.duel-game-name{font-size:12px}body[data-game=chess] .duel-stage .board-wrap{width:88%;margin-top:-5px}body[data-game=chess] .player{margin-left:0;padding:11px 14px}body[data-game=chess] .duel-radio{padding:18px}body[data-game=chess] .rail .duel-transport{gap:35px}body[data-game=chess] .square{padding:7%}body[data-game=chess] .piece{max-height:70px}}
@media(max-width:430px){.duel-left{display:flex}.duel-left .card{display:grid;grid-template-columns:1fr 1fr;gap:10px}.duel-left .who{grid-row:1/3}.duel-left .stone-legend{font-size:10px;text-align:right}.duel-left .status-row{grid-column:1/-1}body[data-game=muehle] .scoreboard{padding:10px 12px;gap:7px 12px}.duel-transport{gap:34px}.duel-opponent{height:172px}.duel-stage .board-wrap{width:88%}.duel-sibling{font-size:12px}}
@media(min-width:901px){.duel-opponent{height:270px;object-position:50% 14%}.duel-stage .board-wrap{max-width:520px;transform:perspective(2400px) rotateX(20deg)}body[data-game=chess] .duel-stage .board-wrap{max-width:550px}body[data-game=chess] .topbar{padding-top:14px;padding-bottom:16px}body[data-game=chess] .player{padding:10px 15px;margin-bottom:10px}.duel-flat .duel-stage .board-wrap{transform:none}}
.duel-robot-avatar{width:80px;height:80px;position:relative;overflow:hidden;border-radius:50%;border:1px solid #57644b;background:#161d1c}.duel-robot-avatar .duel-robot-thumb{position:absolute;max-width:none;width:560%;height:auto;left:-230%;top:-38%;border:0;border-radius:0}
.controls .seg{grid-template-columns:1fr;justify-content:stretch}
@media(max-width:700px){.controls .seg{grid-template-columns:repeat(3,1fr)}.duel-robot-avatar{grid-column:1;grid-row:1/3;width:65px;height:65px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
