body[data-page="tictac-darts"] main {
  max-width:1320px;
}

body[data-page="tictac-darts"] .page-content {
  padding:0;
  overflow:hidden;
  border-radius:8px;
  background:#101820;
  color:#eef6f8;
}

.tictac-app {
  min-height:720px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, .16), transparent 36%),
    linear-gradient(180deg, #15212b 0%, #0e171f 100%);
}

.tictac-hero {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:1.25rem;
  border-bottom:1px solid rgba(255, 255, 255, .12);
}

body[data-page="tictac-darts"] .tictac-kicker {
  margin:0 0 .35rem;
  color:#67d7b5;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0;
}

body[data-page="tictac-darts"] .tictac-hero h1#page-title {
  margin:0;
  color:#f7fbff;
  font-size:clamp(1.8rem, 4vw, 3.25rem);
  letter-spacing:0;
  text-shadow:0 2px 18px rgba(0, 0, 0, .32);
}

body[data-page="tictac-darts"] .tictac-intro {
  max-width:68ch;
  margin:.6rem 0 0;
  color:#eef6f8;
}

.tictac-live {
  flex:0 1 440px;
  min-width:280px;
  max-width:min(100%, 440px);
  padding:.9rem 1rem;
  border:2px solid rgba(103, 215, 181, .82);
  border-radius:8px;
  background:rgba(6, 14, 20, .72);
  text-align:right;
  box-shadow:0 0 0 4px rgba(103, 215, 181, .12), 0 14px 34px rgba(0, 0, 0, .24);
}

.tictac-live span,
.tictac-status-grid span {
  display:block;
  color:#d7e6ee;
  font-size:.88rem;
  overflow-wrap:anywhere;
}

.tictac-live span {
  color:#fff;
  font-weight:800;
}

.tictac-live strong {
  display:block;
  color:#67d7b5;
  font-size:1.05rem;
  line-height:1.25;
  margin-top:.35rem;
  overflow-wrap:anywhere;
}

.tictac-dart-progress {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:.35rem;
  margin-top:.75rem;
}

.tictac-dart-progress span {
  display:block;
  height:9px;
  border:1px solid rgba(255, 255, 255, .22);
  border-radius:999px;
  background:rgba(255, 255, 255, .08);
}

.tictac-dart-progress span.is-used {
  border-color:#657380;
  background:#657380;
}

.tictac-dart-progress span.is-next {
  border-color:#67d7b5;
  background:#67d7b5;
  box-shadow:0 0 0 3px rgba(103, 215, 181, .14);
}

.tictac-start,
.tictac-game {
  padding:1.25rem;
}

.tictac-start-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:1rem;
  align-items:end;
}

.tictac-start label,
.tictac-start fieldset {
  display:block;
  min-width:0;
  margin:0;
  color:#e7f0f5;
  font-weight:700;
}

.tictac-start fieldset {
  padding:.85rem;
  border:1px solid rgba(255, 255, 255, .18);
  border-radius:8px;
}

.tictac-start legend {
  padding:0 .35rem;
  color:#c5d5df;
  font-size:.95rem;
}

.tictac-choice {
  display:flex !important;
  align-items:center;
  gap:.45rem;
  margin:.25rem 0;
  font-weight:650 !important;
}

.tictac-start input[type="text"],
.tictac-start select {
  width:100%;
  min-height:48px;
  margin-top:.45rem;
  padding:.7rem .8rem;
  border:1px solid rgba(255, 255, 255, .22);
  border-radius:8px;
  background:#f7fbff;
  color:#10202d;
}

.tictac-start input:disabled {
  border-color:rgba(103, 215, 181, .45);
  background:#dce9ef;
  color:#10202d;
  cursor:not-allowed;
}

.tictac-primary,
.tictac-actions button,
.tictac-throw button,
.tictac-dialog-actions button {
  min-height:48px;
  border:1px solid rgba(255, 255, 255, .18);
  border-radius:8px;
  background:#0a84ff;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.tictac-primary {
  width:100%;
  margin-top:1rem;
  font-size:1.2rem;
}

.tictac-primary:hover,
.tictac-primary:focus,
.tictac-actions button:hover,
.tictac-actions button:focus,
.tictac-throw button:hover,
.tictac-throw button:focus,
.tictac-dialog-actions button:hover,
.tictac-dialog-actions button:focus {
  background:#006fe0;
}

