/* ============================================================
   YOUR DESTINY — Telegram Mini App v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Noto+Serif:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #aa8c2c;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --glass-bg: rgba(20, 12, 35, 0.72);
  --glass-border: rgba(212, 175, 55, 0.18);
  --text-primary: #f0e6d2;
  --text-secondary: #b8a88a;
  --text-muted: #7a6e5a;
  --danger: #c0392b;
  --success: #27ae60;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-burgundy {
  --bg-gradient: linear-gradient(180deg, #3a0f0f 0%, #1a0505 40%, #0d0202 100%);
  --bg-solid: #1a0505;
  --accent: #8b2635;
}
.theme-green {
  --bg-gradient: linear-gradient(180deg, #0f2a0f 0%, #0a1a0a 40%, #050d05 100%);
  --bg-solid: #0a1a0a;
  --accent: #2d6a27;
}
.theme-blue {
  --bg-gradient: linear-gradient(180deg, #0f1f3a 0%, #0a1525 40%, #050a12 100%);
  --bg-solid: #0a1525;
  --accent: #264e8b;
}
.theme-purple {
  --bg-gradient: linear-gradient(180deg, #1f0f3a 0%, #1a0a2e 40%, #0d0518 100%);
  --bg-solid: #1a0a2e;
  --accent: #5a268b;
}
.theme-dark {
  --bg-gradient: linear-gradient(180deg, #1a1a28 0%, #0a0a12 40%, #050508 100%);
  --bg-solid: #0a0a12;
  --accent: #2a2a3a;
}
.theme-gold {
  --bg-gradient: linear-gradient(180deg, #2a1f0a 0%, #1a1405 40%, #0d0a02 100%);
  --bg-solid: #1a1405;
  --accent: #b8860b;
}
.theme-crimson {
  --bg-gradient: linear-gradient(180deg, #2a0a0a 0%, #1a0505 40%, #0d0202 100%);
  --bg-solid: #1a0505;
  --accent: #8b0000;
}
.theme-ocean {
  --bg-gradient: linear-gradient(180deg, #0a1f2a 0%, #051520 40%, #020a0d 100%);
  --bg-solid: #051520;
  --accent: #006994;
}
.theme-kaleidoscope {
  --bg-gradient: linear-gradient(180deg, #1a0a1a 0%, #0a0a1a 40%, #05050d 100%);
  --bg-solid: #0a0a1a;
  --accent: #d4af37;
  animation: kaleidoscopeBg 12s ease-in-out infinite;
}

@keyframes kaleidoscopeBg {
  0% { background: linear-gradient(180deg, #3a0f0f 0%, #1a0505 40%, #0d0202 100%); }
  11% { background: linear-gradient(180deg, #0f2a0f 0%, #0a1a0a 40%, #050d05 100%); }
  22% { background: linear-gradient(180deg, #0f1f3a 0%, #0a1525 40%, #050a12 100%); }
  33% { background: linear-gradient(180deg, #1f0f3a 0%, #1a0a2e 40%, #0d0518 100%); }
  44% { background: linear-gradient(180deg, #1a1a28 0%, #0a0a12 40%, #050508 100%); }
  55% { background: linear-gradient(180deg, #2a1f0a 0%, #1a1405 40%, #0d0a02 100%); }
  66% { background: linear-gradient(180deg, #2a0a0a 0%, #1a0505 40%, #0d0202 100%); }
  77% { background: linear-gradient(180deg, #0a1f2a 0%, #051520 40%, #020a0d 100%); }
  88% { background: linear-gradient(180deg, #1a0a1a 0%, #0a0a1a 40%, #05050d 100%); }
  100% { background: linear-gradient(180deg, #3a0f0f 0%, #1a0505 40%, #0d0202 100%); }
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Noto Serif', Georgia, serif;
  background: var(--bg-solid);
  color: var(--text-primary);
}

#app-container {
  width: 100%; height: 100%;
  position: fixed; inset: 0;
  background: var(--bg-gradient);
  display: none;
  flex-direction: column;
}
#app-container.active { display: flex; }

#particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ===== INTRO ===== */
#intro-screen {
  position: fixed; inset: 0;
  z-index: 10000;
  background: linear-gradient(to bottom, #0a0618, #1a0f2e, #0d0508);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-fog {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(180,160,120,0.06), transparent);
  animation: fogRise 4s ease-out forwards;
}

