@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap
}

:root {
  --ink: #211e32;
  --muted: #696879;
  --purple: #6544cc;
  --line: #e4e2eb;
  --bg: #f7f7fb;
  --card: #fff;
  --radius: 15px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "DM Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -.032em
}

h1 {
  font-size: 34px;
  font-weight: 760
}

h2 {
  font-size: 23px;
  font-weight: 730
}

h3 {
  font-size: 17px;
  font-weight: 700
}

p {
  color: var(--muted)
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

button,
summary {
  cursor: pointer
}

a,
button,
summary,
input,
select {
  outline-offset: 4px
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #865fec
}

::selection {
  background: #e3d9ff;
  color: #342668
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.shell {
  max-width: 1264px;
  width: calc(100% - 112px);
  margin-inline: auto
}

.main {
  padding: 31px 0 40px;
  flex: 1
}

.site-header {
  background: white;
  border-bottom: 1px solid var(--line)
}

.header-inner {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px
}

.brand-lines {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.brand strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em
}

.brand strong span {
  color: var(--purple)
}

.brand small {
  font-size: 8.4px;
  line-height: 1.3;
  letter-spacing: .12em;
  font-weight: 750;
  color: #686575
}

.main-nav {
  display: flex;
  gap: 5px;
  margin-left: auto;
  margin-right: clamp(12px, 6vw, 100px)
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #615e70;
  border-radius: 8px
}

.main-nav a[aria-current=page] {
  background: #f0eafa;
  color: #633fc2
}

.main-nav a:hover,
.dropdown a:hover,
.dropdown button:hover {
  background: #f5f2fb;
  color: var(--purple)
}

.main-nav .icon {
  width: 17px;
  height: 17px
}

.account-menu {
  position: relative
}

.account-menu summary {
  display: flex;
  gap: 9px;
  align-items: center;
  list-style: none;
  font-size: 14px;
  font-weight: 650
}

.account-menu summary::-webkit-details-marker {
  display: none
}

.account-menu summary>.icon {
  width: 14px
}

.account-title {
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7053c8;
  background: #ede7fb
}

.avatar .icon {
  width: 18px
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 13px);
  z-index: 5;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 10px 30px #28203316;
  min-width: 190px;
  padding: 5px
}

.dropdown a,
.dropdown button {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  border-radius: 6px;
  font-weight: 550;
  font-size: 14px
}

.page-heading,
.section-head,
.split,
.board-head,
.title-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.page-heading {
  margin-bottom: 22px
}

.page-heading p {
  margin-top: 5px;
  font-size: 15px
}

.sync {
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #36755c;
  padding: 6px 12px;
  background: #edf6f0;
  border: 1px solid #d5e8da;
  white-space: nowrap
}

.sync i {
  width: 7px;
  height: 7px;
  background: #43946c;
  border-radius: 50%
}

.sync.offline {
  color: #815f25;
  background: #fff2db;
  border-color: #e7d7b8
}

.sync.offline i {
  background: #a97823
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 79% 80%, #9a76f6 0%, transparent 45%), linear-gradient(108deg, #583cc6 0%, #704be1 53%, #8961e6 100%);
  color: white;
  border-radius: 17px;
  min-height: 238px;
  display: flex;
  align-items: center
}

.hero-copy {
  position: relative;
  padding: 26px 36px 29px;
  z-index: 1
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff15;
  border: 1px solid #ffffff38;
  border-radius: 30px;
  padding: 4px 11px
}

.hero-tag .icon {
  width: 15px;
  height: 15px
}

.hero h2 {
  font-size: clamp(34px, 3.9vw, 54px);
  line-height: 1.07;
  letter-spacing: -.039em;
  font-weight: 760;
  margin: 12px 0 7px
}

.hero-copy>p {
  color: #f0eaff;
  font-size: 15.5px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 23px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 16px;
  font-weight: 680;
  font-size: 14px;
  transition: background .16s, transform .16s;
  color: var(--ink)
}

.button .icon,
.hero-link .icon,
.guide-link .icon,
.text-link .icon,
.back .icon {
  width: 16px;
  height: 16px
}

.button:active {
  transform: translateY(1px)
}

.white {
  background: #fff;
  color: #5337b0
}

.white:hover {
  background: #f0e9ff
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600
}

.hero-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

.hero-link .icon {
  width: 13px
}

.hero-art {
  z-index: -1;
  position: absolute;
  inset: 0;
  overflow: hidden
}

.trophy-art {
  position: absolute;
  right: 4%;
  height: 109%;
  width: auto;
  bottom: -5%;
  object-fit: contain;
  filter: drop-shadow(2px 9px 9px #43239135)
}

.orbit {
  position: absolute;
  border: 1px solid #e0cfff25;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: 1%;
  top: 48%;
  transform: translateY(-50%)
}

.o2 {
  width: 570px;
  height: 570px;
  right: calc(1% - 55px)
}

.o3 {
  width: 680px;
  height: 680px;
  right: calc(1% - 110px)
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 30px
}

.metric,
.panel,
.round-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.metric {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px
}

.metric>div {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.metric>div>span {
  color: #676474;
  font-size: 13px;
  font-weight: 550
}

.metric strong {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 730;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums
}

.metric small {
  font-size: 14px;
  color: #747180;
  font-weight: 550
}

.tile,
.mini-tile,
.round-tile,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.tile {
  width: 44px;
  height: 44px;
  border-radius: 12px
}

.tile .icon {
  width: 23px;
  height: 23px
}

.violet {
  color: #7652ce;
  background: #efe9fc
}

.blue {
  color: #4578bd;
  background: #eaf2fe
}

.mint {
  color: #278771;
  background: #e2f5ed
}

.amber {
  color: #ae7517;
  background: #fff1d9
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(285px, 1fr);
  gap: 26px
}

.section-head {
  min-height: 30px;
  margin-bottom: 14px
}

.section-head>.icon {
  height: 16px;
  width: 16px;
  color: #8a879b
}

.count-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #eceaf3;
  color: #635e74;
  font-weight: 600
}

.rounds-list {
  display: grid;
  gap: 10px
}

.round-card {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 99px;
  padding: 15px 19px;
  transition: border-color .16s, background .16s
}

.round-card:hover {
  border-color: #bda9e9;
  background: #fdfbff
}

.round-tile {
  width: 52px;
  height: 54px;
  border-radius: 12px
}

.round-tile .icon {
  width: 27px;
  height: 27px
}

.round-info {
  flex: 1;
  min-width: 0
}

.round-number {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .105em;
  text-transform: uppercase;
  color: #70677e;
  font-weight: 720
}

.round-info h3 {
  font-size: 18px;
  margin: 4px 0 5px
}

.metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6a6777;
  font-size: 12px
}

.metadata span,
.question-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.metadata b {
  font-weight: 500
}

.metadata .icon {
  height: 13px;
  width: 13px
}

.state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 580;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 9px;
  background: #f1f1f5;
  color: #666274
}