.tictac-status-grid {
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:.75rem;
  margin-bottom:1rem;
}

.tictac-match-grid {
  grid-template-columns:repeat(5, minmax(0, 1fr));
}

.tictac-status-grid div {
  min-width:0;
  padding:.8rem;
  border:1px solid rgba(255, 255, 255, .2);
  border-radius:8px;
  background:rgba(255, 255, 255, .06);
}

.tictac-status-grid .tictac-player-card {
  border-width:2px;
}

.tictac-status-grid .tictac-player-card.is-current {
  box-shadow:0 0 0 4px rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .18);
  transform:translateY(-1px);
}

.tictac-status-grid .tictac-player-one {
  border-color:#55a6ff;
  background:rgba(10, 132, 255, .14);
}

.tictac-status-grid .tictac-player-two {
  border-color:#ffb84d;
  background:rgba(255, 184, 77, .13);
}

.tictac-status-grid strong {
  display:block;
  overflow-wrap:anywhere;
  color:#fff;
  font-size:1.15rem;
}

.tictac-status-grid .tictac-match-scoreboard {
  grid-column:1 / -1;
  padding:0;
  overflow:hidden;
  border-color:rgba(103, 215, 181, .34);
  background:rgba(4, 10, 16, .58);
}

.tictac-match-scoreboard .tictac-score-row {
  display:grid;
  grid-template-columns:minmax(170px, 1fr) repeat(3, minmax(84px, .18fr));
  align-items:center;
  gap:.75rem;
  padding:.75rem .9rem;
  border:0;
  border-radius:0;
  background:transparent;
}

.tictac-match-scoreboard.is-first-to .tictac-score-row {
  grid-template-columns:minmax(170px, 1fr) repeat(2, minmax(84px, .18fr));
}

.tictac-match-scoreboard .tictac-score-row + .tictac-score-row {
  border-top:1px solid rgba(255, 255, 255, .14);
}

.tictac-match-scoreboard .tictac-score-head {
  min-height:0;
  padding:.55rem .9rem;
  background:rgba(255, 255, 255, .07);
  color:#b9cbd6;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0;
}

.tictac-match-scoreboard .tictac-score-row strong {
  display:block;
  color:#fff;
  font-size:1.05rem;
  line-height:1.2;
}

.tictac-match-scoreboard .tictac-score-row span {
  display:block;
  color:#d7e6ee;
  text-align:center;
}

.tictac-match-scoreboard .tictac-score-row b {
  display:block;
  color:#fff;
  font-size:1.55rem;
  line-height:1;
}

.tictac-match-scoreboard .tictac-score-row small {
  display:block;
  margin-top:.18rem;
  color:#a9bbc7;
  font-size:.76rem;
  font-weight:700;
}

.tictac-match-scoreboard .tictac-score-row.is-current {
  box-shadow:inset 4px 0 0 #67d7b5;
  background:rgba(103, 215, 181, .08);
}

.tictac-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 190px;
  gap:1rem;
  align-items:start;
}

.tictac-board-wrap,
.tictac-controls,
.tictac-throws > div {
  border:1px solid rgba(255, 255, 255, .2);
  border-radius:8px;
  background:rgba(4, 10, 16, .58);
}

.tictac-board-wrap {
  overflow:auto;
}

.tictac-board {
  min-width:820px;
}

.tictac-row {
  display:grid;
  grid-template-columns:minmax(330px, 1fr) minmax(210px, 240px) minmax(270px, .9fr);
  align-items:center;
  min-height:76px;
  border-bottom:1px solid rgba(255, 255, 255, .16);
}

.tictac-row.has-player-one-bonus {
  background:linear-gradient(90deg, rgba(10, 132, 255, .13), transparent 46%);
}

.tictac-row.has-player-two-bonus {
  background:linear-gradient(270deg, rgba(255, 184, 77, .16), transparent 46%);
}

.tictac-row.is-complete {
  background:rgba(255, 77, 93, .055);
}

.tictac-row:last-child {
  border-bottom:0;
}

.tictac-row.tictac-head {
  min-height:78px;
  background:#172633;
  color:#eef6f8;
  font-weight:900;
  text-transform:uppercase;
}

.tictac-cell {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.55rem;
}

.tictac-player-head {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:.85rem;
  justify-content:stretch;
  padding:.8rem 1rem;
}

.tictac-mark-stack {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  position:relative;
  padding:.08rem .12rem;
}

