body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(181, 152, 105, 0.16), transparent 30%),
    linear-gradient(180deg, #151311 0%, #0d0c0b 100%);
  color: #f2ede3;
}

.page-frame {
  max-width: 1320px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.header-logo {
  font-family: 'Doto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5e7cc;
}

.volume-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7cbb6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.volume-icon:hover {
  color: #fff6e8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.volume-icon.muted svg path:last-child,
.volume-icon.muted svg path:nth-child(2) {
  display: none;
}

.setup-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 44px 32px 36px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.98), rgba(16, 15, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.setup-kicker {
  margin-bottom: 12px;
  color: #c5a675;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.setup-panel h1 {
  font-family: 'Doto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  max-width: 620px;
  margin: 0 auto;
  color: #f7efdf;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.setup-subtitle {
  max-width: 560px;
  margin: 18px auto 0;
  color: #b9ad97;
  font-size: 18px;
  line-height: 1.45;
}

.session-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.field,
.sound-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field[hidden],
.sound-field[hidden] {
  display: none;
}

.field span,
.sound-field span {
  color: #d9cfbe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field select,
.field input {
  font-family: 'Doto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: dark;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f9f2e4;
  padding: 0 16px;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field select option {
  background: #17130f;
  color: #f9f2e4;
}

.field select option:checked,
.field select option:hover {
  background: #2a2118;
  color: #fff7e8;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: rgba(197, 166, 117, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.field input::placeholder {
  color: #7b7368;
}

.custom-minutes-input[hidden] {
  display: none;
}

.goal-field {
  grid-column: 1 / -1;
}

.sound-field {
  grid-column: 1 / 3;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.sound-field input {
  width: 18px;
  height: 18px;
  accent-color: #8ce7c3;
}

.sound-field span {
  letter-spacing: 0.08em;
}

.start-button {
  grid-column: 3 / 4;
  font-family: 'Doto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e7d3b0 0%, #c5a675 100%);
  color: #17130f;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.start-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.setup-hint {
  margin-top: 18px;
  color: #8f8578;
  font-size: 15px;
}

.board-shell {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 0 0;
}

.board-hud {
  width: min(84vw, 1500px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #d7d0c3;
}

.hud-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hud-row-bottom {
  opacity: 0.78;
}

.hud-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hud-meta-right {
  align-items: flex-end;
  text-align: right;
}

.hud-label {
  color: #938979;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hud-value {
  color: #f5efe3;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.1;
}

#hud-time {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.clock-mode #hud-time,
body.clock-mode #hud-goal {
  font-size: clamp(20px, 2.3vw, 32px);
  letter-spacing: 0;
}

#hud-goal {
  max-width: 36ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.board-active .page-frame {
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.board-active.clock-mode .page-frame {
  padding: 0;
}

body.board-active.clock-mode .board-shell {
  gap: 0;
  padding: 0;
  min-height: 100vh;
}

body.board-active.clock-mode .board-hud {
  display: none;
}

body.board-active.clock-mode .board-section {
  min-height: 100vh;
}

body.board-active .header,
body.board-active .setup-panel {
  display: none;
}

body.board-active .board-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body.board-active .board-section {
  flex: 1;
  min-height: 0;
}
