/* ===================== Timur Satrancı — Osmanlı/Timurlu temalı stil ===================== */

:root {
  --bg-deep: #1b0f14;
  --bg-deep-2: #2a141b;
  --panel-bg: #241118ee;
  --gold: #d4af37;
  --gold-bright: #f1cf6b;
  --gold-dim: #8a6d24;
  --ivory: #efe3c6;
  --maroon: #6e1f2b;
  --maroon-dark: #4a141d;
  --teal: #1f5c58;
  --ink: #241318;

  --sq-light: #e9dcc0;
  --sq-dark: #7a2233;
  --sq-light-select: #f4e18f;
  --sq-dark-select: #b5862a;

  --piece-white-fill: #f7ecd2;
  --piece-white-stroke: #4a141d;
  --piece-black-fill: #241318;
  --piece-black-stroke: #d4af37;

  --cutout-color: rgba(0,0,0,0.28);
}

/* ---------- Tahta/renk temaları (Ayarlar'dan seçilir) ---------- */
:root[data-board-theme="emerald"] {
  --bg-deep: #0d1f16; --bg-deep-2: #15301f; --panel-bg: #16261cee;
  --gold: #c9a227; --gold-bright: #e8cf6a; --gold-dim: #7a6220;
  --ivory: #eef0e2; --maroon: #1f6e4a; --maroon-dark: #12452e; --teal: #1f4a5c; --ink: #12201a;
  --sq-light: #dce8d2; --sq-dark: #235c3f; --sq-light-select: #e8cf6a; --sq-dark-select: #b59a2a;
  --piece-white-fill: #f2f5e6; --piece-white-stroke: #12452e;
  --piece-black-fill: #14201a; --piece-black-stroke: #c9a227;
}
:root[data-board-theme="navy"] {
  --bg-deep: #0d1220; --bg-deep-2: #161f38; --panel-bg: #141b30ee;
  --gold: #9fb3d9; --gold-bright: #c9d6ef; --gold-dim: #5c6f96;
  --ivory: #e8ecf5; --maroon: #22407a; --maroon-dark: #152a52; --teal: #2a3f66; --ink: #131a2c;
  --sq-light: #d8e0f0; --sq-dark: #25406e; --sq-light-select: #c9d6ef; --sq-dark-select: #4f6ea0;
  --piece-white-fill: #eef1f9; --piece-white-stroke: #152a52;
  --piece-black-fill: #121a2c; --piece-black-stroke: #9fb3d9;
}
:root[data-board-theme="dark"] {
  --bg-deep: #0a0a0c; --bg-deep-2: #141416; --panel-bg: #18181bee;
  --gold: #c7c7cf; --gold-bright: #eaeaef; --gold-dim: #6f6f78;
  --ivory: #e4e4e8; --maroon: #3a3a42; --maroon-dark: #242428; --teal: #2f2f35; --ink: #101012;
  --sq-light: #d6d6da; --sq-dark: #3a3a40; --sq-light-select: #eaeaef; --sq-dark-select: #8a8a92;
  --piece-white-fill: #eeeeee; --piece-white-stroke: #242428;
  --piece-black-fill: #151517; --piece-black-stroke: #c7c7cf;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 800px at 50% -10%, var(--bg-deep-2), var(--bg-deep) 60%);
  color: var(--ivory);
  font-family: 'Noto Sans', system-ui, sans-serif;
}

