:root {
  --bg: #060911;
  --bg-2: #0a1020;
  --panel: #0e1627;
  --panel-2: #111b30;
  --ink: #edf2ff;
  --muted: #93a3c4;
  --line: rgba(159, 177, 209, 0.16);
  --line-strong: rgba(232, 191, 114, 0.34);
  --cyan: #6fe3ff;
  --cyan-dim: rgba(111, 227, 255, 0.12);
  --gold: #e8bf72;
  --gold-2: #c9963f;
  --gold-dim: rgba(232, 191, 114, 0.12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Cinzel", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(111, 227, 255, 0.1), transparent 62%),
    radial-gradient(760px 520px at -5% 38%, rgba(232, 191, 114, 0.055), transparent 62%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(111, 227, 255, 0.5), transparent),
    radial-gradient(1px 1px at 44% 68%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 54%, rgba(232, 191, 114, 0.42), transparent),
    radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 62% 88%, rgba(111, 227, 255, 0.35), transparent);
  background-size: 520px 520px, 640px 640px, 700px 700px, 560px 560px, 600px 600px, 680px 680px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #120d05;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 17, 0.78);
  backdrop-filter: blur(16px);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.gf-site-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
}

.brand-sub {
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s ease;
}

.nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f0cc8c, var(--gold-2));
  color: #170f04;
  box-shadow: 0 10px 26px rgba(201, 150, 63, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f7d99f, #d8a64e);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(14, 22, 39, 0.5);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: rgba(111, 227, 255, 0.55);
  color: var(--cyan);
}

.btn-primary[aria-pressed="true"] {
  background: rgba(111, 227, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.region-card:focus-visible,
.region-quick button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
}

.hero-aura {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 227, 255, 0.12), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-areas:
    "copy clock"
    "controls clock";
  column-gap: 52px;
  row-gap: 0;
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-controls {
  grid-area: controls;
  min-width: 0;
}

.rift-clock {
  grid-area: clock;
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h1 {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(111, 227, 255, 0.12);
}

.hero-lede {
  max-width: 58ch;
  margin: 0;
  color: #b7c4dd;
  font-size: 1.06rem;
  line-height: 1.65;
}

.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.time-cell {
  padding: 16px 0;
}

.time-cell + .time-cell {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.time-label {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.time-label span {
  margin-left: 7px;
  color: var(--gold);
}

.time-cell strong {
  display: block;
  margin-top: 5px;
  color: var(--cyan);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.time-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  max-width: 56ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.region-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.region-quick button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 22, 39, 0.55);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.region-quick button:hover {
  border-color: rgba(111, 227, 255, 0.45);
  color: var(--ink);
}

.region-quick button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

/* ---------- Rift clock ---------- */

.rift-clock {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 430px;
  padding: 18px 0;
}

.rift-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(111, 227, 255, 0.14);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}

.rift-orbit span {
  position: absolute;
  border: 1px solid rgba(232, 191, 114, 0.12);
  border-radius: 50%;
}

.rift-orbit span:nth-child(1) {
  inset: 9%;
}

.rift-orbit span:nth-child(2) {
  inset: 19%;
  border-style: dashed;
  border-color: rgba(111, 227, 255, 0.12);
}

.rift-orbit span:nth-child(3) {
  inset: 31%;
  border-color: rgba(232, 191, 114, 0.1);
}

.rift-ring {
  --progress: 0;
  --arc: var(--cyan);
  position: relative;
  display: grid;
  place-items: center;
  width: min(76vw, 372px);
  aspect-ratio: 1;
  margin-top: 16px;
  border-radius: 50%;
}

.rift-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--arc) calc(var(--progress) * 360deg), rgba(111, 227, 255, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  filter: drop-shadow(0 0 20px rgba(111, 227, 255, 0.28));
}

.rift-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(232, 191, 114, 0.46) 0deg 0.5deg, transparent 0.5deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0.55;
}

.rift-ring.is-open {
  --arc: var(--gold);
}

.rift-ring.is-open::after {
  animation: rift-pulse 2.4s ease-in-out infinite;
}

.rift-ring.is-inside {
  --arc: var(--gold-2);
}

.rift-ring-inner {
  position: absolute;
  inset: 17px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(232, 191, 114, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(111, 227, 255, 0.13), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(10, 16, 32, 0.94), rgba(5, 8, 15, 0.99) 72%);
  box-shadow: inset 0 0 70px rgba(111, 227, 255, 0.08);
  text-align: center;
}

.rift-state {
  margin: 0;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rift-count {
  margin: 12px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 28px rgba(111, 227, 255, 0.42);
}

.rift-when {
  max-width: 25ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.rift-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker > span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section-lede {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.panel-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Today ---------- */

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.schedule-zone {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.schedule-zone strong {
  color: var(--ink);
}

.day-rail {
  padding: 18px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.85), rgba(10, 16, 32, 0.9));
  box-shadow: var(--shadow-1);
}

.rail-track {
  position: relative;
  height: 56px;
  background-image: linear-gradient(to right, rgba(159, 177, 209, 0.12) 1px, transparent 1px);
  background-size: calc(100% / 24) 100%;
}

.rail-hour {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(159, 177, 209, 0.08);
}

.rail-now {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 191, 114, 0.8);
}

.rail-now::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 191, 114, 0.9);
}

