.dtl-app {
  --dtl-bg: #eef4f7;
  --dtl-panel: #ffffff;
  --dtl-panel-2: #e7f0f5;
  --dtl-text: #102033;
  --dtl-muted: #607080;
  --dtl-line: rgba(16, 32, 51, 0.14);
  --dtl-accent: #f0b429;
  --dtl-danger: #d92754;
  --dtl-blue: #2f80d0;
  color: var(--dtl-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dtl-app *,
.dtl-app *::before,
.dtl-app *::after {
  box-sizing: border-box;
}

.dtl-language-switch {
  position: fixed;
  z-index: 9999;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #102033;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.12);
}

.dtl-language-switch select {
  min-height: 28px;
  border: 1px solid rgba(16, 32, 51, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #102033;
  font: inherit;
}

.dtl-tv-root {
  width: 100vw;
  min-height: 100vh;
  background: transparent;
}

.dtl-fullscreen,
.dtl-board {
  --dtl-bg: #07111f;
  --dtl-panel: #10243a;
  --dtl-panel-2: #17324d;
  --dtl-text: #f7f9f3;
  --dtl-muted: #b9c5cf;
  --dtl-line: rgba(255, 255, 255, 0.16);
  --dtl-accent: #ffd36a;
  --dtl-blue: #4595df;
}

.dtl-tv-overlay {
  position: fixed;
  left: clamp(12px, 3vw, 54px);
  right: clamp(12px, 3vw, 54px);
  bottom: clamp(12px, 4vh, 46px);
  display: grid;
  gap: 6px;
  color: #f7f9f3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.dtl-tv-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.dtl-tv-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 14px 18px;
  border-left: 5px solid transparent;
}

.dtl-tv-player:last-child {
  border-right: 5px solid transparent;
  border-left: 0;
}

.dtl-tv-player.is-active {
  border-color: var(--dtl-accent);
  background: rgba(255, 211, 106, 0.12);
}

.dtl-tv-player span {
  overflow: hidden;
  font-size: clamp(1.25rem, 3vw, 2.4rem);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dtl-tv-player strong {
  min-width: 98px;
  color: var(--dtl-accent);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.9;
  text-align: right;
}

.dtl-tv-middle {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: clamp(120px, 18vw, 260px);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #07111f;
  text-shadow: none;
}

.dtl-tv-middle strong {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.dtl-tv-middle span,
.dtl-tv-meta {
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dtl-tv-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dtl-tv-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.82);
}

.dtl-tv-empty {
  position: static;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #07111f;
}

.dtl-tv-empty form {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-tv-empty input,
.dtl-tv-empty button {
  min-height: 42px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  font: inherit;
}

.dtl-tv-empty input {
  padding: 8px 10px;
  background: #f7f9f3;
  color: #07111f;
  -webkit-text-fill-color: #07111f;
  caret-color: #07111f;
  color-scheme: light;
}

.dtl-tv-empty button {
  background: var(--dtl-accent);
  color: #07111f;
  font-weight: 950;
}

.dtl-page {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-bg);
}

.dtl-standalone-admin {
  min-height: 100vh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--dtl-bg);
}

.dtl-tournament-workspace {
  min-height: calc(100vh - 24px);
}

.dtl-link-button {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dtl-accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.dtl-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.dtl-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dtl-muted);
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.dtl-tabs button.is-active {
  border-color: rgba(255, 211, 106, 0.55);
  background: rgba(255, 211, 106, 0.14);
  color: var(--dtl-text);
}

.dtl-head,
.dtl-actions,
.dtl-match-link,
.dtl-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dtl-head h2,
.dtl-panel h3,
.dtl-board h2,
.dtl-board h3 {
  margin: 0;
  line-height: 1.1;
}

.dtl-head p,
.dtl-muted,
.dtl-row-button span,
.dtl-compact-list span,
.dtl-match-link span,
.dtl-result-row span {
  color: var(--dtl-muted);
}

.dtl-grid {
  display: grid;
  gap: 14px;
}

.dtl-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dtl-gap-top {
  margin-top: 6px;
}

.dtl-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dtl-stat-row > div {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-stat-row span {
  color: var(--dtl-muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dtl-stat-row strong {
  font-size: 1.8rem;
  line-height: 1;
}

.dtl-next-match {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dtl-next-match div {
  display: grid;
  gap: 3px;
}

.dtl-next-match span,
.dtl-next-match small {
  color: var(--dtl-muted);
}

.dtl-next-match strong {
  font-size: 1.25rem;
}

.dtl-panel label {
  display: grid;
  gap: 6px;
  color: var(--dtl-muted);
  font-weight: 750;
}

.dtl-panel input,
.dtl-panel select,
.dtl-panel textarea,
.dtl-board-empty input,
.dtl-board-empty select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  background: #ffffff;
  color: #102033;
  font: inherit;
  -webkit-text-fill-color: #102033;
  caret-color: #102033;
  color-scheme: light;
}

.dtl-panel option,
.dtl-board-empty option {
  color: #102033;
  background: #ffffff;
}

.dtl-panel input::placeholder,
.dtl-panel textarea::placeholder,
.dtl-board-empty input::placeholder {
  color: #66758a;
  -webkit-text-fill-color: #66758a;
  opacity: 1;
}

.dtl-panel textarea {
  min-height: 96px;
  resize: vertical;
}

.dtl-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dtl-form-row-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dtl-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dtl-member-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel-2);
}

.dtl-member-card strong {
  color: var(--dtl-text);
}

.dtl-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dtl-check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dtl-text);
  font-weight: 850;
}

.dtl-check-row input {
  width: auto;
  min-height: 0;
}

.dtl-button,
.dtl-row-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--dtl-line);
  border-radius: 7px;
  background: var(--dtl-panel-2);
  color: var(--dtl-text);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.dtl-button:hover,
.dtl-row-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.dtl-primary {
  background: var(--dtl-accent);
  color: #07111f;
  border-color: transparent;
}

.dtl-danger {
  background: var(--dtl-danger);
  color: white;
  border-color: transparent;
}

.dtl-small {
  min-height: 34px;
  padding: 6px 10px;
}

.dtl-list,
.dtl-compact-list,
.dtl-fixture-list {
  display: grid;
  gap: 8px;
}

.dtl-lane-links,
.dtl-pool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dtl-pool-card {
  display: grid;
  gap: 5px;
  min-width: min(220px, 100%);
  flex: 1;
  padding: 11px;
  border: 1px solid var(--dtl-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.dtl-pool-card span {
  color: var(--dtl-muted);
  font-size: 0.92rem;
}

.dtl-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dtl-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dtl-accent);
}

.dtl-row-button {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
}

.dtl-compact-list > div,
.dtl-match-link,
.dtl-result-row {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--dtl-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.dtl-manual-result {
  display: grid;
  grid-template-columns: 54px auto 54px auto;
  gap: 5px;
  align-items: center;
}

.dtl-schedule-match {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(96px, 0.7fr) minmax(70px, 0.6fr) auto;
  gap: 5px;
  align-items: center;
}

.dtl-manual-result input,
.dtl-manual-result select,
.dtl-schedule-match input {
  min-height: 34px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  background: #f7f9f3;
  color: #07111f;
  -webkit-text-fill-color: #07111f;
  caret-color: #07111f;
  color-scheme: light;
}

.dtl-player-login {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.dtl-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dtl-section-head h3 {
  margin: 0;
}

.dtl-section-head span {
  color: var(--dtl-muted);
  font-weight: 800;
  font-size: 0.84rem;
}

.dtl-player-messages {
  display: grid;
  gap: 8px;
}

.dtl-player-message {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--dtl-line);
  border-left: 5px solid var(--dtl-accent);
  border-radius: 8px;
  background: var(--dtl-panel-2);
}

.dtl-player-message strong {
  color: var(--dtl-text);
}

.dtl-player-message span {
  color: var(--dtl-muted);
}

.dtl-player-message-match_due,
.dtl-player-message-marker {
  border-left-color: var(--dtl-danger);
}

.dtl-bracket {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dtl-bracket-tree {
  align-items: stretch;
  padding: 8px 2px 10px;
}

.dtl-bracket-round {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 220px;
  position: relative;
}

.dtl-bracket-round:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -10px;
  bottom: 14px;
  width: 1px;
  background: var(--dtl-line);
}

.dtl-bracket-match {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--dtl-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dtl-text);
  font: inherit;
  text-align: left;
  position: relative;
}

.dtl-bracket-round:not(:last-child) .dtl-bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 18px;
  height: 1px;
  background: var(--dtl-line);
}