@keyframes fogRise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.castle-container {
  position: relative;
  width: 200px;
  height: 260px;
  margin-bottom: 36px;
  animation: castleAppear 3.5s ease-out forwards;
}

@keyframes castleAppear {
  0% { opacity: 0; transform: scale(0.55) translateY(40px); }
  40% { opacity: 1; transform: scale(1.05) translateY(-5px); }
  60% { transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.castle-base {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 170px; height: 110px;
  background: #080510;
  border-radius: 3px 3px 0 0;
}
.castle-tower-left,
.castle-tower-right {
  position: absolute; bottom: 95px;
  width: 46px; height: 95px;
  background: #080510;
  border-radius: 3px 3px 0 0;
}
.castle-tower-left { left: 18px; }
.castle-tower-right { right: 18px; }
.castle-tower-center {
  position: absolute; bottom: 115px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 110px;
  background: #080510;
  border-radius: 3px 3px 0 0;
}
.castle-roof-left,
.castle-roof-right {
  position: absolute; bottom: 190px;
  width: 0; height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 48px solid #080510;
}
.castle-roof-left { left: 13px; }
.castle-roof-right { right: 13px; }
.castle-roof-center {
  position: absolute; bottom: 225px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 56px solid #080510;
}

.castle-window {
  position: absolute;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold), 0 0 28px rgba(212,175,55,0.35);
  animation: windowPulse 2.2s ease-in-out infinite alternate;
}
.win1 { width: 11px; height: 15px; bottom: 130px; left: 32px; animation-delay: 0s; }
.win2 { width: 9px; height: 13px; bottom: 150px; right: 36px; animation-delay: 0.6s; }
.win3 { width: 13px; height: 17px; bottom: 170px; left: 50%; transform: translateX(-50%); animation-delay: 1.1s; }
.win4 { width: 9px; height: 11px; bottom: 70px; left: 55px; animation-delay: 0.3s; }
.win5 { width: 9px; height: 11px; bottom: 70px; right: 55px; animation-delay: 0.9s; }

@keyframes windowPulse {
  from { opacity: 0.5; box-shadow: 0 0 8px var(--gold); }
  to { opacity: 1; box-shadow: 0 0 22px var(--gold-light), 0 0 45px rgba(244,208,63,0.25); }
}

.intro-logo {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, #fff8dc 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(212,175,55,0.45));
  animation: logoShine 3s ease-in-out infinite;
}

.intro-subtitle {
  margin-top: 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.8s forwards;
}

@keyframes logoShine {
  0%, 100% { filter: drop-shadow(0 2px 12px rgba(212,175,55,0.45)); }
  50% { filter: drop-shadow(0 2px 24px rgba(244,208,63,0.7)); }
}

/* ===== HEADER ===== */
.app-header {
  position: relative; z-index: 10;
  padding: 18px 16px 8px;
  text-align: center;
  flex-shrink: 0;
}

.app-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff8dc 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.35));
}

.app-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-top: 6px;
  opacity: 0.85;
}

.title-separator {
  width: 70%;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  position: relative;
  opacity: 0.6;
}

.title-separator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  position: relative; z-index: 5;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 110px;
  scrollbar-width: none;
}
.main-content::-webkit-scrollbar { display: none; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 8px; right: 8px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px 20px 28px 28px;
  padding: 8px 4px 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212,175,55,0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  border: 1px solid transparent;
  min-width: 52px;
}

.nav-item.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 16px rgba(212,175,55,0.12), inset 0 0 10px rgba(212,175,55,0.04);
}

.nav-item:active { transform: scale(0.93); }

.nav-icon {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  font-family: 'Noto Serif', serif;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  animation: fadeIn 0.5s ease-out;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CENTER DISPLAYS ===== */
.center-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  padding: 20px 0;
}

.display-icon {
  width: 220px;
  height: 220px;
  position: relative;
  margin-bottom: 24px;
}