.rail-dot {
  position: absolute;
  bottom: 8px;
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  opacity: 0.75;
}

.rail-dot.is-shugo {
  background: var(--gold);
}

.rail-dot.is-invasion {
  background: var(--cyan);
}

.rail-pin {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -4px;
  transform: rotate(45deg);
  border: 1px solid #fff;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(111, 227, 255, 0.75);
}

.rail-pin.is-boss {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(232, 191, 114, 0.75);
}

.rail-pin.is-reset {
  background: var(--muted);
  box-shadow: none;
}

.rail-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.day-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.68rem;
}

.legend-dot {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  display: inline-block;
}

.legend-shugo {
  background: var(--gold);
}

.legend-invasion {
  background: var(--cyan);
}

.legend-major {
  background: #fff;
  box-shadow: 0 0 8px rgba(111, 227, 255, 0.7);
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
  gap: 20px;
}

.day-panel,
.cadence-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.82), rgba(9, 14, 27, 0.92));
  box-shadow: var(--shadow-1);
}

.day-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-item {
  display: grid;
  grid-template-columns: 64px 94px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}

.day-item:last-child {
  border-bottom: 0;
}

.day-item time {
  color: var(--ink);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.day-badge {
  display: inline-block;
  align-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.day-badge.is-rift {
  border-color: rgba(111, 227, 255, 0.4);
  color: var(--cyan);
}

.day-badge.is-boss {
  border-color: rgba(232, 191, 114, 0.4);
  color: var(--gold);
}

.day-badge.is-reset {
  border-color: var(--line);
  color: var(--muted);
}

.day-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.day-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.day-item.is-past {
  opacity: 0.4;
}

.day-item.is-next {
  border-left: 2px solid var(--gold);
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(232, 191, 114, 0.08), transparent 70%);
}

.day-empty {
  padding: 18px 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.day-past {
  border-bottom: 0;
}

.day-past > details > summary {
  padding: 14px 8px 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.day-past > details > summary::-webkit-details-marker {
  display: none;
}

.day-past > details > summary::after {
  content: " +";
  color: var(--muted);
}

.day-past > details[open] > summary::after {
  content: " −";
}

.day-list-past {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.cadence-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cadence-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.cadence-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.cadence-next {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.panel-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* ---------- Regions ---------- */

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.region-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.76), rgba(9, 14, 27, 0.9));
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.region-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 227, 255, 0.4);
}

.region-card[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 191, 114, 0.13), rgba(14, 22, 39, 0.94));
  box-shadow: inset 0 0 0 1px rgba(232, 191, 114, 0.35);
}