.dtl-bracket-match.is-ready {
  border-color: rgba(75, 194, 156, 0.7);
  background: rgba(75, 194, 156, 0.1);
}

.dtl-bracket-match.is-finished {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.1);
}

.dtl-bracket-match.is-waiting {
  opacity: 0.76;
}

.dtl-bracket-match span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.dtl-bracket-match small {
  color: var(--dtl-muted);
}

button.dtl-result-row {
  width: 100%;
  color: var(--dtl-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.dtl-result-row:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.dtl-result-tools {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-result-tabs {
  margin: 12px 0;
}

.dtl-panel summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.dtl-result-tools label {
  display: grid;
  gap: 5px;
  color: var(--dtl-muted);
  font-weight: 850;
}

.dtl-result-tools select,
.dtl-result-tools input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  background: #f7f9f3;
  color: #07111f;
  -webkit-text-fill-color: #07111f;
  caret-color: #07111f;
  color-scheme: light;
  font: inherit;
}

.dtl-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dtl-recap-grid > div,
.dtl-recap-history {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--dtl-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.dtl-recap-grid span,
.dtl-recap-history span {
  color: var(--dtl-muted);
}

.dtl-leg-recap {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
}

.dtl-leg-recap > div {
  display: grid;
  gap: 5px;
}

.dtl-compact-list > div {
  display: grid;
  gap: 3px;
}

.dtl-participant-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dtl-participant-row.is-withdrawn {
  opacity: 0.58;
}

.dtl-standings {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) repeat(5, minmax(42px, auto));
  gap: 6px 8px;
  align-items: center;
}

.dtl-standings > span:nth-child(-n + 6) {
  color: var(--dtl-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dtl-error {
  margin: 0;
  color: #ff9aad;
  font-weight: 850;
}

.dtl-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-weight: 850;
}

.dtl-fullscreen {
  min-height: 100dvh;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.dtl-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(1120px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--dtl-bg);
  color: var(--dtl-text);
  touch-action: manipulation;
}

.dtl-board.is-finished {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.dtl-board-empty {
  place-items: center;
  padding: 18px;
}

.dtl-board-empty form {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-board-brand {
  display: block;
  width: min(300px, 82%);
  height: auto;
  justify-self: center;
  margin: 0 auto 4px;
}

.dtl-board-empty label {
  display: grid;
  gap: 6px;
  color: var(--dtl-muted);
  font-weight: 750;
}

.dtl-lane-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 28, 48, 0.92);
}

.dtl-lane-switch label {
  display: grid;
  gap: 4px;
  color: #d4deea;
  font-size: 0.78rem;
  font-weight: 850;
}

.dtl-lane-switch input {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  background: #ffffff;
  color: #102033;
  -webkit-text-fill-color: #102033;
  caret-color: #102033;
  font: inherit;
  font-weight: 850;
  color-scheme: light;
}

.dtl-lane-switch input::placeholder {
  color: #66758a;
  -webkit-text-fill-color: #66758a;
  opacity: 1;
}

.dtl-lane-switch .dtl-button {
  min-height: 38px;
  white-space: nowrap;
}

.dtl-board-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dtl-muted);
  font-weight: 750;
  font-size: 0.9rem;
}

.dtl-board-divider::before,
.dtl-board-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--dtl-line);
}