/* Compass */
.compass-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.3);
  background: radial-gradient(circle at 40% 40%, rgba(30,40,60,0.9), rgba(10,15,30,0.95));
  box-shadow: 0 0 50px rgba(212,175,55,0.1), inset 0 0 40px rgba(0,0,0,0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: compassPulse 4s ease-in-out infinite;
}
.compass-ring-outer {
  position: absolute; inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.15);
}
.compass-ring-inner {
  position: absolute; inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.1);
}
.compass-ticks {
  position: absolute; inset: 8px;
  border-radius: 50%;
}
.compass-tick {
  position: absolute;
  left: 50%; top: 0;
  width: 1px;
  height: 8px;
  background: rgba(212,175,55,0.3);
  transform-origin: center 92px;
}
.compass-needle {
  width: 3px;
  height: 90px;
  background: linear-gradient(to bottom, var(--gold) 0%, #c0392b 50%, var(--gold-dark) 100%);
  position: relative;
  border-radius: 2px;
  animation: needleSpin 10s ease-in-out infinite;
  transform-origin: center;
}
.compass-needle::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  background: radial-gradient(circle, var(--gold-light), var(--gold-dark));
  border-radius: 50%;
  box-shadow: 0 0 15px var(--gold-glow);
  border: 2px solid rgba(139,105,20,0.5);
}
.compass-center-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

@keyframes needleSpin {
  0%, 100% { transform: rotate(-20deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(25deg); }
  80% { transform: rotate(-5deg); }
}
@keyframes compassPulse {
  0%, 100% { box-shadow: 0 0 50px rgba(212,175,55,0.1); }
  50% { box-shadow: 0 0 70px rgba(212,175,55,0.18); }
}

/* Envelope */
.envelope-visual {
  width: 200px;
  height: 140px;
  margin: 0 auto;
  position: relative;
  animation: envelopeFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
}
.envelope-body {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c9a84c, #a08030);
  border-radius: 10px;
  overflow: hidden;
}
.envelope-paper {
  position: absolute;
  top: -25px; left: 12px; right: 12px;
  height: 110px;
  background: linear-gradient(to bottom, #faf5e8, #f0e6d3);
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.envelope-paper-text {
  padding: 16px 14px;
  font-size: 0.7rem;
  color: #8a7a5a;
  text-align: center;
  line-height: 1.4;
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 75px;
  background: linear-gradient(135deg, #d4b84a, #b89838);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 2;
}
.envelope-seal {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background: radial-gradient(circle, var(--gold-light), var(--gold-dark));
  border-radius: 50%;
  border: 2px solid #8b6914;
  box-shadow: 0 0 18px rgba(212,175,55,0.4);
  z-index: 3;
}
.envelope-seal::after {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Heart */
.heart-visual {
  width: 190px;
  height: 170px;
  margin: 0 auto;
  position: relative;
  animation: heartBeat 2.5s ease-in-out infinite;
}
.heart-svg {
  width: 100%; height: 100%;
}
.heart-svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.25));
}
.heart-inner {
  position: absolute;
  inset: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.heart-inner p {
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ===== CARDS & STORY LIST ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.card:active { transform: scale(0.97); }

.story-card {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}
.story-thumb {
  width: 68px; height: 88px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a1a3a, #1a0a2e);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
}
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-info { flex: 1; }
.story-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.story-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.story-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  font-family: 'Cinzel', serif;
}
.status-new {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.status-continue {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.status-completed {
  background: rgba(155, 155, 155, 0.1);
  color: #999;
  border: 1px solid rgba(155, 155, 155, 0.2);
}
.status-locked {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== SETTINGS ===== */
.settings-group { margin-bottom: 14px; }

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.settings-item:active { transform: scale(0.97); }
.settings-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-icon {
  width: 20px; height: 20px;
  stroke: var(--gold);
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}
.settings-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'Noto Serif', serif;
}
.settings-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Toggle */
.toggle-switch {
  width: 48px; height: 26px;
  background: rgba(255,255,255,0.08);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.toggle-switch.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.2);
}
.toggle-knob {
  width: 20px; height: 20px;
  background: #e8e0d0;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.toggle-switch.active .toggle-knob {
  left: 24px;
  background: linear-gradient(135deg, #fff8dc, var(--gold-light));
}

/* Theme colors */
.theme-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.color-option {
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.color-option.active {
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
  transform: scale(1.1);
}
.color-option:active { transform: scale(0.9); }
.color-kaleidoscope {
  background: conic-gradient(from 0deg, #8b2635, #2d5a27, #264e8b, #5a268b, #b8860b, #8b0000, #006994, #8b2635);
  animation: kaleidoscopeSpin 8s linear infinite;
}

@keyframes kaleidoscopeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Promo */
.promo-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}
.promo-input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: 'Noto Serif', serif;
}
.promo-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212,175,55,0.15);
}
.promo-input::placeholder { color: var(--text-muted); }
.promo-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 12px;
  color: #1a0a00;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}
.promo-btn:active { transform: scale(0.95); }

.promo-status {
  margin-top: 10px;
  font-size: 0.82rem;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  width: 100%;
}
.promo-status.success {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.promo-status.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== NOVEL READER ===== */
.reader-container {
  position: fixed; inset: 0;
  z-index: 50;
  background: #000;
  display: none;
  flex-direction: column;
}
.reader-container.active { display: flex; }

.reader-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.reader-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.5) 65%,
    rgba(0,0,0,0.92) 100%);
  z-index: 2;
}

.reader-character {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  max-height: 52vh;
  max-width: 82vw;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 12px 35px rgba(0,0,0,0.6));
  transition: opacity 0.6s ease;
}