.state .icon {
  width: 12px;
  height: 12px
}

.state.live,
.state.published {
  background: #e1f5e9;
  color: #267649
}

.state.closed {
  background: #fff0d6;
  color: #825914
}

.round-chevron {
  display: grid;
  place-items: center;
  color: #928d9e
}

.round-chevron .icon {
  width: 14px;
  height: 14px
}

.scoring-panel {
  padding: 0 21px
}

.scoring-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #eceaf1
}

.mini-tile {
  width: 33px;
  height: 33px;
  border-radius: 9px
}

.mini-tile .icon {
  width: 18px;
  height: 18px
}

.scoring-row h3 {
  font-size: 14.5px;
  letter-spacing: -.01em
}

.scoring-row p {
  margin-top: 4px;
  line-height: 1.5;
  font-size: 13px
}

.guide-link,
.text-link,
.back {
  font-weight: 650;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px
}

.guide-link {
  padding: 14px 0;
  font-size: 13px
}

.guide-link:hover,
.text-link:hover,
.back:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #767180;
  font-size: 12px
}

.footer span,
.footer a {
  display: inline-flex;
  gap: 7px;
  align-items: center
}

.footer img {
  filter: grayscale(1);
  opacity: .65
}

.footer .icon {
  width: 14px;
  height: 14px
}