.dtl-lane-panel {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-board-brand-compact {
  width: min(250px, 58vw);
  margin-bottom: 2px;
}

.dtl-board-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(62px, 10dvh, 94px);
  background: #0d253f;
}

.dtl-board-top > div {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 3.2vw, 2rem);
  font-weight: 950;
}

.dtl-board-top > div:nth-child(2) {
  gap: 2px;
}

.dtl-board-top-brand {
  display: block;
  width: min(130px, 24vw);
  height: auto;
  margin: 0 auto 1px;
}

.dtl-board-top strong {
  font-size: clamp(1.7rem, 6vw, 4rem);
  line-height: 0.9;
}

.dtl-board-top span {
  color: var(--dtl-muted);
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
}

.dtl-board-top small {
  display: block;
  margin-top: 1px;
  color: var(--dtl-muted);
  font-size: clamp(0.68rem, 1.55dvh, 0.82rem);
  font-weight: 850;
}

.dtl-board-top .is-active {
  background: #f7f9f3;
  color: #07111f;
}

.dtl-finished-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffd166;
  color: #07111f;
}

.dtl-finished-banner > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dtl-finished-banner span {
  text-transform: uppercase;
  font-size: clamp(0.74rem, 1.7dvh, 0.95rem);
  font-weight: 950;
}

.dtl-finished-banner strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 3.2dvh, 2rem);
  line-height: 1;
  font-weight: 950;
}

.dtl-finished-banner small {
  color: #28435a;
  font-weight: 850;
}

