
:root {
  color-scheme: dark;
  --bg: #06101f;
  --bg-accent: #0b1730;
  --panel: rgba(11, 21, 40, 0.78);
  --panel-strong: rgba(16, 29, 54, 0.9);
  --panel-soft: rgba(12, 22, 41, 0.62);
  --border: rgba(121, 176, 255, 0.18);
  --border-strong: rgba(122, 190, 255, 0.3);
  --text: #f4f8ff;
  --muted: #91a7c6;
  --accent: #2B7CFF;
  --accent-glow: #00C5FF;
  --accent-secondary: #6f7dff;
  --accent-soft: rgba(43, 124, 255, 0.16);
  --danger: #ff7aa2;
  --danger-soft: rgba(255, 122, 162, 0.16);
  --shadow:
    0 26px 64px rgba(3, 8, 20, 0.52),
    0 0 0 1px rgba(116, 176, 255, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Aptos", "Bahnschrift", "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 197, 255, 0.14), transparent 23rem),
    radial-gradient(circle at 84% 10%, rgba(111, 125, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #030a14 0%, #07101d 48%, var(--bg) 100%);
  color: var(--text);
}

body {
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

body.page-landing {
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(130, 152, 214, 0.12), transparent 22rem),
    linear-gradient(180deg, #05070b 0%, #0a1018 100%);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
select {
  font: inherit;
}

.shell {
  max-width: 1600px;
  margin: 0 auto;
}

.hero,
.app-shell,
.content-card {
  background:
    linear-gradient(180deg, rgba(22, 37, 68, 0.44), rgba(8, 16, 30, 0.18)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(135%);
}

.hero {
  max-width: 720px;
  padding: 40px;
  margin: 8vh auto 0;
}

.content-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 0 40px;
}

.content-card {
  padding: 28px;
}

.content-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.content-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.content-section + .content-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #ffffff;
}

.content-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-section p + p {
  margin-top: 12px;
}

.content-section ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.content-section li {
  line-height: 1.7;
}

.content-section li::marker {
  color: #9adfff;
}

.content-callout {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 197, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(43, 124, 255, 0.18), rgba(0, 197, 255, 0.08)),
    rgba(11, 21, 40, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(173, 227, 255, 0.06),
    0 0 36px rgba(0, 197, 255, 0.08);
}

.content-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.98rem;
}

.content-callout p {
  margin: 0;
  color: #d5e8ff;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  text-decoration: none;
}

.landing-shell {
  max-width: 1320px;
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.landing-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.38);
}

.landing-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hotspot {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: transparent;
  outline: none;
  transition: box-shadow 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.landing-hotspot:hover,
.landing-hotspot:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.landing-hotspot.dashboard {
  left: 6.4%;
  top: 62.1%;
  width: 22.8%;
  height: 8.8%;
}

.landing-hotspot.policies {
  left: 30.4%;
  top: 62.1%;
  width: 12%;
  height: 8.8%;
}

.landing-hotspot.credits {
  left: 43.9%;
  top: 62.1%;
  width: 12.2%;
  height: 8.8%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 125, 255, 0.18);
  background: rgba(43, 124, 255, 0.1);
  color: #a8deff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 197, 255, 0.04);
}

.hero h1,
.title {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 197, 255, 0.12);
}

.hero p,
.subtitle,
.empty-state p,
.panel-note {
  color: var(--muted);
  line-height: 1.6;
}

.primary-button,
.ghost-button,
.danger-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    opacity 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #3c97ff 100%);
  color: #f7fbff;
  box-shadow:
    0 0 0 1px rgba(113, 193, 255, 0.18),
    0 0 28px rgba(0, 197, 255, 0.18);
}

.ghost-button {
  background: rgba(111, 125, 255, 0.1);
  color: #d9e7ff;
  border: 1px solid rgba(111, 125, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(255, 122, 162, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow:
    0 0 0 1px rgba(148, 218, 255, 0.28),
    0 0 34px rgba(0, 197, 255, 0.24);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(148, 178, 255, 0.08),
    0 0 22px rgba(111, 125, 255, 0.14);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(18, 34, 64, 0.86), rgba(10, 19, 35, 0.82));
  box-shadow: inset 0 1px 0 rgba(154, 209, 255, 0.05);
}

.app-shell {
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(135deg, var(--accent-secondary), var(--accent-glow));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 197, 255, 0.2);
}

.identity-meta {
  display: grid;
  gap: 2px;
}

.identity-meta strong {
  font-size: 0.98rem;
}

.identity-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  margin-bottom: 18px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field select {
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(21, 38, 69, 0.92), rgba(13, 24, 44, 0.92));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.context-bar,
.summary-grid,
.board {
  display: grid;
  gap: 16px;
}

.context-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.context-card,
.summary-card,
.panel,
.room-card {
  background:
    linear-gradient(180deg, rgba(21, 38, 69, 0.86), rgba(10, 19, 35, 0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.context-card,
.summary-card,
.panel {
  padding: 16px;
}

.context-card strong,
.summary-card strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 8px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.panel {
  position: sticky;
  top: 24px;
}

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

.panel h2,
.room-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.status-chip,
.meta-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-chip,
.meta-chip {
  padding: 7px 10px;
}

.status-chip {
  background: rgba(43, 124, 255, 0.16);
  color: #bde6ff;
  box-shadow: inset 0 0 0 1px rgba(0, 197, 255, 0.08);
}

.status-chip.full {
  background: rgba(111, 125, 255, 0.18);
  color: #d7dcff;
}

.status-chip.locked {
  background: rgba(124, 102, 255, 0.2);
  color: #ded6ff;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.04);
  color: #c7d7ef;
  border: 1px solid rgba(121, 176, 255, 0.12);
}

.panel-list,
.room-player-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.drop-zone {
  min-height: 90px;
  border: 1px dashed transparent;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.drop-zone.active-drop {
  border-color: rgba(0, 197, 255, 0.46);
  background: rgba(0, 197, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 24px rgba(0, 197, 255, 0.08);
}

.drop-zone.drop-disabled {
  opacity: 0.75;
}

.player-card {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(22, 40, 73, 0.94), rgba(14, 26, 48, 0.92));
  cursor: grab;
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.player-card:active {
  cursor: grabbing;
}

.player-card.dragging {
  opacity: 0.55;
}

.player-card strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  padding: 5px 9px;
  background: var(--accent-soft);
  color: #bfe6ff;
  border: 1px solid rgba(0, 197, 255, 0.08);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.room-card {
  padding: 14px;
}

.room-card h3 {
  font-size: 1.05rem;
}

.room-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state,
.empty-slot {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  background: rgba(15, 27, 49, 0.58);
}

.notice {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.notice.visible {
  display: block;
}

.notice.error {
  background: var(--danger-soft);
  border-color: rgba(255, 122, 162, 0.24);
  color: var(--danger);
}

.notice.info {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(0, 197, 255, 0.18);
  color: #bde6ff;
}

.loading-cover {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-cover.visible {
  display: flex;
}

.loading-card {
  padding: 20px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(22, 40, 73, 0.9), rgba(11, 21, 39, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: #dff1ff;
}

@media (max-width: 1120px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .board {
    grid-template-columns: 1fr;
  }

  .panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  body.page-landing {
    padding: 8px;
  }

  .app-shell,
  .hero,
  .content-card {
    padding: 16px;
    border-radius: 20px;
  }

  .landing-shell {
    min-height: calc(100vh - 16px);
  }

  .landing-stage {
    border-radius: 20px;
  }

  .topbar,
  .toolbar,
  .context-bar,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}