.primary {
  background: var(--purple);
  color: white
}

.primary:hover {
  background: #5233b6
}

.outline {
  border: 1px solid #d5cede;
  color: #594b70;
  background: white
}

.outline:hover {
  background: #f5f1fb
}

.narrow {
  max-width: 465px;
  margin: 5px auto 30px
}

.reading {
  max-width: 760px;
  margin: 5px auto 40px
}

.back {
  margin-bottom: 18px;
  color: #676076;
  font-size: 13px
}

.form-card,
.detail-panel,
.play-panel {
  padding: 32px
}

.form-card h1,
.detail-panel h1 {
  margin: 18px 0 8px;
  font-size: 31px
}

.form-card>p {
  margin-bottom: 23px
}

.field {
  display: grid;
  gap: 6px;
  margin: 17px 0
}

.field label {
  font-weight: 650;
  font-size: 14px
}

.field input,
select {
  border: 1px solid #cfcbd8;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
  caret-color: var(--purple)
}

.field small,
.detail-stats small {
  color: var(--muted)
}

.wide {
  width: 100%;
  margin-top: 7px
}

.form-foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 17px;
  text-align: center;
  font-size: 13px
}

.form-foot a,
.host-links a {
  color: var(--purple);
  font-weight: 650
}

.errorlist {
  color: #a42e41;
  padding-left: 20px;
  font-size: 14px
}

.notice {
  background: #ecf6ef;
  border: 1px solid #d0e6d7;
  color: #235839;
  border-radius: 9px;
  padding: 12px 17px;
  margin-bottom: 15px
}

.notice.error {
  background: #fff0ee;
  color: #922934;
  border-color: #edc9cc
}

.detail-panel>.round-number {
  margin: 24px 0 5px
}

.detail-panel h1 {
  margin-top: 0
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line)
}

.detail-stats>div {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.detail-stats small {
  font-size: 13px
}

.detail-stats strong {
  font-size: 24px
}

.note,
.question-meta {
  display: flex;
  align-items: center;
  gap: 10px
}

.note {
  background: #f4f0fc;
  padding: 13px;
  border-radius: 8px
}

.note .icon,
.note p {
  color: #604f7b
}

.timing-note {
  margin: 0 0 20px
}

.detail-panel .text-link {
  margin-left: 10px
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: #f0eafa;
  color: var(--purple);
  border-radius: 8px;
  font-variant-numeric: tabular-nums
}

.timer.late {
  background: #fff0db;
  color: #8f5717
}

.question-heading { flex-wrap: wrap; gap: 8px; }
.question-clocks { display: flex; gap: 6px; margin-left: auto; }
.bonus-timer { background: #fff1d9; color: #805412; }
.bonus-timer.expired { background: #f1f1f5; color: #666274; }
#bonus-wrap { padding: 3px 8px; border-radius: 6px; }
#bonus-wrap.bonus-met { background: #e2f5ed; color: #246a51; font-weight: 650; }

progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  margin: 18px 0 28px;
  border-radius: 10px;
  overflow: hidden;
  background: #ede9f5
}

progress::-webkit-progress-bar {
  background: #ede9f5
}

progress::-webkit-progress-value {
  background: var(--purple)
}

progress::-moz-progress-bar {
  background: var(--purple)
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0
}

legend {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.025em;
  padding: 0
}

.question-meta {
  flex-wrap: wrap;
  font-size: 12px;
  color: #665a79;
  margin: 15px 0 22px
}

.question-meta .icon {
  width: 15px;
  height: 15px
}

.question-meta .expired {
  color: #79747f;
  text-decoration: line-through
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 15px;
  margin: 9px 0;
  cursor: pointer
}

.option input {
  position: absolute;
  opacity: 0
}

.option:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 2px
}

.option:has(:checked) {
  border-color: var(--purple);
  background: #f5f0ff
}

.option-number {
  background: #f1eef5;
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 650;
  font-size: 14px
}

.option i {
  margin-left: auto;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1px solid #b6b0bf;
  border-radius: 50%
}

.option:has(:checked) i {
  border: 5px solid var(--purple)
}

.play-panel form>.button {
  margin-top: 14px
}

.title-icon {
  justify-content: flex-start
}

.board-head {
  padding: 20px 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line)
}