.dtl-rest-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(130px, 30dvh, 300px);
}

.dtl-rest {
  border: 0;
  border-right: 1px solid var(--dtl-line);
  background: var(--dtl-panel);
  color: var(--dtl-text);
  font-size: clamp(5rem, 20dvh, 13rem);
  line-height: 0.9;
  font-weight: 950;
}

.dtl-rest:last-child {
  border-right: 0;
}

.dtl-rest.is-active {
  background: #f7f9f3;
  color: #07111f;
}

.dtl-x01-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(280px, 1.4fr) minmax(150px, 0.8fr);
  gap: 8px;
  min-height: 0;
  padding: 8px;
}

.dtl-x01-center {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.dtl-round-box {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: clamp(48px, 8dvh, 72px);
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: #0d253f;
}

.dtl-round-box span,
.dtl-round-box small {
  color: var(--dtl-muted);
  font-weight: 850;
}

.dtl-round-box strong {
  font-size: clamp(1.7rem, 5.8dvh, 3.2rem);
  line-height: 0.9;
}

.dtl-rest-compact {
  min-height: clamp(112px, 22dvh, 190px);
}

.dtl-rest-compact .dtl-rest {
  font-size: clamp(3.5rem, 13.5dvh, 7.8rem);
}

.dtl-score-rail {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dtl-panel);
}

.dtl-score-rail > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.dtl-score-rail span {
  display: block;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 5px;
  background: #eef4ff;
  color: #07111f;
  text-align: center;
  font-weight: 900;
}

.dtl-score-rail button {
  display: block;
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: #eef4ff;
  color: #07111f;
  text-align: center;
  font: inherit;
  font-weight: 900;
}

.dtl-score-rail button:focus-visible {
  outline: 3px solid var(--dtl-accent);
  outline-offset: 2px;
}

.dtl-viewer-board {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dtl-entry-strip {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr;
  gap: 8px;
  min-height: clamp(74px, 13dvh, 128px);
  padding: 10px;
  background: #eef4ff;
  color: #07111f;
}

.dtl-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  background: #0b1d30;
}

.dtl-match-meta span {
  padding: 4px 8px;
  border: 1px solid var(--dtl-line);
  border-radius: 999px;
  color: var(--dtl-muted);
  font-size: clamp(0.74rem, 1.8dvh, 0.95rem);
  font-weight: 850;
}

.dtl-entry-strip > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.dtl-entry-strip span {
  color: #55636d;
  font-weight: 850;
}

.dtl-entry-strip strong {
  font-size: clamp(2.4rem, 9dvh, 4.8rem);
  line-height: 0.9;
}

.dtl-score-input-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.32fr);
  gap: 8px;
  padding: 8px;
  background: #07111f;
}

.dtl-score-input-bar > div,
.dtl-score-input-bar button {
  min-height: clamp(48px, 8dvh, 74px);
  border: 1px solid #244766;
  border-radius: 6px;
}

.dtl-score-input-bar > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  background: #eef4ff;
  color: #07111f;
}

.dtl-score-input-bar span {
  color: #55636d;
  font-weight: 850;
}

.dtl-score-input-bar strong {
  justify-self: end;
  font-size: clamp(2rem, 6.5dvh, 4rem);
  line-height: 0.9;
}

.dtl-score-input-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dtl-blue);
  color: #ffffff;
  font: inherit;
  font-size: clamp(1.25rem, 4.2dvh, 2.25rem);
  font-weight: 950;
}

.dtl-mini-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.dtl-mini-history span {
  min-height: 30px;
  padding: 5px;
  border-radius: 5px;
  background: #dbe9f7;
  color: #07111f;
  text-align: center;
}

.dtl-keypad,
.dtl-skov-pad {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  padding: 8px;
  background: #07111f;
}

.dtl-keypad button,
.dtl-skov-pad button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(46px, 9dvh, 86px);
  padding: 0;
  border: 1px solid #244766;
  border-radius: 6px;
  background: #f7f9f3;
  color: #07111f;
  font-size: clamp(1.6rem, 5dvh, 3.8rem);
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
}

.dtl-board button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dtl-board button > * {
  pointer-events: none;
}

.dtl-keypad .dtl-quick {
  background: #030b13;
  color: #f7f9f3;
}

.dtl-keypad .dtl-blue,
.dtl-skov-pad .dtl-blue {
  background: var(--dtl-blue);
  color: white;
}

.dtl-keypad .dtl-danger {
  background: var(--dtl-danger);
  color: white;
}