.region-abbr {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.region-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.region-clock {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.region-reset {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.region-reset strong {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.region-detail {
  margin-top: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(14, 22, 39, 0.68);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.region-detail p {
  margin: 0;
}

.region-detail strong {
  color: var(--ink);
}

.region-detail a {
  color: var(--cyan);
}

/* ---------- Event table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.82), rgba(9, 14, 27, 0.92));
  box-shadow: var(--shadow-1);
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.event-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.event-table tbody th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.event-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.event-table tbody tr:last-child th,
.event-table tbody tr:last-child td {
  border-bottom: 0;
}

.event-table tbody tr:hover {
  background: rgba(111, 227, 255, 0.035);
}

.event-table td[data-event-next] {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* ---------- Rift feature ---------- */

.rift-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 44px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(560px 300px at 88% 20%, rgba(111, 227, 255, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(17, 27, 48, 0.86), rgba(8, 13, 25, 0.94));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.fact-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.fact-list li > span {
  padding-top: 3px;
  border-top: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.fact-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.fact-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.text-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 227, 255, 0.4);
}

.text-link:hover {
  border-bottom-color: var(--cyan);
}

.rift-diagram {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 330px;
}

.diagram-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  aspect-ratio: 1;
  transform: translate(-50%, -62%);
  border: 1px dashed rgba(111, 227, 255, 0.22);
  border-radius: 50%;
  animation: spin 46s linear infinite reverse;
}

.diagram-gate {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.diagram-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(111, 227, 255, 0.2), transparent 42%),
    conic-gradient(from 20deg, rgba(111, 227, 255, 0.9), rgba(232, 191, 114, 0.85), rgba(111, 227, 255, 0.25), rgba(111, 227, 255, 0.9));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  filter: drop-shadow(0 0 34px rgba(111, 227, 255, 0.38));
}

.diagram-core {
  position: absolute;
  z-index: 1;
  width: 110px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(111, 227, 255, 0.55) 32%, rgba(111, 227, 255, 0) 70%);
  filter: blur(1px);
}

.diagram-rim {
  position: absolute;
  z-index: 1;
  inset: -12px;
  border: 1px solid rgba(232, 191, 114, 0.45);
  border-radius: 50%;
}

.diagram-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 30px;
}

.diagram-stats div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.diagram-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.diagram-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diagram-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Sources ---------- */

.source-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 40px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 191, 114, 0.06), rgba(111, 227, 255, 0.04));
}

.source-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.source-strip h2 {
  margin-top: 8px;
}

.source-meta {
  align-self: center;
}

.source-meta p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.source-meta p:last-child {
  border-bottom: 0;
}

.source-meta span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-meta a {
  color: var(--cyan);
  text-decoration: none;
}

.source-meta a:hover {
  text-decoration: underline;
}

/* ---------- Prose ---------- */

.prose {
  max-width: 72ch;
  color: #c5d1e8;
  font-size: 1.02rem;
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 1.55rem;
}

.prose h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.prose p {
  margin: 0 0 16px;
}

.prose a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

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

.prose table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9em;
}

.prose blockquote {
  margin: 20px 0;
  padding: 10px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(14, 22, 39, 0.6);
  color: var(--muted);
}

.prose .callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 10px;
  background: rgba(14, 22, 39, 0.65);
  font-size: 0.9rem;
}

.prose .callout strong {
  color: var(--cyan);
}

/* ---------- FAQ ---------- */

.faq-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.faq-section h2 {
  margin-top: 0;
  font-size: 1.55rem;
}

.faq-list {
  max-width: 78ch;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 16px 34px 16px 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 2px;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 72ch;
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Inner pages ---------- */

.page {
  padding-top: 52px;
  padding-bottom: 24px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.72rem;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--cyan);
}

.page-head {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  margin-top: 12px;
}

.page-lede {
  max-width: 66ch;
  margin: 0;
  color: #b7c4dd;
  font-size: 1.06rem;
  line-height: 1.65;
}

.page-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-meta time {
  color: var(--cyan);
}

.related {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.76), rgba(9, 14, 27, 0.9));
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 227, 255, 0.45);
}

.related-card span {
  display: block;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Contact form / tickets ---------- */

.contact-form {
  max-width: 680px;
  margin: 24px 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.82), rgba(9, 14, 27, 0.92));
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 8, 15, 0.65);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 227, 255, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  margin: 12px 0 0;
  color: var(--cyan);
  font-size: 0.82rem;
}

.tickets {
  margin-top: 34px;
}

.tickets h2 {
  font-size: 1.35rem;
}

.gf-ticket {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 22, 39, 0.7);
}

.gf-ticket-subject {
  color: var(--ink);
  font-weight: 700;
}

.gf-ticket-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.gf-ticket-msg {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.gf-ticket-who {
  color: var(--muted);
  font-size: 0.66rem;
}

.gf-ticket-text {
  margin: 4px 0 0;
  color: #c5d1e8;
  font-size: 0.88rem;
  line-height: 1.6;
}

.gf-ticket-reply {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.gf-ticket-reply input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.65);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.tickets-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Compact home modules ---------- */

.hero-reset {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hero-reset a {
  color: var(--cyan);
  text-decoration: none;
}

.hero-reset a:hover {
  text-decoration: underline;
}

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

.next-rift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.82), rgba(9, 14, 27, 0.92));
  color: var(--muted);
  font-size: 0.86rem;
}

.next-rift.is-first {
  border-color: rgba(232, 191, 114, 0.42);
  background: linear-gradient(90deg, rgba(232, 191, 114, 0.1), rgba(9, 14, 27, 0.94));
}

.next-rift-local {
  color: var(--ink);
  font-weight: 600;
}

.next-rift-server {
  color: var(--muted);
}