.board-head h2 {
  font-size: 20px
}

.filter {
  display: flex;
  align-items: center;
  gap: 7px
}

.filter select {
  max-width: 240px;
  font-size: 14px
}

.empty {
  text-align: center;
  padding: 35px
}

.empty.large {
  padding: 60px 20px 70px
}

.empty-icon {
  width: 65px;
  height: 65px;
  background: #f2ecfc;
  color: #7d5ac5;
  border-radius: 20px;
  margin-bottom: 18px
}

.empty-icon .icon {
  width: 31px;
  height: 31px
}

.empty h3 {
  font-size: 22px
}

.empty p {
  max-width: 450px;
  margin: 7px auto 20px
}

.table-scroll {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap
}

th,
td {
  padding: 14px 21px;
  border-bottom: 1px solid var(--line)
}

th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600
}

tbody tr:last-child td {
  border-bottom: 0
}

.own-team {
  background: #f7f3ff
}

.rank {
  font-weight: 750;
  color: var(--purple)
}

.guide-page {
  max-width: 900px;
  padding: 0 28px
}

.guide-section {
  display: flex;
  gap: 19px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line)
}

.guide-section:last-child {
  border-bottom: 0
}

.guide-section h2,
.host-round h2 {
  font-size: 20px;
  margin: 0 0 7px
}

.guide-section .text-link {
  margin-top: 12px
}

.host-links {
  display: flex;
  gap: 18px;
  margin: -3px 0 18px;
  font-size: 14px
}

.host-rounds {
  display: grid;
  gap: 12px
}

.host-round,
.host-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between
}

.host-round {
  padding: 20px 24px
}

.host-round h2 {
  margin: 4px 0
}

.host-round p {
  font-size: 13px
}

.host-actions {
  flex-wrap: wrap;
  justify-content: flex-end
}

.skip,
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  background: white;
  padding: 12px;
  left: 12px;
  top: 8px;
  z-index: 10
}

@media(min-width:1550px) {
  .main {
    padding-top: 40px
  }

  .hero {
    min-height: 265px
  }

  .metrics {
    margin-bottom: 34px
  }
}

@media(max-width:1100px) {
  .shell {
    width: calc(100% - 64px)
  }

  .main-nav {
    margin-right: 12px
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(265px, 1fr);
    gap: 20px
  }

  .metric {
    padding: 15px 13px;
    gap: 10px
  }

  .trophy-art {
    right: 0;
    height: 100%
  }

  .round-card {
    gap: 12px;
    padding: 14px
  }

  .scoring-panel {
    padding: 0 16px
  }
}

@media(max-width:820px) {
  .shell {
    width: calc(100% - 40px)
  }

  .header-inner {
    gap: 8px
  }

  .main-nav {
    gap: 1px;
    margin: 0
  }

  .main-nav a {
    padding: 8px;
    font-size: 13px
  }

  .main-nav .icon {
    display: none
  }

  .account-title {
    max-width: 85px
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
    gap: 16px
  }

  .round-card {
    gap: 10px
  }

  .round-tile {
    width: 40px;
    height: 44px
  }

  .round-info h3 {
    font-size: 16px
  }

  .round-chevron {
    display: none
  }

  .metrics {
    gap: 9px
  }

  .metric {
    gap: 8px;
    padding: 12px
  }

  .metric .tile {
    width: 32px;
    height: 36px;
    border-radius: 8px
  }

  .metric .tile .icon {
    width: 19px
  }

  .metric>div>span {
    font-size: 11px
  }

  .metric strong {
    font-size: 22px
  }

  .hero-copy {
    padding-left: 24px
  }

  .hero {
    min-height: 220px
  }

  .trophy-art {
    height: 90%;
    right: -35px;
    bottom: 0
  }

  .orbit {
    right: -14%
  }

  .o2 {
    right: calc(-14% - 55px)
  }

  .o3 {
    right: calc(-14% - 110px)
  }
}