.tictac-cell.is-closed .tictac-mark-stack::after {
  content:'';
  position:absolute;
  left:-.22rem;
  right:-.22rem;
  top:50%;
  height:4px;
  border-radius:999px;
  background:#ff4d5d;
  box-shadow:0 0 0 2px rgba(14, 23, 31, .86), 0 0 12px rgba(255, 77, 93, .42);
  transform:translateY(-50%);
  pointer-events:none;
}

.tictac-number {
  color:#fff;
  font-size:1.35rem;
  font-weight:950;
}

.tictac-number-cell {
  flex-direction:column;
  gap:.45rem;
  background:rgba(255, 255, 255, .045);
}

.tictac-number-cell.is-complete .tictac-number {
  position:relative;
  color:#ffb3ba;
}

.tictac-number-cell.is-complete .tictac-number::before,
.tictac-number-cell.is-complete .tictac-number::after {
  content:'';
  position:absolute;
  left:-.45rem;
  right:-.45rem;
  top:50%;
  height:4px;
  border-radius:999px;
  background:#ff4d5d;
  box-shadow:0 0 0 2px rgba(14, 23, 31, .86);
}

.tictac-number-cell.is-complete .tictac-number::before {
  transform:translateY(-50%) rotate(28deg);
}

.tictac-number-cell.is-complete .tictac-number::after {
  transform:translateY(-50%) rotate(-28deg);
}

.tictac-player-name {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  min-width:0;
  min-height:38px;
  padding:.32rem .82rem;
  border:2px solid transparent;
  border-radius:999px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  justify-self:start;
  line-height:1.1;
  font-size:clamp(.78rem, 1.05vw, 1rem);
}

.tictac-player-name.is-current {
  border-color:#fff;
  background:rgba(255, 255, 255, .18);
  box-shadow:0 0 0 5px rgba(255, 255, 255, .16), 0 0 28px rgba(103, 215, 181, .22);
}

.tictac-player-head:has(.tictac-player-name.is-current) {
  background:rgba(103, 215, 181, .08);
  box-shadow:inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.tictac-app:fullscreen {
  width:100vw;
  height:100vh;
  min-height:100vh;
  overflow:hidden;
  background:#0e171f;
}

.tictac-app.is-fullscreen {
  height:100vh;
  min-height:100vh;
  overflow:hidden;
}

.tictac-app.is-fullscreen .tictac-hero {
  min-height:58px;
  padding:.35rem .65rem;
}

.tictac-app.is-fullscreen .tictac-kicker,
.tictac-app.is-fullscreen .tictac-intro,
.tictac-app.is-fullscreen .tictac-seo-text {
  display:none;
}

body[data-page="tictac-darts"] .tictac-app.is-fullscreen .tictac-hero h1#page-title {
  font-size:clamp(1.05rem, 1.8vw, 1.55rem);
}

.tictac-app.is-fullscreen .tictac-live {
  padding:.4rem .65rem;
}

.tictac-app.is-fullscreen .tictac-dart-progress {
  margin-top:.35rem;
}

.tictac-app.is-fullscreen .tictac-game {
  height:calc(100vh - 58px);
  padding:.35rem;
  overflow:hidden;
}

.tictac-app.is-fullscreen .tictac-status-grid {
  display:none;
}

.tictac-app.is-fullscreen .tictac-layout {
  height:100%;
  grid-template-columns:minmax(0, 1fr) 170px;
  gap:.5rem;
  align-items:stretch;
  overflow:hidden;
}

.tictac-app.is-fullscreen .tictac-board-wrap {
  min-height:0;
  overflow:hidden;
}

.tictac-app.is-fullscreen .tictac-board {
  min-width:0;
  height:100%;
}

.tictac-app.is-fullscreen .tictac-row {
  box-sizing:border-box;
  min-height:0;
  height:calc((100% - 12px) / 13);
  grid-template-columns:minmax(220px, 1fr) minmax(145px, 180px) minmax(190px, .9fr);
}

.tictac-app.is-fullscreen .tictac-row.tictac-head {
  min-height:0;
}

.tictac-app.is-fullscreen .tictac-cell {
  padding:.16rem .22rem;
}

.tictac-app.is-fullscreen .tictac-mark {
  width:clamp(20px, 2.3vw, 30px);
  height:clamp(20px, 2.3vw, 30px);
}

.tictac-app.is-fullscreen .tictac-inline-throw button {
  min-height:24px;
  padding:.16rem .28rem;
}

