:root {
  color-scheme: dark;
  /* Ucotiga Blue Theme — diese sechs Variablen reichen für eine spätere Farbanpassung. */
  --brand-blue: #10a7de;
  --brand-blue-strong: #087fac;
  --brand-blue-soft: #79dcff;
  --brand-blue-glow: rgba(16, 167, 222, .26);
  --ink: #f6fbff;
  --muted: #a9c7d9;
  --line: rgba(89, 192, 233, .36);
  --panel: #09243a;
  --navy: #041421;
  --blue: var(--brand-blue);
  --green: var(--brand-blue-strong);
  --danger: #ff8794;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--navy);
}

/* BlueScore Training brand mark: three darts, bull and tablet-safe contrast. */
.brand-logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: .78rem;
  filter: drop-shadow(0 0 11px rgba(56, 199, 241, .28));
  transition: transform .22s ease, filter .22s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  filter: drop-shadow(0 0 16px rgba(109, 231, 255, .5));
  transform: translateY(-2px) rotate(-2deg);
}

@media (max-width: 640px) {
  .brand-logo { width: 2.18rem; height: 2.18rem; border-radius: .62rem; }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 50% -20%, #173b68 0, transparent 35rem), var(--navy); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #70b3ff; outline-offset: 3px; }

.page-glow { position: fixed; z-index: -1; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(110px); opacity: .13; pointer-events: none; }
.page-glow-left { bottom: -8rem; left: -16rem; background: #1d8fff; }
.page-glow-right { top: 20rem; right: -16rem; background: #7d5add; }
.app-shell { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: 1rem 0 1rem; }

.topbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(132, 177, 220, .18); }
.brand { display: inline-flex; gap: .7rem; align-items: center; color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand b { color: #6caeff; font-weight: 600; }
.brand-mark { display: inline-flex; height: 21px; align-items: end; gap: 3px; padding: 3px; border: 1.5px solid #4ca0ff; border-radius: 5px; transform: skew(-9deg); }
.brand-mark i { display: block; width: 3px; border-radius: 5px; background: #79beff; }.brand-mark i:nth-child(1) { height: 6px; }.brand-mark i:nth-child(2) { height: 11px; }.brand-mark i:nth-child(3) { height: 16px; }
.topbar-actions { display: flex; gap: .65rem; align-items: center; }
.local-indicator { display: inline-flex; gap: .45rem; align-items: center; color: #a9bed7; font-size: .75rem; font-weight: 700; }
.local-indicator span, .tiny-dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: #43d7aa; box-shadow: 0 0 0 .22rem rgba(67, 215, 170, .11); }
.icon-button { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid var(--line); border-radius: .6rem; color: #c8ddf5; background: rgba(17, 47, 80, .66); transition: .18s ease; }
.icon-button:hover { border-color: #65a7ed; background: #173b63; }.icon-button svg { width: 1.18rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Spielauswahl */
.setup-view { padding-top: clamp(.7rem, 2vw, 1.25rem); }
.hero-copy { max-width: 45rem; margin: 0 auto .9rem; text-align: center; }
.eyebrow { margin: 0 0 .55rem; color: #79b7ff; font-size: .64rem; font-weight: 800; letter-spacing: .105em; }
.hero-copy h1 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1; letter-spacing: -.06em; }
.hero-copy h1 em { color: #68afff; font-style: normal; }
.hero-text { max-width: 38rem; margin: 1.4rem auto 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.game-picker, .match-settings, .local-summary { border: 1px solid var(--line); border-radius: .9rem; background: linear-gradient(140deg, rgba(13, 34, 59, .96), rgba(9, 27, 49, .96)); box-shadow: 0 20px 55px rgba(0, 0, 0, .12); }
.game-picker, .match-settings { padding: clamp(.8rem, 1.8vw, 1.1rem); }
.section-heading { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: .75rem; }
.section-heading h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.045em; }
.section-heading > p { max-width: 20rem; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: right; }.compact { align-items: center; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.game-card { position: relative; display: flex; min-height: 74px; gap: .65rem; align-items: center; padding: .7rem 2.35rem .7rem .7rem; overflow: hidden; border: 1px solid rgba(118, 168, 220, .34); border-radius: .62rem; text-align: left; background: linear-gradient(110deg, #142c50, #10233d); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-card:hover { border-color: #79b8fb; transform: translateY(-2px); }.game-card.active { border-color: #5faaff; box-shadow: inset 0 0 0 1px #559bf2, 0 0 0 3px rgba(70, 145, 239, .1); }
.game-card.active::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(74, 138, 244, .19), transparent 52%); }
.game-card-icon { position: relative; z-index: 1; display: grid; width: 1.9rem; height: 1.9rem; flex: 0 0 1.9rem; place-items: center; border: 1px solid rgba(133, 188, 255, .42); border-radius: .45rem; color: #b7daff; font-family: Consolas, monospace; font-size: .68rem; font-weight: 500; }
.game-card-copy { position: relative; z-index: 1; display: grid; min-width: 0; gap: .2rem; }.game-card-copy small { color: #a6c9f1; font-size: .57rem; font-weight: 800; letter-spacing: .09em; }.game-card-copy strong { font-family: Georgia, serif; font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.05; letter-spacing: -.04em; }.game-card-copy span { color: #a2b6ce; font-size: .69rem; }
.selection-check { position: absolute; z-index: 2; top: .55rem; right: .55rem; display: none; width: 1.1rem; height: 1.1rem; place-items: center; border-radius: 50%; color: #061326; background: #8ac3ff; font-size: .68rem; font-weight: 800; }.game-card.active .selection-check { display: grid; }
.double-training { background: linear-gradient(110deg, #392d2a, #272235); }.around-board { background: linear-gradient(110deg, #123d4a, #1e3040); }.cricket { background: linear-gradient(110deg, #34213e, #27233b); }.blue-training { background: linear-gradient(110deg, #243154, #352b4e); }.hatschi { background: linear-gradient(110deg, #4b2a36, #312043); }.one-twenty-one { background: linear-gradient(110deg, #163d3a, #233556); }
.match-settings { margin-top: .65rem; }.settings-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; padding: .1rem 0 .85rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }legend { margin-bottom: .65rem; color: #acc8e7; font-size: .68rem; font-weight: 800; }
.player-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }.player-fields legend { grid-column: 1 / -1; }.player-fields label { display: grid; gap: .38rem; color: #a8bed8; font-size: .67rem; font-weight: 700; }.player-fields input { width: 100%; height: 2.7rem; padding: 0 .78rem; border: 1px solid rgba(113, 161, 206, .45); border-radius: .55rem; color: #fff; background: #081a2e; }.player-fields input:focus { border-color: #69adf5; }
.leg-selector { display: flex; gap: .4rem; align-items: center; }.leg-selector button, .custom-legs { display: grid; min-width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid rgba(113, 161, 206, .45); border-radius: .52rem; color: #b5cae4; background: #0c2038; font-size: .8rem; font-weight: 800; transition: .18s; }.leg-selector button:hover { border-color: #67aaf1; }.leg-selector button.active { border-color: #67aaf1; color: #fff; background: #245a9d; box-shadow: inset 0 0 0 1px rgba(149, 207, 255, .18); }.custom-legs { width: 3.6rem; min-width: 0; overflow: hidden; }.custom-legs input { width: 100%; height: 100%; border: 0; color: #fff; outline: 0; background: transparent; text-align: center; }.legs-field p { margin: .7rem 0 0; color: var(--muted); font-size: .7rem; }.legs-field strong { color: #dcecff; }
.settings-footer { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; padding-top: .75rem; border-top: 1px solid rgba(113, 161, 206, .19); }.settings-footer p { display: flex; gap: .55rem; align-items: center; margin: 0; color: var(--muted); font-size: .68rem; }
.primary-button, .secondary-button { min-height: 2.75rem; padding: 0 1rem; border: 1px solid transparent; border-radius: .58rem; font-size: .78rem; font-weight: 800; transition: transform .18s, background .18s; }.primary-button { color: #fff; background: linear-gradient(105deg, #357dda, #4d9cf9); box-shadow: 0 8px 18px rgba(20, 105, 213, .22); }.primary-button:hover { background: linear-gradient(105deg, #418be9, #60abff); transform: translateY(-1px); }.primary-button span { margin-left: .35rem; font-size: 1rem; }.secondary-button { border-color: rgba(117, 165, 209, .55); color: #d7e9fb; background: #153252; }.secondary-button:hover { background: #1b426b; }
.local-summary { display: none; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.05rem; padding: 1rem 1.2rem; }.local-summary.show { display: grid; }.local-summary div { border-right: 1px solid rgba(114, 161, 205, .18); }.local-summary div:last-child { border: 0; }.local-summary span { display: block; color: var(--muted); font-size: .65rem; }.local-summary strong { display: block; margin-top: .15rem; font-size: 1.15rem; letter-spacing: -.04em; }

/* BlueScore-artige Tablet-Eingabe */
.hidden { display: none !important; }
.match-view { max-width: 1120px; margin: 3.5rem auto 0; overflow: hidden; border: 1px solid #203852; border-radius: .7rem; background: #071627; }
.match-topline { position: relative; display: flex; min-height: 4.3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; border-bottom: 1px solid #263e58; background: #091a2c; }.back-button { display: grid; width: 2.65rem; height: 2.65rem; padding: 0; place-items: center; border: 1px solid #2f567c; border-radius: .45rem; color: #80c5ff; background: #102944; font-size: 1rem; font-weight: 800; }.back-button:hover { color: #fff; background: #1a3b60; }.match-title { position: absolute; left: 50%; display: grid; gap: .08rem; min-width: max-content; transform: translateX(-50%); text-align: center; }.match-title small { color: #8db6de; font-size: .58rem; font-weight: 700; }.match-kind { color: #f1f7ff; font-family: Consolas, monospace; font-size: .78rem; font-weight: 800; }.match-actions { display: flex; gap: .5rem; margin-left: auto; }.match-topline .icon-button { width: 2.65rem; height: 2.65rem; border-color: #2f567c; color: #79c9ff; background: #102944; }.match-topline .icon-button:disabled { cursor: not-allowed; opacity: .42; }.match-topline .icon-button.is-active { border-color: #4ed3ad; color: #d4fff2; background: #155345; }
.scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: clamp(260px, 36vh, 410px); border-bottom: 1px solid #2a425d; }.player-score { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; border-right: 1px solid #2a425d; background: #0b192a; text-align: center; }.player-score:last-child { border-right: 0; }.player-score.is-active { background: #10333b; box-shadow: inset 0 -4px 0 #22d2a3; }.player-state { position: absolute; top: 1.15rem; margin: 0; color: #859eb9; font-size: .59rem; font-weight: 800; letter-spacing: .06em; }.is-active .player-state { color: #49dbb7; }.player-name { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.045em; }.remaining-score { display: block; margin-top: clamp(.8rem, 2vh, 1.4rem); font-family: Arial, sans-serif; font-size: clamp(4.1rem, 8.7vw, 6.7rem); font-weight: 800; letter-spacing: -.09em; line-height: .8; }.leg-detail { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .6rem; align-items: center; color: #7f9eb8; font-size: .58rem; font-weight: 800; }.leg-detail strong { min-width: 1.75rem; padding: .27rem .42rem; border: 1px solid #2b4b6c; border-radius: .35rem; color: #e2effe; background: #09192b; font-size: .86rem; }.last-score { display: none; }
.tablet-entry { display: grid; grid-template-columns: 20% 49% 31%; min-height: clamp(430px, 51vh, 680px); }.quick-score-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem; padding: .65rem; border-right: 1px solid #2a425d; background: #0d1c2e; }.quick-score-panel button, .score-keypad button { border: 1px solid #2b4969; border-radius: .38rem; color: #e3effe; background: #142b44; font-size: clamp(.8rem, 1.2vw, 1rem); font-weight: 800; transition: border-color .15s, background .15s, transform .15s; }.quick-score-panel button:hover, .score-keypad button:hover { border-color: #5b9ee2; background: #1b426a; }.quick-score-panel button:active, .score-keypad button:active { transform: scale(.98); }
.score-entry-slot { display: flex; min-width: 0; justify-content: center; }.score-display { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: .25rem .6rem; text-align: center; }.active-turn { display: flex; min-height: 1.2rem; gap: .3rem; align-items: center; justify-content: center; }.score-display > p:first-child { margin: 0; color: #8ee5ff; font-size: clamp(.56rem, .8vw, .7rem); font-weight: 850; letter-spacing: .03em; }.checkout-darts { display: inline-flex; gap: .2rem; align-items: center; }.checkout-dart { display: inline-flex; gap: .12rem; align-items: center; min-height: 1.55rem; padding: .16rem .32rem; border: 1px solid #3cc8a4; border-radius: .24rem; color: #c9fff0; background: #156956; font: inherit; font-size: .62rem; font-weight: 800; }.checkout-dart:hover { border-color: #7dffe0; background: #1a846b; }.checkout-dart:active { transform: translateY(1px); }.checkout-dart:disabled, .checkout-dart:disabled:hover { cursor: not-allowed; border-color: rgba(113, 156, 182, .42); color: rgba(161, 194, 214, .52); background: rgba(10, 31, 47, .78); box-shadow: none; filter: saturate(.4); transform: none; }.double-in-button { min-height: 1.65rem; padding: .16rem .38rem; border: 1px solid #f5a623; border-radius: .24rem; color: #ffe4ad; background: rgba(245, 166, 35, .12); font: inherit; font-size: .6rem; font-weight: 850; }.double-in-button.is-confirmed { border-color: #32d5a4; color: #ceffef; background: rgba(50, 213, 164, .16); }.score-display output { display: block; margin: .06rem 0 0; color: #f7fbff; font-family: Arial, sans-serif; font-size: clamp(1.45rem, 2.7vw, 2.2rem); font-weight: 800; letter-spacing: -.07em; line-height: .95; }.throw-message { min-height: 1.1rem; max-width: 19rem; margin: 0; color: #8ca7c3; font-size: .68rem; line-height: 1.45; }.throw-message.error { color: #ffabb0; }.throw-message.success { color: #75e0c0; }
.score-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: .4rem; padding: .65rem; border-right: 1px solid #2a425d; background: #0b1829; }.score-keypad button { min-height: 0; }.score-keypad button[data-key]:not(.key-action) { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }.key-split { display: grid; grid-template-columns: minmax(0, 1fr) 2.35rem; gap: .4rem; min-width: 0; }.score-keypad .key-action { font-size: .72rem; }.score-keypad .key-delete { color: #67c6f5; }.score-keypad .key-undo { color: #73aee3; font-size: 1.1rem; }.score-keypad .key-clear { color: #ff9ead; }.score-keypad .key-enter { grid-column: 1 / -1; border-color: #22b789; color: #fff; background: #159c74; }.score-keypad .key-enter:hover { background: #1ab083; }
.match-history { min-width: 0; padding: .7rem; background: #0d1b2d; }.history-header { padding: 0 0 .6rem; border-bottom: 1px solid #28415d; }.history-header h2 { margin: 0; font-size: .9rem; letter-spacing: -.025em; }.throws-list { display: grid; gap: .42rem; margin: .65rem 0 0; padding: 0; list-style: none; }.throw-item { display: grid; grid-template-columns: 1.6rem 2.55rem minmax(0, 1fr); gap: .3rem; align-items: center; padding: .6rem; border-left: 3px solid #25c99f; color: #8eb4d5; background: #10263e; font-size: .65rem; }.throw-item strong { color: #eff8ff; font-family: Consolas, monospace; font-size: .85rem; }.throw-item small { overflow: hidden; color: #a7bed5; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }.throw-item.bust { border-left-color: #f07b88; background: #351f2b; }.tablet-notice { min-height: 1.1rem; margin: .75rem 0 0; padding: .58rem .6rem; border-left: 3px solid #28caa1; color: #a7eedc; background: #092b32; font-size: .65rem; line-height: 1.35; }.tablet-notice:empty { display: none; }.tablet-notice.error { border-left-color: #ee7986; color: #ffd2d7; background: #321f29; }.empty-history { color: #8ea5bb; font-size: .67rem; line-height: 1.45; }

/* Dialoge */
dialog { width: min(calc(100% - 2rem), 580px); border: 1px solid rgba(123, 176, 231, .52); border-radius: .9rem; color: var(--ink); background: #0c2039; box-shadow: 0 28px 80px rgba(0, 0, 0, .58); }dialog::backdrop { background: rgba(1, 8, 18, .72); backdrop-filter: blur(3px); }.history-dialog { padding: 1.35rem; }.dialog-header { display: flex; gap: 1rem; align-items: start; justify-content: space-between; }.dialog-header h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.05em; }.dialog-header .icon-button { border: 0; background: transparent; font-size: 1.4rem; }.saved-games { margin-top: 1.25rem; }.saved-game { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .8rem 0; border-top: 1px solid rgba(124, 169, 215, .2); }.saved-game strong { font-size: .78rem; }.saved-game span { color: var(--muted); font-size: .65rem; }.saved-game time { grid-row: span 2; align-self: center; color: #a7c9ed; font-size: .62rem; }.empty-saved { margin: 0; color: var(--muted); font-size: .75rem; }.dialog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(124, 169, 215, .2); }.text-button { border: 0; color: #99c4f2; background: none; font-size: .66rem; font-weight: 800; }.text-button:hover { color: #fff; }.danger { color: #f3a2aa; }.finish-dialog { max-width: 395px; padding: 2rem 1.7rem 1.5rem; text-align: center; }.finish-emblem { display: grid; width: 3rem; height: 3rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; color: #081c31; background: #65e1bb; box-shadow: 0 0 0 .55rem rgba(101, 225, 187, .12); font-size: 1.4rem; font-weight: 800; }.finish-dialog h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.055em; }.finish-dialog > p:not(.eyebrow) { margin: .65rem auto 1.4rem; color: #b3c6db; font-size: .8rem; line-height: 1.55; }.finish-actions { display: flex; justify-content: center; gap: .55rem; }
.checkout-dialog { width: min(720px, calc(100% - 2rem)); padding: 1.5rem; }.checkout-dialog .eyebrow { margin: 0; color: #57c8ff; }.checkout-dialog h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.8rem); letter-spacing: -.05em; }.checkout-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }.checkout-stats span { display: grid; min-width: 0; gap: .3rem; padding: .8rem; border: 1px solid #39536e; background: #081522; text-align: center; }.checkout-stats small, .checkout-dart-picker > small { color: #85a0ba; font-size: .56rem; font-weight: 800; letter-spacing: .06em; }.checkout-stats strong { font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1; }.checkout-dart-picker { display: flex; gap: .5rem; align-items: center; }.checkout-dart-picker > small { margin-right: auto; }.checkout-dart-picker > div { display: flex; gap: .45rem; }.checkout-dart-picker button { min-width: 2.65rem; min-height: 2.4rem; border: 1px solid #39536e; border-radius: .32rem; color: #dce9f7; background: #081522; font-family: "Space Grotesk", Arial, sans-serif; font-size: .92rem; font-weight: 800; }.checkout-dart-picker button.active { border-color: #168df0; color: #fff; background: #168df0; }.checkout-dialog footer, .hatschi-decision footer { display: flex; justify-content: flex-end; gap: .5rem; }.checkout-confirm { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: .58rem; color: #fff; background: #168df0; font-size: .76rem; font-weight: 800; }.checkout-confirm:hover { background: #2d9cf4; }.hatschi-decision { max-width: 430px; padding: 1.5rem; }.hatschi-decision .eyebrow { margin: 0; color: #f5a623; }.hatschi-decision h2 { margin: .25rem 0 .65rem; font-size: 1.45rem; letter-spacing: -.05em; }.hatschi-decision > p:not(.eyebrow) { margin: 0 0 1.25rem; color: #b8c9dc; font-size: .8rem; line-height: 1.5; }
.bull-off-dialog { width: min(100% - 2rem, 31rem); padding: clamp(1.15rem, 4vw, 1.7rem); border-color: rgba(96, 218, 248, .74); background: radial-gradient(circle at 50% -12%, rgba(32, 159, 211, .28), transparent 54%), linear-gradient(145deg, #0c2b47, #061827 72%); text-align: center; }.bull-off-dialog .eyebrow { margin-bottom: .25rem; color: #8cecff; }.bull-off-dialog h2 { margin: 0; color: #f5fcff; font-size: clamp(1.4rem, 5vw, 1.8rem); letter-spacing: -.055em; }.bull-off-dialog > p:not(.eyebrow) { max-width: 24rem; margin: .62rem auto 1.1rem; color: #b7d7e7; font-size: .76rem; line-height: 1.45; }.bull-off-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }.bull-off-choice { display: grid; min-height: 8.2rem; padding: .7rem .45rem; place-items: center; border: 1px solid rgba(85, 180, 223, .55); border-radius: .6rem; color: #e8f9ff; background: linear-gradient(145deg, rgba(12, 67, 94, .92), rgba(5, 32, 52, .92)); transition: transform .16s ease, border-color .16s ease, background .16s ease; }.bull-off-choice:hover, .bull-off-choice:focus-visible { border-color: #9fefff; background: linear-gradient(145deg, #11638a, #0a3c60); outline: 0; transform: translateY(-2px); }.bull-off-choice > span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #83e7ff; border-radius: 50%; color: #b8f3ff; box-shadow: 0 0 0 .32rem rgba(55, 196, 239, .11), inset 0 0 0 .25rem rgba(56, 166, 219, .2); font-size: 1.05rem; }.bull-off-choice strong { margin-top: .52rem; font-size: .9rem; }.bull-off-choice small { color: #9ac6db; font-size: .58rem; font-weight: 650; line-height: 1.35; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.is-playing { overflow-x: hidden; background: #071627; }body.is-playing .page-glow, body.is-playing .topbar { display: none; }body.is-playing .app-shell { width: 100%; max-width: none; padding: 0; }body.is-playing .match-view { min-height: 100dvh; max-width: none; margin: 0; border: 0; border-radius: 0; }

@media (max-width: 980px) { .tablet-entry { grid-template-columns: 22% 42% 36%; }.match-history { grid-column: 1 / -1; border-top: 1px solid #2a425d; }.throws-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }.throw-item { min-height: 3.5rem; }.scoreboard { min-height: 285px; } }
@media (max-width: 640px) { .app-shell { width: min(100% - 1rem, 1120px); padding-top: .6rem; }.topbar { min-height: 52px; }.local-indicator { display: none; }.setup-view { padding-top: .7rem; }.hero-copy { margin-bottom: .75rem; }.section-heading { flex-direction: column; align-items: start; }.section-heading > p { text-align: left; }.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.settings-grid { grid-template-columns: 1fr; }.game-card { min-height: 66px; padding: .55rem 1.9rem .55rem .55rem; }.game-card-icon { width: 1.7rem; height: 1.7rem; flex-basis: 1.7rem; }.game-card-copy strong { font-size: .94rem; }.settings-grid { gap: 1.2rem; }.settings-footer { flex-direction: column; align-items: stretch; }.settings-footer p { line-height: 1.45; }.settings-footer .primary-button { width: 100%; }.local-summary { grid-template-columns: 1fr; gap: .7rem; }.local-summary div { border: 0; }
  .match-topline { min-height: 3.8rem; }.match-kind { font-size: .64rem; }.scoreboard { min-height: 225px; }.player-score { padding: 1rem .45rem; }.player-name { font-size: 1.25rem; }.remaining-score { font-size: clamp(3.5rem, 19vw, 5rem); }.tablet-entry { grid-template-columns: 1fr; min-height: 0; }.quick-score-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 2.7rem; border-right: 0; border-bottom: 1px solid #2a425d; }.score-keypad { height: 410px; border-right: 0; }.match-history { border-top: 1px solid #2a425d; }.throws-list { grid-template-columns: 1fr; }.finish-actions { flex-direction: column-reverse; }.finish-actions button { width: 100%; } }

/* Cricket: Marken statt X01-Punktesumme */
.cricket-interface { background: #071627; }
.cricket-scoreboard { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #2a425d; }
.cricket-player-card { position: relative; display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem; border-right: 1px solid #2a425d; background: #0b192a; text-align: center; }.cricket-player-card:last-child { border-right: 0; }.cricket-player-card.is-active { background: #14363f; box-shadow: inset 0 -4px 0 #22d2a3; }.cricket-player-card.is-no-points { min-height: 7.25rem; }.cricket-player-card > p { position: absolute; top: .85rem; margin: 0; color: #8aa4bf; font-size: .6rem; font-weight: 800; letter-spacing: .07em; }.cricket-player-card.is-active > p { color: #4bdab8; }.cricket-player-card h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.8rem); letter-spacing: -.04em; }.cricket-player-card > strong { display: block; margin-top: .5rem; font-family: Arial, sans-serif; font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .9; letter-spacing: -.08em; }.cricket-player-card > span { color: #9ab2c9; font-size: .57rem; font-weight: 800; letter-spacing: .08em; }.cricket-player-card > div { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .35rem; align-items: center; color: #8daac5; font-size: .58rem; }.cricket-player-card small { font-size: inherit; }.cricket-player-card b { min-width: 1.7rem; padding: .26rem .4rem; border: 1px solid #2b4b6c; border-radius: .3rem; color: #e3effc; background: #09192b; font-size: .78rem; }
.cricket-workspace { display: grid; grid-template-columns: minmax(330px, 1.15fr) minmax(330px, 1fr) minmax(180px, .58fr); min-height: clamp(465px, 57vh, 670px); }.cricket-board { padding: 1rem; border-right: 1px solid #2a425d; background: #081727; }.cricket-board-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: .9rem; }.cricket-board-heading h2 { margin: 0; font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: -.045em; }.cricket-board-heading .eyebrow { margin: 0 0 .3rem; }.cricket-board-labels, .cricket-row { display: grid; grid-template-columns: minmax(2.5rem, .65fr) 1fr 3.3rem 1fr minmax(2.5rem, .65fr); gap: .3rem; align-items: center; text-align: center; }.cricket-board-labels { margin-bottom: .32rem; color: #8ba9c5; font-size: .55rem; font-weight: 800; letter-spacing: .05em; }.cricket-board-labels span:nth-child(1) { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }.cricket-board-labels span:last-child { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }.cricket-board-rows { display: grid; gap: .38rem; }.cricket-row { min-height: 3.55rem; padding: .35rem .4rem; border: 1px solid #284864; border-radius: .48rem; background: #10263e; }.cricket-row.is-selected { border-color: #4aa5ff; background: #173758; box-shadow: inset 0 0 0 1px rgba(109, 184, 255, .2); }.cricket-row > strong { display: grid; width: 2.5rem; height: 2.5rem; margin: 0 auto; place-items: center; border: 1px solid #46698b; border-radius: 50%; color: #fff; background: #0b1c2d; font-size: .85rem; }.cricket-marks { min-height: 1.3rem; color: #53dcba; font-size: .78rem; letter-spacing: .1rem; }.mark-dots { display: inline-block; min-width: 1rem; }.mark-dots.empty { color: #637d97; letter-spacing: 0; }.mark-dots.count-3 { color: #62e0bd; text-shadow: 0 0 10px rgba(98, 224, 189, .35); }.cricket-open { color: #f3c069; font-size: .52rem; font-weight: 800; letter-spacing: .04em; }
.cricket-console { display: flex; min-width: 0; flex-direction: column; padding: 1rem; border-right: 1px solid #2a425d; background: #0a1a2b; }.cricket-turn-summary { display: flex; align-items: end; justify-content: space-between; padding-bottom: .85rem; border-bottom: 1px solid #27425e; }.cricket-turn-summary .eyebrow { margin: 0 0 .35rem; }.cricket-turn-summary h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.045em; }.cricket-turn-summary > p:last-child { margin: 0; color: #92aec7; font-size: .68rem; font-weight: 700; }.cricket-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .42rem; margin-top: .9rem; }.cricket-targets button { min-height: 3.15rem; border: 1px solid #315879; border-radius: .45rem; color: #c8def3; background: #122b45; font-family: Consolas, monospace; font-size: .95rem; font-weight: 800; }.cricket-targets button:hover { border-color: #6eb6ff; background: #1d456e; }.cricket-targets button.active { border-color: #56a8f9; color: #fff; background: #235b99; box-shadow: inset 0 0 0 1px rgba(158, 210, 255, .2); }.cricket-targets button:last-child { grid-column: span 2; font-family: inherit; }.cricket-multipliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; margin-top: .7rem; }.cricket-multipliers button { display: grid; min-height: 3.05rem; place-items: center; border: 1px solid #315879; border-radius: .45rem; color: #adc8e3; background: #10263d; }.cricket-multipliers button strong { display: block; font-family: Consolas, monospace; font-size: 1rem; }.cricket-multipliers button span { font-size: .55rem; font-weight: 800; letter-spacing: .045em; }.cricket-multipliers button.active { border-color: #4ed3ad; color: #dffff3; background: #155345; }.cricket-multipliers button:disabled { cursor: not-allowed; opacity: .35; }.cricket-impact { min-height: 2.3rem; margin: .8rem 0 .4rem; color: #83d7f7; font-size: .71rem; line-height: 1.4; }.cricket-dart-list { display: grid; gap: .3rem; min-height: 4.2rem; margin: 0; padding: 0; list-style: none; color: #a9c2db; font-size: .67rem; }.cricket-dart-list li { display: flex; justify-content: space-between; padding: .38rem .45rem; border-radius: .3rem; background: #0b2237; }.cricket-dart-list strong { color: #e4f2ff; }.cricket-dart-list b { color: #66dabc; font-family: Consolas, monospace; }.cricket-actions { display: grid; grid-template-columns: 1fr 1fr 2.6rem; gap: .42rem; margin-top: auto; padding-top: .8rem; }.cricket-actions button { min-height: 3rem; border: 1px solid #315879; border-radius: .45rem; font-size: .68rem; font-weight: 800; }.cricket-add { color: #fff; background: #167baf; }.cricket-add:hover { background: #218ec6; }.cricket-finish { color: #c7d9e9; background: #18324d; }.cricket-finish:hover { background: #24486e; }.cricket-finish:disabled, .cricket-undo:disabled { cursor: not-allowed; opacity: .4; }.cricket-undo { color: #9bd1ff; background: #112942; font-size: 1.15rem !important; }
.cricket-history { min-width: 0; padding: .8rem; background: #0d1b2d; }.cricket-history .throws-list { grid-template-columns: 1fr; }.cricket-history .throw-item { font-size: .6rem; }.cricket-history .throw-item strong { color: #f4c777; }

/* BlueDartLab Routine: Zieltraining ohne Profil oder Versand */
.instant-start-note { display: flex; gap: .55rem; align-items: center; margin: .15rem 0 1.4rem; color: #a8c9ed; font-size: .72rem; }
.routine-interface { background: #0b111c; }.routine-scorebar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; min-height: 146px; padding: 1.1rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid #2a425d; background: radial-gradient(circle at 50% 0, rgba(240, 109, 139, .16), transparent 44%), #101722; }.routine-scorebar .eyebrow { margin: 0 0 .3rem; color: #f5a623; }.routine-scorebar h2 { margin: 0; font-size: clamp(1.35rem, 2.8vw, 2.1rem); letter-spacing: -.055em; }.routine-total { display: grid; place-items: center; min-width: 8rem; text-align: center; }.routine-total span, .routine-total small { color: #aeb8c6; font-size: .56rem; font-weight: 850; letter-spacing: .08em; }.routine-total strong { margin: .05rem 0; font-family: Arial, sans-serif; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -.09em; line-height: .85; }.routine-local-note { justify-self: end; margin: 0; color: #aeb8c6; font-size: .67rem; }.routine-local-note .tiny-dot { display: inline-block; margin-right: .4rem; }
.routine-workspace { display: grid; grid-template-columns: minmax(340px, 1.1fr) minmax(300px, .9fr) minmax(205px, .62fr); min-height: clamp(470px, 58vh, 670px); }.routine-stage { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 1.35rem; border-right: 1px solid #2a425d; background: radial-gradient(circle at 50% 45%, rgba(245, 166, 35, .15), transparent 46%), #101722; text-align: center; }.routine-interface[data-section="doubles"] .routine-stage { background: radial-gradient(circle at 50% 45%, rgba(50, 213, 164, .16), transparent 46%), #101722; }.routine-interface[data-section="shanghai"] .routine-stage { background: radial-gradient(circle at 50% 45%, rgba(240, 109, 139, .18), transparent 46%), #101722; }.routine-stage-topline { display: flex; width: min(100%, 34rem); align-items: center; justify-content: space-between; color: #aeb8c6; font-size: .63rem; font-weight: 850; letter-spacing: .05em; }.routine-stage-topline p { margin: 0; }.routine-phase-track { display: flex; width: min(100%, 34rem); gap: .45rem; margin: 1rem 0 auto; }.routine-phase-track span { display: flex; min-width: 0; flex: 1; gap: .35rem; align-items: center; justify-content: center; min-height: 1.8rem; border: 1px solid #384353; color: #8490a0; font-size: .54rem; font-weight: 800; }.routine-phase-track b { display: grid; width: 1rem; height: 1rem; place-items: center; border-radius: 50%; color: #0b111c; background: #7c8797; font-size: .52rem; }.routine-phase-track span.active { border-color: #f5a623; color: #f6f1e8; }.routine-phase-track span.active b { background: #f5a623; }.routine-phase-track span.done { border-color: #32d5a4; color: #c7f5e5; }.routine-phase-track span.done b { background: #32d5a4; }.routine-target { margin-top: auto; }.routine-stage > .eyebrow { margin: 1rem 0 .4rem; color: #c4cbd6; }.routine-stage h2 { margin: .1rem 0 .55rem; color: #f7f4ec; font-family: Arial, sans-serif; font-size: clamp(6rem, 16vw, 10rem); font-weight: 850; letter-spacing: -.12em; line-height: .75; text-shadow: 0 0 44px rgba(255,255,255,.1); }.routine-stage p:not(.eyebrow) { max-width: 30rem; margin: .55rem 0 0; color: #aeb8c6; font-size: .76rem; line-height: 1.45; }.routine-dart-progress { display: flex; min-height: 2.1rem; gap: .48rem; align-items: center; justify-content: center; margin: auto 0 0; }.routine-dart-progress > span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #566373; color: #8b98a8; font-size: .7rem; font-weight: 850; }.routine-dart-progress > span.filled { color: #0a0f17; border-color: #f7f4ec; background: #f7f4ec; }.routine-dart-progress > span.filled.double { border-color: #32d5a4; background: #32d5a4; }.routine-dart-progress > span.filled.triple { border-color: #f5a623; background: #f5a623; }.routine-dart-progress > span.filled.miss { color: #f7f4ec; border-color: #3b4655; background: #3b4655; }.routine-dart-progress > .routine-complete-mark { width: 3rem; height: 3rem; border-color: #32d5a4; border-radius: 50%; color: #07131c; background: #32d5a4; font-size: 1.2rem; }
.routine-controls { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(1rem, 2.7vw, 1.7rem); border-right: 1px solid #2a425d; background: #111b29; }.routine-feedback { min-height: 3rem; margin: 0 0 .9rem; color: #c2ccd9; font-size: .75rem; line-height: 1.45; }.routine-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }.routine-input, .routine-primary { display: flex; min-height: 6.25rem; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 1px solid rgba(247,244,236,.2); border-radius: .5rem; color: #f7f4ec; background: #172433; transition: transform .17s, border-color .17s, background .17s; }.routine-input:hover, .routine-primary:hover { transform: translateY(-2px); border-color: rgba(247,244,236,.72); }.routine-input b { font-size: .85rem; letter-spacing: .04em; }.routine-input small { color: #aeb8c6; font-size: .66rem; }.routine-input.miss { border-color: rgba(247,244,236,.32); }.routine-input.single { border-color: rgba(247,244,236,.56); }.routine-input.double, .routine-input.hit { border-color: #32d5a4; background: rgba(50,213,164,.11); }.routine-input.triple { border-color: #f5a623; background: rgba(245,166,35,.12); }.routine-input.hit { min-height: 9rem; }.routine-input.hit b { font-size: 1.35rem; }.routine-input.miss { background: rgba(216,65,74,.08); }.routine-primary { grid-column: 1 / -1; min-height: 4.3rem; color: #06131d; border-color: #5a8ac4; background: linear-gradient(110deg, #69b9ff, #80d8d5); font-size: .82rem; font-weight: 850; }.routine-primary span { margin-left: .25rem; font-size: 1rem; }.routine-undo { align-self: center; margin-top: 1.15rem; border: 0; color: #aeb8c6; background: transparent; font-size: .7rem; font-weight: 750; }.routine-undo:hover { color: #f7f4ec; }
.routine-summary { min-width: 0; padding: .85rem; background: #0e1723; }.routine-totals { display: grid; gap: .45rem; margin-top: .75rem; }.routine-totals > div { display: flex; align-items: center; justify-content: space-between; padding: .5rem; border-left: 3px solid #f5a623; background: #172433; color: #b9c4d1; font-size: .67rem; }.routine-totals > div:nth-child(2) { border-color: #32d5a4; }.routine-totals > div:nth-child(3) { border-color: #f06d8b; }.routine-totals strong { color: #f7f4ec; font-family: Consolas, monospace; font-size: .88rem; }.routine-totals .routine-grand-total { border-color: #69b9ff; color: #d6e9ff; }.routine-history { display: grid; gap: .35rem; margin: .9rem 0 0; padding: 0; list-style: none; }.routine-history li { display: flex; gap: .4rem; align-items: center; justify-content: space-between; padding: .48rem .5rem; color: #aeb8c6; background: #14202f; font-size: .63rem; }.routine-history li b { color: #f7f4ec; }.routine-history li strong { color: #f5c56a; font-family: Consolas, monospace; }.routine-history .empty-history { display: block; color: #8793a2; background: transparent; }

@media (max-width: 980px) { .cricket-workspace { grid-template-columns: 1fr 1fr; }.cricket-history { grid-column: 1 / -1; border-top: 1px solid #2a425d; }.cricket-history .throws-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cricket-scoreboard { min-height: 160px; }.cricket-player-card { min-height: 160px; padding: .8rem .35rem; }.cricket-player-card > strong { font-size: 3.8rem; }.cricket-workspace { grid-template-columns: 1fr; min-height: 0; }.cricket-board, .cricket-console { border-right: 0; border-bottom: 1px solid #2a425d; }.cricket-board { padding: .75rem; }.cricket-row { min-height: 3.15rem; }.cricket-history { border-top: 0; }.cricket-history .throws-list { grid-template-columns: 1fr; }.cricket-actions { margin-top: .7rem; }.cricket-targets button { min-height: 2.75rem; } }

@media (max-width: 980px) { .routine-workspace { grid-template-columns: 1.1fr .9fr; }.routine-summary { grid-column: 1 / -1; border-top: 1px solid #2a425d; }.routine-history { grid-template-columns: repeat(3, minmax(0, 1fr)); }.routine-scorebar { grid-template-columns: 1fr auto; }.routine-local-note { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 640px) { .routine-scorebar { grid-template-columns: 1fr auto; min-height: 122px; padding: .85rem; }.routine-scorebar h2 { font-size: 1.25rem; }.routine-total { min-width: 5.5rem; }.routine-total strong { font-size: 3.1rem; }.routine-local-note { margin-top: -.25rem; font-size: .61rem; }.routine-workspace { grid-template-columns: 1fr; min-height: 0; }.routine-stage, .routine-controls { border-right: 0; border-bottom: 1px solid #2a425d; }.routine-stage { min-height: 360px; padding: 1rem; }.routine-stage h2 { font-size: clamp(5.4rem, 28vw, 8rem); }.routine-phase-track span { font-size: 0; }.routine-phase-track span b { font-size: .52rem; }.routine-controls { padding: 1rem; }.routine-summary { border-top: 0; }.routine-history { grid-template-columns: 1fr; }.routine-input { min-height: 5rem; }.routine-input.hit { min-height: 7rem; } }

/* Telefon: kompakte Tablet-Anordnung mit dem kompletten Eingabeblock im ersten Scrollbereich */
@media (max-width: 640px) {
  body.is-playing { background: #071627; }
  body.is-playing .match-topline { position: sticky; top: 0; z-index: 20; min-height: 3.65rem; padding: 0 .55rem; border-bottom: 1px solid #2a425d; background: rgba(7, 22, 39, .98); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
  body.is-playing .back-button { width: 2.45rem; min-height: 2.45rem; padding: 0; font-size: .9rem; }
  body.is-playing .match-topline .icon-button { width: 2.45rem; height: 2.45rem; }
  body.is-playing .match-actions { gap: .32rem; }
  body.is-playing .match-title small { font-size: .5rem; }
  body.is-playing .match-kind { font-size: .6rem; }

  .scoreboard { min-height: 13.25rem; }
  .player-score { min-height: 13.25rem; justify-content: flex-start; padding: .55rem .35rem; }
  .player-state { top: .55rem; font-size: .5rem; }
  .player-name { margin-top: 1.55rem; font-size: 1.05rem; }
  .remaining-score { margin-top: .45rem; font-size: clamp(3.35rem, 16.5vw, 4.25rem); }
  .leg-detail { right: .5rem; bottom: .5rem; font-size: .5rem; }
  .leg-detail strong { min-width: 1.6rem; padding: .24rem .34rem; }

  .tablet-entry { display: grid; grid-template-columns: 1fr; min-height: 0; }
  .player-score .score-display { gap: .08rem; padding: .12rem .3rem; }
  .active-turn { min-width: 0; min-height: 0; gap: .22rem; justify-content: flex-start; }
  #turnPlayer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .checkout-darts { gap: .3rem; margin-left: auto; }
  .checkout-dart { min-height: 2.35rem; padding: .08rem .35rem; gap: .08rem; font-size: .65rem; }
  .checkout-dart span[aria-hidden="true"] { font-size: 1.65rem; line-height: 1; }
  .player-score .score-display output { margin: .04rem 0 0; font-size: 1.5rem; line-height: .9; }
  .throw-message { font-size: .62rem; }
  .quick-score-panel { order: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 2.35rem; gap: .34rem; padding: .48rem; border-right: 0; border-bottom: 1px solid #2a425d; }
  .quick-score-panel button { min-width: 0; font-size: .72rem; }
  .score-keypad { order: 3; height: auto; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(5, 3.65rem); gap: .38rem; padding: .52rem; border-right: 0; }
  .score-keypad button { min-width: 0; font-size: 1.12rem; }
  .score-keypad button[data-key]:not(.key-action) { font-size: 1.3rem; }
  .score-keypad button[data-key]:not(.key-action) { grid-column: span 4; }
  .score-keypad .key-split, .score-keypad button[data-key="0"]:not(.key-action), .score-keypad .key-clear { grid-column: span 3; }
  .score-keypad .key-split { grid-template-columns: minmax(0, 1fr) 2.2rem; gap: .34rem; }
  .score-keypad .key-enter { grid-column: 1 / -1; min-height: 3.65rem; font-size: .98rem; }
  .match-history { order: 4; padding: .8rem; border-top: 1px solid #2a425d; }

  .routine-phase-track span { font-size: .5rem; gap: .22rem; }
  .routine-phase-track span b { width: .95rem; height: .95rem; font-size: .5rem; }
  .routine-stage { min-height: 21.5rem; }
  .routine-controls { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .routine-input { min-height: 5.35rem; }
  .routine-primary { min-height: 4.7rem; }

  .cricket-actions { padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
}

/* X01 auf dem Telefon: komplette Eingabe bleibt in der Viewport-Höhe. */
@media (max-width: 640px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) { height: 100dvh; overflow: hidden; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .match-view { display: grid; height: 100dvh; min-height: 0; grid-template-rows: 3.65rem minmax(0, 1fr); overflow: hidden; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .x01-interface { display: grid; min-height: 0; grid-template-rows: 13.25rem minmax(0, 1fr); overflow: hidden; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .scoreboard, body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .player-score { min-height: 0; height: 100%; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .match-history { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}

/* Kleine Telefone: gleiche Ein-Ansicht-Anordnung, mit etwas kleineren Bedienelementen. */
@media (max-width: 640px) and (max-height: 760px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .match-view { grid-template-rows: 3.3rem minmax(0, 1fr); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .x01-interface { grid-template-rows: 11.25rem minmax(0, 1fr); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .player-state { top: .42rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .player-name { margin-top: 1.25rem; font-size: .98rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .remaining-score { margin-top: .3rem; font-size: clamp(2.9rem, 15vw, 3.75rem); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .leg-detail { right: .38rem; bottom: .38rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { grid-template-rows: auto auto minmax(0, 1fr); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .player-score .score-display { padding: .06rem .25rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .player-score .score-display output { font-size: 1.3rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .quick-score-panel { grid-auto-rows: 2rem; padding: .38rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad { grid-template-rows: repeat(5, 2.45rem); gap: .28rem; padding: .4rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-enter { min-height: 2.45rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .match-history { padding: .55rem .7rem; }
}

/* BlueDartLab im Handy-Hochformat: alle Bedienelemente bleiben in einer Ansicht. */
@media (max-width: 760px) {
  body.is-routine { overflow: hidden; }
  body.is-routine .match-view { display: grid; height: 100dvh; min-height: 0; grid-template-rows: 3.65rem minmax(0, 1fr); overflow: hidden; }
  body.is-routine .routine-interface { display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  body.is-routine .routine-scorebar { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.8rem; padding: .55rem .8rem; }
  body.is-routine .routine-scorebar .eyebrow { margin-bottom: .15rem; font-size: .52rem; }
  body.is-routine .routine-scorebar h2 { font-size: 1.2rem; }
  body.is-routine .routine-total { min-width: 4.6rem; }
  body.is-routine .routine-total strong { font-size: 2.55rem; }
  body.is-routine .routine-local-note { display: none; }

  body.is-routine .routine-workspace { min-height: 0; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
  body.is-routine .routine-stage, body.is-routine .routine-controls { min-height: 0; padding: .75rem; }
  body.is-routine .routine-stage-topline { font-size: .54rem; }
  body.is-routine .routine-phase-track { gap: .28rem; margin: .55rem 0 auto; }
  body.is-routine .routine-phase-track span { gap: .25rem; min-height: 1.5rem; font-size: .5rem; }
  body.is-routine .routine-stage > .eyebrow { margin: .65rem 0 .25rem; font-size: .5rem; }
  body.is-routine .routine-stage h2 { margin: .1rem 0 .3rem; font-size: clamp(4.8rem, 19vw, 6.2rem); }
  body.is-routine .routine-stage p:not(.eyebrow) { margin-top: .3rem; font-size: .63rem; line-height: 1.3; }
  body.is-routine .routine-dart-progress { min-height: 1.65rem; gap: .3rem; margin: .6rem 0 0; }
  body.is-routine .routine-dart-progress > span { width: 1.6rem; height: 1.6rem; font-size: .58rem; }

  body.is-routine .routine-controls { justify-content: center; }
  body.is-routine .routine-feedback { min-height: 2rem; margin-bottom: .55rem; font-size: .62rem; line-height: 1.3; }
  body.is-routine .routine-buttons { gap: .38rem; }
  body.is-routine .routine-input { min-height: 4.25rem; gap: .12rem; }
  body.is-routine .routine-input b { font-size: .72rem; }
  body.is-routine .routine-input small { font-size: .56rem; }
  body.is-routine .routine-primary { min-height: 3.75rem; font-size: .68rem; }
  body.is-routine .routine-undo { margin-top: .65rem; font-size: .6rem; }

  body.is-routine .routine-summary { display: grid; grid-column: 1 / -1; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .5rem; align-items: center; padding: .48rem .6rem max(.48rem, env(safe-area-inset-bottom)); border-top: 1px solid #2a425d; }
  body.is-routine .routine-summary .history-header { padding: 0; border: 0; }
  body.is-routine .routine-summary .history-header h2 { font-size: .7rem; }
  body.is-routine .routine-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .26rem; margin: 0; }
  body.is-routine .routine-totals > div { min-width: 0; flex-direction: column; justify-content: center; gap: .08rem; padding: .28rem; font-size: .5rem; text-align: center; }
  body.is-routine .routine-totals strong { font-size: .68rem; }
  body.is-routine .routine-history { display: none; }
}

@media (max-width: 480px) {
  body.is-routine .routine-phase-track span { font-size: 0; }
  body.is-routine .routine-phase-track span b { width: .9rem; height: .9rem; font-size: .48rem; }
  body.is-routine .routine-summary { grid-template-columns: 4.45rem minmax(0, 1fr); gap: .35rem; }
}

@media (max-width: 640px) {
  .checkout-dialog { width: min(100% - 1.25rem, 720px); padding: 1.1rem; }
  .checkout-stats { grid-template-columns: 1fr; }
  .checkout-dart-picker { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .checkout-dart-picker > small { margin: 0; }
  .checkout-dart-picker > div { gap: .32rem; }
  .checkout-dart-picker button { min-width: 2.45rem; }
  .checkout-dialog footer { display: grid; grid-template-columns: 1fr; }
  .checkout-dialog footer button { width: 100%; }
  .hatschi-decision { width: min(100% - 1.25rem, 430px); padding: 1.1rem; }
  .hatschi-decision footer { display: grid; grid-template-columns: 1fr; }
  .hatschi-decision footer button { width: 100%; }
}

/* Around the Board: eigenständige dritte BlueDartLab-Phase. */
.routine-interface[data-section="around"] .routine-stage { background: radial-gradient(circle at 50% 45%, rgba(87, 164, 255, .19), transparent 46%), #101722; }
.routine-interface[data-section="one-twenty-one"] .routine-stage { background: radial-gradient(circle at 50% 45%, rgba(50, 213, 164, .19), transparent 46%), #101722; }
.routine-dart-progress > span.filled.hit { border-color: #32d5a4; background: #32d5a4; }
.routine-interface[data-section="around"] .routine-input, .routine-interface[data-section="one-twenty-one"] .routine-input { min-height: 7.6rem; }
@media (max-width: 760px) { body.is-routine .routine-interface[data-section="around"] .routine-input, body.is-routine .routine-interface[data-section="one-twenty-one"] .routine-input { min-height: 4.7rem; } }

/* Around am Telefon: Zielbereich und Eingabe liegen vertikal nacheinander. */
@media (max-width: 760px) {
  body.is-routine .routine-interface[data-section="around"] .routine-workspace,
  body.is-routine .routine-interface[data-section="one-twenty-one"] .routine-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
  }
  body.is-routine .routine-interface[data-section="around"] .routine-stage,
  body.is-routine .routine-interface[data-section="around"] .routine-controls,
  body.is-routine .routine-interface[data-section="one-twenty-one"] .routine-stage,
  body.is-routine .routine-interface[data-section="one-twenty-one"] .routine-controls {
    border-right: 0;
    border-bottom: 1px solid #2a425d;
  }
}

@media (max-width: 640px) {
  .double-in-button { min-height: 2.1rem; margin-left: auto; }
}

/* Cricket: direkte Eingabe über die Marken auf dem Board. */
.cricket-settings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.cricket-settings legend { grid-column: 1 / -1; }
.cricket-option { display: flex; min-height: 3.7rem; gap: .62rem; align-items: flex-start; padding: .68rem .72rem; border: 1px solid rgba(113, 161, 206, .38); border-radius: .58rem; color: #dcecff; background: #0b1d34; cursor: pointer; }
.cricket-option:has(input:checked) { border-color: #52a6f6; background: linear-gradient(110deg, rgba(45, 96, 160, .34), rgba(13, 35, 59, .96)); }
.cricket-option input { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: #4e9cf2; }
.cricket-option span { display: grid; gap: .16rem; min-width: 0; }.cricket-option strong { font-size: .72rem; }.cricket-option small { color: #9db6d2; font-size: .61rem; line-height: 1.25; }

.cricket-workspace { grid-template-columns: minmax(0, 1fr) minmax(205px, .45fr); min-height: 0; }
.cricket-board { min-width: 0; }.cricket-board-labels, .cricket-row { grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); }
.cricket-board-labels span:nth-child(1) { text-align: left; }.cricket-board-labels span:nth-child(2) { text-align: center; }.cricket-board-labels span:nth-child(3) { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.cricket-row { min-height: 3.3rem; gap: .45rem; padding: .35rem; }.cricket-row.is-first-active .cricket-mark-picker:first-child, .cricket-row.is-second-active .cricket-mark-picker:last-child { filter: saturate(1.18); }
.cricket-row > strong { width: 2.45rem; height: 2.45rem; font-size: .78rem; }
.cricket-mark-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .32rem; align-items: center; }.cricket-mark-picker.is-bull { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cricket-mark-picker.is-open { filter: drop-shadow(0 0 6px rgba(243, 192, 105, .3)); }
.cricket-mark-toggle { display: grid; width: 100%; min-width: 0; min-height: 2.12rem; place-items: center; padding: 0; border: 1px solid #3c6487; border-radius: .48rem; color: transparent; background: #0b1d30; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.cricket-mark-toggle:hover:not(:disabled) { border-color: #77bfff; background: #163a5e; transform: translateY(-1px); }.cricket-mark-toggle:disabled { cursor: default; opacity: .53; }
.cricket-mark-toggle span { display: grid; width: 1.05rem; height: 1.05rem; place-items: center; border: 1px solid #5a7898; border-radius: 50%; color: transparent; font-size: .72rem; font-weight: 900; line-height: 1; }.cricket-mark-toggle.is-checked span { border-color: #36d3ac; color: #062016; background: #43d7ae; box-shadow: 0 0 0 .13rem rgba(67, 215, 174, .13); }.cricket-bull-choice span, .cricket-number-choice span { width: auto; height: auto; border: 0; border-radius: 0; color: #bdd6e9; background: transparent; box-shadow: none; font: 800 .6rem Consolas, monospace; }.cricket-bull-choice.is-checked, .cricket-number-choice.is-checked { border-color: #36d3ac; background: #43d7ae; }.cricket-bull-choice.is-checked span, .cricket-number-choice.is-checked span { border: 0; color: #062016; background: transparent; box-shadow: none; }
.cricket-mark-picker.is-open .cricket-mark-toggle.is-checked span { border-color: #ffd071; background: #f3c069; }
.cricket-board-footer { display: flex; gap: .65rem; align-items: center; justify-content: space-between; margin-top: .75rem; padding-top: .65rem; border-top: 1px solid rgba(113, 161, 206, .25); }.cricket-board-footer p { min-width: 0; margin: 0; overflow: hidden; color: #9bc9f4; font-size: .63rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.cricket-board-footer button { flex: 0 0 auto; min-height: 2.35rem; padding: 0 .68rem; border: 1px solid #3b668c; border-radius: .45rem; color: #d7e9fb; background: #173451; font-size: .62rem; font-weight: 800; }.cricket-board-footer button:hover { border-color: #76b8f5; background: #214b73; }

@media (max-width: 980px) { .cricket-workspace { grid-template-columns: minmax(0, 1fr) minmax(190px, .48fr); }.cricket-history { grid-column: auto; border-top: 0; }.cricket-history .throws-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cricket-settings { grid-template-columns: 1fr; }.cricket-option { min-height: 3.45rem; }
  .cricket-scoreboard { min-height: 9rem; }.cricket-player-card { min-height: 9rem; padding: .55rem .35rem; }.cricket-player-card.is-no-points { min-height: 6.25rem; }.cricket-player-card > strong { margin-top: .25rem; font-size: 3rem; }.cricket-player-card h2 { margin-top: .65rem; font-size: 1.05rem; }.cricket-player-card > p { top: .45rem; font-size: .5rem; }.cricket-player-card > div { right: .55rem; bottom: .45rem; }
  .cricket-workspace { grid-template-columns: 1fr; }.cricket-board { padding: .68rem .6rem; border-right: 0; border-bottom: 1px solid #2a425d; }.cricket-board-heading { margin-bottom: .55rem; }.cricket-board-heading h2 { font-size: .95rem; }.cricket-board-labels { margin-bottom: .22rem; font-size: .5rem; }.cricket-row { min-height: 2.9rem; gap: .3rem; padding: .28rem; }.cricket-row > strong { width: 2.2rem; height: 2.2rem; font-size: .72rem; }.cricket-mark-picker { gap: .24rem; }.cricket-mark-toggle { min-height: 1.86rem; border-radius: .4rem; }.cricket-mark-toggle span { width: .92rem; height: .92rem; font-size: .62rem; }.cricket-board-footer { margin-top: .55rem; padding-top: .5rem; }.cricket-board-footer p { font-size: .56rem; }.cricket-board-footer button { min-height: 2rem; padding: 0 .55rem; font-size: .56rem; }.cricket-history { padding: .65rem; }.cricket-history .history-header h2 { font-size: .8rem; }
}

/* Hangman: großes Gruppen-Spielbrett im Matrix-Stil */
.game-card.hangman { border-color: rgba(94, 240, 166, .38); background: linear-gradient(115deg, #102e2b, #10213d); }.game-card.hangman .game-card-icon { border-color: rgba(100, 244, 174, .58); color: #8bffd0; }.game-card.hangman.active { border-color: #61ffb3; box-shadow: inset 0 0 0 1px #4ee99f, 0 0 0 3px rgba(78, 233, 159, .1); }.game-card.hangman.active::after { background: linear-gradient(90deg, rgba(73, 255, 159, .18), transparent 52%); }
.hangman-player-fields { grid-column: 1 / -1; min-width: 0; }.hangman-player-heading { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin: 0 0 .7rem; }.hangman-player-heading p { margin: 0; color: #9ab8d2; font-size: .69rem; }.hangman-player-heading span { flex: 0 0 auto; padding: .25rem .45rem; border: 1px solid #2a7069; border-radius: .35rem; color: #8bffd0; background: #092c2b; font: 800 .62rem Consolas, monospace; }.hangman-player-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }.hangman-player-input { display: grid; min-width: 0; grid-template-columns: 1.55rem minmax(0, 1fr) 1.85rem; align-items: center; overflow: hidden; border: 1px solid rgba(91, 200, 179, .31); border-radius: .45rem; background: #0a2330; }.hangman-player-input > span { display: grid; height: 100%; place-items: center; color: #78ddc4; background: #103b3c; font-size: .6rem; font-weight: 850; }.hangman-player-input input { width: 100%; min-width: 0; height: 2.2rem; padding: 0 .5rem; border: 0; outline: 0; color: #ecfff9; background: transparent; font-size: .72rem; }.hangman-player-input button { height: 100%; padding: 0; border: 0; color: #a3c6cc; background: #14303a; font-size: 1rem; }.hangman-player-input button:hover:not(:disabled) { color: #fff; background: #70404a; }.hangman-player-input button:disabled { cursor: default; opacity: .32; }.hangman-add-player { min-height: 2.35rem; margin-top: .65rem; padding: 0 .75rem; border: 1px dashed #429e8c; border-radius: .45rem; color: #a6ffe1; background: rgba(22, 106, 87, .12); font-size: .67rem; font-weight: 800; }.hangman-add-player:hover:not(:disabled) { border-style: solid; background: rgba(38, 161, 121, .25); }.hangman-add-player:disabled { cursor: default; opacity: .55; }

body.is-hangman { background: #020c12; }body.is-hangman .match-view { background-color: #020c12; background-image: linear-gradient(rgba(58, 255, 171, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 255, 171, .045) 1px, transparent 1px), radial-gradient(circle at 50% -20%, rgba(0, 255, 135, .14), transparent 41rem); background-size: 24px 24px, 24px 24px, auto; }.hangman-interface { min-height: calc(100dvh - 3.85rem); color: #edfff8; background: linear-gradient(105deg, rgba(1, 18, 21, .91), rgba(5, 14, 29, .95)); }.hangman-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid rgba(89, 249, 169, .26); background: linear-gradient(90deg, rgba(0, 220, 134, .11), rgba(13, 43, 67, .35)); }.hangman-target-copy { min-width: 0; }.hangman-target-copy .eyebrow, .hangman-turn-copy .eyebrow { margin-bottom: .25rem; color: #71ffc1; }.hangman-target-copy strong { display: block; overflow: hidden; color: #f1fff9; font-family: Consolas, monospace; font-size: clamp(1.75rem, 4.2vw, 3.45rem); letter-spacing: -.08em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 24px rgba(83, 255, 170, .27); }.hangman-target-copy span { display: block; margin-top: .35rem; color: #a7c9c6; font-size: .66rem; }.hangman-turn-copy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; min-width: min(49vw, 25rem); }.hangman-animal { display: grid; width: 3.35rem; height: 3.35rem; place-items: center; border: 1px solid rgba(104, 255, 188, .54); border-radius: 50%; background: radial-gradient(circle at 35% 25%, #255f58, #071d26); box-shadow: 0 0 23px rgba(58, 255, 177, .18); font-size: 1.8rem; }.hangman-turn-copy h2 { overflow: hidden; margin: 0; color: #f0fffb; font-size: clamp(1.05rem, 2.3vw, 1.55rem); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }.hangman-dart-counter { display: grid; grid-template-columns: auto auto auto; gap: .18rem; align-items: baseline; min-width: 3.6rem; padding-left: .75rem; border-left: 1px solid rgba(125, 231, 202, .26); color: #8eb5b3; font: 800 .54rem Consolas, monospace; }.hangman-dart-counter span { grid-column: 1 / -1; color: #78d4bd; letter-spacing: .09em; }.hangman-dart-counter strong { color: #fff; font-size: 1.55rem; line-height: .8; }.hangman-dart-counter small { color: #8eb5b3; font-size: .68rem; }
.hangman-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .37fr); min-height: 0; }.hangman-stage { min-width: 0; padding: clamp(1rem, 2.7vw, 1.75rem); border-right: 1px solid rgba(86, 221, 173, .18); }.hangman-message { max-width: 48rem; margin: 0 auto .9rem; color: #b8ddd4; font-size: .78rem; line-height: 1.45; text-align: center; }.hangman-controls { display: grid; max-width: 54rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0 auto; }.hangman-action { display: flex; min-height: 5.6rem; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border: 1px solid #315a62; border-radius: .6rem; background: #0a2330; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }.hangman-action:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(0, 0, 0, .22); }.hangman-action b { font-family: Consolas, monospace; font-size: clamp(.76rem, 1.8vw, 1rem); letter-spacing: .06em; }.hangman-action small { color: #b6ccca; font-size: .61rem; }.hangman-action.miss { border-color: rgba(244, 113, 132, .52); background: linear-gradient(145deg, rgba(118, 30, 51, .5), #1b1724); }.hangman-action.miss:hover { border-color: #ff778b; }.hangman-action.hit { border-color: rgba(62, 240, 165, .7); color: #dcfff1; background: linear-gradient(145deg, rgba(13, 133, 95, .5), #082c2e); }.hangman-action.hit:hover { border-color: #7cffe0; }.hangman-action.call { border-color: rgba(91, 181, 255, .62); color: #e4f6ff; background: linear-gradient(145deg, rgba(30, 88, 138, .65), #101d42); }.hangman-action.call:hover { border-color: #85d3ff; }.hangman-action:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.3); }.hangman-call-hint { max-width: 54rem; margin: .7rem auto 0; color: #83bdb0; font-size: .63rem; text-align: center; }.hangman-board-panel { max-width: 44rem; margin: 1.35rem auto 0; padding: clamp(.7rem, 2vw, 1.1rem); border: 1px solid rgba(102, 255, 179, .43); border-radius: .8rem; background: radial-gradient(circle at 50% 48%, rgba(27, 159, 114, .2), transparent 47%), #061923; box-shadow: 0 0 0 1px rgba(63, 255, 166, .06), 0 14px 45px rgba(0, 0, 0, .29); }.hangman-board-heading { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; }.hangman-board-heading h2 { margin: 0; font-size: clamp(1rem, 2.3vw, 1.4rem); letter-spacing: -.045em; }.hangman-board-heading .eyebrow { margin-bottom: .22rem; color: #71ffc1; }.hangman-close-board { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid #32665e; border-radius: .42rem; color: #bdeee0; background: #0d2931; font-size: 1.2rem; }.hangman-close-board:hover { color: #fff; border-color: #79eac6; }.hangman-dartboard { width: min(100%, 34rem); margin: .5rem auto 0; }.hangman-dartboard svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }.dart-board-rim { fill: #01090f; stroke: #7af5c1; stroke-width: 3; }.dart-field { cursor: pointer; stroke: #07171b; stroke-width: 1.65; transition: fill .15s ease, filter .15s ease; }.dart-field.outer { fill: #153b32; }.dart-field.inner { fill: #244c3e; }.dart-field.double { fill: #b53956; }.dart-field.triple { fill: #b33658; }.dart-field.green-bull { fill: #2a906e; stroke: #07171b; stroke-width: 2; }.dart-field.red-bull { fill: #e4465d; stroke: #07171b; stroke-width: 2; }.dart-field:hover, .dart-field:focus { fill: #4bf0a5; outline: 0; filter: brightness(1.42); }.dart-field.is-current { stroke: #d9ffe9; stroke-width: 3.7; filter: drop-shadow(0 0 7px rgba(104, 255, 181, .88)); }.dart-number { fill: #e6fff2; font-family: Consolas, monospace; font-size: 12px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }.hangman-board-legend { display: flex; flex-wrap: wrap; gap: .45rem .75rem; justify-content: center; margin-top: .35rem; color: #a8cbc4; font-size: .58rem; }.hangman-board-legend span { display: inline-flex; gap: .22rem; align-items: center; }.hangman-board-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: .16rem; }.hangman-board-legend i.outer { background: #153b32; }.hangman-board-legend i.inner { background: #244c3e; }.hangman-board-legend i.double, .hangman-board-legend i.triple { background: #b53956; }.hangman-board-legend i.bull { border-radius: 50%; background: linear-gradient(90deg, #2a906e 50%, #e4465d 50%); }.hangman-board-help { margin: .7rem 0 0; color: #91bcb1; font-size: .62rem; line-height: 1.4; text-align: center; }
.hangman-sidepanel { min-width: 0; background: rgba(3, 20, 29, .8); }.hangman-players-panel, .hangman-history { padding: .85rem; }.hangman-history { border-top: 1px solid rgba(92, 220, 174, .18); }.hangman-sidepanel .history-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 .6rem; border: 0; }.hangman-sidepanel .history-header h2 { margin: 0; color: #e8fff7; font-size: .82rem; }.hangman-sidepanel .history-header span { color: #71eac1; font: 800 .57rem Consolas, monospace; }.hangman-players { display: grid; gap: .38rem; max-height: min(48vh, 33rem); overflow: auto; overscroll-behavior: contain; padding-right: .12rem; }.hangman-player-card { display: grid; grid-template-columns: 1.65rem minmax(0, 1fr) auto; gap: .42rem; align-items: center; min-height: 3.15rem; padding: .38rem .48rem; border: 1px solid rgba(71, 155, 147, .26); border-radius: .45rem; background: rgba(10, 42, 52, .68); }.hangman-player-card.is-active { border-color: #54e8b5; background: linear-gradient(95deg, rgba(35, 152, 113, .35), rgba(12, 49, 58, .8)); box-shadow: inset 3px 0 0 #54e8b5; }.hangman-player-card.is-owner { border-color: rgba(101, 170, 255, .63); }.hangman-player-card.is-out { filter: grayscale(.85); opacity: .4; }.hangman-player-animal { font-size: 1.12rem; }.hangman-player-card p { margin: 0 0 .1rem; color: #79c9b6; font-size: .46rem; font-weight: 850; letter-spacing: .06em; }.hangman-player-card.is-owner p { color: #93c6ff; }.hangman-player-card h3 { overflow: hidden; margin: 0; color: #ecfff9; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.hangman-player-card > strong { grid-column: 3; grid-row: 1; align-self: end; color: #f5fff9; font: 900 1.1rem Consolas, monospace; line-height: .9; }.hangman-player-card > small { grid-column: 3; grid-row: 2; align-self: start; color: #86aea6; font-size: .43rem; font-weight: 850; letter-spacing: .06em; }.hangman-log { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }.hangman-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: center; padding: .45rem; border-left: 2px solid #577885; color: #a9cbc4; background: rgba(11, 36, 47, .7); font-size: .6rem; }.hangman-log li.hit { border-left-color: #4ce6af; }.hangman-log li.miss { border-left-color: #f07181; }.hangman-log li.call { border-left-color: #76b7ff; }.hangman-log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.hangman-log i { margin-right: .22rem; font-style: normal; }.hangman-log b { color: #effff8; }.hangman-log strong { color: #b9f5e1; font: 700 .57rem Consolas, monospace; text-align: right; }.hangman-log .empty-history { display: block; border: 0; color: #789c98; background: transparent; }
@media (max-width: 880px) { .hangman-workspace { grid-template-columns: 1fr; }.hangman-stage { border-right: 0; border-bottom: 1px solid rgba(86, 221, 173, .18); }.hangman-sidepanel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }.hangman-history { border-top: 0; border-left: 1px solid rgba(92, 220, 174, .18); }.hangman-players { max-height: 20rem; } }
@media (max-width: 640px) { .hangman-player-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }.hangman-hero { grid-template-columns: 1fr; gap: .7rem; padding: .8rem; }.hangman-target-copy strong { font-size: 2rem; }.hangman-turn-copy { min-width: 0; }.hangman-stage { padding: .8rem .6rem; }.hangman-controls { gap: .42rem; }.hangman-action { min-height: 4.65rem; padding: .35rem; }.hangman-action b { font-size: .66rem; }.hangman-action small { font-size: .5rem; text-align: center; }.hangman-board-panel { margin-top: .9rem; padding: .65rem .4rem; }.hangman-board-heading { padding: 0 .25rem; }.hangman-board-heading h2 { font-size: .92rem; }.hangman-board-help { padding: 0 .25rem; font-size: .55rem; }.dart-number { font-size: 10px; }.hangman-sidepanel { grid-template-columns: 1fr; }.hangman-history { border-top: 1px solid rgba(92, 220, 174, .18); border-left: 0; }.hangman-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 18.5rem; }.hangman-player-card { grid-template-columns: 1.45rem minmax(0, 1fr) auto; min-height: 2.8rem; padding: .32rem; }.hangman-player-card h3 { font-size: .65rem; }.hangman-player-card > strong { font-size: .9rem; }.hangman-log { grid-template-columns: 1fr 1fr; }.hangman-log li { min-width: 0; grid-template-columns: 1fr; gap: .14rem; }.hangman-log strong { text-align: left; } }
@media (max-width: 400px) { .hangman-player-inputs { grid-template-columns: 1fr; }.hangman-target-copy strong { font-size: 1.7rem; }.hangman-animal { width: 2.8rem; height: 2.8rem; font-size: 1.5rem; }.hangman-dart-counter { padding-left: .45rem; }.hangman-board-legend { gap: .25rem .45rem; font-size: .52rem; } }

/* Alle Dartboard-Labels stehen gleich weit außerhalb des Doppelrings. */
.dart-number-outside { fill: #f2fff8; font-size: 15px; font-weight: 900; }
@media (max-width: 640px) { .dart-number-outside { font-size: 12px; } }

/* Ucotiga Blue Theme: zentral über die Variablen am Dateianfang abstimmbar. */
body { background: radial-gradient(circle at 50% -20%, rgba(16, 167, 222, .3) 0, transparent 36rem), linear-gradient(145deg, #041421, #061e31 58%, #03111d); }
.page-glow { opacity: .2; }.page-glow-left { background: var(--brand-blue); }.page-glow-right { background: #1974d2; }
.topbar { min-height: 68px; border-bottom-color: rgba(81, 205, 247, .32); }.brand { gap: .78rem; }.brand-copy { display: grid; gap: .13rem; line-height: 1; }.brand-copy > span { line-height: 1; }.brand-copy small { color: #8fd9f5; font-size: .51rem; font-weight: 800; letter-spacing: .095em; text-transform: lowercase; }.brand b { color: var(--brand-blue-soft); }.brand-mark { border-color: var(--brand-blue); box-shadow: 0 0 18px var(--brand-blue-glow); }.brand-mark i { background: var(--brand-blue-soft); }.local-indicator { color: #b4dceb; }.local-indicator span, .tiny-dot { background: var(--brand-blue); box-shadow: 0 0 0 .22rem rgba(16, 167, 222, .14); }
.icon-button, .match-topline .icon-button { border-color: rgba(83, 193, 237, .48); color: #b9edff; background: #0a304a; }.icon-button:hover, .match-topline .icon-button:hover { border-color: var(--brand-blue-soft); background: #104968; }
.eyebrow { color: #82d8fa; }.game-picker, .match-settings, .local-summary { border-color: rgba(81, 194, 236, .4); background: linear-gradient(145deg, rgba(11, 48, 72, .98), rgba(5, 27, 45, .98)); box-shadow: 0 22px 60px rgba(0, 44, 75, .26); }.game-card { border-color: rgba(98, 191, 234, .4); background: linear-gradient(115deg, #0e3856, #09243d); }.game-card:hover { border-color: var(--brand-blue-soft); box-shadow: 0 10px 24px rgba(5, 104, 151, .2); }.game-card.active { border-color: var(--brand-blue); box-shadow: inset 0 0 0 1px var(--brand-blue), 0 0 0 3px rgba(16, 167, 222, .13); }.game-card.active::after { background: linear-gradient(90deg, rgba(16, 167, 222, .27), transparent 56%); }.game-card-icon { border-color: rgba(125, 217, 255, .57); color: #d1f5ff; background: rgba(7, 63, 92, .34); }.selection-check { color: #032034; background: var(--brand-blue-soft); }
.double-training { background: linear-gradient(115deg, #0b3454, #112a4d); }.around-board { background: linear-gradient(115deg, #0a405a, #0c2d49); }.cricket { background: linear-gradient(115deg, #123562, #0c2848); }.blue-training { background: linear-gradient(115deg, #143e6c, #162f5a); }.hatschi { background: linear-gradient(115deg, #173b70, #172b55); }.one-twenty-one { background: linear-gradient(115deg, #0a4553, #133661); }
.primary-button, .checkout-confirm { border-color: #44c9f5; background: linear-gradient(110deg, var(--brand-blue-strong), var(--brand-blue)); box-shadow: 0 10px 24px rgba(16, 167, 222, .23); }.primary-button:hover, .checkout-confirm:hover { background: linear-gradient(110deg, #0b95c9, #55ccf3); }.secondary-button { border-color: rgba(110, 210, 247, .62); background: #0d3a57; }.secondary-button:hover { background: #135477; }
.match-view { border-color: rgba(66, 174, 219, .58); background: #051b2a; box-shadow: 0 22px 70px rgba(0, 21, 37, .34); }.match-topline { border-bottom-color: rgba(80, 191, 235, .3); background: linear-gradient(100deg, #082941, #071e32); }.back-button { border-color: rgba(75, 188, 236, .64); color: #bceeff; background: #0b3653; }.back-button:hover { background: #104e70; }.player-score { background: #082238; }.player-score.is-active { background: linear-gradient(145deg, #0a425c, #09324c); box-shadow: inset 0 -4px 0 var(--brand-blue); }.is-active .player-state { color: #8ee5ff; }.leg-detail strong { border-color: rgba(89, 199, 241, .45); background: #071b2c; }.quick-score-panel, .score-keypad { background: #081f32; }.quick-score-panel button, .score-keypad button { border-color: rgba(75, 174, 220, .55); background: #0b3652; }.quick-score-panel button:hover, .score-keypad button:hover { border-color: var(--brand-blue-soft); background: #105273; }.score-display { background: #051929; }.player-score .score-display { background: transparent; }.score-keypad .key-enter { border-color: var(--brand-blue); background: var(--brand-blue-strong); }.score-keypad .key-enter:hover { background: var(--brand-blue); }.match-history { background: #082237; }.throw-item { border-left-color: var(--brand-blue); background: #0d3049; }.tablet-notice { border-left-color: var(--brand-blue); color: #b8efff; background: #082c3c; }
.cricket-interface { background: #051b2a; }.cricket-player-card { background: #082238; }.cricket-player-card.is-active { background: linear-gradient(145deg, #0b435d, #0a314b); box-shadow: inset 0 -4px 0 var(--brand-blue); }.cricket-player-card.is-active > p { color: #8ee5ff; }.cricket-board { background: #061d30; }.cricket-console { background: #08253a; }.cricket-history { background: #09243a; }.cricket-row { border-color: rgba(65, 171, 217, .46); background: #0c304a; }.cricket-row.is-selected { border-color: var(--brand-blue); background: #104b6b; }.cricket-row > strong { border-color: rgba(101, 203, 243, .6); background: #082238; }.cricket-mark-toggle { border-color: rgba(88, 190, 233, .62); background: #08263d; }.cricket-mark-toggle:hover:not(:disabled) { border-color: var(--brand-blue-soft); background: #0d4562; }.cricket-mark-toggle.is-checked span { border-color: var(--brand-blue); color: #031d2e; background: var(--brand-blue); box-shadow: 0 0 0 .13rem rgba(16, 167, 222, .15); }.cricket-bull-choice.is-checked { border-color: var(--brand-blue); background: var(--brand-blue); }.cricket-bull-choice.is-checked span { color: #031d2e; }.cricket-board-footer { border-top-color: rgba(84, 191, 236, .26); }.cricket-board-footer button { border-color: rgba(85, 193, 236, .55); background: #0c3b59; }.cricket-board-footer button:hover { border-color: var(--brand-blue-soft); background: #105273; }
@media (max-width: 640px) { .topbar { min-height: 57px; }.brand { gap: .5rem; }.brand-copy small { font-size: .44rem; letter-spacing: .075em; }.brand-mark { transform: scale(.9) skew(-9deg); } }

/* Dezenter Matrixcode: er läuft hinter der Oberfläche und verwendet die zentrale Blauthematik. */
.app-shell { position: relative; z-index: 1; }.matrix-rain { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); }.matrix-rain span { position: absolute; top: -112vh; left: var(--x); color: rgba(117, 220, 255, .2); font: 800 clamp(.78rem, 1.05vw, 1.12rem)/.86 Consolas, monospace; letter-spacing: .035em; text-orientation: upright; text-shadow: 0 0 15px rgba(16, 167, 222, .32); user-select: none; writing-mode: vertical-rl; animation: matrix-fall var(--duration) linear var(--delay) infinite; }@keyframes matrix-fall { to { transform: translateY(225vh); } }@media (prefers-reduced-motion: reduce) { .matrix-rain span { animation: none; opacity: .25; } }@media (max-width: 640px) { .matrix-rain span { color: rgba(117, 220, 255, .15); font-size: .72rem; }.matrix-rain span:nth-child(3n) { display: none; } }

/* Der Matrixhintergrund wählt bei jedem Seitenaufruf eine von vier Farbwelten. */
html[data-matrix-theme="blue"] body { background: radial-gradient(circle at 50% -20%, rgba(50, 104, 255, .28) 0, transparent 36rem), linear-gradient(145deg, #020712, #06122d 58%, #01030a); }html[data-matrix-theme="blue"] .matrix-rain span { color: rgba(113, 153, 255, .25); text-shadow: 0 0 15px rgba(69, 115, 255, .46); }html[data-matrix-theme="blue"] .page-glow-left { background: #325cff; }html[data-matrix-theme="blue"] .page-glow-right { background: #15389c; }
html[data-matrix-theme="green"] body { background: radial-gradient(circle at 50% -20%, rgba(41, 223, 126, .2) 0, transparent 36rem), linear-gradient(145deg, #010b07, #031a11 58%, #010503); }html[data-matrix-theme="green"] .matrix-rain span { color: rgba(102, 255, 159, .25); text-shadow: 0 0 15px rgba(49, 222, 112, .48); }html[data-matrix-theme="green"] .page-glow-left { background: #17b96d; }html[data-matrix-theme="green"] .page-glow-right { background: #08713e; }
html[data-matrix-theme="red"] body { background: radial-gradient(circle at 50% -20%, rgba(250, 65, 86, .22) 0, transparent 36rem), linear-gradient(145deg, #100205, #24060b 58%, #080102); }html[data-matrix-theme="red"] .matrix-rain span { color: rgba(255, 101, 117, .25); text-shadow: 0 0 15px rgba(242, 62, 83, .5); }html[data-matrix-theme="red"] .page-glow-left { background: #d92f49; }html[data-matrix-theme="red"] .page-glow-right { background: #7e1324; }
@media (max-width: 640px) { html[data-matrix-theme="blue"] .matrix-rain span { color: rgba(113, 153, 255, .18); }html[data-matrix-theme="green"] .matrix-rain span { color: rgba(102, 255, 159, .18); }html[data-matrix-theme="red"] .matrix-rain span { color: rgba(255, 101, 117, .18); } }

.hangman-lives-control { display: inline-flex; flex: 0 0 auto; gap: .38rem; align-items: center; padding: .2rem .35rem .2rem .5rem; border: 1px solid rgba(78, 199, 236, .55); border-radius: .38rem; color: #9feaff; background: rgba(7, 63, 92, .48); font: 800 .53rem Consolas, monospace; letter-spacing: .06em; }.hangman-lives-control input { width: 2.6rem; height: 1.55rem; border: 0; border-radius: .24rem; outline: 0; color: #f3fcff; background: #082238; font: 900 .75rem Consolas, monospace; text-align: center; }.hangman-lives-control input:focus { box-shadow: 0 0 0 2px rgba(117, 220, 255, .3); }@media (max-width: 640px) { .hangman-player-heading { flex-wrap: wrap; }.hangman-player-heading > p { flex-basis: 100%; }.hangman-lives-control { margin-right: auto; } }

/* Kontextuelle Spielhilfe */
.help-button, .help-icon-button { display: grid; place-items: center; font-family: Consolas, monospace; font-weight: 900; }.help-button { width: 2.1rem; height: 2.1rem; margin-left: auto; border: 1px solid rgba(91, 201, 244, .68); border-radius: 50%; color: #d8f7ff; background: linear-gradient(145deg, #0e5274, #082d46); box-shadow: 0 0 0 .18rem rgba(16, 167, 222, .09); font-size: 1rem; line-height: 1; }.help-button:hover, .help-button:focus-visible { border-color: #b9f3ff; color: #fff; background: #12719c; }.help-icon-button { font-size: 1.12rem; line-height: 1; }
.game-help-overlay { position: fixed; z-index: 100; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: clamp(.65rem, 3vw, 2rem); background: rgba(1, 13, 25, .83); backdrop-filter: blur(7px); }.game-help-panel { width: min(100%, 52rem); max-height: min(52rem, calc(100dvh - 1.3rem)); overflow: auto; border: 1px solid rgba(90, 205, 245, .68); border-radius: 1rem; color: #ebfaff; background: linear-gradient(145deg, #093650, #061a2c 62%, #041420); box-shadow: 0 25px 90px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(164, 235, 255, .13); }.game-help-header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: clamp(1rem, 3vw, 1.6rem) clamp(1rem, 4vw, 2rem) 1rem; border-bottom: 1px solid rgba(97, 203, 240, .3); background: linear-gradient(90deg, rgba(16, 167, 222, .22), transparent); }.game-help-header .eyebrow { margin: 0 0 .3rem; color: #8ce8ff; }.game-help-header h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 4vw, 2.2rem); letter-spacing: -.06em; }.game-help-header .icon-button { flex: 0 0 auto; font-size: 1.35rem; }.game-help-content { display: grid; gap: .85rem; padding: clamp(1rem, 4vw, 2rem); }.game-help-intro { max-width: 45rem; margin: 0; color: #c6e8f7; font-size: clamp(.88rem, 1.6vw, 1rem); line-height: 1.65; }.game-help-note { display: grid; gap: .25rem; padding: .72rem .85rem; border: 1px solid rgba(101, 214, 250, .45); border-left: 3px solid var(--brand-blue); border-radius: .45rem; background: rgba(13, 85, 119, .35); }.game-help-note span { color: #81dfff; font: 800 .55rem Consolas, monospace; letter-spacing: .08em; }.game-help-note strong { color: #f3fcff; font-size: .78rem; }.game-help-block { padding: .9rem 1rem; border: 1px solid rgba(96, 175, 212, .27); border-radius: .6rem; background: rgba(3, 24, 41, .61); }.game-help-block .eyebrow { margin: 0 0 .22rem; color: #79dcff; }.game-help-block h3 { margin: 0; color: #fff; font-size: 1rem; line-height: 1.45; }.game-help-block ol, .game-help-block ul { display: grid; gap: .55rem; margin: .7rem 0 0; padding-left: 1.2rem; color: #c4e2f1; font-size: .8rem; line-height: 1.55; }.game-help-block li::marker { color: #62d0f7; font-weight: 900; }.game-help-footer { display: flex; justify-content: flex-end; padding: .9rem clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.35rem); border-top: 1px solid rgba(97, 203, 240, .25); background: rgba(4, 24, 40, .54); }.game-help-footer .primary-button { min-width: 8rem; }body.help-open { overflow: hidden; }
@media (max-width: 640px) { .section-heading.compact { flex-direction: row; align-items: center; }.game-help-overlay { align-items: start; padding: .45rem; }.game-help-panel { max-height: calc(100dvh - .9rem); border-radius: .7rem; }.game-help-header { padding: 1rem .9rem .8rem; }.game-help-content { gap: .65rem; padding: .9rem; }.game-help-block { padding: .75rem; }.game-help-block ol, .game-help-block ul { font-size: .76rem; }.game-help-footer { padding: .75rem .9rem; }.match-title { max-width: calc(100% - 11.6rem); }.match-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.match-topline .match-actions .icon-button { width: 2.1rem; height: 2.1rem; }.match-topline .match-actions { gap: .22rem; } }

/* Aufnahmen sind bewusst aus der Eingabefläche ausgelagert. */
.match-info-link { min-height: 2.65rem; padding: 0 .72rem; border: 1px solid #2f567c; border-radius: .45rem; color: #bceeff; background: #0b3653; font-size: .66rem; font-weight: 850; }.match-info-link:hover, .match-info-link:focus-visible { border-color: #77d6ff; color: #fff; background: #105273; }.match-info-overlay { position: fixed; z-index: 101; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: clamp(.65rem, 3vw, 2rem); background: rgba(1, 13, 25, .83); backdrop-filter: blur(7px); }.match-info-panel { width: min(100%, 42rem); max-height: min(48rem, calc(100dvh - 1.3rem)); overflow: auto; border: 1px solid rgba(90, 205, 245, .68); border-radius: 1rem; color: #ebfaff; background: linear-gradient(145deg, #093650, #061a2c 62%, #041420); box-shadow: 0 25px 90px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(164, 235, 255, .13); }.match-info-header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: clamp(1rem, 3vw, 1.6rem) clamp(1rem, 4vw, 2rem) 1rem; border-bottom: 1px solid rgba(97, 203, 240, .3); background: linear-gradient(90deg, rgba(16, 167, 222, .22), transparent); }.match-info-header .eyebrow { margin: 0 0 .3rem; color: #8ce8ff; }.match-info-header h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 4vw, 2.2rem); letter-spacing: -.06em; }.match-info-header > div > p:last-child { margin: .45rem 0 0; color: #b9ddec; font-size: .76rem; line-height: 1.45; }.match-info-header .icon-button { flex: 0 0 auto; font-size: 1.35rem; }.match-info-content { padding: clamp(1rem, 4vw, 1.5rem); }.match-info-section .history-header h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }.match-info-section .throws-list { grid-template-columns: 1fr; }.match-info-section .throw-item { min-height: 3.1rem; font-size: .72rem; }.match-info-section .throw-item strong { font-size: .95rem; }.match-info-section .throw-item small { font-size: .68rem; }.match-info-section .tablet-notice { margin-bottom: 0; }.match-info-footer { display: flex; justify-content: flex-end; padding: .9rem clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.35rem); border-top: 1px solid rgba(97, 203, 240, .25); background: rgba(4, 24, 40, .54); }.match-info-footer .primary-button { min-width: 10rem; }body.match-info-open { overflow: hidden; }

/* Ohne History-Spalte kann die Punkteingabe die gesamte verfügbare Breite nutzen. */
.tablet-entry { grid-template-columns: minmax(11rem, .36fr) minmax(0, .64fr); }.cricket-workspace { grid-template-columns: minmax(0, 1fr); }.cricket-player-card { min-height: 10.25rem; }.cricket-row { min-height: 3.8rem; }.cricket-mark-toggle { min-height: 2.45rem; }
@media (max-width: 980px) { .tablet-entry { grid-template-columns: minmax(10rem, .32fr) minmax(0, .68fr); } }
@media (max-width: 640px) {
  .match-info-link { min-height: 2.1rem; padding: 0 .48rem; font-size: .58rem; }.match-title { max-width: calc(100% - 14.35rem); }.match-info-overlay { align-items: start; padding: .45rem; }.match-info-panel { max-height: calc(100dvh - .9rem); border-radius: .7rem; }.match-info-header { padding: 1rem .9rem .8rem; }.match-info-content { padding: .9rem; }.match-info-footer { padding: .75rem .9rem; }.match-info-footer .primary-button { width: 100%; }
  .cricket-scoreboard, .cricket-player-card { min-height: 7.75rem; }.cricket-player-card > strong { font-size: 2.55rem; }.cricket-player-card h2 { margin-top: .5rem; font-size: 1rem; }.cricket-row { min-height: 3.75rem; padding: .32rem; }.cricket-row > strong { width: 2.45rem; height: 2.45rem; font-size: .78rem; }.cricket-mark-toggle { min-height: 2.55rem; }.cricket-mark-toggle span { width: 1.02rem; height: 1.02rem; }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { grid-template-rows: auto minmax(0, 1fr); }
}
@media (max-width: 640px) and (max-height: 760px) { body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { grid-template-rows: auto minmax(0, 1fr); } }

/* X01 auf dem Handy: Schnellwerte oben, ein mit dem Viewport wachsender Ziffernblock darunter. */
@media (max-width: 640px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(8.25rem, 17dvh, 12rem) minmax(0, 1fr);
    align-content: start;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .quick-score-panel {
    order: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    min-height: 0;
    height: 100%;
    gap: clamp(.3rem, 1.4vw, .55rem);
    padding: clamp(.45rem, 1.8vw, .75rem);
    border-right: 0;
    border-bottom: 1px solid #2a425d;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .quick-score-panel button {
    min-height: 0;
    font-size: clamp(.72rem, 3.25vw, .94rem);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad {
    order: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-height: 0;
    height: min(50dvh, 100%);
    max-height: 36rem;
    align-self: start;
    gap: clamp(.32rem, 1.6vw, .62rem);
    padding: clamp(.45rem, 1.8vw, .75rem);
    padding-bottom: max(clamp(.45rem, 1.8vw, .75rem), env(safe-area-inset-bottom));
    border-right: 0;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad button,
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-enter {
    min-height: 0;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad button[data-key]:not(.key-action) {
    grid-column: auto;
    font-size: clamp(1.25rem, 5.5vw, 2rem);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-split,
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad button[data-key="0"]:not(.key-action),
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-clear {
    grid-column: auto;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-split {
    grid-template-columns: minmax(0, 1fr) clamp(2.2rem, 11vw, 3.2rem);
    gap: clamp(.32rem, 1.6vw, .62rem);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-action { font-size: clamp(.66rem, 2.8vw, .86rem); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad .key-enter { grid-column: 1 / -1; font-size: clamp(.92rem, 3.8vw, 1.2rem); }
}

/* Auf kurzen Telefonen bleibt die ganze Eingabe ohne Abschneiden erreichbar. */
@media (max-width: 640px) and (max-height: 760px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { grid-template-rows: clamp(6.85rem, 16dvh, 8rem) minmax(0, 1fr); }
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-keypad { height: 100%; }
}

/* Restwert-Eingabe und Statuszeile für X01. */
.mobile-score-entry-slot { display: contents; }
.score-display-actions { display: none; }
.key-submit-actions { display: grid; grid-column: 1 / -1; min-width: 0; }

@media (max-width: 640px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry {
    grid-template-rows: clamp(3.5rem, 6.2dvh, 4.35rem) clamp(8.25rem, 17dvh, 12rem) minmax(0, 1fr);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .mobile-score-entry-slot .score-display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .45rem;
    align-items: center;
    height: 100%;
    padding: .45rem clamp(.6rem, 2vw, .85rem);
    border-bottom: 1px solid #2a425d;
    background: #051929;
    text-align: left;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .mobile-score-entry-slot .active-turn {
    min-width: 0;
    min-height: 0;
    justify-content: flex-start;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .mobile-score-entry-slot .score-display output {
    inline-size: 3ch;
    min-inline-size: 3ch;
    margin: 0;
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .mobile-score-entry-slot .score-display-actions {
    display: grid;
    min-height: 2.45rem;
    margin-left: .12rem;
    padding-left: .55rem;
    border-left: 1px solid rgba(91, 202, 244, .52);
    place-items: stretch;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-rest {
    min-width: clamp(3.35rem, 14vw, 4.25rem);
    border: 1px solid rgba(121, 220, 255, .72);
    border-radius: .38rem;
    color: #d7f8ff;
    background: linear-gradient(135deg, #0d5274, #0a3754);
    font: 850 clamp(.72rem, 3.25vw, .94rem) / 1 "Space Grotesk", Arial, sans-serif;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .score-rest:hover {
    border-color: #b7f4ff;
    background: #11698f;
  }
}

@media (max-width: 640px) and (max-height: 760px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman) .tablet-entry { grid-template-rows: clamp(3.15rem, 7.5dvh, 3.75rem) clamp(6.85rem, 16dvh, 8rem) minmax(0, 1fr); }
}

/* Kompakte Startansicht auf dem Telefon: Titel und lokaler Verlauf liegen im Header. */
.mobile-setup-heading { display: none; }

/* Dezenter Support-Link direkt im Header. */
.coffee-link { display: inline-flex; gap: .35rem; align-items: center; min-height: 2.25rem; padding: 0 .55rem; border: 1px solid rgba(91, 202, 244, .62); border-radius: .42rem; background: rgba(8, 48, 74, .68); box-shadow: inset 0 1px 0 rgba(181, 238, 255, .1); color: #ccefff; font-size: .72rem; font-weight: 850; letter-spacing: .035em; text-decoration: none; white-space: nowrap; opacity: 1; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }.coffee-link > span:first-child { color: #eab75d; font-size: 1rem; line-height: 1; }.coffee-link:hover, .coffee-link:focus-visible { border-color: #a9ecff; background: #0e5274; color: #fff; outline: 0; transform: translateY(-1px); }.coffee-link:focus-visible { box-shadow: 0 0 0 2px rgba(117, 220, 255, .38); }

@media (max-width: 640px) {
  .app-shell { width: min(calc(100% - 1.4rem), 31rem); padding-top: .35rem; padding-bottom: .75rem; }
  .coffee-link { min-width: 2.4rem; min-height: 2.4rem; justify-content: center; padding: 0; border-radius: .45rem; }.coffee-link > span:first-child { font-size: .98rem; }.coffee-link > span:last-child { display: none; }
  .topbar { display: grid; min-height: 3.55rem; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; justify-content: initial; }
  .brand { min-width: 0; gap: .42rem; font-size: .95rem; }
  .brand-mark { transform: scale(.8) skew(-9deg); }
  .brand-copy small { font-size: .38rem; letter-spacing: .06em; }
  .mobile-setup-heading { display: grid; gap: .03rem; margin: 0; color: #f5fcff; font: inherit; line-height: 1; text-align: left; white-space: nowrap; }
  .mobile-setup-heading span { color: #82d8fa; font-size: .43rem; font-weight: 850; letter-spacing: .1em; }
  .mobile-setup-heading strong { font-size: .93rem; font-weight: 850; letter-spacing: -.035em; }
  .topbar-actions { gap: 0; margin-left: 0; }
  .topbar-actions .icon-button { width: 2.4rem; height: 2.4rem; }

  .setup-view { padding-top: .4rem; }
  .hero-copy { display: none; }
  .game-picker, .match-settings { padding: .65rem; border-radius: .75rem; }
  .section-heading { margin-bottom: .55rem; }
  .game-grid { gap: .42rem; }
  .game-card { min-height: 3.65rem; gap: .48rem; padding: .45rem 1.65rem .45rem .45rem; }
  .game-card-icon { width: 1.55rem; height: 1.55rem; flex-basis: 1.55rem; font-size: .58rem; }
  .game-card-copy strong { font-size: .87rem; }
  .selection-check { top: .4rem; right: .4rem; }

  .match-settings { margin-top: .45rem; }
  .settings-grid { gap: .65rem; padding-bottom: .55rem; }
  .player-fields { gap: .5rem; }
  .player-fields legend, .legs-field legend { margin-bottom: .45rem; }
  .player-fields input { height: 2.55rem; padding: 0 .6rem; }
  .leg-selector { gap: .32rem; }
  .leg-selector button, .custom-legs { min-width: 2.45rem; height: 2.55rem; }
  .legs-field p { margin-top: .5rem; }
  .settings-footer { padding-top: .55rem; }
  .primary-button { min-height: 2.6rem; }

  .local-summary { display: none !important; }
}

/* Cricket: Aufnahme ohne Treffer ist direkt zwischen den Spielenden erreichbar. */
.cricket-player-card:last-of-type { border-right: 0; }
.cricket-miss-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(3.35rem, 8vw, 4.35rem);
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #ff7780;
  border-radius: 50%;
  color: #fff4f4;
  background: radial-gradient(circle at 32% 28%, #ff9ea4, #c23749 65%, #741c2c);
  box-shadow: 0 .45rem 1.1rem rgba(105, 12, 28, .52), inset 0 .08rem .15rem rgba(255, 255, 255, .28);
  font: 900 clamp(.68rem, 1.45vw, .86rem) / 1 "Space Grotesk", Arial, sans-serif;
  letter-spacing: .06em;
  transition: transform .15s ease, filter .15s ease;
}

.cricket-miss-button:hover { filter: brightness(1.13); transform: translate(-50%, calc(-50% - .08rem)); }
.cricket-miss-button:active { transform: translate(-50%, calc(-50% + .04rem)); }

@media (max-width: 640px) {
  .cricket-miss-button { width: clamp(3.2rem, 14vw, 3.9rem); font-size: clamp(.64rem, 3vw, .82rem); }
}

/* X01: kompakte Spielerstatistik direkt am Leg-Zähler. */
.player-score { padding-bottom: 4.45rem; }
.player-recent { position: absolute; right: 5.6rem; bottom: .72rem; left: .72rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem; align-items: center; min-height: 1.75rem; }
.player-recent > span, .player-average > span { color: #8eb9d8; font-size: .49rem; font-weight: 850; letter-spacing: .055em; }.recent-summary { display: grid; grid-template-columns: auto auto; column-gap: .16rem; align-items: baseline; line-height: 1; }.recent-summary b { color: #8eb9d8; font-size: .45rem; letter-spacing: .045em; }.recent-summary strong { color: #d7f5ff; font: 850 .72rem / 1 "Space Grotesk", Arial, sans-serif; }.recent-summary small { grid-column: 1 / -1; margin-top: .13rem; color: #72d9ee; font-size: .42rem; font-weight: 850; letter-spacing: .025em; white-space: nowrap; }
.recent-throw-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
.recent-throw { display: grid; min-width: 0; min-height: 1.62rem; place-items: center; border: 1px solid rgba(87, 187, 232, .4); border-radius: .25rem; color: #e9f8ff; background: rgba(7, 38, 59, .7); font: 850 clamp(.54rem, .86vw, .68rem) / 1 "Space Grotesk", Arial, sans-serif; }
.recent-throw.is-empty { color: #7190aa; border-color: rgba(78, 119, 149, .36); }
.recent-throw.is-bust { color: #ffb4bc; border-color: rgba(249, 111, 125, .54); background: rgba(91, 22, 38, .42); }
.player-average { position: absolute; right: .78rem; bottom: 3.03rem; display: grid; gap: .1rem; justify-items: center; min-width: 2.45rem; }
.player-average-value { color: #c9f5ff; font: 850 .86rem / 1 "Space Grotesk", Arial, sans-serif; }
.leg-detail { right: .74rem; bottom: .68rem; gap: .42rem; font-size: .66rem; }
.leg-detail strong { min-width: 2.05rem; padding: .31rem .52rem; border-radius: .38rem; font-size: 1.04rem; }

@media (max-width: 640px) {
  .player-score { padding-bottom: 4.25rem; }
  .player-recent { right: 5.45rem; bottom: .58rem; left: .52rem; gap: .24rem; }
  .player-recent > span, .player-average > span { font-size: .43rem; }.recent-summary b { font-size: .4rem; }.recent-summary strong { font-size: .66rem; }.recent-summary small { font-size: .38rem; }
  .recent-throw-list { gap: .15rem; }
  .recent-throw { min-height: 1.5rem; font-size: .58rem; }
  .player-average { right: .55rem; bottom: 2.92rem; }
  .player-average-value { font-size: .8rem; }
  .leg-detail { right: .5rem; bottom: .52rem; gap: .3rem; font-size: .59rem; }
  .leg-detail strong { min-width: 1.95rem; padding: .28rem .45rem; font-size: .98rem; }
}

/* Checkout: kompakte Bestätigung mit den Dart-Pfeilen aus der Punkteingabe. */
.checkout-dialog { border-color: rgba(86, 201, 244, .74); background: linear-gradient(145deg, #0b2943, #061827 68%); box-shadow: 0 28px 90px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(168, 233, 255, .12); }
.checkout-dialog .eyebrow { margin-bottom: .22rem; color: #7de2ff; letter-spacing: .1em; }
.checkout-dialog h2 { color: #f4fbff; }
.checkout-stats { gap: .5rem; margin: 1rem 0; }
.checkout-stats span { gap: .28rem; padding: .72rem .5rem; border-color: rgba(93, 183, 224, .42); border-radius: .5rem; background: linear-gradient(145deg, rgba(7, 32, 52, .96), rgba(5, 21, 35, .96)); box-shadow: inset 0 1px 0 rgba(142, 219, 247, .06); }
.checkout-stats small { color: #8bbbd2; }
.checkout-stats strong { color: #f6fbff; }
.checkout-dart-picker { display: grid; grid-template-columns: 1fr; gap: .55rem; padding: .8rem; border: 1px solid rgba(75, 178, 222, .36); border-radius: .62rem; background: rgba(4, 25, 40, .66); }
.checkout-picker-heading { display: grid; gap: .16rem; }
.checkout-picker-heading small { color: #8bd4f0; font-size: .57rem; font-weight: 850; letter-spacing: .08em; }
.checkout-picker-heading span { color: #b7d4e5; font-size: .68rem; }
.checkout-dart-picker > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.checkout-dart-picker button { display: inline-flex; min-width: 0; min-height: 3.25rem; gap: .2rem; align-items: center; justify-content: center; border-color: rgba(83, 168, 210, .55); border-radius: .45rem; color: #cbeeff; background: #0a2d47; font-family: "Space Grotesk", Arial, sans-serif; font-size: 1.05rem; font-weight: 850; box-shadow: inset 0 1px 0 rgba(161, 228, 255, .08); transition: border-color .15s, background .15s, transform .15s; }
.checkout-dart-picker button:hover { border-color: #84ddff; background: #10496a; }
.checkout-dart-picker button:active { transform: translateY(1px); }
.checkout-dart-picker .checkout-picker-arrow { color: #77dfff; font-family: Arial, sans-serif; font-size: 2rem; font-weight: 800; line-height: .75; }
.checkout-dart-picker button.active { border-color: #3bc3ef; color: #fff; background: linear-gradient(135deg, #087bac, #149ed2); box-shadow: inset 0 0 0 1px rgba(202, 244, 255, .22), 0 5px 16px rgba(13, 151, 204, .22); }
.checkout-dart-picker button.active .checkout-picker-arrow { color: #e9fbff; }
.checkout-dialog footer { gap: .55rem; margin-top: .75rem; }
.checkout-dialog footer button { min-height: 3rem; }

@media (max-width: 640px) {
  .checkout-dialog { width: min(100% - 1.25rem, 34rem); padding: 1.1rem; }
  .checkout-dialog h2 { font-size: 1.5rem; }
  .checkout-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .38rem; margin: .85rem 0; }
  .checkout-stats span { min-height: 4.6rem; padding: .55rem .25rem; align-content: center; }
  .checkout-stats small { font-size: .48rem; line-height: 1.15; }
  .checkout-stats strong { font-size: 1.35rem; }
  .checkout-dart-picker { gap: .5rem; padding: .7rem; }
  .checkout-dart-picker > div:last-child { gap: .35rem; }
  .checkout-dart-picker button { min-height: 3.1rem; font-size: 1rem; }
  .checkout-dart-picker .checkout-picker-arrow { font-size: 1.85rem; }
}

/* Under 26 · Over 45: Neon-Grenzen und ein reiner Ziffernblock. */
.game-card.under-over { border-color: rgba(255, 180, 96, .46); background: linear-gradient(120deg, #3c2444, #142c54); }
.game-card.under-over .game-card-icon { border-color: rgba(255, 195, 113, .7); color: #ffe4b9; background: rgba(120, 57, 104, .24); }
.game-card.under-over.active { border-color: #ffae59; box-shadow: inset 0 0 0 1px #ffae59, 0 0 0 3px rgba(255, 138, 83, .13); }
.game-card.under-over.active::after { background: linear-gradient(90deg, rgba(245, 99, 151, .25), transparent 60%); }
.under-over-player-fields { grid-column: 1 / -1; }
.under-over-cut-throat { display: inline-flex; flex: 0 0 auto; gap: .42rem; align-items: center; padding: .3rem .48rem; border: 1px solid rgba(255, 184, 98, .58); border-radius: .42rem; color: #ffe4b6; background: rgba(103, 47, 74, .32); cursor: pointer; }.under-over-cut-throat input { width: 1rem; height: 1rem; margin: 0; accent-color: #f58b55; }.under-over-cut-throat > span { display: grid; gap: .08rem; padding: 0; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; letter-spacing: normal; }.under-over-cut-throat b { font: 850 .6rem / 1 "Space Grotesk", Arial, sans-serif; letter-spacing: .045em; }.under-over-cut-throat small { color: #edc7b2; font-size: .5rem; line-height: 1.1; }.under-over-cut-throat:has(input:checked) { border-color: #ffd184; color: #fff5da; background: linear-gradient(135deg, rgba(161, 64, 67, .62), rgba(138, 75, 48, .56)); box-shadow: 0 0 0 .12rem rgba(255, 156, 85, .12); }

.under-over-interface { overflow: hidden; background: radial-gradient(circle at 50% 0, rgba(255, 141, 91, .16), transparent 38%), #061725; }
.under-over-arena { position: relative; padding: clamp(.9rem, 2vw, 1.45rem); background: linear-gradient(145deg, rgba(5, 32, 49, .96), rgba(6, 16, 34, .98)); }
.under-over-arena::before, .under-over-arena::after { position: absolute; z-index: 0; width: min(34vw, 23rem); height: 1px; content: ""; opacity: .8; background: linear-gradient(90deg, transparent, #4fe2ff); }
.under-over-arena::before { top: 2.3rem; left: 0; }.under-over-arena::after { right: 0; bottom: 1.4rem; transform: rotate(180deg); background: linear-gradient(90deg, transparent, #ff8d6d); }
.under-over-thresholds { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(11rem, .9fr) minmax(9rem, 1fr); gap: clamp(.55rem, 1.8vw, 1.1rem); align-items: stretch; max-width: 60rem; margin: 0 auto; }
.under-over-threshold, .under-over-core { display: grid; min-height: clamp(8.5rem, 17vw, 11rem); place-items: center; align-content: center; border: 1px solid rgba(112, 205, 239, .52); background: linear-gradient(145deg, rgba(8, 52, 76, .9), rgba(5, 20, 38, .92)); text-align: center; }
.under-over-threshold { position: relative; overflow: hidden; isolation: isolate; }.under-over-threshold::before { position: absolute; z-index: -1; inset: .35rem; border: 1px solid rgba(118, 229, 255, .14); content: ""; transform: skewX(-8deg); }
.under-over-threshold > span, .under-over-core > span { color: #9edcf6; font: 850 clamp(.55rem, 1.1vw, .68rem) / 1 "Space Grotesk", Arial, sans-serif; letter-spacing: .13em; }
.under-over-threshold strong { margin: .22rem 0; color: #e4fbff; font-family: Arial, sans-serif; font-size: clamp(4.2rem, 9vw, 7rem); font-weight: 900; letter-spacing: -.11em; line-height: .78; text-shadow: 0 0 26px rgba(95, 224, 255, .45); }
.under-over-threshold small { color: #c6eaf8; font-size: .58rem; font-weight: 850; letter-spacing: .08em; }.under-over-low { border-color: rgba(81, 221, 199, .66); }.under-over-low strong { color: #7ff5d7; text-shadow: 0 0 28px rgba(79, 218, 185, .5); }.under-over-high { border-color: rgba(255, 136, 107, .7); }.under-over-high strong { color: #ffc5a7; text-shadow: 0 0 28px rgba(255, 114, 87, .48); }
.under-over-core { min-height: 0; gap: .55rem; padding: .8rem; border-color: rgba(255, 212, 116, .68); background: radial-gradient(circle at 50% 48%, rgba(255, 193, 88, .17), transparent 58%), #08182a; box-shadow: inset 0 0 30px rgba(255, 184, 80, .08); }.under-over-core strong { color: #fff5dd; font-family: Arial, sans-serif; font-size: clamp(3.25rem, 7vw, 5.6rem); font-weight: 900; letter-spacing: -.1em; line-height: .75; text-shadow: 0 0 24px rgba(255, 201, 107, .38); }.under-over-core p { margin: 0; color: #edf9ff; font-size: clamp(.68rem, 1.5vw, .85rem); font-weight: 800; }
.under-over-status { position: relative; z-index: 1; max-width: 60rem; margin: .8rem auto 0; padding: .6rem .8rem; border-left: 3px solid #ffca6a; color: #d6edf9; background: rgba(4, 20, 35, .72); font-size: clamp(.68rem, 1.3vw, .79rem); line-height: 1.35; }
.under-over-players-panel { position: relative; z-index: 1; max-width: 60rem; margin: 1rem auto 0; }.under-over-players-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .48rem; padding: 0 .15rem; }.under-over-players-heading h2 { margin: 0; color: #dff7ff; font-size: .82rem; }.under-over-players-heading span { color: #9ee5fa; font: 850 .6rem Consolas, monospace; letter-spacing: .06em; }
.under-over-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .45rem; }.under-over-player { position: relative; display: grid; min-height: 6.8rem; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; gap: .16rem .32rem; padding: .55rem; overflow: hidden; border: 1px solid rgba(81, 158, 197, .45); background: linear-gradient(135deg, rgba(10, 46, 66, .88), rgba(7, 25, 45, .94)); }.under-over-player > p { grid-column: 1 / -1; margin: 0; color: #87bbd2; font-size: .5rem; font-weight: 850; letter-spacing: .08em; }.under-over-player h2 { overflow: hidden; margin: 0; color: #f1fbff; font-size: .82rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }.under-over-player > strong { align-self: center; color: #e6fbff; font: 850 1.25rem / 1 Consolas, monospace; }.under-over-player > small { grid-column: 2; color: #83b7cf; font-size: .45rem; font-weight: 850; text-align: right; }.under-over-player.is-active { border-color: #ffca6a; box-shadow: inset 0 0 0 1px rgba(255, 204, 105, .2), 0 0 16px rgba(247, 149, 70, .12); }.under-over-player.is-active > p { color: #ffdc9a; }.under-over-player.is-out { opacity: .42; filter: grayscale(.55); }.under-over-lives { display: flex; grid-column: 1; gap: .1rem; align-items: center; min-height: 1rem; }.under-over-lives i { color: #385b71; font-size: .56rem; font-style: normal; }.under-over-lives i.is-live { color: #ff7d88; text-shadow: 0 0 9px rgba(255, 75, 101, .56); }.under-over-recent { display: flex; grid-column: 1 / -1; gap: .22rem; align-items: center; min-height: 1.15rem; }.under-over-recent span { display: grid; min-width: 1.45rem; min-height: 1.1rem; padding: 0 .18rem; place-items: center; border: 1px solid rgba(93, 153, 187, .36); color: #86aebf; background: rgba(3, 20, 33, .62); font: 850 .57rem / 1 Consolas, monospace; }.under-over-recent span.valid { border-color: rgba(83, 219, 184, .55); color: #9ff7dd; }.under-over-recent span.lost { border-color: rgba(255, 112, 126, .52); color: #ffadb5; }
.under-over-player.is-losing-life { z-index: 2; border-color: #ff8892; animation: under-over-life-loss 1.5s cubic-bezier(.22,.61,.36,1) both; }.under-over-player.is-losing-life::after { position: absolute; top: 50%; left: 50%; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; transform: translate(-50%, -50%); border: 1px solid #ffc5ca; border-radius: 50%; color: #fff; background: #ca4057; box-shadow: 0 0 30px rgba(255, 66, 91, .78); content: "−1"; font: 900 1rem / 1 Consolas, monospace; animation: under-over-life-loss-mark 1.5s ease-out both; }.under-over-player.is-losing-life .under-over-lives { animation: under-over-life-loss-lives 1.5s ease-out both; }
@keyframes under-over-life-loss { 0%, 12% { transform: translateX(0); filter: brightness(1); } 18% { transform: translateX(-7px); filter: brightness(1.7); } 26% { transform: translateX(7px); } 34% { transform: translateX(-5px); } 42% { transform: translateX(4px); } 50% { transform: translateX(0); background: linear-gradient(135deg, rgba(104, 20, 42, .95), rgba(55, 13, 33, .96)); } 100% { transform: translateX(0); filter: brightness(1); } }
@keyframes under-over-life-loss-mark { 0%, 10% { opacity: 0; transform: translate(-50%, -32%) scale(.3); } 26%, 63% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -72%) scale(.82); } }
@keyframes under-over-life-loss-lives { 0%, 18% { transform: scale(1); } 30%, 44% { transform: scale(1.25); filter: brightness(1.8); } 100% { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .under-over-player.is-losing-life, .under-over-player.is-losing-life::after, .under-over-player.is-losing-life .under-over-lives { animation-duration: .01ms; } }
.under-over-entry { padding: clamp(.75rem, 2vw, 1.2rem); border-top: 1px solid rgba(113, 207, 239, .36); background: #061a2b; }.under-over-entry > p { max-width: 40rem; margin: 0 auto .55rem; color: #a8ddef; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.under-over-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .48rem; width: min(100%, 40rem); margin: 0 auto; }.under-over-keypad button { min-height: clamp(3.2rem, 8vw, 4.5rem); border: 1px solid rgba(86, 190, 230, .58); border-radius: .48rem; color: #edfaff; background: linear-gradient(145deg, #0c3b58, #092a43); font: 850 clamp(1.25rem, 3vw, 1.75rem) / 1 "Space Grotesk", Arial, sans-serif; transition: transform .15s, border-color .15s, background .15s; }.under-over-keypad button:hover { border-color: #9be8ff; background: #105778; }.under-over-keypad button:active { transform: scale(.98); }.under-over-keypad .under-over-delete, .under-over-keypad .under-over-clear { color: #aeeaff; font-size: .74rem; }.under-over-keypad .under-over-clear { color: #ffbac0; }.under-over-keypad .under-over-enter { grid-column: 1 / -1; min-height: 3.55rem; border-color: #ffbc62; color: #fff8e8; background: linear-gradient(105deg, #b94c6c, #eb8b4c); font-size: clamp(.82rem, 1.8vw, 1rem); letter-spacing: .03em; }.under-over-keypad .under-over-enter:hover { border-color: #ffe0a3; background: linear-gradient(105deg, #d85c7d, #f79b57); }.under-over-keypad .under-over-enter span { margin-left: .35rem; font-size: 1.25em; }

@media (max-width: 640px) {
  .under-over-cut-throat { margin-left: auto; }.under-over-cut-throat b { font-size: .56rem; }.under-over-cut-throat small { font-size: .46rem; }
  .under-over-arena { padding: .65rem .55rem .75rem; }.under-over-thresholds { grid-template-columns: minmax(0, 1fr) minmax(7.5rem, .94fr) minmax(0, 1fr); gap: .35rem; }.under-over-threshold, .under-over-core { min-height: 7.45rem; }.under-over-threshold > span, .under-over-core > span { font-size: .45rem; letter-spacing: .07em; }.under-over-threshold strong { font-size: clamp(3.15rem, 16vw, 4.5rem); }.under-over-threshold small { font-size: .42rem; letter-spacing: .045em; }.under-over-core { gap: .32rem; padding: .5rem .25rem; }.under-over-core strong { font-size: clamp(2.9rem, 15vw, 4.25rem); }.under-over-core p { max-width: 8rem; font-size: .57rem; line-height: 1.1; }.under-over-status { margin-top: .52rem; padding: .48rem .55rem; font-size: .62rem; }.under-over-players-panel { margin-top: .62rem; }.under-over-players { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }.under-over-player { min-height: 6rem; padding: .4rem; }.under-over-player > p { font-size: .42rem; }.under-over-player h2 { font-size: .66rem; }.under-over-player > strong { font-size: 1rem; }.under-over-player > small { font-size: .39rem; }.under-over-lives i { font-size: .45rem; }.under-over-recent { gap: .1rem; }.under-over-recent span { min-width: 1rem; min-height: .92rem; padding: 0 .07rem; font-size: .45rem; }.under-over-entry { padding: .55rem; }.under-over-entry > p { margin-bottom: .42rem; padding-left: .1rem; }.under-over-keypad { gap: .38rem; }.under-over-keypad button { min-height: clamp(3.25rem, 9.5dvh, 4.55rem); font-size: clamp(1.45rem, 7vw, 2rem); }.under-over-keypad .under-over-delete, .under-over-keypad .under-over-clear { font-size: .67rem; }.under-over-keypad .under-over-enter { min-height: clamp(3.05rem, 8.4dvh, 4rem); }
}

/* Abschluss: alle X01-Aufnahmen samt Punkten und Restwerten einsehbar. */
.finish-dialog { max-height: calc(100dvh - 1rem); overflow: auto; overscroll-behavior: contain; }
.finish-summary-button { width: 100%; min-height: 2.7rem; margin: -.45rem 0 .7rem; border: 1px solid rgba(101, 204, 243, .66); border-radius: .52rem; color: #c9f3ff; background: linear-gradient(135deg, #0b4868, #0a2d49); font: 850 .72rem / 1 "Space Grotesk", Arial, sans-serif; }.finish-summary-button:hover { border-color: #a8edff; background: #0f5e82; }
.finish-leg-summary { display: grid; gap: .55rem; max-height: min(42dvh, 23rem); margin: 0 0 .85rem; padding: .65rem; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(91, 181, 222, .38); border-radius: .58rem; background: rgba(4, 22, 38, .74); text-align: left; }.finish-leg { overflow: hidden; border: 1px solid rgba(80, 155, 193, .36); border-radius: .42rem; background: #0a263c; }.finish-leg header { display: flex; align-items: center; justify-content: space-between; padding: .48rem .55rem; border-bottom: 1px solid rgba(81, 163, 203, .25); background: #0c3450; }.finish-leg header strong { color: #e7f9ff; font-size: .73rem; }.finish-leg header span { color: #8ec5df; font: 800 .52rem Consolas, monospace; }.finish-leg-columns, .finish-leg li { display: grid; grid-template-columns: minmax(0, 1fr) 3.15rem 2.65rem; gap: .35rem; align-items: center; }.finish-leg-columns { padding: .38rem .55rem; color: #7fa9c1; background: rgba(3, 18, 32, .62); font-size: .48rem; font-weight: 850; letter-spacing: .07em; }.finish-leg-columns span:nth-child(n + 2) { text-align: right; }.finish-leg ol { display: grid; margin: 0; padding: 0; list-style: none; }.finish-leg li { min-height: 2.1rem; padding: .35rem .55rem; border-top: 1px solid rgba(77, 133, 166, .2); color: #c5dfec; font-size: .63rem; }.finish-leg li > span { min-width: 0; overflow: hidden; }.finish-leg li b { display: block; overflow: hidden; color: #eaf9ff; text-overflow: ellipsis; white-space: nowrap; }.finish-leg li small { display: block; margin-top: .08rem; color: #ffabb3; font-size: .48rem; font-weight: 850; }.finish-leg li > strong, .finish-leg li > em { color: #eaffff; font: 850 .78rem / 1 Consolas, monospace; text-align: right; }.finish-leg li > em { color: #86e9d1; font-style: normal; }.finish-leg li.is-bust { background: rgba(92, 27, 42, .5); }.finish-leg li.is-bust > em { color: #ffd1d5; }.finish-summary-empty { margin: .2rem; color: #9fb7c8; font-size: .7rem; }
.finish-checkout-overview { overflow: hidden; border: 1px solid rgba(93, 224, 190, .55); border-radius: .46rem; background: linear-gradient(135deg, rgba(8, 65, 77, .82), rgba(7, 33, 54, .94)); }.finish-checkout-overview header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .42rem .55rem; border-bottom: 1px solid rgba(109, 231, 200, .23); }.finish-checkout-overview header span { color: #83f1d1; font-size: .55rem; font-weight: 900; letter-spacing: .09em; }.finish-checkout-overview header small { color: #a4d4df; font-size: .48rem; font-weight: 750; text-align: right; }.finish-checkout-overview ol { display: grid; margin: 0; padding: 0; list-style: none; }.finish-checkout-overview li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .48rem; align-items: center; min-height: 2rem; padding: .32rem .55rem; border-top: 1px solid rgba(105, 212, 209, .15); color: #e8fbff; font-size: .61rem; }.finish-checkout-overview li:first-child { border-top: 0; }.finish-checkout-overview li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.finish-checkout-overview li > strong, .finish-checkout-overview li > em { color: #edffff; font: 800 .63rem / 1 Consolas, monospace; white-space: nowrap; }.finish-checkout-overview li > strong b { color: #89f1d3; font-size: .84rem; }.finish-checkout-overview li > em { color: #b5ddf1; font-style: normal; }

@media (max-width: 640px) {
  .finish-dialog { width: min(100% - 1.1rem, 25rem); max-height: calc(100dvh - 1rem); padding: 1.2rem 1rem 1rem; }.finish-dialog h2 { font-size: 1.45rem; }.finish-dialog > p:not(.eyebrow) { margin-bottom: 1rem; }.finish-summary-button { min-height: 2.55rem; margin-bottom: .55rem; }.finish-leg-summary { max-height: 40dvh; padding: .45rem; gap: .4rem; }.finish-checkout-overview header { padding: .38rem .42rem; }.finish-checkout-overview header small { max-width: 9rem; font-size: .45rem; }.finish-checkout-overview li { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .4rem; min-height: 2.1rem; padding: .32rem .42rem; }.finish-checkout-overview li > em { grid-column: 2; }.finish-leg-columns, .finish-leg li { grid-template-columns: minmax(0, 1fr) 2.65rem 2.35rem; gap: .25rem; }.finish-leg-columns { padding: .34rem .42rem; }.finish-leg li { min-height: 1.95rem; padding: .32rem .42rem; }.finish-leg li > strong, .finish-leg li > em { font-size: .69rem; }
}

/* Tablet: die kompakte Eingabezeile liegt über Schnellwerten und Ziffernblock. */
@media (min-width: 641px) and (max-width: 1100px) {
  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .tablet-entry {
    grid-template-rows: clamp(3.65rem, 6.2dvh, 4.35rem) minmax(0, 1fr);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(3ch, auto) auto;
    gap: .6rem;
    align-items: center;
    height: 100%;
    padding: .55rem clamp(.8rem, 2.2vw, 1.2rem);
    border-bottom: 1px solid #2a425d;
    background: #051929;
    text-align: left;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .active-turn {
    min-width: 0;
    min-height: 0;
    justify-content: flex-end;
    gap: .65rem;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-display > p:first-child {
    font-size: clamp(1.05rem, 2.15vw, 1.4rem);
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .checkout-darts {
    gap: .38rem;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .checkout-dart {
    min-height: 2.8rem;
    gap: .18rem;
    padding: .24rem .48rem;
    border-radius: .34rem;
    font-size: .98rem;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .checkout-dart span[aria-hidden="true"] {
    font-size: 1.8rem;
    line-height: .75;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-display output {
    inline-size: 3ch;
    min-inline-size: 3ch;
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-display-actions {
    display: grid;
    min-height: 2.55rem;
    margin-left: .2rem;
    padding-left: .7rem;
    border-left: 1px solid rgba(91, 202, 244, .52);
    place-items: stretch;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-rest {
    min-width: 4.6rem;
    border: 1px solid rgba(121, 220, 255, .72);
    border-radius: .38rem;
    color: #d7f8ff;
    background: linear-gradient(135deg, #0d5274, #0a3754);
    font: 850 .84rem / 1 "Space Grotesk", Arial, sans-serif;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .mobile-score-entry-slot .score-rest:hover {
    border-color: #b7f4ff;
    background: #11698f;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .quick-score-panel {
    grid-column: 1;
    grid-row: 2;
    order: 0;
  }

  body.is-playing:not(.is-cricket):not(.is-routine):not(.is-hangman):not(.is-under-over) .score-keypad {
    grid-column: 2;
    grid-row: 2;
    order: 0;
  }
}
