@font-face {
  font-family: "Moga";
  font-display: block;
  font-style: normal;
  font-weight: 400;
  src: url("../font/moga/moga.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("../font/roboto/roboto-400.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("../font/roboto/roboto-700.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto Condensed";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("../font/roboto-condensed/roboto-condensed-400.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto Condensed";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("../font/roboto-condensed/roboto-condensed-700.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto Mono";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("../font/roboto-mono/roboto-mono-700.ttf") format("truetype");
}

:root {
  --ink: #f7f1e7;
  --muted: #b8ad9f;
  --soft: rgba(255, 255, 255, 0.08);
  --softer: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.13);
  --bg: #11100f;
  --panel: #1b1917;
  --panel-2: #23201d;
  --accent: #c6ff57;
  --accent-ink: #10140a;
  --display-yellow: #FDDF02;
  --warn: #ffcf5f;
  --danger: #ff6b5f;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-condensed: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-display: "Moga", "Arial Black", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 255, 87, 0.16), transparent 36rem),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 34rem),
    var(--bg);
}

button,
input,
a {
  font: inherit;
}

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

.app-shell {
  padding: 28px;
}

.eyebrow {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--soft);
  border-radius: 999px;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 800;
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.button.large {
  width: 100%;
  min-height: 58px;
  font-weight: 760;
}

.home-wrap {
  max-width: 980px;
  margin: 8vh auto;
}

.home-wrap h1 {
  max-width: 760px;
}

.lede {
  font-size: 1.25rem;
  max-width: 650px;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.home-card {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.home-card li {
  margin: 10px 0;
  color: var(--muted);
}

.home-card strong {
  color: var(--ink);
}

.control-screen {
  --control-app-padding: 28px;
  --control-shell-gap: 22px;
  --control-footer-height: 192px;
  min-height: 100vh;
  overflow: hidden;
}

.control-screen.app-shell {
  padding: var(--control-app-padding);
}

.control-app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: var(--control-shell-gap);
  height: calc(100vh - (var(--control-app-padding) * 2) - var(--control-footer-height) - var(--control-shell-gap));
}

.control-main-column,
.control-side-column {
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.control-main-column {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-right: 6px;
}

.control-side-column {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-right: 6px;
}

.control-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.control-main-header h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 0;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.control-header-actions {
  justify-content: flex-end;
  flex: 1 1 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.038));
  box-shadow: var(--shadow);
  padding: 22px;
}

.current-panel {
  display: grid;
  gap: 0;
}

.rundown-panel {
  min-height: 100%;
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.rundown-sticky-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 2px;
  background:
    linear-gradient(180deg, rgba(17, 16, 15, 0.98) 0%, rgba(17, 16, 15, 0.94) 74%, rgba(17, 16, 15, 0) 100%);
}

.timer-footer-panel {
  position: fixed;
  left: var(--control-app-padding);
  right: var(--control-app-padding);
  bottom: var(--control-app-padding);
  z-index: 40;
  height: var(--control-footer-height);
  padding: 16px 22px 18px;
  background: linear-gradient(180deg, rgba(30, 28, 25, 0.96), rgba(16, 15, 14, 0.98));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.52);
}

.timer-footer-panel .panel-header {
  margin-bottom: 10px;
}

.timer-footer-panel .panel-header h2 {
  font-size: 1.35rem;
}

.timer-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.timer-status-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--softer);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-pill.live {
  color: var(--accent);
  border-color: rgba(198, 255, 87, 0.35);
  background: rgba(198, 255, 87, 0.08);
}

.timer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin-bottom: 0;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  font-weight: 700;
  border-radius: 14px;
  outline: none;
}

.timer-display[contenteditable="true"] {
  cursor: text;
  padding: 6px 10px;
  margin: -6px -10px 0;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.timer-display[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.05);
}

.timer-display[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(198, 255, 87, 0.28);
}