@media(max-width:650px) {
  .shell {
    width: calc(100% - 32px)
  }

  .header-inner {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 13px;
    gap: 12px
  }

  .brand img {
    width: 34px;
    height: 34px
  }

  .brand strong {
    font-size: 22px
  }

  .brand small {
    font-size: 7px
  }

  .brand {
    gap: 8px
  }

  .account-menu {
    grid-row: 1;
    grid-column: 2
  }

  .account-menu summary {
    gap: 5px;
    font-size: 13px
  }

  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 9px
  }

  .main-nav a {
    justify-content: center;
    padding: 8px 4px;
    font-size: 12px
  }

  .main-nav .icon {
    display: inline-block;
    width: 15px;
    height: 15px
  }

  .main {
    padding: 22px 0 28px
  }

  .page-heading {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px
  }

  .page-heading h1 {
    font-size: 26px
  }

  .page-heading p {
    font-size: 13px;
    max-width: 280px
  }

  .sync {
    padding: 4px 7px;
    gap: 4px;
    font-size: 10px;
    margin-top: 5px
  }

  .sync i {
    width: 5px;
    height: 5px
  }

  .hero {
    min-height: 212px;
    border-radius: 13px
  }

  .hero-copy {
    padding: 19px 16px;
    max-width: 71%
  }

  .hero h2 {
    font-size: 32px;
    margin: 9px 0 5px;
    max-width: 240px
  }

  .hero-copy>p {
    font-size: 12px;
    max-width: 220px
  }

  .hero-tag {
    font-size: 10px;
    padding: 3px 8px
  }

  .hero-tag .icon {
    width: 12px
  }

  .hero-actions {
    gap: 10px;
    margin-top: 16px
  }

  .hero-actions .button {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 9px;
    gap: 5px
  }

  .hero-link {
    font-size: 11px;
    gap: 1px;
    white-space: nowrap
  }

  .hero-link .icon {
    width: 10px
  }

  .trophy-art {
    right: -31px;
    height: auto;
    width: 48%;
    bottom: 17%
  }

  .orbit {
    width: 265px;
    height: 265px;
    right: -16%;
    top: 51%
  }

  .o2 {
    width: 325px;
    height: 325px;
    right: calc(-16% - 30px)
  }

  .o3 {
    width: 385px;
    height: 385px;
    right: calc(-16% - 60px)
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 12px 0 22px
  }

  .metric {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 11px
  }

  .metric .tile {
    width: 36px;
    height: 36px
  }

  .metric>div>span {
    font-size: 11.5px
  }

  .metric strong {
    font-size: 21px
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .section-head {
    margin-bottom: 9px
  }

  .section-head h2 {
    font-size: 20px
  }

  .round-card {
    min-height: 84px;
    gap: 10px;
    padding: 12px
  }

  .round-tile {
    width: 42px;
    height: 45px
  }

  .round-number {
    font-size: 9px
  }

  .round-info h3 {
    margin: 3px 0
  }

  .metadata {
    font-size: 10.5px;
    gap: 5px
  }

  .state {
    font-size: 10px;
    padding: 3px 7px
  }

  .count-tag {
    font-size: 10px
  }

  .scoring-row {
    padding: 15px 0
  }

  .footer {
    font-size: 10px
  }

  .narrow,
  .reading {
    margin-top: 0
  }

  .form-card,
  .detail-panel,
  .play-panel {
    padding: 22px 18px
  }

  .form-card h1,
  .detail-panel h1 {
    font-size: 26px
  }

  .detail-stats small {
    font-size: 11px
  }

  .option {
    padding: 11px 9px;
    gap: 8px
  }

  .board-head {
    padding: 16px
  }

  .filter {
    width: 100%
  }

  .filter select {
    flex: 1;
    max-width: none
  }

  .guide-page {
    padding: 0 15px
  }

  .guide-section {
    padding: 18px 0;
    gap: 12px
  }

  .guide-section h2 {
    font-size: 17px
  }

  .guide-section .tile {
    width: 34px;
    height: 34px
  }

  .guide-section p {
    font-size: 14px
  }

  .host-round,
  .host-actions {
    align-items: flex-start
  }

  .host-round {
    flex-direction: column
  }

  .host-actions {
    width: 100%;
    align-items: center;
    justify-content: space-between
  }

  .host-links {
    gap: 10px;
    flex-wrap: wrap
  }

  .page-heading:has(>.button) {
    flex-direction: column
  }

  .board-head h2 {
    font-size: 18px
  }
}

