@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@16..72,560;16..72,680;16..72,760&family=Outfit:wght@400;500;600&display=swap");

:root {
  --bg: #0a0c10;
  --surface: #12161f;
  --surface-2: #1a1f2b;
  --text: #e8edf5;
  --muted: #8b95a8;
  --accent: #c9a84c;
  --accent-2: #3d8bfd;
  --accent-3: #e05a5a;
  --border: rgba(255, 255, 255, 0.07);
  --radius: 20px;
  --display: "Literata", "Iowan Old Style", Palatino, serif;
  --body: "Outfit", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 78% 0%, rgba(201, 168, 76, 0.1), transparent 60%),
    radial-gradient(ellipse 46% 42% at 0% 86%, rgba(61, 139, 253, 0.08), transparent 62%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0a0c10; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #0a0c10;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page { position: relative; z-index: 1; padding: 18px 0 80px; animation: fadeUp 0.55s ease both; }

.top {
  position: sticky;
  top: 14px;
  z-index: 40;
  background: transparent;
  padding: 0;
}
.top .bar {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: rgba(18, 22, 31, 0.74);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: none;
}
.brand-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 9px;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 500;
}
.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.menu a[aria-current="page"] { color: #0a0c10; background: var(--accent); }
.burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.kicker {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 14ch; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin: 0; }
.prose { max-width: 74ch; }
.prose h1 { max-width: 20ch; font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
.prose p, .prose li { color: #d5dbe6; }
.prose p { margin: 0 0 14px; }
.prose h2 { margin-top: 32px; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.2rem; }
.muted, .tiny { color: var(--muted); }
.tiny { font-size: 13px; }

.hero {
  display: block;
  min-height: 0;
  padding: 42px 0 6px;
}
.hero-copy { width: min(680px, 92%); }
.hero-copy { position: relative; z-index: 2; animation: fadeUp 0.7s ease both; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0a0c10;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: #dfc06a; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--text); }

.hero-stage { position: relative; min-height: 0; margin: 18px 0 8px; animation: fadeUp 0.8s ease 0.08s both; }
.orbit {
  position: absolute;
  inset: -8%;
  border: 1px dashed rgba(201, 168, 76, 0.28);
  border-radius: 50%;
  animation: spin 42s linear infinite;
  pointer-events: none;
}
.orbit:nth-child(2) {
  inset: 8%;
  border-color: rgba(61, 139, 253, 0.22);
  animation-duration: 64s;
  animation-direction: reverse;
}
.panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(26, 31, 43, 0.96), rgba(14, 17, 24, 0.94));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.05);
}
.hero-stage .panel { margin: 0 0 0 8%; border-radius: 8px 32px 32px 8px; }
.hero-stage .panel:hover { transform: translateY(-3px); transition: transform 0.35s ease; }
.band {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px 42px;
  align-items: start;
}
.band-flip { grid-template-columns: 1.2fr 0.8fr; }
.facts-stack { grid-template-columns: 1fr; }
.facts-stack .panel { transform: none !important; }
.calc-block .split { grid-template-columns: 0.78fr 1.22fr; }
.calc-block .prose { order: -1; margin-top: 0; }
.calc-block .panel { transform: none; }
.dice-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dice-head h2 { font-size: 1.35rem; margin: 0; }
.dice-head p { margin: 0; color: var(--muted); font-size: 14px; }
.bars {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  align-items: end;
  height: 168px;
  margin-top: 16px;
}
button.bar {
  background: transparent;
  border: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}
button.bar i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(to top, rgba(61, 139, 253, 0.85), var(--accent));
  transform-origin: bottom;
  animation: rise 0.7s ease both;
}
button.bar:hover i, button.bar:focus-visible i, button.bar.on i {
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.35);
}
button.bar b { font-size: 11px; color: var(--muted); font-weight: 500; text-align: center; }
.live { min-height: 3.4em; margin: 12px 0 0; color: var(--text); font-size: 15px; }

