/* =========================================================
   Deploy Horoscope — Dark Cosmic Theme
   ========================================================= */

:root {
  --bg: #0d0d1a;
  --surface: #13132a;
  --surface-2: #1e1e3f;
  --border: #2a2a5a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

/* FX canvas — full-viewport layer behind everything */
#fx-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Theme: Friday the 13th — blood
   ========================================================= */

body.theme-friday13 {
  --bg: #0a0000;
  --surface: #160202;
  --surface-2: #220606;
  --border: #4a0000;
  --accent: #8b0000;
  --accent-light: #cc2222;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139, 0, 0, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(200, 0, 0, 0.12) 0%, transparent 50%);
}

/* Blood bar and animated drip shapes at top of page */
body.theme-friday13::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  z-index: 999;
  background:
    /* top blood bar */
    linear-gradient(#8b0000, #8b0000) 0 0 / 100% 4px no-repeat,
    /* drip 1 — x 7% */
    radial-gradient(ellipse 5px 8px at 7% 64px, #7a0000 50%, transparent 51%),
    radial-gradient(ellipse 3px 56px at 7% 28px, #8b0000 50%, transparent 51%),
    /* drip 2 — x 19% */
    radial-gradient(ellipse 7px 10px at 19% 48px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 4px 38px at 19% 18px, #7a0000 50%, transparent 51%),
    /* drip 3 — x 34% */
    radial-gradient(ellipse 5px 7px at 34% 82px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 3px 74px at 34% 34px, #7a0000 50%, transparent 51%),
    /* drip 4 — x 52% */
    radial-gradient(ellipse 6px 9px at 52% 42px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 4px 34px at 52% 16px, #7a0000 50%, transparent 51%),
    /* drip 5 — x 67% */
    radial-gradient(ellipse 4px 7px at 67% 68px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 3px 60px at 67% 26px, #7a0000 50%, transparent 51%),
    /* drip 6 — x 81% */
    radial-gradient(ellipse 6px 9px at 81% 36px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 3px 28px at 81% 12px, #7a0000 50%, transparent 51%),
    /* drip 7 — x 93% */
    radial-gradient(ellipse 5px 8px at 93% 56px, #8b0000 50%, transparent 51%),
    radial-gradient(ellipse 3px 48px at 93% 22px, #7a0000 50%, transparent 51%);
  animation: blood-drip 5s ease-in-out infinite alternate;
}

@keyframes blood-drip {
  from { transform: translateY(0px); }
  to   { transform: translateY(10px); }
}

body.theme-friday13 .verdict--green {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, var(--surface) 60%);
}

/* =========================================================
   Theme: Halloween
   ========================================================= */

body.theme-halloween {
  --bg: #060300;
  --surface: #120900;
  --surface-2: #1e1200;
  --border: #4a2800;
  --accent: #d4600a;
  --accent-light: #ff8c00;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 30% 15%, rgba(180, 80, 0, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 85%, rgba(100, 20, 160, 0.12) 0%, transparent 50%);
}

body.theme-halloween .hero__title,
body.theme-halloween .verdict__label {
  background: linear-gradient(135deg, #ff8c00 0%, #ff4500 60%, #8b0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-halloween .verdict--green {
  border-color: #ff8c00;
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.15);
}

body.theme-halloween .verdict--yellow {
  border-color: #ff4500;
  box-shadow: 0 0 40px rgba(255, 69, 0, 0.15);
}

body.theme-halloween .calendar__month,
body.theme-halloween .verdict__chinese {
  color: var(--accent-light);
  border-color: rgba(255, 140, 0, 0.35);
  background: rgba(180, 80, 0, 0.15);
}

/* =========================================================
   Theme: Birthday — rainbow
   ========================================================= */

@property --bd-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

body.theme-birthday .verdict {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    conic-gradient(from var(--bd-angle), #ff0080, #ff8c00, #ffff00, #00ff80, #00bfff, #8000ff, #ff0080);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: birthday-spin 3s linear infinite;
}

@keyframes birthday-spin {
  to { --bd-angle: 360deg; }
}

body.theme-birthday .verdict--concealed {
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(var(--border), var(--border));
  animation: none;
}

body.theme-birthday .verdict__label,
body.theme-birthday .verdict__score--locked {
  animation: birthday-hue 4s linear infinite;
}

@keyframes birthday-hue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

body.theme-birthday .hero__title {
  background: linear-gradient(135deg, #ff0080, #ff8c00, #ffff00, #00ff80, #00bfff, #8000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: birthday-shimmer 3s linear infinite;
}

@keyframes birthday-shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* =========================================================
   Theme: Christmas
   ========================================================= */

body.theme-christmas {
  --bg: #030d03;
  --surface: #071407;
  --surface-2: #0e200e;
  --border: #1a4a1a;
  --accent: #c8102e;
  --accent-light: #ff4d6a;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 25% 15%, rgba(0, 120, 0, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 85%, rgba(200, 16, 46, 0.12) 0%, transparent 50%);
}

body.theme-christmas .calendar__month,
body.theme-christmas .verdict__chinese {
  color: #ff4d6a;
  border-color: rgba(200, 16, 46, 0.4);
  background: rgba(200, 16, 46, 0.1);
}

/* Snowflake shimmer on the verdict border */
body.theme-christmas .verdict {
  border-color: #1a8c1a;
  box-shadow: 0 0 40px rgba(0, 160, 0, 0.12);
}

body.theme-christmas .verdict--green {
  border-color: #22c55e;
}

/* =========================================================
   Theme: New Year's Eve
   ========================================================= */

body.theme-nye {
  --bg: #080010;
  --surface: #100018;
  --surface-2: #1a0028;
  --border: #3a0060;
  --accent: #c084fc;
  --accent-light: #e9d5ff;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(192, 132, 252, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 80%, rgba(250, 204, 21, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(244, 63, 94, 0.08) 0%, transparent 50%);
}

body.theme-nye .verdict__label,
body.theme-nye .verdict__score--locked {
  animation: nye-glow 2s ease-in-out infinite alternate;
}

@keyframes nye-glow {
  from { filter: brightness(1); }
  to   { filter: brightness(1.4) drop-shadow(0 0 8px currentColor); }
}

body.theme-nye .calendar__month,
body.theme-nye .verdict__chinese {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.1);
}

/* =========================================================
   Theme: Easter — spring pastels
   ========================================================= */

body.theme-easter {
  --bg: #05080d;
  --surface: #0c1218;
  --surface-2: #141f28;
  --border: #2a4a3a;
  --accent: #a78bfa;
  --accent-light: #d4b8ff;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(120, 200, 120, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 80%, rgba(220, 120, 200, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(120, 180, 255, 0.06) 0%, transparent 50%);
}

body.theme-easter .verdict {
  border-color: #a78bfa;
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.12);
}

body.theme-easter .calendar__month,
body.theme-easter .verdict__chinese {
  color: #a0d4a0;
  border-color: rgba(100, 200, 100, 0.4);
  background: rgba(100, 200, 100, 0.08);
}

/* Subtle pastel shimmer */
body.theme-easter .verdict__score--locked,
body.theme-easter .verdict__label {
  animation: easter-pastel 6s linear infinite;
}

@keyframes easter-pastel {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(180deg); }
}

/* =========================================================
   Theme: Lunar New Year — red & gold
   ========================================================= */

body.theme-lunarny {
  --bg: #0a0000;
  --surface: #140404;
  --surface-2: #1e0808;
  --border: #4a1010;
  --accent: #c8102e;
  --accent-light: #f4a024;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 25% 15%, rgba(200, 16, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 85%, rgba(244, 160, 36, 0.1) 0%, transparent 50%);
}

body.theme-lunarny .verdict {
  border-color: #c8102e;
  box-shadow: 0 0 40px rgba(200, 16, 46, 0.15);
}

body.theme-lunarny .verdict--green {
  border-color: #f4a024;
  box-shadow: 0 0 40px rgba(244, 160, 36, 0.15);
}

body.theme-lunarny .hero__title,
body.theme-lunarny .verdict__label {
  background: linear-gradient(135deg, #c8102e 0%, #f4a024 60%, #ffe066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-lunarny .calendar__month,
body.theme-lunarny .verdict__chinese {
  color: #f4a024;
  border-color: rgba(244, 160, 36, 0.4);
  background: rgba(244, 160, 36, 0.1);
}

body.theme-lunarny .verdict__score--locked {
  animation: lunarny-glow 2.5s ease-in-out infinite alternate;
}

@keyframes lunarny-glow {
  from { filter: brightness(1); }
  to   { filter: brightness(1.3) drop-shadow(0 0 6px #f4a024); }
}

/* Subtle star field */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 40%, rgba(255,255,255,0.3) 0%, transparent 100%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* =========================================================
   Hero / Setup Page
   ========================================================= */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero__sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
}

/* Sign Grid */
.setup-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.signs-fieldset {
  border: none;
}

.signs-legend {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.sign-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  user-select: none;
}

.sign-card:hover {
  border-color: var(--accent-light);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.sign-card__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sign-card:has(.sign-card__input:checked) {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(124, 58, 237, 0.3);
}

.sign-card__glyph {
  font-size: 2rem;
  line-height: 1;
}

.sign-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sign-card:has(.sign-card__input:checked) .sign-card__name {
  color: var(--accent-light);
}

/* Birthdate + location row */
.setup-extras {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Birthdate section */
.birthdate-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 200px;
  max-width: 320px;
  position: relative;
}

.birthdate-row {
  display: flex;
  gap: 0.5rem;
  align-items: start;
}

.birthdate-row .datepicker {
  flex: 1;
  min-width: 0;
}

.divine-msg {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 0.8rem;
  font-style: italic;
}

.divine-msg--loading {
  color: var(--accent-light);
}

.divine-msg--error {
  color: var(--red);
}

.btn-location--divining {
  pointer-events: none;
  border-color: var(--accent);
  animation: divine-glow 1s ease-in-out infinite;
}

@keyframes divine-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 12px rgba(167, 139, 250, 0.6); }
}

.birthdate-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.birthdate-label__note {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8em;
}

.birthdate-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  transition: border-color 0.15s;
}

.birthdate-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.3) saturate(3) hue-rotate(220deg);
  cursor: pointer;
}

.birthdate-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Custom date picker */
.datepicker {
  position: relative;
  width: 100%;
}

.datepicker__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  transition: border-color 0.15s;
}

.datepicker__input::placeholder {
  color: var(--text-muted);
}

.datepicker__input:hover {
  border-color: var(--accent-light);
}

.datepicker__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.datepicker__toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

.datepicker__dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  padding: 1.25rem;
  z-index: 100;
}

.datepicker__dropdown[hidden] {
  display: none;
}

.datepicker__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.datepicker__nav-label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.datepicker__nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.datepicker__nav-btn:hover {
  border-color: var(--accent-light);
  color: var(--text);
  background: var(--surface-2);
}

.datepicker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto repeat(6, 1fr);
  gap: 3px;
  min-height: 252px;
  align-content: start;
}

.datepicker__weekday {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.25rem 0;
}

.datepicker__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.datepicker__cell:hover {
  background: var(--surface-2);
  border-color: var(--accent-light);
}

.datepicker__cell--today {
  box-shadow: 0 0 0 2px var(--accent);
}

.datepicker__cell--selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.datepicker__cell--selected:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.datepicker__cell--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.datepicker__cell--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

/* Location section */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 200px;
}

.btn-location {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-location:hover {
  border-color: var(--accent-light);
  color: var(--text);
  background: var(--surface-2);
}

.btn-location--loading {
  font-style: italic;
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

.btn-location--found {
  color: var(--accent-light);
  border-color: var(--accent-light);
  font-weight: 500;
}

.btn-location--error {
  color: var(--red);
  border-color: var(--red);
}

/* Submit button */
.btn-submit {
  align-self: center;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 2.5rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-submit:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.setup-form__hint {
  text-align: center;
  color: var(--yellow);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  animation: hint-fade-in 0.3s ease-out;
}

@keyframes hint-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Reading Page — Verdict Banner
   ========================================================= */

/* Calculating overlay */
.verdict__calculating {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  z-index: 2;
  pointer-events: none;
}

.verdict__calc-icon {
  font-size: 2.5rem;
  display: block;
  animation: calc-spin 4s linear infinite;
}

@keyframes calc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.verdict__calc-text {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  transition: opacity 0.4s ease;
  text-align: center;
}

.verdict__content {
  display: block;
}

@keyframes score-lock {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); filter: brightness(1.6); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); filter: brightness(1); }
}

.verdict__score--locked {
  animation: score-lock 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.verdict__actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 3;
}

.verdict__actions--bottom {
  top: auto;
  bottom: 1rem;
}

.verdict__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.verdict__action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.verdict__action-btn--copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.verdict {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.verdict--concealed {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.verdict::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.verdict--green {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, var(--surface) 60%);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1);
}

.verdict--yellow {
  border-color: var(--yellow);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--surface) 60%);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

.verdict--red {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--surface) 60%);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.1);
}