@media(max-width:370px) {
  .hero-copy {
    max-width: 77%
  }

  .hero h2 {
    font-size: 28px
  }

  .hero-actions {
    gap: 5px
  }

  .trophy-art {
    right: -28px;
    width: 44%
  }

  .round-info h3 {
    font-size: 14px
  }

  .round-card {
    gap: 7px
  }

  .round-tile {
    width: 33px;
    height: 39px
  }

  .round-tile .icon {
    width: 22px
  }

  .page-heading .sync {
    font-size: 0;
    gap: 0;
    padding: 6px
  }

  .page-heading .sync i {
    width: 6px;
    height: 6px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important
  }
}

[hidden] { display: none !important; }
.header-tools, .language-tool { display: flex; align-items: center; gap: 12px; }
.language-tool { gap: 4px; color: var(--purple); }
.language-tool .icon { width: 17px; }
.language-tool select { font-size: 13px; width: auto; padding: 4px; color: inherit; border: none; }
.live-heading h1 { font-size: 28px; margin-top: 5px; }
#waiting-card h2 { margin: 16px 0 8px; }
#round-language { margin-top: 20px; max-width: 240px; }
#round-language label { display: block; margin-bottom: 5px; font-weight: 650; }
#live-prompt { line-height: 1.55; }
#live-choices .option { text-align: left; width: 100%; background: white; color: var(--ink); }
#live-choices .option:hover:enabled { background: #f7f3ff; border-color: var(--purple); }
#live-choices .option[aria-pressed=true] { background: #f1ebff; border-color: var(--purple); }
#live-choices .option[aria-pressed=true] i { border: 5px solid var(--purple); }
#live-choices .option:disabled { cursor: default; opacity: 1; }
#answer-status { margin-top: 15px; font-size: 14px; }
.readiness { padding: 20px 24px; margin-bottom: 18px; }
.readiness p { margin: 6px 0; }
#team-presence { display: flex; flex-wrap: wrap; padding: 0; gap: 8px; margin: 8px 0 0; list-style: none; }
#team-presence li { padding: 3px 9px; border-radius: 6px; background: var(--bg); font-size: 13px; }
#team-presence .ready { background: #e5f5ed; color: #286447; }
.delivery-note { padding: 10px 0; color: #72511b; font-size: 14px; }
@font-face {
  font-family: "Arena Sinhala";
  src: url("sinhala.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
[lang=si] { font-family: "Arena Sinhala", "Nirmala UI", sans-serif; line-height: 1.7; }
@media (max-width: 650px) {
  .header-tools { grid-column: 2; grid-row: 1; gap: 5px; }
  .header-tools:has(.language-tool) .account-title { display: none; }
  .language-tool .icon { display: none; }
  .live-heading h1 { font-size: 22px; }
}