.next-rift-count {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.next-rift.is-empty {
  display: block;
  color: var(--muted);
}

.next-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.next-note a {
  color: var(--cyan);
  text-decoration: none;
}

.next-note a:hover {
  text-decoration: underline;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.timer-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.78), rgba(9, 14, 27, 0.92));
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.timer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 227, 255, 0.42);
}

.timer-card-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timer-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.timer-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.timer-card-next {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lead-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 22, 39, 0.5);
  color: var(--muted);
  font-size: 0.72rem;
}

.lead-select span {
  white-space: nowrap;
}

.lead-select select {
  border: 0;
  background: transparent;
  color: var(--cyan);
  color-scheme: dark;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.lead-select:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 227, 255, 0.12);
}

.rift-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- World boss timer ---------- */

.boss-timer {
  margin: 24px 0 30px;
}

.boss-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.boss-regions button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 22, 39, 0.55);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.boss-regions button:hover {
  border-color: rgba(111, 227, 255, 0.45);
  color: var(--ink);
}

.boss-regions button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.boss-zone {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.boss-zone strong {
  color: var(--ink);
}

.boss-table td[data-boss-next] {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.boss-table td[data-boss-server] {
  color: var(--muted);
  white-space: nowrap;
}

.boss-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 40px;
  padding: 46px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.72);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 44px;
}

.foot-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.foot-note {
  max-width: 42ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.foot-head {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-nav a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--cyan);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.foot-base p {
  margin: 0;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 54vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.error-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.error-page p {
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- Motion ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rift-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(232, 191, 114, 0.26));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(232, 191, 114, 0.5));
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .rift-feature,
  .source-strip,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "clock"
      "controls";
    gap: 8px;
  }

  .rift-clock {
    min-height: 340px;
  }

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

  .foot-nav {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .event-table thead {
    display: none;
  }

  .event-table,
  .event-table tbody,
  .event-table tr,
  .event-table th,
  .event-table td {
    display: block;
    width: 100%;
  }

  .event-table tbody tr {
    margin-bottom: 10px;
    padding: 4px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(14, 22, 39, 0.6);
  }

  .event-table tbody th,
  .event-table tbody td {
    border-bottom: 0;
    padding: 7px 14px;
  }

  .event-table tbody th {
    padding-top: 12px;
    border-bottom: 1px solid var(--line);
  }

  .event-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--gold);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .event-table td[data-event-next] {
    white-space: normal;
  }

  .boss-table td:nth-of-type(1)::before {
    content: "Schedule";
  }

  .boss-table td:nth-of-type(2)::before {
    content: "Next spawn";
  }

  .boss-table td:nth-of-type(3)::before {
    content: "Server time";
  }

  .boss-table td:nth-of-type(4)::before {
    content: "Location & drops";
  }

  .boss-table td[data-boss-next],
  .boss-table td[data-boss-server] {
    white-space: normal;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .head-row {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 13, 25, 0.98);
    box-shadow: var(--shadow-2);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .hero {
    padding: 42px 0 40px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .time-pair {
    grid-template-columns: 1fr;
  }

  .time-cell + .time-cell {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .time-cell strong {
    font-size: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .lead-select {
    width: 100%;
    justify-content: space-between;
  }

  .region-quick {
    gap: 7px;
  }

  .rift-clock {
    min-height: 320px;
  }

  .rift-ring {
    width: min(82vw, 320px);
  }

  .rift-count {
    font-size: 2.35rem;
  }

  .section {
    padding: 54px 0;
  }

  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .day-rail {
    padding: 14px 14px 10px;
  }

  .day-item {
    grid-template-columns: 54px 80px minmax(0, 1fr);
    gap: 7px;
  }

  .day-badge {
    padding: 2px 6px;
    font-size: 0.54rem;
  }

  .day-item strong {
    font-size: 0.85rem;
  }

  .day-item small {
    font-size: 0.7rem;
  }

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

  .next-rift {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .next-rift-count {
    text-align: left;
  }

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

  .rift-feature {
    padding: 26px 20px;
  }

  .rift-diagram {
    min-height: 280px;
  }

  .source-strip {
    padding: 24px 20px;
  }

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

  .foot-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-base {
    flex-direction: column;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .region-grid {
    grid-template-columns: 1fr;
  }

  .day-item {
    grid-template-columns: 50px 1fr;
  }

  .day-badge {
    grid-column: 2;
    justify-self: start;
    margin-bottom: 2px;
  }

  .day-item > div {
    grid-column: 1 / -1;
    padding-left: 50px;
  }
}

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