.tictac-app.is-fullscreen .tictac-throws {
  display:none;
}

.tictac-player-total {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin-top:0;
  padding:.25rem .65rem;
  border:1px solid rgba(255, 255, 255, .12);
  border-radius:999px;
  background:rgba(255, 255, 255, .07);
  font-size:.98rem;
  font-weight:950;
  text-align:center;
  white-space:nowrap;
  justify-self:end;
}

.tictac-player-one .tictac-player-name,
.tictac-player-one .tictac-player-total {
  color:#b9dcff;
}

.tictac-player-two .tictac-player-name,
.tictac-player-two .tictac-player-total {
  color:#ffdb9a;
}

.tictac-inline-throw {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.32rem;
  width:100%;
}

.tictac-inline-throw button {
  min-width:0;
  min-height:34px;
  padding:.22rem .3rem;
  border:1px solid rgba(255, 255, 255, .18);
  border-radius:7px;
  background:#22394d;
  color:#fff;
  font-size:.9rem;
  font-weight:950;
  cursor:pointer;
}

.tictac-inline-throw button[data-hit="2"] {
  background:#145a43;
}

.tictac-inline-throw button[data-hit="3"] {
  background:#8b2f2f;
}

.tictac-inline-throw button[data-tone="bull-single"] {
  background:#145a43;
}

.tictac-inline-throw button[data-tone="bull-double"] {
  background:#8b2f2f;
}

.tictac-inline-spacer {
  min-height:34px;
}

.tictac-inline-throw button:hover,
.tictac-inline-throw button:focus {
  background:#0a84ff;
}

.tictac-inline-throw button:disabled {
  cursor:not-allowed;
  opacity:.4;
  filter:saturate(.65);
}

.tictac-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:2px solid #b1c5d2;
  border-radius:6px;
  color:transparent;
  background:#0e171f;
  font-size:1.25rem;
  font-weight:950;
}

.tictac-player-one .tictac-mark.is-hit {
  border-color:#55a6ff;
  color:#55a6ff;
  background:rgba(10, 132, 255, .14);
}

.tictac-player-two .tictac-mark.is-hit {
  border-color:#ffb84d;
  color:#ffb84d;
  background:rgba(255, 184, 77, .13);
}

.tictac-cell.is-active {
  background:rgba(255, 255, 255, .08);
  box-shadow:inset 0 0 0 2px rgba(255, 255, 255, .12);
}

.tictac-target-bonus {
  min-width:54px;
  padding:.18rem .42rem;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:999px;
  background:rgba(255, 255, 255, .08);
  color:#fff;
  font-weight:900;
  text-align:center;
}

.tictac-player-one .tictac-target-bonus {
  color:#b9dcff;
}

.tictac-player-two .tictac-target-bonus {
  color:#ffdb9a;
}

.tictac-controls {
  padding:1rem;
  position:sticky;
  top:132px;
  background:rgba(4, 10, 16, .78);
}

.tictac-controls h2,
.tictac-throws h2 {
  margin:0 0 .8rem;
  color:#fff;
  font-size:1.15rem;
}

.tictac-targets {
  display:none;
}

.tictac-actions {
  display:grid;
  gap:.6rem;
  margin-top:1rem;
}

.tictac-actions button[data-miss] {
  border-color:#ffb84d;
  background:#7a4f1f;
  color:#fff;
}

.tictac-actions button[data-undo] {
  background:#3d5366;
}

.tictac-actions button[data-resume-computer] {
  background:#145a43;
}

.tictac-actions button[data-new-game] {
  background:#143d35;
}

.tictac-actions button[data-show-stats] {
  background:#5b3f8f;
}

.tictac-actions button[data-fullscreen] {
  background:#0f5f73;
}

.tictac-actions button:disabled,
.tictac-throw button:disabled {
  cursor:not-allowed;
  opacity:.55;
}

.tictac-actions button[data-fullscreen]:disabled {
  background:#3d4650;
  border-color:#657380;
  color:#d7e6ee;
}

.tictac-throws {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  margin-top:1rem;
}

.tictac-throws > div {
  padding:1rem;
}

.tictac-throws ol {
  min-height:132px;
  margin:0;
  padding-left:0;
  list-style:none;
  color:#dce9ef;
}

.tictac-throws li + li {
  margin-top:.5rem;
}