body {
  padding: 18px 18px 40px;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cinzel Decorative', 'Philosopher', serif;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

/* ---------- Süsleme köşeleri ---------- */
.ornament-corner {
  position: fixed;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image: radial-gradient(circle at 0 0, transparent 55%, var(--gold-dim) 56%, transparent 58%),
    repeating-conic-gradient(from 0deg at 0 0, var(--gold-dim) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle at 0 0, black 0 90px, transparent 91px);
          mask: radial-gradient(circle at 0 0, black 0 90px, transparent 91px);
}
.ornament-corner.tl { top: 0; left: 0; }
.ornament-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.ornament-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.ornament-corner.br { bottom: 0; right: 0; transform: scale(-1, -1); }

.hidden { display: none !important; }

/* ---------- Başlık ---------- */
.app-header {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.app-header h1 {
  margin: 0.2em 0 0.1em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-shadow: 0 0 18px rgba(212,175,55,0.35);
}
.icon-btn {
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: rgba(212,175,55,0.2); }

.app-header-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---------- Marka logosu ---------- */
/* assets/logo.png dosyasini ekleyince otomatik gorunur; dosya yoksa
   onerror ile .brand-name-fallback (duz metin baslik) devreye girer. */
.brand-logo { filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); object-fit: contain; }
.brand-logo-lg { max-width: min(320px, 100%); max-height: 140px; width: auto; height: auto; margin: 0 auto 8px; display: block; }
.brand-logo-sm { max-height: 42px; max-width: min(260px, 100%); width: auto; height: auto; display: block; }
.brand-name-fallback { display: none; }

/* ---------- Ana Menü ---------- */
.menu-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.menu-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--panel-bg);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 0 40px rgba(212,175,55,0.05);
  position: relative;
  z-index: 1;
}
.menu-title {
  margin: 0 0 4px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  text-shadow: 0 0 22px rgba(212,175,55,0.4);
}
.menu-card .subtitle { margin-bottom: 22px; }

.rating-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: left;
}
.rating-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: var(--ink);
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.rating-title { font-family: 'Philosopher', serif; font-size: 1.15rem; color: var(--gold-bright); }
.rating-stats { font-size: 0.8rem; opacity: 0.75; margin-top: 2px; }

.menu-play-btn {
  width: 100%;
  padding: 16px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  border: 1px solid var(--gold-bright);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
  margin-bottom: 14px;
}
.menu-play-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(212,175,55,0.5); }
.menu-secondary-row { display: flex; gap: 10px; }
.menu-secondary-row .wide-btn { margin-top: 0; }
.menu-footnote { margin-top: 20px; font-size: 0.76rem; color: var(--gold-dim); line-height: 1.5; }

/* ---------- Ayarlar ---------- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  font-size: 0.92rem;
}
.settings-row input[type="range"] { width: 140px; accent-color: var(--gold); }
.settings-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); }
.settings-row select {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.85rem;
}
.settings-row-rating { flex-wrap: wrap; }
.mini-btn {
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--gold-dim);
  color: var(--ivory);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.mini-btn:hover { background: rgba(212,175,55,0.2); }

/* ---------- Uygulama ici puan rozeti ---------- */
.status-rating {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--gold-bright);
  opacity: 0.9;
}
.subtitle {
  margin: 0;
  color: var(--gold-dim);
  font-family: 'Philosopher', serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

/* ---------- Odullu reklam butonu (ipucu) ---------- */
.hint-btn {
  margin-top: 10px;
  background: linear-gradient(180deg, #2a6f5e, #1a4a3f);
  border-color: #4fbf9f;
  color: #eafff7;
}
.hint-btn:hover { box-shadow: 0 4px 12px rgba(79,191,159,0.3); }
.hint-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.square.hint-from, .square.hint-to {
  box-shadow: inset 0 0 0 3px #4fbf9f, 0 0 16px rgba(79,191,159,0.7);
}

/* ---------- Ana düzen ---------- */
.app-main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .app-main { grid-template-columns: 1fr; }
  .panel-right { order: 3; }
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), inset 0 0 30px rgba(212,175,55,0.04);
}
.panel-block + .panel-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(212,175,55,0.25);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Kontroller ---------- */
.mode-toggle { display: flex; gap: 8px; margin-bottom: 10px; }
.mode-btn, .wide-btn, #gameover-newgame {
  flex: 1;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 9px 10px;
  font-family: 'Philosopher', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mode-btn:hover, .wide-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,175,55,0.25); }
.mode-btn.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: var(--ink);
  font-weight: 700;
  border-color: var(--gold-bright);
}
.wide-btn {
  width: 100%;
  margin-top: 8px;
}
.wide-btn.secondary {
  background: linear-gradient(180deg, #2c2c3a, #1a1a24);
}

.ai-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.9rem;
}
.ai-level-row select {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  padding: 4px 6px;
}

.status-text {
  font-family: 'Philosopher', serif;
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.swap-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ivory);
  opacity: 0.7;
}

