:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(11, 15, 26, 0.76);
  --panel-strong: rgba(17, 23, 38, 0.92);
  --line: rgba(255, 217, 128, 0.18);
  --text: #f4efe3;
  --muted: #a7adbd;
  --gold: #f3c969;
  --green: #70e0a6;
  --blue: #72a8ff;
  --orange: #ff9a5f;
  --gray: #8a92a6;
  --purple: #bb87ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: #05070d;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 18% 18%, rgba(243, 201, 105, 0.13), transparent 28rem),
    radial-gradient(circle at 76% 12%, rgba(114, 168, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 50% 80%, rgba(187, 135, 255, 0.1), transparent 26rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(243, 201, 105, 0.42) 0 1px, transparent 1.5px);
  background-position: center, center, center, 0 0, 43px 79px;
  background-size: auto, auto, auto, 97px 97px, 151px 151px;
  opacity: 0.22;
}

.background-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.background-video,
.background-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  object-fit: cover;
}

.background-overlay {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.76), rgba(5, 7, 13, 0.88)),
    radial-gradient(circle at 50% 18%, rgba(7, 10, 18, 0.22), rgba(3, 5, 10, 0.66) 72%);
}

button,
a {
  font: inherit;
}

.site-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 24px 24px;
}

.domain-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(243, 201, 105, 0.22);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.domain-status-title {
  flex: 0 0 auto;
  color: rgba(243, 201, 105, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.domain-status-title::after {
  margin-left: 10px;
  color: rgba(244, 239, 227, 0.34);
  content: "·";
}

.domain-status-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: rgba(244, 239, 227, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.domain-status-items.is-unavailable {
  color: rgba(167, 173, 189, 0.82);
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(244, 239, 227, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 239, 227, 0.86);
  white-space: nowrap;
}

.domain-pill.is-ok {
  border-color: rgba(112, 224, 166, 0.34);
  background: rgba(112, 224, 166, 0.1);
  color: #baf3d4;
}

.domain-pill.is-watch {
  border-color: rgba(243, 201, 105, 0.48);
  background: rgba(243, 201, 105, 0.12);
  color: #ffe2a1;
}

.domain-pill.is-urgent {
  border-color: rgba(255, 154, 95, 0.54);
  background: rgba(255, 154, 95, 0.13);
  color: #ffc09a;
}

.domain-pill.is-expired {
  border-color: rgba(255, 104, 104, 0.58);
  background: rgba(255, 104, 104, 0.13);
  color: #ffb3b3;
}

.domain-pill.is-unknown {
  border-color: rgba(167, 173, 189, 0.28);
  background: rgba(167, 173, 189, 0.08);
  color: rgba(220, 225, 235, 0.72);
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 132px;
  padding: 4px 0 18px;
}

.eyebrow,
.subtitle,
.intro,
.map-topline,
.detail-kicker,
.panel-heading,
.range-bar {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff9eb;
  font-size: clamp(3.1rem, 6.8vw, 6.9rem);
  line-height: 0.88;
}

.subtitle {
  margin: 8px 0 0;
  color: #f7d98f;
  font-size: clamp(1.12rem, 2.4vw, 2.1rem);
  font-weight: 700;
}

.intro {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.lucky-button,
.sound-button,
.open-site,
.filter-button {
  border: 1px solid rgba(243, 201, 105, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.lucky-button {
  min-width: 168px;
  min-height: 46px;
  padding: 0 18px;
  color: #080a10;
  background: linear-gradient(135deg, #fff0b9, var(--gold));
  font-weight: 900;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.sound-button {
  min-width: 160px;
  min-height: 46px;
  padding: 0 16px;
  border-color: rgba(244, 239, 227, 0.22);
  background: rgba(8, 11, 18, 0.58);
  color: rgba(244, 239, 227, 0.84);
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}

.sound-button[aria-pressed="true"],
.sound-button.is-on {
  border-color: rgba(112, 224, 166, 0.58);
  background: rgba(112, 224, 166, 0.14);
  color: #dfffea;
}

.sound-button.is-off {
  border-color: rgba(244, 239, 227, 0.22);
  background: rgba(8, 11, 18, 0.58);
  color: rgba(244, 239, 227, 0.84);
}

.sound-button.is-waiting {
  border-color: rgba(243, 201, 105, 0.72);
  background: rgba(243, 201, 105, 0.16);
  color: #ffe7a3;
}

.sound-button.is-unavailable {
  border-color: rgba(255, 154, 95, 0.42);
  background: rgba(255, 154, 95, 0.08);
  color: rgba(244, 239, 227, 0.72);
}

.sound-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lucky-button:hover,
.sound-button:hover:not(:disabled),
.filter-button:hover,
.open-site:hover {
  border-color: rgba(255, 238, 184, 0.86);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(164px, 0.58fr) minmax(520px, 3.2fr) minmax(250px, 0.86fr);
  gap: 14px;
  min-height: 540px;
}

.filter-panel,
.star-map-panel,
.detail-panel,
.range-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.filter-panel,
.detail-panel {
  padding: 18px;
}

.panel-heading,
.map-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--gold);
}

.filter-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  text-align: left;
}

.filter-button.is-active {
  border-color: rgba(243, 201, 105, 0.95);
  background: rgba(243, 201, 105, 0.14);
  color: #fff5d7;
}

.filter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px currentColor;
}

.star-map-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.map-topline {
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.map-frame {
  position: relative;
  min-height: 492px;
}

.timeline-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 492px;
}

.map-message {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-width: min(320px, 80%);
  color: var(--muted);
  text-align: center;
}

.axis-label {
  fill: rgba(244, 239, 227, 0.46);
  font-size: 11px;
  font-weight: 800;
}

.axis-line,
.category-line {
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 1;
}

.date-line {
  stroke: rgba(243, 201, 105, 0.065);
  stroke-width: 1;
}

.project-node {
  outline: none;
}

.project-star {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 1;
  transition: opacity 160ms ease, r 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.project-star.is-dimmed {
  opacity: 0.16;
}

.project-node:hover .project-star,
.project-node:focus-within .project-star {
  stroke: rgba(255, 248, 223, 0.94);
  stroke-width: 1.8;
}

.project-star.is-selected {
  stroke: #fff8df;
  stroke-width: 2.5;
}

.star-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  visibility: hidden;
}

.project-node.is-selected .star-tooltip,
.project-node:hover .star-tooltip,
.project-node:focus-within .star-tooltip {
  opacity: 1;
  visibility: visible;
}

.star-tooltip-bg {
  fill: rgba(8, 11, 18, 0.82);
  stroke: rgba(243, 201, 105, 0.26);
  stroke-width: 1;
}

.star-label {
  fill: rgba(255, 247, 224, 0.9);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.detail-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
  line-height: 1.14;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  color: #fff3cb;
  text-align: right;
  font-weight: 800;
}

.detail-description {
  margin: 22px 0;
  color: #d8deec;
  font-size: 0.98rem;
  line-height: 1.84;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.open-site {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #080a10;
  background: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.open-site.is-visible {
  display: inline-flex;
}

.range-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-top: 18px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 900;
}

.range-bar i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 201, 105, 0.12), rgba(243, 201, 105, 0.78), rgba(243, 201, 105, 0.12));
}

@media (max-width: 1080px) {
  .timeline-layout {
    grid-template-columns: minmax(164px, 0.72fr) minmax(0, 2.6fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px;
  }

  .domain-status-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .domain-status-title::after {
    content: "";
  }

  .domain-status-items {
    flex-wrap: wrap;
  }

  .domain-pill {
    white-space: normal;
  }

  .hero,
  .timeline-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .hero-actions {
    justify-content: stretch;
  }

  .lucky-button,
  .sound-button {
    width: 100%;
  }

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

  .map-frame,
  .timeline-svg {
    min-height: 430px;
  }

  .range-bar {
    gap: 8px;
    padding: 0 12px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
