.reckoning-intro,
.wheel-section,
.measure-section,
.binding-section {
  width: var(--content);
  margin-inline: auto;
}

.reckoning-intro {
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.reckoning-intro::before {
  position: absolute;
  z-index: -1;
  inset: var(--header-h) 0 auto;
  height: 620px;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.45), rgba(7, 8, 12, 0.96) 82%),
    radial-gradient(circle at 18% 45%, rgba(127, 97, 200, 0.16), transparent 29rem),
    repeating-radial-gradient(circle at 83% 46%, transparent 0 60px, rgba(205, 168, 87, 0.035) 61px 62px);
  content: "";
  pointer-events: none;
}

.reckoning-intro__copy { max-width: 720px; }

.reckoning-intro h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 7.4vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.reckoning-intro__copy > p:last-child {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: #b8b4bf;
  line-height: 1.72;
}

.reckoning-declaration {
  margin: 1.6rem 0 0;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 0.02em;
}

.current-seal {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(20, 17, 27, 0.96), rgba(8, 9, 13, 0.96)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.current-seal::after {
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.current-seal__index {
  display: block;
  margin-bottom: 3.5rem;
  color: rgba(205, 168, 87, 0.28);
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.8;
}

.current-seal p {
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.current-seal strong {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.current-seal > span:not(.current-seal__index) {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.seal-action {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  color: #d8d3dc;
  cursor: pointer;
  font-size: 0.75rem;
  text-align: left;
}

.seal-action:hover,
.seal-action:focus-visible { color: var(--gold-bright); }

.wheel-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 8vw, 7rem);
  border-top: 1px solid var(--line-soft);
}

.wheel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.wheel-heading h2 {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}

.wheel-heading > p {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.reckoning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  border: 1px solid var(--line-soft);
  background: #08090e;
}

.wheel-stage {
  position: relative;
  min-width: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 50%, rgba(92, 61, 142, 0.12), transparent 44%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,255,255,0.022) calc(25% - 1px) 25%);
}

.wheel-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wheel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wheel-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.wheel-legend i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); }
.wheel-legend span:nth-child(2) i { background: #d7c69d; }
.wheel-legend span:nth-child(3) i { background: var(--violet); }
.wheel-legend span:nth-child(4) i { background: #534170; }

.wheel-sound {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(12, 13, 19, 0.78);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.wheel-sound:hover,
.wheel-sound:focus-visible,
.wheel-sound[aria-pressed="true"] {
  border-color: rgba(205, 168, 87, 0.52);
  color: var(--gold-bright);
}

.wheel-sound:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 3px; }
.wheel-sound[aria-pressed="false"] { border-color: var(--line-soft); color: var(--muted-2); }

.wheel-sound__icon {
  display: inline-flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.wheel-sound__icon i {
  display: block;
  width: 1px;
  height: 5px;
  background: currentColor;
  transition: height 180ms ease;
}

.wheel-sound__icon i:nth-child(2) { height: 12px; }
.wheel-sound__icon i:nth-child(3) { height: 8px; }
.wheel-sound[aria-pressed="false"] .wheel-sound__icon i { height: 2px; }

.time-wheel {
  display: block;
  width: min(100%, 800px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

#rune-ring,
#planet-ring,
#element-ring,
#arcana-ring {
  transform-origin: 380px 380px;
  will-change: transform;
}

.time-wheel.is-awakening #rune-ring { animation: awaken-clockwise 2.65s cubic-bezier(0.16, 0.76, 0.22, 1) both; }
.time-wheel.is-awakening #planet-ring { animation: awaken-counter 2.3s 90ms cubic-bezier(0.16, 0.76, 0.22, 1) both; }
.time-wheel.is-awakening #element-ring { animation: awaken-clockwise-inner 2.05s 160ms cubic-bezier(0.16, 0.76, 0.22, 1) both; }
.time-wheel.is-awakening #arcana-ring { animation: awaken-counter-inner 1.8s 230ms cubic-bezier(0.16, 0.76, 0.22, 1) both; }
.time-wheel.is-awakening .wheel-field { animation: wheel-breath 2.65s ease-out both; }

@keyframes awaken-clockwise {
  0% { transform: rotate(-9deg); opacity: 0.35; }
  28% { opacity: 1; }
  72% { transform: rotate(1.2deg); }
  100% { transform: rotate(0); opacity: 1; }
}

@keyframes awaken-counter {
  0% { transform: rotate(12deg); opacity: 0.38; }
  72% { transform: rotate(-1deg); }
  100% { transform: rotate(0); opacity: 1; }
}

@keyframes awaken-clockwise-inner {
  0% { transform: rotate(-15deg); opacity: 0.32; }
  74% { transform: rotate(1.4deg); }
  100% { transform: rotate(0); opacity: 1; }
}

@keyframes awaken-counter-inner {
  0% { transform: rotate(19deg); opacity: 0.2; }
  76% { transform: rotate(-1.8deg); }
  100% { transform: rotate(0); opacity: 1; }
}

@keyframes wheel-breath {
  0% { stroke: rgba(205, 168, 87, 0.08); }
  45% { stroke: rgba(205, 168, 87, 0.48); }
  100% { stroke: rgba(205, 168, 87, 0.16); }
}

.wheel-field {
  fill: rgba(5, 6, 10, 0.88);
  stroke: rgba(205, 168, 87, 0.16);
}

.wheel-guide {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-dasharray: 1 8;
}

.wheel-axis {
  fill: none;
  stroke: rgba(205, 168, 87, 0.28);
  stroke-width: 1;
}

.wheel-choice { cursor: pointer; outline: none; }

.wheel-segment {
  fill: rgba(255, 255, 255, 0.012);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
  transition: fill 220ms ease, stroke 220ms ease, filter 220ms ease;
}

.wheel-choice:hover .wheel-segment,
.wheel-choice:focus-visible .wheel-segment { fill: rgba(205, 168, 87, 0.08); stroke: rgba(239, 212, 142, 0.55); }
.wheel-choice:focus-visible .wheel-segment { stroke-width: 2; }
.wheel-choice.is-selected .wheel-segment { fill: rgba(205, 168, 87, 0.16); stroke: var(--gold-bright); }
.wheel-choice[data-level="element"].is-selected .wheel-segment { fill: rgba(127, 97, 200, 0.2); stroke: #b89aec; filter: url(#violet-glow); }

.wheel-label {
  fill: #a7a2ad;
  font-family: var(--serif);
  font-size: 15px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.wheel-choice[data-level="rune"] .wheel-label { font-size: 18px; }
.wheel-choice[data-level="planet"] .wheel-label { fill: #d2cfc8; font-size: 20px; }
.wheel-choice[data-level="element"] .wheel-label { font-family: var(--sans); font-size: 9px; letter-spacing: 0.08em; }
.wheel-choice.is-selected .wheel-label { fill: var(--gold-bright); }
.wheel-choice[data-level="element"].is-selected .wheel-label { fill: #d6c3ff; }

.arcana-tick { stroke: rgba(127, 97, 200, 0.25); stroke-width: 1.2; }
.arcana-tick.is-major { stroke: rgba(205, 168, 87, 0.5); stroke-width: 2; }
.arcana-tick.is-selected { stroke: #c7a7ff; stroke-width: 5; filter: url(#violet-glow); }

.wheel-core { cursor: pointer; outline: none; }
.wheel-core__halo { fill: rgba(107, 75, 168, 0.08); stroke: rgba(127, 97, 200, 0.3); stroke-dasharray: 3 9; }
.wheel-core__disc { fill: #08080d; stroke: rgba(205, 168, 87, 0.45); transition: fill 180ms ease, stroke 180ms ease; }
.wheel-core:hover .wheel-core__disc,
.wheel-core:focus-visible .wheel-core__disc { fill: #0e0b14; stroke: var(--gold-bright); }
.wheel-core__zero { fill: var(--gold-bright); font-family: var(--serif); font-size: 49px; text-anchor: middle; }
.wheel-core__name { fill: var(--paper); font-family: var(--serif); font-size: 13px; letter-spacing: 0.12em; text-anchor: middle; }
.wheel-core__selection { fill: #b9a2ea; font-family: var(--serif); font-size: 12px; letter-spacing: 0.08em; text-anchor: middle; }
.wheel-core__arcana { fill: var(--muted); font-family: var(--sans); font-size: 9px; letter-spacing: 0.1em; text-anchor: middle; }
.wheel-core__open { fill: var(--gold); font-family: var(--sans); font-size: 7px; letter-spacing: 0.18em; text-anchor: middle; }

.wheel-help {
  margin: -1rem 0 0;
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.wheel-help span { color: var(--gold); }

.date-reader {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 97, 200, 0.14), transparent 18rem),
    #0b0c12;
}

.date-reader__index {
  margin: 0 0 auto;
  color: rgba(205, 168, 87, 0.23);
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 0.9;
}

.date-reader .eyebrow { margin-top: 2.5rem; }
.date-reader h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }

.date-reader__coordinate {
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.07em;
  overflow-wrap: anywhere;
}

.date-reader__list { margin: 0; }
.date-reader__list div { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
.date-reader__list dt { color: var(--muted-2); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; }
.date-reader__list dd { margin: 0; color: #d6d1db; font-family: var(--serif); font-size: 0.78rem; line-height: 1.5; }

.date-reader__interpretation {
  margin: 1.6rem 0 0;
  color: #b8b4bf;
  font-size: 0.82rem;
  line-height: 1.72;
}

.cycle-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.cycle-control,
.day-control {
  min-width: 0;
  padding: 1.15rem;
  border: 0;
  background: #0b0c12;
}

.cycle-control--arcana { grid-column: span 2; }

.cycle-control label,
.day-control legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cycle-control label span,
.day-control legend span { color: var(--gold); font-family: var(--serif); }

.cycle-control select {
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 2.4rem 0.68rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: #101118;
  color: var(--paper);
}

.cycle-control select:hover,
.cycle-control select:focus { border-color: var(--gold); outline: none; }

.day-control { grid-column: span 1; margin: 0; }
.day-control > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.day-control button {
  min-width: 34px;
  min-height: 44px;
  padding: 0.4rem;
  border: 1px solid var(--line-soft);
  background: #101118;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--serif);
}
.day-control button:hover,
.day-control button:focus-visible,
.day-control button[aria-pressed="true"] { border-color: var(--gold); background: rgba(205, 168, 87, 0.12); color: var(--gold-bright); }

.measure-section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; border-top: 1px solid var(--line-soft); }

.measure-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  list-style: none;
}

.measure-grid li { position: relative; min-height: 270px; padding: 1.4rem; border-right: 1px solid var(--line-soft); background: linear-gradient(160deg, rgba(17, 17, 25, 0.95), rgba(8, 9, 13, 0.95)); }
.measure-grid li:last-child { border-right: 0; }
.measure-grid li > span { display: block; margin-bottom: 4rem; color: rgba(205, 168, 87, 0.32); font-family: var(--serif); font-size: 2.4rem; }
.measure-grid strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.measure-grid p { margin: 0.75rem 0 1.5rem; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.measure-grid small { position: absolute; right: 1.4rem; bottom: 1.4rem; left: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line-soft); color: var(--gold-bright); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }

.great-wheel-note { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.75rem; text-align: right; }
.great-wheel-note span { margin-right: 0.55rem; color: var(--gold-bright); font-weight: 600; letter-spacing: 0.13em; }

.binding-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line-soft);
}

.binding-mark { color: rgba(205, 168, 87, 0.2); font-family: var(--serif); font-size: clamp(8rem, 18vw, 16rem); line-height: 0.8; }
.binding-section h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; }
.binding-copy p { color: #b8b4bf; line-height: 1.75; }
.binding-open { padding: 0.6rem 0; border: 0; background: transparent; cursor: pointer; }

.binding-dialog {
  width: min(650px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  background: #090a0f;
  color: var(--paper);
  box-shadow: 0 30px 120px #000;
}
.binding-dialog::backdrop { background: rgba(2, 2, 5, 0.86); backdrop-filter: blur(8px); }
.binding-dialog__inner { position: relative; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.binding-dialog__inner::before { position: absolute; inset: 0.7rem; border: 1px solid rgba(255,255,255,0.045); content: ""; pointer-events: none; }
.binding-dialog__close { position: absolute; z-index: 1; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 50%; background: #0d0e14; color: var(--paper); cursor: pointer; font-size: 1.4rem; }
.binding-dialog__close:hover,
.binding-dialog__close:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.binding-dialog__classification { color: var(--gold); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; }
.binding-dialog__mark { display: block; margin: 1.7rem 0 0.4rem; color: var(--gold-bright); font-family: var(--serif); font-size: 6rem; line-height: 1; }
.binding-dialog h2 { margin-bottom: 0.6rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.binding-dialog__lead { color: var(--gold-bright); font-family: var(--serif); }
.binding-dialog__record { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #bcb8c2; font-size: 0.86rem; line-height: 1.75; text-align: left; }
.binding-dialog__record p:last-child { margin-bottom: 0; }
.binding-dialog .redacted { padding: 0.8rem; background: repeating-linear-gradient(-45deg, #16151e 0 8px, #0d0e13 8px 16px); color: var(--muted-2); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-align: center; }
.binding-dialog__foot { margin: 2rem 0 0; color: var(--muted-2); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .reckoning-intro { grid-template-columns: 1fr 0.7fr; gap: 3rem; }
  .reckoning-layout { grid-template-columns: 1fr; }
  .wheel-stage { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .date-reader { min-height: auto; }
  .date-reader__index { margin-bottom: 1rem; }
  .date-reader .eyebrow { margin-top: 1rem; }
  .measure-grid { grid-template-columns: repeat(3, 1fr); }
  .measure-grid li:nth-child(3) { border-right: 0; }
  .measure-grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .measure-grid li:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 720px) {
  .reckoning-intro { min-height: 0; grid-template-columns: 1fr; gap: 2.5rem; padding: 4.5rem 0 3.5rem; }
  .reckoning-intro::before { height: 720px; }
  .reckoning-intro h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .current-seal__index { margin-bottom: 2.3rem; }
  .wheel-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .wheel-stage { padding: 0.7rem; }
  .wheel-toolbar { align-items: flex-start; padding: 0.7rem 0.4rem 0; }
  .wheel-legend { max-width: 65%; gap: 0.65rem; }
  .wheel-sound { margin-top: -0.25rem; }
  .time-wheel { width: 100%; }
  .wheel-label { font-size: 13px; }
  .wheel-choice[data-level="rune"] .wheel-label { font-size: 16px; }
  .wheel-choice[data-level="planet"] .wheel-label { font-size: 18px; }
  .wheel-choice[data-level="element"] .wheel-label { font-size: 8px; }
  .wheel-core__name { font-size: 12px; }
  .cycle-controls { grid-template-columns: 1fr; }
  .cycle-control--arcana,
  .day-control { grid-column: auto; }
  .measure-grid { grid-template-columns: 1fr; }
  .measure-grid li { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .measure-grid li:nth-child(3) { border-right: 0; }
  .measure-grid li:last-child { border-bottom: 0; }
  .measure-grid li > span { margin-bottom: 2rem; }
  .great-wheel-note { line-height: 1.6; text-align: left; }
  .binding-section { grid-template-columns: 0.45fr 1fr; }
  .binding-copy { grid-column: 1 / -1; }
  .binding-mark { font-size: 7.5rem; }
}

@media (max-width: 460px) {
  .wheel-stage { padding-inline: 0.2rem; }
  .wheel-toolbar { align-items: center; }
  .wheel-legend { max-width: 58%; gap: 0.5rem 0.65rem; }
  .wheel-sound { padding-inline: 0.65rem; }
  .wheel-choice[data-level="element"] .wheel-label { display: none; }
  .wheel-core__halo { r: 112px; }
  .date-reader { padding: 1.4rem; }
  .date-reader__list div { grid-template-columns: 1fr; gap: 0.25rem; }
  .binding-section { grid-template-columns: 1fr; }
  .binding-mark { margin-bottom: -2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-segment { transition: none; }
  .time-wheel.is-awakening #rune-ring,
  .time-wheel.is-awakening #planet-ring,
  .time-wheel.is-awakening #element-ring,
  .time-wheel.is-awakening #arcana-ring,
  .time-wheel.is-awakening .wheel-field { animation: none; }
}