.reader-ui {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 16px 90px;
}

.reader-name {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  opacity: 0;
  animation: slideUp 0.4s ease-out 0.2s forwards;
}

.reader-text-box {
  background: rgba(8, 6, 18, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 18px;
  padding: 18px 20px;
  min-height: 90px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.reader-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-primary);
  min-height: 1.6em;
  font-family: 'Noto Serif', serif;
}

.reader-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.choice-btn {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.03));
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  animation: slideUp 0.45s ease-out backwards;
  position: relative;
  overflow: hidden;
  font-family: 'Noto Serif', serif;
}
.choice-btn:nth-child(1) { animation-delay: 0.1s; }
.choice-btn:nth-child(2) { animation-delay: 0.22s; }
.choice-btn:nth-child(3) { animation-delay: 0.34s; }

.choice-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}
.choice-btn:hover::before,
.choice-btn:active::before { opacity: 1; }

.choice-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(212,175,55,0.08));
}

.reader-menu-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 20;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.reader-menu-btn:active { transform: scale(0.9); }

/* ===== OVERLAYS ===== */
.overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(3, 3, 10, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.overlay-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.overlay-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.overlay-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Serif', serif;
}
.overlay-btn:active { transform: scale(0.96); }
.overlay-btn.danger {
  background: linear-gradient(135deg, rgba(192,57,43,0.12), rgba(192,57,43,0.03));
  border-color: rgba(192,57,43,0.2);
  color: var(--danger);
}

/* ===== LOCK SCREEN ===== */
.lock-screen {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(4, 4, 12, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.lock-screen.active { display: flex; animation: fadeIn 0.5s ease; }

.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.2));
}
.lock-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.lock-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 280px;
}
.lock-btn {
  width: 100%;
  max-width: 280px;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Serif', serif;
  text-decoration: none;
  display: block;
  text-align: center;
}
.lock-btn.primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0a00;
  font-weight: 700;
  border-color: var(--gold);
  font-family: 'Cinzel', serif;
}
.lock-btn.secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
}
.lock-btn:active { transform: scale(0.96); }

/* ===== FATE DILEMMAS ===== */
.fate-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(3, 3, 10, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fate-overlay.active { opacity: 1; }

.fate-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.fate-counter {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.7;
}

.fate-question {
  font-family: 'Noto Serif', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.fate-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.fate-btn {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.03));
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Serif', serif;
  position: relative;
  overflow: hidden;
}

.fate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.fate-btn:hover::before,
.fate-btn:active::before { opacity: 1; }

.fate-btn:active {
  transform: scale(0.97);
  border-color: var(--gold);
}

.fate-result {
  animation: fadeIn 0.6s ease;
}

.fate-stats {
  margin-bottom: 20px;
}

.fate-stat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.fate-stat-bar:first-child .fate-stat-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.fate-stat-bar:last-child .fate-stat-fill {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.fate-stat-fill {
  height: 8px;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex: 1;
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

.fate-stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 50px;
  text-align: right;
}

.fate-analysis {
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(212,175,55,0.05);
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.1);
}

.fate-next {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 12px 24px;
  position: relative;
  transition: var(--transition);
}

.fate-next::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.fate-next:active { transform: scale(0.95); }

.fate-final {
  animation: fadeIn 1s ease;
}

