/* OCHE DUEL LOCAL — BATTLE ARENA / isolated visual theme */
#duel-local{--duel-lime:#b9ff58;--duel-amber:#ffad47;--duel-muted:#a5b5b4;color:#eef8f1;position:relative;isolation:isolate;padding:clamp(8px,2vw,22px);border-radius:24px;background:radial-gradient(ellipse at 14% 0%,rgba(100,241,123,.17),transparent 45%),radial-gradient(ellipse at 92% 8%,rgba(255,146,57,.16),transparent 42%),linear-gradient(145deg,#0a1419,#111f23 55%,#081319);box-shadow:inset 0 0 0 1px rgba(196,255,205,.13),0 20px 50px rgba(0,0,0,.22)}
#duel-local *{box-sizing:border-box}
#duel-local .hero{background:transparent;border:0;box-shadow:none;margin:0 0 16px;padding:6px 10px 12px}
#duel-local .hero .eyebrow{font-size:11px;font-weight:900;letter-spacing:.24em;color:var(--duel-lime)}
#duel-local .hero h2{font-size:clamp(29px,4.2vw,52px);font-weight:950;line-height:1.05;letter-spacing:-.045em;text-transform:uppercase;margin:8px 0;background:linear-gradient(100deg,#fff 10%,#baff6a 75%);background-clip:text;-webkit-background-clip:text;color:transparent}
#duel-local .hero p{color:#b3c7c1;font-size:14px}
#duel-local .panel{background:linear-gradient(150deg,rgba(31,53,59,.94),rgba(13,27,34,.96));border:1px solid rgba(158,216,186,.22);box-shadow:0 14px 30px rgba(0,0,0,.15);border-radius:19px;padding:clamp(13px,2vw,22px)}
#duel-local #dl-setup label{font-weight:800;color:#cfe3d9}
#duel-local #dl-setup select,#duel-local #dl-setup input{background:#0b1a20;color:#f3fff3;border:1px solid #527465;border-radius:11px;min-height:44px;padding:9px}
#duel-local #dl-setup button.primary{background:linear-gradient(110deg,#c3ff65,#8de957);color:#102015;border:0;font-size:17px;font-weight:950;min-height:55px;box-shadow:0 8px 24px rgba(153,247,91,.2)}
#duel-local .dl-player-row{background:rgba(6,18,24,.5);border:1px solid rgba(169,233,179,.16);padding:12px;border-radius:14px}
#duel-local #dl-game>.actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
#duel-local #dl-game>.actions button{background:#15262c;color:#d6eee2;border:1px solid #45685b;border-radius:10px;font-weight:800;min-height:40px}
#duel-local #dl-scoreboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
#duel-local .dl-player-card{position:relative;overflow:hidden;min-height:122px;border:1px solid rgba(157,251,182,.33);border-radius:18px;background:linear-gradient(140deg,rgba(41,86,73,.88),rgba(13,39,44,.98));box-shadow:inset 0 1px rgba(255,255,255,.1),0 10px 20px rgba(0,0,0,.12);padding:17px 18px}
#duel-local .dl-player-card:nth-child(even){border-color:rgba(255,177,91,.37);background:linear-gradient(140deg,rgba(94,59,42,.86),rgba(42,32,34,.97))}
#duel-local .dl-player-card::after{content:'⚔';position:absolute;right:10px;bottom:-19px;font-size:94px;opacity:.07;pointer-events:none}
#duel-local .dl-player-card.active{outline:2px solid var(--duel-lime);outline-offset:0;box-shadow:0 0 0 4px rgba(181,255,88,.09),0 0 25px rgba(176,255,99,.13)}
#duel-local .dl-player-card.target{outline:2px solid var(--duel-amber);outline-offset:0}
#duel-local .dl-player-card strong{font-size:clamp(13px,1.8vw,18px);font-weight:900;letter-spacing:.015em}
#duel-local .dl-player-card .dl-hp{display:block;margin:10px 0 4px;font-size:clamp(25px,3.5vw,38px);line-height:1.05;font-weight:950;letter-spacing:-.05em;color:#c6ff7c;font-variant-numeric:tabular-nums}
#duel-local .dl-player-card:nth-child(even) .dl-hp{color:#ffc17d}
#duel-local .dl-player-card small{font-size:12px;min-height:17px;color:#c1d2c9}
#duel-local #dl-game>.panel:nth-of-type(1){text-align:center;margin:0 0 12px;border-color:rgba(198,255,128,.25);background:linear-gradient(100deg,#1c3035,#15282d)}
#duel-local #dl-status{font-size:clamp(20px,2.7vw,30px);font-weight:950;letter-spacing:-.03em;margin:0 0 5px;color:#f5fff5}
#duel-local #dl-target{color:#ffd194;font-weight:850;margin:4px 0}
#duel-local #dl-last{font-size:13px;color:#b8d2c4;margin:5px 0 0}
#duel-local #dl-controls{border:1px solid rgba(175,255,137,.26);background:linear-gradient(180deg,#152a2d,#0b1d24);padding:clamp(12px,2vw,20px)}
#duel-local #dl-controls h3{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:#bafc76;font-weight:950;margin:0 0 12px}
#duel-local .oa-duel-quick,#duel-local .oa-duel-ring{gap:9px;margin:10px 0}
#duel-local .oa-duel-quick button{background:linear-gradient(145deg,#234d46,#183c39);border:1px solid #4c8970;border-radius:13px;min-height:59px;font-size:clamp(14px,2vw,19px);font-weight:950;color:#e9ffed;box-shadow:inset 0 1px rgba(255,255,255,.1)}
#duel-local .oa-duel-quick:first-of-type button{color:#c9ff88}
#duel-local .oa-duel-special button:nth-child(2){background:linear-gradient(145deg,#624e2b,#3d3424);border-color:#a88344;color:#ffe6a4}
#duel-local .oa-duel-special button:last-child{background:#352c34;border-color:#71545d;color:#f2bdc4}
#duel-local .oa-duel-ring button{background:#182d32;border:1px solid #48645e;border-radius:12px;color:#d0e2dc;min-height:48px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
#duel-local .oa-duel-ring button.selected{background:linear-gradient(100deg,#bfff65,#8fe45a);border-color:#c8ff83;color:#142318;box-shadow:0 0 18px rgba(161,255,91,.15)}
#duel-local .oa-duel-display{background:#08191f;border:1px solid #507d6b;border-radius:12px;padding:12px;margin:12px 0;color:#c8ff8c;font-size:clamp(19px,3vw,26px);font-weight:950;letter-spacing:.12em}
#duel-local .oa-duel-keypad{max-width:480px;gap:8px}
#duel-local .oa-duel-keypad button{min-height:56px;background:linear-gradient(160deg,#24464b,#1a343c);border:1px solid #4d7474;border-radius:12px;color:#fff;font-size:24px;font-weight:900;box-shadow:0 3px 0 #0b2026}
#duel-local .oa-duel-keypad .oa-duel-clear{background:#593b3e;border-color:#976266;font-size:14px}
#duel-local .oa-duel-keypad .oa-duel-confirm{background:linear-gradient(135deg,#c4ff6e,#8be455);border-color:#baff6c;color:#102219;font-size:20px}
#duel-local button{transition:transform .12s ease,filter .12s ease}
#duel-local button:active{transform:scale(.97);filter:brightness(1.12)}
#duel-local .hint{color:#a5c0b5;font-size:12px}
@media(max-width:520px){#duel-local{padding:8px;border-radius:14px}#duel-local #dl-scoreboard{gap:7px}#duel-local .dl-player-card{padding:12px;min-height:106px}#duel-local .oa-duel-quick,#duel-local .oa-duel-ring,#duel-local .oa-duel-keypad{gap:6px}#duel-local .oa-duel-keypad button{min-height:52px}}
@media(prefers-reduced-motion:reduce){#duel-local button{transition:none}}


/* OCHE DUEL responsive compact mode – only local duel */
body:has(#duel-local:not([hidden])) main{padding-top:4px!important}
body:has(#duel-local:not([hidden])) main>header{display:none!important}
body:has(#duel-local:not([hidden])) main>footer{display:none!important}
#duel-local:not([hidden]){padding:clamp(5px,1vw,12px);border-radius:12px}
#duel-local #dl-game>.actions{margin-bottom:5px;gap:5px}
#duel-local #dl-game>.actions button{min-height:28px;padding:4px 8px;font-size:12px}
#duel-local #dl-scoreboard{margin-bottom:5px;gap:6px}
#duel-local .dl-player-card{min-height:0;padding:7px 10px;border-radius:10px}
#duel-local .dl-player-card .dl-hp{font-size:clamp(17px,2.7vw,28px);margin:3px 0}
#duel-local .dl-player-card strong{font-size:clamp(12px,1.5vw,16px)}
#duel-local .dl-player-card small{font-size:10px;min-height:0}
#duel-local #dl-game>.panel{padding:8px 10px;border-radius:12px}
#duel-local #dl-game>.panel:nth-of-type(1){margin-bottom:5px}
#duel-local #dl-status{font-size:clamp(16px,2vw,22px);margin:0}
#duel-local #dl-target,#duel-local #dl-last{font-size:11px;margin:2px 0}
#duel-local #dl-throw-history{margin:5px 0!important;padding:7px 10px!important}
#duel-local .dl-last-opponent{gap:3px!important}
#duel-local .dl-last-opponent>strong{font-size:12px!important}
#duel-local .dl-last-opponent>small{font-size:10px!important}
#duel-local .dl-last-darts{gap:5px!important}
#duel-local .dl-last-darts span{padding:4px!important;font-size:14px!important}
#duel-local #dl-controls{padding:8px!important}
#duel-local #dl-controls h3{font-size:11px;margin:0 0 4px}
#duel-local .oa-duel-quick,#duel-local .oa-duel-ring{margin:4px 0;gap:5px}
#duel-local .oa-duel-quick button{min-height:clamp(29px,5vh,42px);font-size:clamp(11px,1.6vw,15px);border-radius:8px;padding:2px}
#duel-local .oa-duel-ring button{min-height:clamp(27px,4vh,35px);font-size:12px;border-radius:8px;padding:2px}
#duel-local .oa-duel-display{padding:4px;margin:4px 0;font-size:clamp(15px,2.2vw,21px);border-radius:8px}
#duel-local .oa-duel-keypad{max-width:none;gap:5px}
#duel-local .oa-duel-keypad button{min-height:clamp(30px,5.4vh,44px);font-size:clamp(16px,2vw,22px);border-radius:8px}
#duel-local .oa-duel-keypad .oa-duel-clear{font-size:12px}
#duel-local .oa-duel-keypad .oa-duel-confirm{font-size:17px}
#duel-local #dl-controls>.hint{font-size:10px;line-height:1.2;margin:4px 0 0}
/* Tablet landscape: two-column cockpit, so the keypad doesn't push the page down */
@media(min-width:700px) and (orientation:landscape){
 #duel-local #dl-game{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1.05fr);grid-template-rows:auto auto auto 1fr;column-gap:10px;align-items:start}
 #duel-local #dl-game>.actions{grid-column:1/-1;grid-row:1}
 #duel-local #dl-scoreboard{grid-column:1;grid-row:2}
 #duel-local #dl-game>.panel:nth-of-type(1){grid-column:1;grid-row:3}
 #duel-local #dl-throw-history{grid-column:1;grid-row:4}
 #duel-local #dl-controls{grid-column:2;grid-row:2/5}
}
/* Narrow devices: tighter layout while preserving readable touch targets */
@media(max-width:699px){
 #duel-local .hero{padding:0 4px;margin:0 0 5px}
 #duel-local .hero h2{font-size:22px;margin:2px 0}
 #duel-local .hero p{font-size:11px;margin:2px 0}
 #duel-local #dl-scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 #duel-local .dl-player-card{padding:6px}
 #duel-local .dl-player-card .dl-hp{font-size:clamp(15px,4vw,21px)}
 #duel-local #dl-controls>.hint{display:none}
}
@media(max-height:700px){
 #duel-local .oa-duel-keypad button{min-height:30px}
 #duel-local .oa-duel-quick button{min-height:28px}
 #duel-local .oa-duel-ring button{min-height:26px}
}

#duel-local [hidden] {
  display: none !important;
}
/* Safe battle-effects layer: scoped to OCHE DUEL only */
#duel-local [hidden]{display:none!important}
#duel-local .dl-hp-track{display:block;height:9px;margin:5px 0;background:#283831;border-radius:99px;overflow:hidden;border:1px solid #506357}
#duel-local .dl-hp-fill{display:block;height:100%;border-radius:99px;transition:width .3s ease}
#duel-local .dl-hp-fill.healthy{background:linear-gradient(90deg,#58bc55,#b9ff78)}
#duel-local .dl-hp-fill.warning{background:linear-gradient(90deg,#ed9d27,#ffe071)}
#duel-local .dl-hp-fill.critical{background:linear-gradient(90deg,#d93440,#ff7663);animation:dl-critical 1.2s ease-in-out infinite}
#duel-local .dl-hp-fill.dead{width:0!important}
#duel-local #dl-battle-stage{display:flex;align-items:center;justify-content:center;gap:8px;min-height:34px;margin-top:5px}
#duel-local .dl-battle-board{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;background:#193a2c;border:2px solid #8fd26b;font-size:19px}
#duel-local .dl-battle-effect{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 9px;font-size:clamp(11px,1.5vw,15px);font-weight:900}
#duel-local .dl-fx-damage,#duel-local .dl-fx-break{color:#ff837a}
#duel-local .dl-fx-heal{color:#a9f785}
#duel-local .dl-fx-shield{color:#80cfff}
#duel-local .dl-fx-bonus{color:#ffe178}
#duel-local .dl-fx-neutral{color:#b7c9bc}
#duel-local .dl-animate .dl-battle-effect{animation:dl-pop .35s ease-out both}
#duel-local .dl-animate .dl-battle-board{animation:dl-pulse .5s ease-out}
@keyframes dl-pop{from{opacity:0;transform:translateY(7px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dl-pulse{50%{box-shadow:0 0 20px #a5ed5b99;transform:scale(1.08)}}
@keyframes dl-critical{50%{opacity:.6}}
@media(max-height:700px) and (min-width:700px){#duel-local #dl-battle-stage{min-height:26px;margin-top:2px}#duel-local .dl-battle-board{width:25px;height:25px;font-size:14px}#duel-local .dl-hp-track{height:6px;margin:2px 0}}
@media(prefers-reduced-motion:reduce){#duel-local .dl-hp-fill,#duel-local .dl-animate .dl-battle-effect,#duel-local .dl-animate .dl-battle-board{transition:none;animation:none}}

#duel-local .dl-tv-connect {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}

#duel-local #dl-tv-start {
  background: #b9ff78;
  color: #102015;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 900;
}

#duel-local #dl-tv-status {
  font-size: 12px;
  color: #d5e8d9;
}
/* Online duel uses the exact same battle card, HP and effect vocabulary as local duel. */
#online-game.oa-online-duel-active .oa-online-players{gap:8px}
#online-game.oa-online-duel-active .oa-online-player{position:relative;overflow:hidden;min-height:0;padding:10px 12px;border-radius:12px;border:1px solid rgba(157,251,182,.33);background:linear-gradient(140deg,rgba(41,86,73,.88),rgba(13,39,44,.98))}
#online-game.oa-online-duel-active .oa-online-player:nth-child(even){border-color:rgba(255,177,91,.37);background:linear-gradient(140deg,rgba(94,59,42,.86),rgba(42,32,34,.97))}
#online-game.oa-online-duel-active .oa-online-player.active{outline:2px solid #b9ff78;box-shadow:0 0 25px rgba(176,255,99,.13)}
#online-game.oa-online-duel-active .oa-online-player-bottom{display:flex;flex-direction:column-reverse;align-items:stretch;gap:4px}
#online-game.oa-online-duel-active .oa-online-player-bottom b{font-size:clamp(19px,3vw,34px);color:#c6ff7c;font-weight:950}
#online-game.oa-online-duel-active .oa-online-player:nth-child(even) .oa-online-player-bottom b{color:#ffc17d}
#online-game.oa-online-duel-active .oa-online-player-top small{color:#b9ff78}
#online-game .oa-online-hp-track{display:block;width:100%;height:9px;margin:6px 0;background:#283831;border:1px solid #506357;border-radius:99px;overflow:hidden}
#online-game .oa-online-hp-fill{display:block;height:100%;border-radius:99px;transition:width .35s ease}
#online-game .oa-online-hp-fill.healthy{background:linear-gradient(90deg,#58bc55,#b9ff78)}
#online-game .oa-online-hp-fill.warning{background:linear-gradient(90deg,#ed9d27,#ffe071)}
#online-game .oa-online-hp-fill.critical{background:linear-gradient(90deg,#d93440,#ff7663);animation:dl-critical 1.2s ease-in-out infinite}
#online-game #oa-online-battle-stage{text-align:center;background:linear-gradient(100deg,#1c3035,#15282d);border:1px solid rgba(198,255,128,.25);border-radius:12px;padding:8px;margin:8px 0;color:#baff7a;font-weight:900}
#online-game #oa-online-battle-stage.oa-fx-pop{animation:dl-pop .35s ease-out}
.oa-tv-global{display:flex;flex-direction:column;gap:4px;padding:8px;color:#cde7d8;font-size:11px}
.oa-tv-global button{background:#b9ff78;color:#102015;border:0;border-radius:9px;padding:9px 10px;font-weight:900;cursor:pointer}

/* OCHE DUEL — gemeinsame Lesbarkeits- und Tablet-Anpassung (09.11.2026).
   Nur Darstellung: keine Änderungen an Spielregeln, Buttons oder Online-Anfragen. */
#duel-local .dl-player-card{padding:clamp(10px,1.5vw,18px);min-height:118px}
#duel-local .dl-player-card strong{font-size:clamp(15px,1.8vw,21px)}
#duel-local .dl-player-card .dl-hp{font-size:clamp(28px,3.6vw,44px);line-height:1.08;margin:7px 0 5px}
#duel-local .dl-hp-track{height:13px;margin:8px 0 5px}
#duel-local #dl-status{font-size:clamp(20px,2.4vw,32px)}
#duel-local #dl-target,#duel-local #dl-last{font-size:clamp(12px,1.35vw,16px);line-height:1.35}
#duel-local #dl-battle-stage{min-height:40px}
#duel-local .dl-battle-effect{font-size:clamp(13px,1.6vw,18px)}
#duel-local .dl-battle-board{width:38px;height:38px;font-size:22px}
#online-game.oa-online-duel-active{max-width:1400px}
#online-game.oa-online-duel-active .oa-online-shell{background:radial-gradient(ellipse at 14% 0%,rgba(100,241,123,.17),transparent 45%),radial-gradient(ellipse at 92% 8%,rgba(255,146,57,.16),transparent 42%),linear-gradient(145deg,#0a1419,#111f23 55%,#081319);border-color:rgba(196,255,205,.2);border-radius:22px}
#online-game.oa-online-duel-active .oa-online-player{min-height:118px;padding:clamp(10px,1.5vw,18px);border-radius:18px}
#online-game.oa-online-duel-active .oa-online-player-top strong{font-size:clamp(15px,1.8vw,21px);font-weight:900}
#online-game.oa-online-duel-active .oa-online-player-bottom b{font-size:clamp(28px,3.6vw,44px);line-height:1.08;font-weight:950}
#online-game.oa-online-duel-active .oa-online-hp-track{height:13px;margin:8px 0 5px}
#online-game.oa-online-duel-active #online-match-status{font-size:clamp(14px,1.5vw,19px);font-weight:800}
#online-game.oa-online-duel-active #oa-online-battle-stage{font-size:clamp(14px,1.55vw,19px);min-height:42px;display:flex;align-items:center;justify-content:center}
#online-game.oa-online-duel-active .oa-online-last{font-size:clamp(13px,1.4vw,17px)}
#online-game.oa-online-duel-active #online-duel-panel{background:linear-gradient(180deg,#152a2d,#0b1d24);border:1px solid rgba(175,255,137,.26);border-radius:18px;padding:clamp(12px,2vw,20px)}
#online-game.oa-online-duel-active #online-duel-panel h3{color:#bafc76;font-weight:950}
/* Gleiche Links/Rechts-Aufteilung wie OCHE DUEL Lokal, nur im Online-Duell. */
@media(min-width:700px) and (orientation:landscape){
 #online-game.oa-online-duel-active .oa-online-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1.05fr);column-gap:12px;align-items:start}
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-brand,
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-format,
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-actions,
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-room,
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-message,
 #online-game.oa-online-duel-active .oa-online-shell>.oa-online-status{grid-column:1/-1}
 #online-game.oa-online-duel-active .oa-online-players,
 #online-game.oa-online-duel-active .oa-online-last,
 #online-game.oa-online-duel-active #oa-online-battle-stage,
 #online-game.oa-online-duel-active #online-waiting,
 #online-game.oa-online-duel-active .oa-online-checkout-box{grid-column:1;min-width:0}
 #online-game.oa-online-duel-active #online-duel-panel{grid-column:2;grid-row:7 / span 5;min-width:0;margin-top:12px}
 #online-game.oa-online-duel-active .oa-online-players{grid-row:7}
 #online-game.oa-online-duel-active .oa-online-last{grid-row:8}
 #online-game.oa-online-duel-active #oa-online-battle-stage{grid-row:9}
 #online-game.oa-online-duel-active #online-waiting{grid-row:10}
 #online-game.oa-online-duel-active .oa-online-checkout-box{grid-row:11}
 #online-game.oa-online-duel-active #online-throw-panel{grid-column:2;grid-row:7 / span 5}
 #online-game.oa-online-duel-active #online-checkout-dialog{grid-column:1/-1}
}
@media(max-width:699px){
 #duel-local .dl-player-card .dl-hp,#online-game.oa-online-duel-active .oa-online-player-bottom b{font-size:clamp(25px,6vw,36px)}
 #duel-local .dl-hp-track,#online-game.oa-online-duel-active .oa-online-hp-track{height:11px}
 #duel-local .dl-player-card,#online-game.oa-online-duel-active .oa-online-player{padding:10px}
}
@media(prefers-reduced-motion:reduce){#online-game.oa-online-duel-active #oa-online-battle-stage{animation:none}}

/* Online OCHE DUEL: letzte drei Darts je Spieler, ohne Spielregeln zu ändern */
#online-game.oa-online-duel-active .oa-online-dart-history{margin-top:10px;padding-top:8px;border-top:1px solid rgba(195,255,200,.18)}
#online-game.oa-online-duel-active .oa-online-dart-heading{display:block;color:#c4d9cd;font-size:11px;font-weight:900;letter-spacing:.08em;margin-bottom:6px}
#online-game.oa-online-duel-active .oa-online-dart-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#online-game.oa-online-duel-active .oa-online-dart-chips span{text-align:center;padding:6px 2px;border-radius:8px;border:1px solid #547b66;background:#132e2e;color:#caff9b;font-weight:900;font-size:clamp(12px,1.5vw,17px)}
#online-game.oa-online-duel-active .oa-online-dart-chips span.empty{color:#79938b}