.dtl-keypad-mobile {
  display: none;
}

.dtl-starter-panel {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-starter-panel h2 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 5dvh, 3rem);
}

.dtl-starter-panel p {
  margin: 0;
  color: var(--dtl-muted);
  font-weight: 800;
}

.dtl-starter-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dtl-starter-choices button {
  min-height: clamp(90px, 22dvh, 180px);
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: #f7f9f3;
  color: #07111f;
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, 5dvh, 3rem);
  font-weight: 950;
}

.dtl-starter-choices.is-viewer button {
  opacity: 0.65;
}

.dtl-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 10, 18, 0.76);
}

.dtl-modal > div {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel);
}

.dtl-recap-modal {
  align-items: start;
  overflow-y: auto;
}

.dtl-modal > .dtl-recap-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
}

.dtl-modal-close {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dtl-line);
  border-radius: 8px;
  background: var(--dtl-panel-2);
  color: var(--dtl-text);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.dtl-checkout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dtl-checkout button {
  min-height: 82px;
  border-radius: 7px;
  background: #f7f9f3;
  color: #07111f;
  font-size: 2.6rem;
  font-weight: 950;
}

.dtl-game-board {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.dtl-mickey-board {
  grid-template-rows: auto auto minmax(0, auto) auto auto;
}

.dtl-game-status {
  padding: 10px 14px;
  background: #f7f9f3;
  color: #07111f;
  font-size: clamp(1rem, 2.8dvh, 1.6rem);
  font-weight: 950;
}

.dtl-mickey-grid {
  display: grid;
  grid-template-columns: clamp(58px, 12vw, 96px) repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.dtl-mickey-grid strong,
.dtl-mickey-grid div,
.dtl-mickey-grid button {
  display: grid;
  place-items: center;
  min-height: clamp(36px, 6.7dvh, 62px);
  border-radius: 6px;
  text-align: center;
}

.dtl-mickey-grid button {
  border: 1px solid var(--dtl-line);
  background: #f7f9f3;
  color: #07111f;
  font-size: clamp(1.2rem, 4dvh, 2rem);
  font-weight: 950;
}

.dtl-mickey-grid div {
  border: 1px solid var(--dtl-line);
  background: var(--dtl-panel);
  color: var(--dtl-text);
  font-size: clamp(1.5rem, 5dvh, 2.7rem);
  font-weight: 950;
}

.dtl-mickey-tools {
  display: grid;
  gap: 6px;
  padding: 0 10px 8px;
  color: var(--dtl-muted);
  font-weight: 800;
}

.dtl-mickey-board .dtl-board-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dtl-mickey-current {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dtl-mickey-current b {
  padding: 5px 8px;
  border: 1px solid var(--dtl-line);
  border-radius: 6px;
  background: var(--dtl-panel-2);
  color: var(--dtl-text);
}

.dtl-board-actions {
  padding: 8px 10px 10px;
}

.dtl-skov-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dtl-skov-score > div {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: clamp(82px, 18dvh, 170px);
  padding: 10px;
  background: var(--dtl-panel);
  text-align: center;
}

.dtl-skov-score > div.is-active {
  background: #f7f9f3;
  color: #07111f;
}

.dtl-skov-score strong {
  font-size: clamp(3rem, 11dvh, 7rem);
  line-height: 0.9;
}

.dtl-skov-target {
  display: grid;
  place-items: center;
  min-height: clamp(70px, 14dvh, 130px);
  background: #f7f9f3;
  color: #07111f;
}

.dtl-skov-target span,
.dtl-skov-input span {
  color: #55636d;
  font-weight: 850;
}

.dtl-skov-target strong {
  font-size: clamp(2.8rem, 11dvh, 6.4rem);
  line-height: 0.9;
}

.dtl-skov-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: clamp(56px, 10dvh, 86px);
  padding: 8px 14px;
  background: #eef4ff;
  color: #07111f;
}

.dtl-skov-input strong {
  font-size: clamp(2rem, 7dvh, 4rem);
  line-height: 0.9;
}

.dtl-skov-pad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dtl-skov-seq {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 10px 10px;
}

.dtl-skov-seq span {
  min-width: 38px;
  padding: 5px 8px;
  border: 1px solid var(--dtl-line);
  border-radius: 999px;
  text-align: center;
  color: var(--dtl-muted);
  font-weight: 850;
}

.dtl-skov-seq span.is-active {
  background: var(--dtl-accent);
  color: #07111f;
  border-color: transparent;
}

.dtl-skov-seq span.is-done {
  background: #1d5b8e;
  color: white;
}

@media (max-width: 780px) {
  .dtl-two,
  .dtl-form-row,
  .dtl-result-tools,
  .dtl-recap-grid {
    grid-template-columns: 1fr;
  }

  .dtl-head,
  .dtl-actions,
  .dtl-match-link,
  .dtl-result-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dtl-keypad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dtl-keypad-full {
    display: none;
  }

  .dtl-keypad-mobile {
    display: grid;
  }

  .dtl-board-top {
    grid-template-columns: 1fr auto 1fr;
    min-height: clamp(54px, 9dvh, 74px);
  }

  .dtl-board-top > div {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
  }

  .dtl-board-top strong {
    font-size: clamp(1.45rem, 7vw, 2.5rem);
  }

  .dtl-board-top-brand {
    width: min(92px, 24vw);
  }

  .dtl-board-top small {
    font-size: clamp(0.62rem, 2.45vw, 0.78rem);
  }

  .dtl-finished-banner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 9px;
  }

  .dtl-finished-banner strong {
    font-size: 1rem;
  }

  .dtl-finished-banner small {
    display: none;
  }

  .dtl-finished-banner .dtl-button {
    min-height: 34px;
    justify-self: stretch;
  }

  .dtl-x01-layout {
    grid-template-columns: 0.78fr 0.78fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .dtl-x01-center {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .dtl-rest-compact {
    min-height: clamp(82px, 17dvh, 130px);
  }

  .dtl-rest-compact .dtl-rest {
    font-size: clamp(2.9rem, 12dvh, 5.8rem);
  }

  .dtl-score-rail > div {
    padding: 5px;
  }

  .dtl-score-rail span {
    min-height: 28px;
    padding: 3px 5px;
  }

  .dtl-entry-strip {
    display: none;
  }

  .dtl-score-input-bar {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.36fr);
    gap: 5px;
    padding: 5px;
  }

  .dtl-score-input-bar > div,
  .dtl-score-input-bar button {
    min-height: clamp(42px, 7.6dvh, 58px);
  }

  .dtl-keypad button,
  .dtl-skov-pad button {
    min-height: clamp(44px, 8.2dvh, 64px);
    font-size: clamp(1.45rem, 5.6dvh, 2.8rem);
  }

  .dtl-mickey-board .dtl-game-status {
    padding: 7px 10px;
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

  .dtl-mickey-grid {
    grid-template-columns: clamp(46px, 15vw, 66px) repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 7px 8px;
  }

  .dtl-mickey-grid strong,
  .dtl-mickey-grid div,
  .dtl-mickey-grid button {
    min-height: clamp(36px, 5.2dvh, 48px);
    border-radius: 5px;
  }

  .dtl-mickey-grid button {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .dtl-mickey-grid div {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }

  .dtl-mickey-tools {
    gap: 5px;
    padding: 0 8px 7px;
    font-size: 0.88rem;
  }

  .dtl-mickey-current b {
    padding: 4px 7px;
  }

  .dtl-mickey-board .dtl-board-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 8px 8px;
  }

  .dtl-mickey-board .dtl-board-actions .dtl-button {
    min-height: 44px;
  }

  .dtl-starter-choices {
    grid-template-columns: 1fr;
  }

  .dtl-manual-result {
    grid-template-columns: 1fr auto 1fr;
  }

  .dtl-schedule-match,
  .dtl-player-login {
    grid-template-columns: 1fr;
  }

  .dtl-manual-result select,
  .dtl-manual-result button {
    grid-column: 1 / -1;
  }
}

@media (max-height: 680px) {
  .dtl-board {
    width: 100%;
  }

  .dtl-rest-row {
    min-height: 26dvh;
  }

  .dtl-entry-strip {
    min-height: 12dvh;
  }

  .dtl-board-top {
    min-height: 8dvh;
  }

  .dtl-x01-layout {
    gap: 5px;
    padding: 5px;
  }

  .dtl-rest-compact {
    min-height: 16dvh;
  }

  .dtl-rest-compact .dtl-rest {
    font-size: clamp(2.8rem, 11dvh, 5.8rem);
  }

  .dtl-keypad button,
  .dtl-skov-pad button {
    min-height: 7.6dvh;
  }

  .dtl-skov-seq {
    display: none;
  }
}

@media (max-width: 760px) {
  .dtl-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dtl-member-grid {
    grid-template-columns: 1fr;
  }

  .dtl-next-match {
    grid-template-columns: 1fr;
  }
}