.ruler {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 6% 0 auto;
  width: min(720px, 100%);
  padding: 10px 0 0;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.block { margin-top: 64px; }
.ruler + .block {
  margin-top: 36px;
  margin-left: 7%;
  max-width: 760px;
  padding: 8px 0 0 22px;
  border-left: 2px solid rgba(201, 168, 76, 0.45);
}
.block-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.index-list { display: grid; gap: 14px; }
.entry {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.entry:hover { transform: translateY(-4px); border-color: rgba(201, 168, 76, 0.38); }
.ruler ~ .block .index-list .entry:nth-child(1) { margin-right: 12%; }
.ruler ~ .block .index-list .entry:nth-child(2) { margin-left: 8%; margin-right: 4%; }
.ruler ~ .block .index-list .entry:nth-child(3) { margin-left: 16%; }
.entry .num { font-family: var(--display); color: var(--accent); font-size: 0.95rem; padding-top: 4px; }
.entry h3 { margin-bottom: 6px; }
.entry p { margin: 0; color: var(--muted); }
.entry .mins { color: var(--accent-2); font-size: 12px; white-space: nowrap; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  transform: rotate(-0.3deg);
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  background: #10141c;
}
th button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-align: left; }
th button:hover { color: var(--text); }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(201, 168, 76, 0.06); }
.note { margin-top: 12px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
.split .panel { transform: translateY(18px) rotate(-0.6deg); }
.split .prose { margin-top: 54px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 46px;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.meter {
  height: 10px;
  border-radius: 999px;
  background: #0a0c10;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 14px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.45s ease;
}
.result { margin-top: 14px; min-height: 4.5em; color: var(--muted); }

.facts { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.facts .panel:first-child { transform: translateY(22px); }
.facts .panel:last-child { transform: translateY(-16px) rotate(0.5deg); }
.fact p { margin: 0 0 8px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.acc { border-top: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 16px 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.05rem;
}
.acc-btn i { color: var(--accent); font-style: normal; transition: transform 0.25s ease; }
.acc-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.acc-panel { display: none; padding: 4px 8px 16px 18px; color: var(--muted); border-left: 2px solid rgba(61, 139, 253, 0.35); }
.acc-panel.open { display: block; animation: fadeUp 0.28s ease both; }
.acc-panel p { margin: 8px 0; }

.layout { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.layout .side { order: 2; }
.side {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(18, 22, 31, 0.9);
  border: 1px solid var(--border);
  transform: rotate(-0.4deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .sort {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
}
.chip.on, .chip:hover { color: #0a0c10; background: var(--accent); border-color: var(--accent); }
.side h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--display);
  margin: 0;
}
.side .sort { width: 100%; }
.empty {
  display: none;
  padding: 18px;
  border: 1px dashed rgba(201, 168, 76, 0.35);
  border-radius: 16px;
  color: var(--muted);
}

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(201, 168, 76, 0.4); }
.cards .card:nth-child(2), .cards .card:nth-child(3) { margin-top: 28px; }
.card h3 { margin-top: 8px; }
.card p { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 168, 76, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 600;
}

.term {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  border: 0;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.7);
  padding: 0 2px;
  cursor: pointer;
  border-radius: 4px;
}
.pop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.pop.show { display: flex; }
.pop-card {
  width: min(520px, 100%);
  background: var(--surface-2);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.28s ease both;
}
.pop-card h3 { color: var(--accent); }
.pop-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.pop-x {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 12px;
  cursor: pointer;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 0 0 22px;
  background:
    linear-gradient(180deg, rgba(61, 139, 253, 0.14), transparent 90px),
    #10131a;
  border-top: 0;
  overflow: hidden;
}
.footer::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 28px, var(--accent-2) 28px 34px, transparent 34px 44px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px 28px;
  padding-top: 28px;
}
.foot-grid > div:first-child {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}
.footer a { color: var(--muted); text-decoration: none; margin: 0; font-size: 15px; }
.foot-grid > div:not(:first-child) a { display: inline; margin-right: 14px; line-height: 2; }
.footer a:hover { color: var(--accent); }
.footer h2 {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 680;
  margin-bottom: 6px;
}
.disclaimer {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px 14px 4px 14px;
  background: rgba(10, 12, 16, 0.55);
  color: var(--muted);
  font-size: 13px;
  max-width: none;
}
.legal-strip {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer .brand-name { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 0.95; }
.footer .brand-name small { letter-spacing: 0.22em; }

.cookie {
  position: fixed;
  z-index: 45;
  left: 16px;
  right: 16px;
  bottom: 12px;
  width: min(880px, calc(100% - 32px));
  margin-inline: auto;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 22, 31, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.cookie.show { display: flex; animation: fadeUp 0.35s ease both; }
.cookie p { margin: 0; color: var(--muted); font-size: 14px; }
.cookie a { color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-3);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .hero, .split, .facts, .layout, .cards, .foot-grid, .band, .band-flip, .calc-block .split { grid-template-columns: 1fr; }
  .foot-grid > div:first-child { flex-direction: column; align-items: flex-start; }
  .side { position: static; transform: none; }
  .hero-stage { min-height: 0; }
  .hero-stage .panel, .split .panel, .facts .panel, .table-wrap { transform: none; margin: 0; }
  .hero-copy { width: 100%; }
  .split .prose { margin-top: 8px; }
  .ruler + .block { margin-left: 0; padding-left: 0; border-left: 0; }
  .ruler ~ .block .index-list .entry { margin-left: 0; margin-right: 0; }
  .cards .card { margin-top: 0 !important; }
  .entry { grid-template-columns: 42px 1fr; }
  .entry .mins { grid-column: 2; }
  .ruler { margin-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(1180px, calc(100% - 24px)); }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(18, 22, 31, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .fields, .block-head, .cookie, .dice-head { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .cookie .btn { width: 100%; }
  h1, .prose h1 { max-width: none; }
  .bars { height: 132px; gap: 3px; }
  button.bar b { font-size: 9px; }
  .hero { min-height: 0; gap: 18px; }
  .orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