.timer-status {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.timer-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.timer-primary-controls {
  align-self: center;
}

.timer-helper {
  margin: 0;
  max-width: 32rem;
}

.secondary-row {
  grid-column: auto;
  justify-content: flex-end;
}

.timer-done .timer-display,
.timer-done .room-timer,
.timer-done .remote-timer {
  color: var(--danger);
}

.instruction-block,
.note-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 16px;
}

.facilitator-note-panel,
.footer-message-panel {
  margin-bottom: 16px;
}

.facilitator-note-header {
  margin-bottom: 10px;
}

.facilitator-note-header .helper-copy {
  margin: 0;
}

.facilitator-note-editor {
  min-height: 168px;
  padding: 16px 18px;
  border: 1px solid rgba(198, 255, 87, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
  white-space: pre-wrap;
  outline: none;
  cursor: text;
  transition: background 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.facilitator-note-editor:hover {
  background: rgba(0, 0, 0, 0.24);
}

.facilitator-note-editor:focus {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(198, 255, 87, 0.42);
  box-shadow: 0 0 0 2px rgba(198, 255, 87, 0.16);
}

.instruction-block p {
  font-size: 1.2rem;
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mission-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.card-list {
  display: grid;
  gap: 9px;
}

.day-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.day-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.day-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.day-tab.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.rundown-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 3px 10px;
  cursor: pointer;
}

.rundown-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rundown-card.active {
  border-color: rgba(198, 255, 87, 0.7);
  background: rgba(198, 255, 87, 0.08);
}

.rundown-card span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 850;
}

.rundown-card strong {
  line-height: 1.1;
}

.rundown-card small {
  color: var(--muted);
}

.link-grid {
  display: grid;
  gap: 10px;
}

.link-grid label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.link-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: 12px;
}

.helper-text {
  margin-bottom: 0;
}

.helper-copy {
  margin: 0 0 12px;
  color: var(--muted);
}

.live-field-label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.live-field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: 12px;
}

.music-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.music-flow-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.music-flow-kicker {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.music-panel-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: -0.02em;
}

.music-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.music-controls-inline {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
}

.music-embed-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.music-embed-shell iframe {
  width: 100%;
  height: 352px;
  border: 0;
  display: block;
}

.apple-music-player {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 12rem),
    rgba(0, 0, 0, 0.26);
}

.apple-music-player-artwork {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.apple-music-player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apple-music-artwork-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(198, 255, 87, 0.12), rgba(255, 255, 255, 0.05));
}

.apple-music-player-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.apple-music-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apple-music-player-copy h4 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.apple-music-player-copy p {
  margin: 0;
}

.apple-music-queue-status {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.apple-music-queue-debug {
  color: var(--muted);
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.apple-music-scrubber {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.apple-music-scrubber span {
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.apple-music-scrubber input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.apple-music-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.apple-music-volume span {
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.apple-music-volume input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.apple-music-player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.room-screen {
  background:
    radial-gradient(circle at 15% 15%, rgba(198, 255, 87, 0.2), transparent 28rem),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.07), transparent 28rem),
    #0f0e0d;
  overflow: hidden;
}

.room-stage {
  width: 100vw;
  height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  position: relative;
}

.room-intro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050505;
  z-index: 0;
}

.room-intro-video-shell {
  position: absolute;
  inset: 0;
}

.room-intro-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(5, 7, 4, 0.18), rgba(5, 7, 4, 0.66));
}

.room-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-intro-logo-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.room-intro-logo-sprite {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.room-intro-logo {
  width: min(600px, 36vw);
  max-width: 600px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 4px rgba(0, 0, 0, 0.45));
}

.room-activity {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 0;
}

.room-activity-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.room-activity-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  width: min(1100px, calc(100vw - 64px));
  padding: clamp(24px, 4vw, 48px);
}