.tictac-throws li,
.tictac-player-throws li {
  padding:.55rem .65rem;
  border:1px solid rgba(255, 255, 255, .12);
  border-radius:7px;
  background:rgba(255, 255, 255, .045);
}

.tictac-throws li strong,
.tictac-player-throws li strong {
  display:block;
  color:#ffdb9a;
  font-size:.86rem;
  line-height:1.2;
}

.tictac-throws li em,
.tictac-player-throws li em {
  display:block;
  margin-top:.15rem;
  color:#f7fbff;
  font-style:normal;
  font-weight:800;
}

.tictac-dialog {
  position:fixed;
  inset:0;
  z-index:1100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  background:rgba(3, 8, 12, .82);
}

.tictac-dialog[hidden] {
  display:none;
}

.tictac-dialog-panel {
  width:min(560px, 100%);
  padding:1.25rem;
  border:1px solid rgba(103, 215, 181, .52);
  border-radius:8px;
  background:linear-gradient(180deg, #12202a 0%, #0c151d 100%);
  color:#fff;
  box-shadow:0 22px 70px rgba(0, 0, 0, .36);
}

.tictac-dialog-panel h2 {
  margin-bottom:1rem;
  color:#67d7b5;
}

.tictac-winner-title {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.35rem 1rem;
  border:2px solid #fff;
  border-radius:999px;
  background:rgba(103, 215, 181, .16);
  box-shadow:0 0 0 4px rgba(103, 215, 181, .18), 0 12px 28px rgba(0, 0, 0, .22);
}

.tictac-dialog-panel dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem;
  margin:0 0 1rem;
}

.tictac-dialog-panel dl div {
  padding:.75rem;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:8px;
  background:rgba(255, 255, 255, .045);
}

.tictac-dialog-panel dl div:nth-child(1),
.tictac-dialog-panel dl div:nth-child(3) {
  border-color:rgba(85, 166, 255, .3);
  background:rgba(10, 132, 255, .07);
}

.tictac-dialog-panel dl div:nth-child(2),
.tictac-dialog-panel dl div:nth-child(4) {
  border-color:rgba(255, 184, 77, .32);
  background:rgba(255, 184, 77, .07);
}

.tictac-dialog-panel dt {
  color:#d7e6ee;
  font-size:.9rem;
}

.tictac-dialog-panel dd {
  margin:0;
  font-size:1.45rem;
  font-weight:900;
}

.tictac-dialog-actions {
  display:grid;
  grid-template-columns:1fr;
  gap:.6rem;
}

.tictac-dialog-actions button[data-show-stats] {
  border-color:#6c8cff;
  background:#2f4f8f;
}

.tictac-dialog-actions button[data-new-game] {
  border-color:#67d7b5;
  background:#145a43;
}

.tictac-dialog-actions button.tictac-close-result {
  border-color:#ffb84d;
  background:#72512a;
}

.tictac-dialog-actions button[data-close-stats] {
  background:#3d5366;
}

.tictac-stats-panel {
  width:min(920px, 100%);
  max-height:min(760px, calc(100dvh - 2rem));
  overflow:auto;
}

.tictac-stats-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  margin-bottom:1rem;
}

.tictac-stat-card {
  padding:1rem;
  border:1px solid rgba(255, 255, 255, .12);
  border-radius:8px;
  background:rgba(255, 255, 255, .06);
}

.tictac-stat-card h3,
.tictac-player-throws h4 {
  margin:0 0 .75rem;
  color:#fff;
  font-size:1.05rem;
}

.tictac-stat-card dl {
  display:grid;
  grid-template-columns:1fr;
  gap:.45rem;
  margin:0;
}

.tictac-stat-card dl div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.45rem .55rem;
  border:1px solid rgba(255, 255, 255, .1);
  border-radius:7px;
}

.tictac-stat-card dt {
  color:#d7e6ee;
  font-size:.9rem;
}

.tictac-stat-card dd {
  margin:0;
  color:#fff;
  font-weight:950;
}

.tictac-player-throws {
  margin-top:1rem;
  padding:1rem;
  border:1px solid rgba(255, 255, 255, .12);
  border-radius:8px;
  background:rgba(4, 10, 16, .42);
}

.tictac-player-throws ol {
  max-height:300px;
  margin:0;
  padding-left:0;
  list-style:none;
  overflow:auto;
  color:#dce9ef;
}

.tictac-player-throws li + li {
  margin-top:.35rem;
}