/* ---------- Esirler ---------- */
.captured-row { margin-bottom: 10px; }
.captured-label { font-size: 0.8rem; opacity: 0.75; display: block; margin-bottom: 4px; }
.captured-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 26px;
}
.cap-chip { width: 22px; height: 22px; display: inline-block; opacity: 0.9; }
.cap-chip svg { width: 100%; height: 100%; }

/* ---------- Hamle günlüğü ---------- */
.move-log {
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.move-log .log-w { color: var(--ivory); }
.move-log .log-b { color: var(--gold-bright); }

/* ---------- Tahta ---------- */
.board-wrap {
  display: flex;
  justify-content: center;
}
.board {
  display: grid;
  width: min(92vw, 760px);
  aspect-ratio: 13 / 10;
  background: linear-gradient(160deg, var(--maroon-dark), var(--ink));
  padding: 10px;
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 6px rgba(212,175,55,0.15);
  gap: 2px;
}

.square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}
.square.light { background: var(--sq-light); }
.square.dark { background: var(--sq-dark); }

.square.citadel {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold-dim) 70%);
  box-shadow: 0 0 0 3px var(--ink), 0 0 14px rgba(212,175,55,0.6);
}
.square.citadel-black { background: radial-gradient(circle at 35% 30%, #6f7f8f, var(--ink) 75%); box-shadow: 0 0 0 3px var(--maroon-dark), 0 0 14px rgba(0,0,0,0.6); }
.square.citadel-white { background: radial-gradient(circle at 35% 30%, var(--gold-bright), #7a5b12 75%); }

.square.selected { box-shadow: inset 0 0 0 3px var(--gold-bright); }
.square.legal-move::after {
  content: '';
  width: 26%; height: 26%;
  border-radius: 50%;
  background: rgba(212,175,55,0.65);
}
.square.legal-capture { box-shadow: inset 0 0 0 3px rgba(220,60,60,0.85); }
.square.legal-swap { box-shadow: inset 0 0 0 3px rgba(90,180,220,0.9); }
.square.in-check { box-shadow: inset 0 0 0 3px rgba(220,30,30,0.95), 0 0 16px rgba(220,30,30,0.6); }

/* ---------- Taş ikonları (harfsiz, siluet tabanlı) ---------- */
.piece-glyph { width: 92%; height: 92%; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.6)); pointer-events: none; }

/* Madalyon zemini: taş rengini net bir daire olarak taşır (kare renginden bağımsız kontrast) */
.glyph-medallion { fill: var(--piece-white-fill); }
.piece-glyph.piece-b .glyph-medallion { fill: var(--piece-black-fill); }
.glyph-medallion-rim { fill: none; stroke: var(--piece-white-stroke); stroke-width: 3.5; }
.piece-glyph.piece-b .glyph-medallion-rim { stroke: var(--piece-black-stroke); }

/* Ana siluet: dolgun, net renk (artık merkezde harf olmadığı için tam opak) */
.piece-glyph .glyph-shape { fill: var(--piece-white-stroke); }
.piece-glyph.piece-b .glyph-shape { fill: var(--piece-black-stroke); }
.piece-glyph .glyph-cut { fill: var(--piece-white-fill); }
.piece-glyph.piece-b .glyph-cut { fill: var(--piece-black-fill); }
/* Ince cizgi detaylari (agiz, hortum vb.): dolgu degil, kontur rengiyle cizilir */
.piece-glyph .glyph-line { fill: none; stroke: var(--piece-white-stroke); stroke-linecap: round; }
.piece-glyph.piece-b .glyph-line { stroke: var(--piece-black-stroke); }

/* Piyonlar: aynı taşın küçük/sade hali gibi görünsün diye biraz küçültülür */
.piece-glyph.piece-pawn { width: 76%; height: 76%; }
.pawn-badge-ring { fill: var(--gold-bright); stroke: var(--ink); stroke-width: 2; }

/* ---------- Modallar ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,4,6,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal.hidden { display: none; }
.modal-box {
  background: linear-gradient(180deg, #2a141b, #1b0f14);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-box-wide { max-width: 680px; text-align: left; max-height: 85vh; overflow-y: auto; }
.rules-content p, .guide-panel p { font-size: 0.92rem; line-height: 1.55; }
.rules-note { opacity: 0.7; font-size: 0.82rem; font-style: italic; }

/* ---------- Oyun Sonu: zafer / kayıp / berabere animasyonları ---------- */
.gameover-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.gameover-fx.fx-loss { background: radial-gradient(circle at 50% 40%, rgba(140,20,20,0.28), transparent 65%); animation: vignettePulse 2.2s ease-in-out infinite; }

.gameover-box { position: relative; z-index: 2; overflow: visible; }
.gameover-box.result-win { border-color: var(--gold-bright); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 46px rgba(241,207,107,0.55); animation: modalPopIn 0.5s cubic-bezier(.34,1.56,.64,1) both; }
.gameover-box.result-loss { border-color: #8a3a3a; animation: modalShake 0.55s ease both; }
.gameover-box.result-draw { border-color: var(--gold-dim); animation: modalFadeIn 0.5s ease both; }

.gameover-icon { width: 84px; height: 84px; margin: 0 auto 10px; }
.gameover-icon svg { width: 100%; height: 100%; }
.icon-win-shape { fill: var(--gold-bright); stroke: var(--maroon-dark); stroke-width: 2.5; stroke-linejoin: round; animation: crownPop 0.6s cubic-bezier(.34,1.56,.64,1) both, goldGlow 2s ease-in-out infinite 0.6s; transform-origin: 50% 60%; }
.icon-loss-shape { fill: #6b6b72; stroke: #3a2a2a; stroke-width: 2.5; stroke-linejoin: round; animation: sinkFade 0.7s ease both; transform-origin: 50% 50%; }
.icon-draw-shape { fill: var(--gold-dim); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; animation: fadeInSoft 0.6s ease both; transform-origin: 50% 50%; }

.confetti-piece { position: absolute; top: -24px; opacity: 0.95; animation-name: confettiFall; animation-timing-function: linear; animation-fill-mode: forwards; border-radius: 1px; }
.ash-piece { position: absolute; top: -20px; border-radius: 50%; background: #7a7a80; opacity: 0.6; animation-name: ashFall; animation-timing-function: ease-in; animation-fill-mode: forwards; filter: blur(0.5px); }

@keyframes confettiFall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(112vh) rotate(560deg); opacity: 0.85; }
}
@keyframes ashFall {
  0% { transform: translateY(-5vh) translateX(0); opacity: 0.55; }
  100% { transform: translateY(112vh) translateX(var(--drift, 0px)); opacity: 0; }
}
@keyframes crownPop {
  0% { transform: scale(0.2) translateY(-16px); opacity: 0; }
  70% { transform: scale(1.15) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes goldGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(241,207,107,0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(241,207,107,0.95)); }
}
@keyframes sinkFade {
  0% { transform: scale(1) rotate(0deg); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(0.9) rotate(-6deg) translateY(6px); opacity: 0.85; }
}
@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
@keyframes modalPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes modalFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInSoft {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes vignettePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ---------- Kılavuz (Nasıl Oynanır) ---------- */
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 10px;
}
.guide-tab {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Philosopher', serif;
  font-size: 0.88rem;
  cursor: pointer;
  opacity: 0.75;
}
.guide-tab.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: var(--ink);
  font-weight: 700;
  opacity: 1;
  border-color: var(--gold-bright);
}
.guide-panel { display: none; }
.guide-panel.active { display: block; }
.guide-lead { opacity: 0.85; font-size: 0.88rem; margin-bottom: 10px; }
.guide-list { margin: 0; padding-left: 20px; font-size: 0.92rem; line-height: 1.6; }
.guide-list li { margin-bottom: 8px; }

.piece-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.piece-guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.piece-guide-icon { width: 46px; height: 46px; flex: none; }
.piece-guide-icon .piece-glyph { width: 100%; height: 100%; }
.piece-guide-text { font-size: 0.82rem; line-height: 1.4; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 80;
  font-family: 'Philosopher', serif;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.app-footer {
  max-width: 900px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold-dim);
  position: relative;
  z-index: 1;
}