.room-activity-title {
  margin: 0;
  color: var(--display-yellow);
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 21rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: skewY(-4.5deg) skewX(-8.5deg);
  transform-origin: center;
  max-width: 10ch;
  text-wrap: balance;
}

.room-activity-progress {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
}

.room-intro[hidden],
.room-activity[hidden],
.room-header[hidden],
.room-card[hidden],
.room-footer[hidden] {
  display: none;
}

.room-header,
.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.room-header h1 {
  margin: 0;
  max-width: 75vw;
  font-size: clamp(3.2rem, 8vw, 8.5rem);
}

.room-progress {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.room-progress.room-progress--on-dark {
  background: rgba(12, 14, 16, 0.58);
  color: #ffffff;
}

.room-progress.room-progress--on-light {
  background: rgba(255, 255, 255, 0.76);
  color: #111111;
}

.room-progress.is-hidden {
  display: none;
}

.room-card {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 64px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.17;
  transform: rotate(-8deg);
  pointer-events: none;
}

.room-instruction {
  position: relative;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  max-width: 1100px;
  margin: 0 auto 34px;
  font-weight: 800;
}

.room-timer-shell {
  position: absolute;
  top: 18%;
  left: 76%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
}

.room-timer-widget {
  min-width: min(30vw, 360px);
  max-width: min(34vw, 420px);
  border-radius: 28px;
  background: rgba(10, 12, 8, 0.84);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  padding: 18px 22px 20px;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  display: grid;
  justify-items: center;
  cursor: grab;
}

.room-timer-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 84px;
  height: 24px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 auto 14px;
  cursor: grab;
  appearance: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.room-timer-handle span {
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.room-timer-shell.is-dragging .room-timer-widget,
.room-timer-shell.is-dragging .room-timer-handle {
  cursor: grabbing;
}

.room-timer {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.14em;
  font-weight: 900;
  text-align: center;
}

.room-timer-shell.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.room-timer-shell.is-hidden {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.96);
}

.room-timer-shell.is-dragging {
  transition: none;
}

.room-timer-shell.is-dragging .room-timer-widget {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

.room-timer-shell.is-alarm-active .room-timer-widget {
  box-shadow: 0 0 0 2px rgba(255, 120, 120, 0.14), 0 32px 90px rgba(0, 0, 0, 0.44);
}

.room-timer-status {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.room-timer-shell:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
}

.checkpoint-callout {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 28px;
  border: 0;
  border-radius: 22px;
  padding: 18px 20px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(8, 12, 10, 0.68), rgba(8, 12, 10, 0.54));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.checkpoint-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(253, 223, 2, 0.24), rgba(83, 255, 179, 0.85), rgba(0, 212, 255, 0.78), rgba(253, 223, 2, 0.24));
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: checkpointGlowShift 6.6s ease-in-out infinite alternate;
}

.checkpoint-callout::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(83, 255, 179, 0.18), transparent 62%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
  animation: checkpointGlowPulse 2.8s ease-in-out infinite;
}

.checkpoint-callout.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.checkpoint-callout.is-hiding {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.checkpoint-callout span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: linear-gradient(90deg, #fd7d02, #fddf02, #61ffbe, #42d7ff, #fd7d02);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
  animation: checkpointLabelShift 6.8s ease-in-out infinite alternate;
}

.checkpoint-callout p {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
}

@keyframes checkpointGlowShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes checkpointGlowPulse {

  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes checkpointLabelShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.room-footer p {
  color: var(--muted);
  font-weight: 700;
}

.fullscreen-toggle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.fullscreen-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(198, 255, 87, 0.35);
  transform: translateY(-1px);
}

.fullscreen-icon {
  display: none;
  width: 22px;
  height: 22px;
}

.fullscreen-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fullscreen-toggle.is-enter .enter-icon,
.fullscreen-toggle.is-exit .exit-icon {
  display: block;
}

.audio-enable-button {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 12, 8, 0.84);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 480ms ease, transform 480ms ease, border-color 160ms ease, background 160ms ease;
}