.tictac-player-throws span {
  color:#ffdb9a;
  font-weight:900;
}

.tictac-seo-text {
  margin:1.25rem;
  padding:1.25rem;
  border:1px solid rgba(255, 255, 255, .2);
  border-radius:8px;
  background:rgba(4, 10, 16, .52);
  color:#eef6f8;
}

.tictac-seo-text h2 {
  margin-bottom:.75rem;
  color:#fff;
}

.tictac-seo-text p {
  max-width:86ch;
}

@media (max-width:1100px) {
  .tictac-start-grid,
  .tictac-status-grid,
  .tictac-match-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .tictac-layout {
    grid-template-columns:1fr;
  }

  .tictac-controls {
    position:static;
  }
}

@media (max-width:700px) {
  body[data-page="tictac-darts"] main {
    padding-right:.5rem;
    padding-left:.5rem;
  }

  .tictac-hero {
    flex-direction:column;
  }

  .tictac-live {
    flex:0 0 auto;
    min-width:0;
    max-width:100%;
    width:100%;
    text-align:left;
    padding:.65rem .75rem;
  }

  .tictac-start,
  .tictac-game,
  .tictac-hero {
    padding:.75rem;
  }

  .tictac-start-grid,
  .tictac-status-grid,
  .tictac-match-grid,
  .tictac-throws,
  .tictac-dialog-panel dl {
    grid-template-columns:1fr;
  }

  .tictac-match-scoreboard .tictac-score-row {
    grid-template-columns:minmax(104px, 1fr) repeat(3, minmax(54px, .3fr));
    gap:.35rem;
    padding:.62rem .55rem;
  }

  .tictac-match-scoreboard.is-first-to .tictac-score-row {
    grid-template-columns:minmax(104px, 1fr) repeat(2, minmax(54px, .3fr));
  }

  .tictac-match-scoreboard .tictac-score-head {
    font-size:.68rem;
  }

  .tictac-match-scoreboard .tictac-score-row strong {
    font-size:.9rem;
  }

  .tictac-match-scoreboard .tictac-score-row b {
    font-size:1.22rem;
  }

  .tictac-match-scoreboard .tictac-score-row small {
    font-size:.65rem;
  }

  .tictac-board {
    min-width:0;
  }

  .tictac-row {
    grid-template-columns:minmax(92px, 1fr) minmax(98px, 108px) minmax(92px, 1fr);
    min-height:84px;
  }

  .tictac-cell {
    flex-direction:column;
    gap:.22rem;
    padding:.32rem .18rem;
  }

  .tictac-row.tictac-head .tictac-cell,
  .tictac-number {
    flex-direction:row;
  }

  .tictac-player-head {
    display:grid;
    grid-template-columns:1fr;
    gap:.25rem;
    padding:.45rem .25rem;
  }

  .tictac-player-name {
    min-height:32px;
    max-width:100%;
    padding:.22rem .42rem;
    font-size:clamp(.64rem, 2.8vw, .78rem);
    justify-self:center;
    white-space:normal;
    overflow-wrap:anywhere;
    text-overflow:clip;
    border-width:2px;
  }

  .tictac-player-name.is-current {
    border-color:#fff;
    background:rgba(255, 255, 255, .18);
    box-shadow:0 0 0 4px rgba(255, 255, 255, .15), 0 0 18px rgba(103, 215, 181, .22);
  }

  .tictac-player-total {
    min-height:26px;
    padding:.12rem .42rem;
    font-size:.8rem;
    justify-self:center;
  }

  .tictac-mark-stack {
    gap:.12rem;
  }

  .tictac-mark {
    width:22px;
    height:22px;
    font-size:1rem;
    border-radius:5px;
  }

  .tictac-number {
    font-size:1.05rem;
  }

  .tictac-inline-throw {
    gap:.16rem;
  }

  .tictac-inline-throw button {
    min-height:30px;
    padding:.14rem .2rem;
    font-size:.76rem;
  }

  .tictac-target-bonus {
    min-width:42px;
    padding:.08rem .32rem;
    font-size:.82rem;
  }

  .tictac-controls {
    padding:.75rem;
  }

  .tictac-actions {
    grid-template-columns:1fr 1fr;
  }

  .tictac-actions button[data-new-game],
  .tictac-actions button[data-show-stats],
  .tictac-actions button[data-fullscreen],
  .tictac-actions button[data-save-game] {
    grid-column:1 / -1;
  }

  .tictac-stats-grid {
    grid-template-columns:1fr;
  }

  .tictac-dialog {
    align-items:flex-start;
    padding:.75rem .75rem calc(6rem + env(safe-area-inset-bottom));
    overflow:auto;
  }

  .tictac-dialog-panel {
    padding:.9rem;
  }

  .tictac-winner-title {
    min-height:36px;
    padding:.25rem .75rem;
    font-size:1.35rem;
  }

  .tictac-dialog-panel dl {
    gap:.55rem;
  }

  .tictac-dialog-panel dl div {
    padding:.65rem;
  }

  .tictac-dialog-panel dd {
    font-size:1.25rem;
  }

  .tictac-dialog-actions button {
    min-height:44px;
  }

}