.verdict__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.verdict__sign-glyph {
  font-size: 2rem;
  line-height: 1;
}

.verdict__sign-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict__city {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--retrograde {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--red);
}

.verdict__score-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.verdict__score {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.verdict--green .verdict__score--locked { color: var(--green); }
.verdict--yellow .verdict__score--locked { color: var(--yellow); }
.verdict--red .verdict__score--locked { color: var(--red); }

.verdict__score-denom {
  font-size: 0.4em;
  color: var(--text-muted);
  font-weight: 400;
}

.verdict__label {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verdict--green .verdict__label { color: var(--green); }
.verdict--yellow .verdict__label { color: var(--yellow); }
.verdict--red .verdict__label { color: var(--red); }

.verdict__text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 60ch;
}

.verdict__crosslink {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.verdict__crosslink a {
  color: var(--text-secondary);
  text-underline-offset: 3px;
}

.verdict__crosslink a:hover {
  color: var(--accent);
}

.verdict__disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.verdict__disclaimer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verdict__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.verdict__moon {
  font-size: 1.5rem;
}

.verdict__chinese {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.share-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.share-btn:hover {
  border-color: var(--accent-light);
  color: var(--text);
  background: rgba(124, 58, 237, 0.1);
}

.share-btn--copied {
  border-color: var(--green);
  color: var(--green);
}

/* =========================================================
   Cosmic mercy petition (red verdicts)
   ========================================================= */

.deploy-anyway-btn {
  display: block;
  margin: 1rem 0;
  padding: 0.5rem 1.25rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  opacity: 0.6;
}

.deploy-anyway-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  opacity: 1;
}

/* =========================================================
   Next green window
   ========================================================= */

.verdict__next-green {
  font-size: 0.8rem;
  color: var(--green);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.verdict__next-green strong {
  font-weight: 700;
}

.verdict__missed-green {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.verdict__age-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* =========================================================
   Mercury retrograde countdown
   ========================================================= */

.verdict__retro-countdown {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* =========================================================
   Theme toggle toast
   ========================================================= */

.theme-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font);
  z-index: 9001;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.theme-toast--visible {
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Chart Section
   ========================================================= */

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.chart-section {
  margin-bottom: 2.5rem;
}

.chart {
  display: flex;
  justify-content: center;
}

.chart svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
}

/* =========================================================
   Calendar Section
   ========================================================= */

.calendar-section {
  margin-bottom: 2.5rem;
}

.calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.calendar__month {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar__weekday {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.25rem 0;
}

.calendar__cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: default;
  transition: transform 0.1s, background 0.35s ease, border-color 0.35s ease;
}

.calendar__cell--empty {
  background: transparent;
}

.calendar__cell--green {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.calendar__cell--yellow {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.calendar__cell--red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.calendar__cell--today {
  ring: 2px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

/* Special (future) day — sealed by the cosmos */
.calendar__cell--special {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  animation: special-pulse 3s ease-in-out infinite;
}

@keyframes special-pulse {
  0%, 100% { border-color: rgba(124, 58, 237, 0.15); background: rgba(124, 58, 237, 0.05); }
  50%       { border-color: rgba(167, 139, 250, 0.45); background: rgba(124, 58, 237, 0.14); }
}

.calendar__cell--special .calendar__day-num {
  color: var(--text-muted);
  opacity: 0.6;
}

.calendar__special-mark {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.4rem;
  color: var(--accent-light);
  line-height: 1;
  animation: special-mark-blink 2.4s ease-in-out infinite;
}

@keyframes special-mark-blink {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.calendar__day-num {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.calendar__cell--green .calendar__day-num { color: var(--green); }
.calendar__cell--yellow .calendar__day-num { color: var(--yellow); }
.calendar__cell--red .calendar__day-num { color: var(--red); }

/* CSS-only tooltip via data-tip */
[data-tip] {
  position: relative;
}

.calendar__cell[data-tip]:hover {
  transform: scale(1.1);
  z-index: 10;
}

[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* Flip tooltip below for top-anchored elements */
.verdict__action-btn[data-tip]:hover::after,
.verdict__header [data-tip]:hover::after {
  bottom: auto;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  transform: none;
}

/* Tooltip above for bottom-anchored action buttons */
.verdict__actions--bottom .verdict__action-btn[data-tip]:hover::after {
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
}

/* JS-positioned tooltip for SVG elements (planets) */
.svg-tooltip {
  position: fixed;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Calendar legend */
.calendar-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-item--green { color: var(--green); }
.legend-item--green::before { background: rgba(34, 197, 94, 0.4); border: 1px solid var(--green); }

.legend-item--yellow { color: var(--yellow); }
.legend-item--yellow::before { background: rgba(245, 158, 11, 0.4); border: 1px solid var(--yellow); }

.legend-item--red { color: var(--red); }
.legend-item--red::before { background: rgba(239, 68, 68, 0.4); border: 1px solid var(--red); }

/* Veiled cells — the orb is silent */
.calendar__cell--veiled {
  background: rgba(148, 163, 184, 0.06);
  border-color: transparent;
  cursor: default;
  opacity: 0.4;
  transition: opacity 0.08s ease, background 0.08s ease, border-color 0.08s ease;
}

.calendar__cell--veiled:hover {
  transform: none;
}

.calendar__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.calendar__hint a { color: var(--accent-light); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer__sep {
  opacity: 0.4;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--accent-light);
}

.site-footer {
  flex-wrap: wrap;
}

.footer__link--osm {
  opacity: 0.6;
}

.footer__link--osm:hover {
  opacity: 1;
}

/* =========================================================
   Cookie consent banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.875rem 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--accent-light);
  text-decoration: none;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.cookie-banner__btn:hover {
  background: #6d28d9;
}

/* =========================================================
   Disclaimer page
   ========================================================= */

.disclaimer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.disclaimer__section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.disclaimer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.disclaimer__section p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.disclaimer__section--sign-off {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.disclaimer__fine-print {
  font-size: 0.75rem !important;
  opacity: 0.5;
}

.disclaimer__link {
  color: var(--accent-light);
  text-decoration: none;
}

.disclaimer__link:hover {
  text-decoration: underline;
}

/* Privacy policy table */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 0.75rem 0;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-table th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-2);
}

.privacy-table code {
  font-family: monospace;
  font-size: 0.9em;
  color: var(--accent-light);
}

.api-code {
  font-size: 1.1rem;
  color: var(--accent-light);
}

.api-pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.api-pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.back-link-row {
  text-align: center;
  margin-bottom: 2rem;
}

.back-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent-light);
}

/* =========================================================
   Day chart modal
   ========================================================= */

.calendar__cell[data-date] {
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.modal__close:hover {
  border-color: var(--accent-light);
  color: var(--text);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-right: 2.5rem;
}

.modal__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal__date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal__moon {
  font-size: 1.25rem;
}

.modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.modal__label--green { color: var(--green); background: rgba(34,197,94,0.1); }
.modal__label--yellow { color: var(--yellow); background: rgba(245,158,11,0.1); }
.modal__label--red { color: var(--red); background: rgba(239,68,68,0.1); }
.modal__label--mystery { color: var(--accent-light); background: rgba(124,58,237,0.1); border-color: var(--accent-light); }

.modal__mystery-text {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
  padding: 0.875rem 0 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.modal__chart svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.modal__loading,
.modal__error {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 0.875rem;
}

/* =========================================================
   YOLO MODE (Konami code activation)
   ========================================================= */

.verdict--yolo {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    conic-gradient(from var(--bd-angle), #ff0080, #ff8c00, #ffff00, #00ff80, #00bfff, #8000ff, #ff0080);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: birthday-spin 0.6s linear infinite;
}

.verdict--yolo .verdict__label {
  animation: birthday-hue 0.8s linear infinite;
  font-size: 1.15em;
  letter-spacing: 0.14em;
}

/* =========================================================
   Appeal-denied banner (triple-refresh)
   ========================================================= */

.appeal-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #160202;
  border: 1px solid #6b0000;
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem 0.75rem 1rem;
  max-width: min(520px, calc(100vw - 2rem));
  z-index: 9000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.appeal-banner--visible {
  transform: translateX(-50%) translateY(0);
}

.appeal-banner__stamp {
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 3px;
  padding: 0.25em 0.4em;
  transform: rotate(-5deg);
  display: inline-block;
  opacity: 0.88;
}

.appeal-banner__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.appeal-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
  margin-left: 0.25rem;
}

.appeal-banner__close:hover { opacity: 1; }

/* =========================================================
   Error pages (404, 500)
   ========================================================= */

.error-page {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.error-page__message {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 40ch;
  margin: 2rem auto;
  line-height: 1.7;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 480px) {
  .signs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .verdict__score-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}