.audio-enable-button:hover {
  background: rgba(18, 22, 14, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.audio-enable-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.audio-enable-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-enable-button.is-confirmed {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

.audio-enable-button[hidden] {
  display: none;
}

.room-layout-intro .room-header,
.room-layout-intro .room-card,
.room-layout-intro .room-footer {
  opacity: 0;
  pointer-events: none;
}

.room-layout-intro .room-timer-shell {
  z-index: 4;
}

.room-layout-activity .room-header,
.room-layout-activity .room-card,
.room-layout-activity .room-footer {
  opacity: 0;
  pointer-events: none;
}

.room-layout-activity .room-timer-shell {
  z-index: 4;
}

.room-activity-checkpoint {
  left: 50%;
  right: auto;
  bottom: 32px;
  transform: translate3d(-50%, 22px, 0);
  width: min(880px, calc(100vw - 64px));
}

.room-activity-checkpoint.is-visible {
  transform: translate3d(-50%, 0, 0);
}

.room-activity-checkpoint.is-hiding {
  transform: translate3d(-50%, 22px, 0);
}

.remote-screen {
  padding: 18px;
}

.remote-wrap {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.remote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.remote-header h1 {
  font-size: 2.4rem;
  margin: 0;
}

.remote-session-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.remote-day-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.remote-day-tabs .day-tab {
  width: 100%;
  min-height: 40px;
  padding-inline: 10px;
}

.remote-card,
.remote-notes {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.remote-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.remote-instruction {
  color: var(--ink);
  font-size: 1.05rem;
}

.remote-timer {
  font-size: clamp(4rem, 22vw, 7rem);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.remote-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.remote-controls-secondary {
  grid-template-columns: 1fr;
}

.remote-notes summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.remote-notes p {
  margin: 10px 0 0;
}

@media (max-width: 980px) {
  .control-screen {
    --control-footer-height: auto;
    overflow: auto;
  }

  .control-app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .control-main-column,
  .control-side-column {
    overflow-y: visible;
    padding-right: 0;
  }

  .control-main-header {
    display: grid;
  }

  .control-header-actions {
    justify-content: flex-start;
  }

  .timer-footer-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    margin-top: 18px;
  }

  .timer-card {
    grid-template-columns: 1fr;
  }

  .timer-summary {
    display: grid;
    gap: 10px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .secondary-row {
    grid-column: auto;
    justify-content: flex-start;
  }

  .timer-controls {
    justify-content: flex-start;
  }

  .music-panel-header {
    display: grid;
    justify-content: stretch;
  }

  .music-controls {
    grid-template-columns: 1fr;
  }

  .apple-music-player {
    grid-template-columns: 1fr;
  }

  .apple-music-player-artwork {
    max-width: 160px;
  }
}

@media (max-width: 640px) {
  .control-screen {
    --control-app-padding: 16px;
    --control-shell-gap: 16px;
  }

  .app-shell {
    padding: 16px;
  }

  .home-actions,
  .topbar-actions,
  .mission-controls {
    display: grid;
  }

  .control-app-shell {
    gap: 16px;
  }

  .button {
    width: 100%;
  }

  .room-header h1 {
    font-size: 3rem;
  }

  .room-instruction {
    font-size: 2rem;
  }

  .room-timer-shell {
    top: 14%;
    left: 50%;
  }

  .room-timer-widget {
    min-width: min(78vw, 360px);
    max-width: 82vw;
  }

  .room-intro-logo {
    width: min(280px, 52vw);
  }

  .room-activity-copy {
    width: calc(100vw - 40px);
    padding: 24px;
  }

  .room-activity-title {
    font-size: clamp(6.8rem, 14vw, 14.5rem);
  }

  .room-activity-checkpoint {
    width: calc(100vw - 40px);
    bottom: 22px;
  }
}
