/* ── Variables ─────────────────────────────────────── */
:root {
  --black:   #000000;
  --white:   #f5f0e8;
  --ember:   #c0392b;
  --ash:     #2a2a2a;
  --dim:     rgba(245, 240, 232, 0.25);
  --font-display: 'Cinzel Decorative', serif;
  --font-body:    'Cormorant Garamond', serif;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 0;
  overflow: hidden;
}

/* ── Riddle Message ─────────────────────────────────── */
#riddle-message {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.riddle-line {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* italic emphasis — slightly brighter, true italic */
.riddle-line em {
  font-style: italic;
  color: #ffffff;
  font-weight: 300;
}

/* strikethrough — dimmed, feels "erased" */
.riddle-line s {
  color: rgba(245, 240, 232, 0.35);
  text-decoration: line-through;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1px;
}

/* ── Header ────────────────────────────────────────── */
header {
  margin-bottom: 48px;
  letter-spacing: 0.25em;
  text-transform: lowercase;
}

.subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.3em;
}

/* ── Wheel container ───────────────────────────────── */
#container {
  display: flex;
  align-items: center;
  gap: 40px;
}

#wheel-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

/* subtle ember glow under wheel */
#wheel-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 60px 10px rgba(192, 57, 43, 0.12);
  pointer-events: none;
  transition: box-shadow 0.6s ease;
}

#wheel-wrap.spinning::after {
  box-shadow: 0 0 100px 24px rgba(192, 57, 43, 0.28);
}

#wheel-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
}

#wheel-wrap a:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 6px;
}

#wheel {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.3s;
  filter: brightness(0.88) contrast(1.1);
}

#wheel-wrap a:hover #wheel {
  filter: brightness(1.05) contrast(1.1);
}

/* ── Arrows ────────────────────────────────────────── */
.arrow {
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px 16px;
  transition: color 0.25s, transform 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0;
  line-height: 1;
  user-select: none;
}

.arrow:hover {
  color: var(--ember);
  transform: scale(1.3);
}

.arrow:active {
  transform: scale(0.95);
}

/* ── Circle label ──────────────────────────────────── */
#label-wrap {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 2.4rem;
}

#circle-num {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s;
}

#text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.5s, opacity 0.3s;
}

/* ── Divider ───────────────────────────────────────── */
#divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ember), transparent);
  margin: 22px auto 0;
  opacity: 0.4;
}

/* ── Hint ──────────────────────────────────────────── */
#hint {
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--dim);
  text-transform: lowercase;
}

/* ── Back Link ─────────────────────────────────────── */
#back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}

#back-link:hover {
  color: var(--ember);
}

/* ── Circle Page Layout ────────────────────────────── */
.circle-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.circle-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  gap: 6px;
}

.circle-numeral {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  opacity: 0.85;
}

.circle-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ── Circle Image ──────────────────────────────────── */
.circle-image-wrap {
  position: relative;
  width: 512px;
  height: 512px;
  flex-shrink: 0;
  overflow: hidden;
}

.circle-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 80px 16px rgba(192, 57, 43, 0.1);
  pointer-events: none;
}

.circle-img {
  width: 512px !important;
  height: 512px !important;
  max-width: 512px !important;
  max-height: 512px !important;
  min-width: 512px !important;
  min-height: 512px !important;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}

/* ── Circle Text ───────────────────────────────────── */
.circle-text {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 520px;
  text-align: center;
}

.circle-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.circle-desc em {
  font-style: italic;
  color: #ffffff;
}

.circle-desc s {
  color: rgba(245, 240, 232, 0.35);
  text-decoration: line-through;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1px;
}

/* ── Difficulty Spike ──────────────────────────────── */
.difficulty-spike {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.difficulty-spike .cube {
  width: 18px;
  height: 18px;
  background: var(--white);
  box-shadow: 0 0 10px 2px rgba(245, 240, 232, 0.15);
}

.difficulty-spike .spike-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: lowercase;
}