@media (max-height:760px) and (min-width:701px) {
  .tictac-app.is-fullscreen .tictac-layout {
    grid-template-columns:minmax(0, 1fr) 160px;
  }

  .tictac-app.is-fullscreen .tictac-controls {
    padding:.65rem;
  }

  .tictac-app.is-fullscreen .tictac-actions {
    gap:.4rem;
  }

  .tictac-app.is-fullscreen .tictac-actions button {
    min-height:38px;
    padding:.3rem .45rem;
    font-size:.85rem;
  }
}

@media (max-width:700px) {
  .tictac-app.is-fullscreen .tictac-hero {
    display:grid;
    grid-template-columns:1fr;
    gap:.45rem;
    padding:.45rem;
  }

  body[data-page="tictac-darts"] .tictac-app.is-fullscreen .tictac-hero h1#page-title {
    font-size:1.1rem;
  }

  .tictac-app.is-fullscreen .tictac-live {
    min-width:0;
    padding:.45rem .55rem;
  }

  .tictac-app.is-fullscreen .tictac-live strong {
    font-size:.9rem;
  }

  .tictac-app.is-fullscreen .tictac-game {
    padding:.35rem;
  }

  .tictac-app.is-fullscreen .tictac-status-grid {
    display:none;
  }

  .tictac-app.is-fullscreen .tictac-layout {
    gap:.45rem;
    grid-template-rows:minmax(0, 1fr) auto;
    height:100%;
  }

  .tictac-app.is-fullscreen .tictac-row {
    grid-template-columns:minmax(82px, 1fr) minmax(88px, 96px) minmax(82px, 1fr);
    min-height:0;
    height:calc((100% - 12px) / 13);
  }

  .tictac-app.is-fullscreen .tictac-row.tictac-head {
    min-height:0;
  }

  .tictac-app.is-fullscreen .tictac-cell {
    padding:.12rem;
    gap:.08rem;
  }

  .tictac-app.is-fullscreen .tictac-player-name {
    min-height:24px;
    padding:.12rem .28rem;
    font-size:.64rem;
  }

  .tictac-app.is-fullscreen .tictac-player-total {
    min-height:20px;
    padding:.06rem .25rem;
    font-size:.66rem;
  }

  .tictac-app.is-fullscreen .tictac-mark {
    width:16px;
    height:16px;
    font-size:.72rem;
    border-width:1px;
  }

  .tictac-app.is-fullscreen .tictac-number {
    font-size:.88rem;
  }

  .tictac-app.is-fullscreen .tictac-target-bonus {
    min-width:34px;
    padding:0 .2rem;
    font-size:.68rem;
  }

  .tictac-app.is-fullscreen .tictac-inline-throw button {
    min-height:22px;
    padding:0 .12rem;
    font-size:.66rem;
  }

  .tictac-app.is-fullscreen .tictac-controls {
    padding:.35rem;
  }

  .tictac-app.is-fullscreen .tictac-controls h2 {
    display:none;
  }

  .tictac-app.is-fullscreen .tictac-actions {
    grid-template-columns:repeat(3, 1fr);
    gap:.25rem;
    margin-top:0;
  }

  .tictac-app.is-fullscreen .tictac-actions button {
    min-height:30px;
    padding:.15rem .2rem;
    font-size:.68rem;
  }

  .tictac-app.is-fullscreen .tictac-actions button[data-new-game],
  .tictac-app.is-fullscreen .tictac-actions button[data-show-stats],
  .tictac-app.is-fullscreen .tictac-actions button[data-fullscreen],
  .tictac-app.is-fullscreen .tictac-actions button[data-save-game] {
    grid-column:auto;
  }
}