.fate-final-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.fate-final-text {
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.fate-tg-block {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.fate-tg-block p {
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.fate-tg-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.fate-tg-btn:active { transform: scale(0.95); }

/* Gold particles */
.gold-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
  animation: goldExplode 1.5s ease-out forwards;
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(212,175,55,0.5);
}

@keyframes goldExplode {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* ===== LABYRINTH ===== */
.labyrinth-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(3, 3, 10, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}
.labyrinth-overlay.active { opacity: 1; }

.labyrinth-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 20px 0;
}

.labyrinth-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.labyrinth-intro p {
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.labyrinth-rules {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.labyrinth-rules p {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.labyrinth-rules p:last-child { margin-bottom: 0; }

.labyrinth-ready {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  margin: 20px 0;
}

.labyrinth-enter-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 16px;
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.labyrinth-enter-btn:active { transform: scale(0.95); }

.labyrinth-counter {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.labyrinth-riddle {
  font-family: 'Noto Serif', serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(212,175,55,0.05);
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.1);
}

.labyrinth-hints {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.labyrinth-hint-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.labyrinth-hint-btn.used {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.labyrinth-hint-btn:active { transform: scale(0.9); }

.labyrinth-hint-text {
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(212,175,55,0.05);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  display: none;
  text-align: left;
}

.labyrinth-answer-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}

.labyrinth-answer-btn:active { transform: scale(0.95); }

.labyrinth-answer {
  animation: fadeIn 0.5s ease;
}

.labyrinth-answer-text {
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(46, 204, 113, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(46, 204, 113, 0.15);
  text-align: left;
}

.labyrinth-next-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 14px;
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.labyrinth-next-btn:active { transform: scale(0.95); }

.labyrinth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.labyrinth-close:active { transform: scale(0.9); }

.labyrinth-confirm-overlay {
  position: fixed; inset: 0;
  z-index: 600;
  background: rgba(3, 3, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.labyrinth-confirm-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.labyrinth-confirm-box p {
  font-family: 'Noto Serif', serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.labyrinth-confirm-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.labyrinth-confirm-btns button {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.labyrinth-confirm-btns button:first-child {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.labyrinth-confirm-btns button:last-child {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0a00;
  font-weight: 700;
}

.labyrinth-confirm-btns button:active { transform: scale(0.95); }

.labyrinth-final-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.labyrinth-final-text {
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.labyrinth-tg-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: var(--transition);
}

.labyrinth-tg-btn:active { transform: scale(0.95); }

/* ===== TRUE DESTINY ===== */
.destiny-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(3, 3, 10, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}
.destiny-overlay.active { opacity: 1; }

.destiny-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 20px 0;
}

.destiny-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.destiny-intro p {
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.destiny-start-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 16px;
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
}

.destiny-start-btn:active { transform: scale(0.95); }

.destiny-counter {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.destiny-question {
  font-family: 'Noto Serif', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.destiny-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.destiny-option {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Serif', serif;
  animation: slideUp 0.4s ease-out backwards;
}

.destiny-option:active {
  transform: scale(0.97);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
}

.destiny-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.destiny-close:active { transform: scale(0.9); }

.destiny-result {
  animation: fadeIn 1s ease;
}

.destiny-result-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.destiny-result-desc {
  font-family: 'Noto Serif', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.destiny-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.destiny-trait {
  padding: 6px 14px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.destiny-scores {
  margin-bottom: 24px;
}

.destiny-score-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.destiny-score-bar span {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 70px;
  text-align: left;
}

.destiny-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.destiny-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  transition: width 1s ease;
}

.destiny-tg-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition);
}

.destiny-tg-btn:active { transform: scale(0.95); }

.destiny-restart {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  color: var(--text-secondary);
  font-family: 'Noto Serif', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.destiny-restart:active { transform: scale(0.95); }

/* ===== WISDOM ===== */
.wisdom-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(3, 3, 10, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.wisdom-overlay.active { opacity: 1; }

.wisdom-container {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.wisdom-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.wisdom-quote {
  font-family: 'Noto Serif', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.wisdom-number {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  opacity: 0.6;
}

.wisdom-close-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 12px;
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.wisdom-close-btn:active { transform: scale(0.95); }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.toast-message {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 10, 35, 0.92);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 14px;
  z-index: 10000;
  font-size: 0.88rem;
  backdrop-filter: blur(14px);
  animation: slideUp 0.35s ease;
  font-family: 'Noto Serif', serif;
  max-width: 85vw;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-height: 720px) {
  .intro-logo { font-size: 1.9rem; }
  .castle-container { transform: scale(0.8); margin-bottom: 16px; }
  .reader-ui { padding-bottom: 85px; }
  .reader-character { max-height: 42vh; bottom: 28%; }
  .center-display { min-height: 46vh; }
}

@media (min-width: 430px) {
  .app-title { font-size: 1.8rem; }
  .intro-logo { font-size: 2.8rem; }
}
