* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Georgia', serif; background: #0e0a1a; color: #e8e3d5; overflow: hidden; }

/* -------- V1 BANNER (persistant) -------- */
#v1-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #2a1a4a, #4a2e7a, #2a1a4a);
  color: #f0d77a;
  border-bottom: 1px solid #d4af37;
  text-align: center;
  font-size: 12px;
  padding: 4px 12px;
  letter-spacing: 0.3px;
  font-family: 'Georgia', serif;
  pointer-events: none;
}
#v1-banner.hidden { display: none; }
body:has(#v1-banner:not(.hidden)) #game { margin-top: 24px; height: calc(100vh - 24px); }

#game { display: grid; grid-template-rows: 60px 1fr auto; height: 100vh; }

/* -------- HUD -------- */
#hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px; background: linear-gradient(180deg, #1a1230, #120a22);
  border-bottom: 2px solid #4a2e7a;
}
.hud-left { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.hud-item { font-size: 13px; white-space: nowrap; }
.hud-item b { color: #d4af37; }
#actions { color: #5ad4af; }
#money { color: #f0d77a; }
#intel { color: #9aeed1; }
#endurance { color: #ffb6c8; }
#hud button {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 6px 12px; margin-left: 5px; cursor: pointer; border-radius: 4px;
  font-family: inherit; font-size: 13px;
}
#hud button:hover { background: #4a2e7a; }

/* -------- SCENE -------- */
#scene {
  position: relative; overflow: hidden;
  background: #1a1230 center/cover no-repeat;
}

/* -------- QUEST TRACKER (floating, top-left) -------- */
#quest-tracker {
  position: absolute;
  top: 14px; left: 14px; z-index: 3;
  background: rgba(14, 10, 26, 0.88);
  border: 2px solid #5ad4af;
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 320px;
  box-shadow: 0 0 18px rgba(90, 212, 175, 0.35);
  font-size: 13px;
  pointer-events: auto;
}
#quest-tracker.hidden { display: none; }
#quest-tracker .qt-header {
  display: flex; align-items: center; gap: 6px;
  color: #5ad4af; font-weight: bold;
  border-bottom: 1px solid rgba(90, 212, 175, 0.3);
  padding-bottom: 6px; margin-bottom: 6px;
  font-size: 14px;
}
#quest-tracker .qt-icon { font-size: 16px; }
#quest-tracker .qt-title { flex: 1; }
#quest-tracker .qt-step {
  padding: 3px 0;
  color: #aab2c5;
  line-height: 1.35;
}
#quest-tracker .qt-step.done { color: #5ad4af; }
#quest-tracker .qt-step.active { color: #d4af37; font-weight: bold; }
#quest-tracker .qt-mark { display: inline-block; width: 14px; }
#quest-tracker .qt-hint {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(107, 74, 158, 0.4);
  color: #9084b8; font-style: italic; font-size: 12px;
}
#scene-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
#scene-bg.hidden { display: none; }

/* -------- PORTRAIT -------- */
#character-area {
  position: absolute; right: 3%; top: 16px; z-index: 1;
  display: flex; justify-content: center; align-items: flex-start;
}
#portrait-frame {
  position: relative;
  height: min(460px, 38vh);
  aspect-ratio: 320 / 460;
  background: linear-gradient(160deg, rgba(42,26,74,0.85), rgba(18,10,34,0.85));
  border: 3px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35), inset 0 0 20px rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#portrait-frame.empty { border-style: dashed; }
#char-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
#char-portrait.hidden { display: none; }
#portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #6b4a9e; font-style: italic; font-size: 16px; letter-spacing: 2px;
  text-align: center; padding: 20px; pointer-events: none;
  white-space: pre-line;
}
#portrait-placeholder.hidden { display: none; }
#portrait-nameplate {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(14,10,26,0.95), rgba(14,10,26,0));
  color: #d4af37; text-align: center; padding: 30px 10px 10px;
  font-weight: bold; letter-spacing: 1px;
}
#portrait-nameplate:empty { display: none; }

/* -------- DIALOGUE -------- */
#dialogue-box {
  position: absolute; left: 4%; right: 4%; bottom: 16px; z-index: 2;
  background: rgba(14, 10, 26, 0.92); border: 2px solid #6b4a9e;
  border-radius: 10px; padding: 16px 22px; min-height: 150px;
  box-shadow: 0 0 30px rgba(107, 74, 158, 0.4);
  max-height: 50vh; overflow-y: auto;
}
#npc-switcher {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid #4a2e7a;
}
#npc-switcher .npc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42, 26, 74, 0.6); color: #c8c0d8;
  border: 1px solid #4a2e7a; border-radius: 24px;
  padding: 4px 12px 4px 4px; cursor: pointer;
  font-family: inherit; font-size: 13px;
  transition: all 0.15s;
}
#npc-switcher .npc-tab:hover { background: #4a2e7a; border-color: #d4af37; color: #fff; }
#npc-switcher .npc-tab.active {
  background: linear-gradient(90deg, #5a2a7a, #4a2e7a);
  border-color: #d4af37; color: #f0d77a; font-weight: bold;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
#npc-switcher .npc-tab img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid #d4af37;
  background: #0e0a1a;
}
#npc-switcher .npc-tab.active img { border-color: #ffd77a; box-shadow: 0 0 6px rgba(255, 215, 122, 0.6); }
#npc-switcher .npc-tab-name { white-space: nowrap; }

#speaker { color: #d4af37; font-weight: bold; font-size: 18px; margin-bottom: 6px; }
#text { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
#choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#choices button {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 8px 12px; cursor: pointer; border-radius: 4px; text-align: left;
  font-family: inherit; font-size: 14px;
}
#choices button:hover { background: #4a2e7a; border-color: #d4af37; }
#choices button:disabled { opacity: 0.4; cursor: not-allowed; }
#choices button.spell { border-color: #d4af37; color: #f0d77a; }
#choices button.spell:hover { background: #5a3e2a; }
#choices button.romance { border-color: #e07aaa; color: #f0b8d0; }
#choices button.romance:hover { background: #5a2a3e; }
#choices button.dominion {
  border-color: #ff3c70; color: #ffb6c8;
  background: linear-gradient(90deg, #3a0a2a, #2a0a3a);
  box-shadow: 0 0 10px rgba(255, 60, 112, 0.4); font-weight: bold;
}
#choices button.dominion:hover { background: linear-gradient(90deg, #5a0a3a, #4a0a5a); }
#choices button.quest { border-color: #5ad4af; color: #9aeed1; }
#choices button.quest:hover { background: #2a5a4e; }

/* -------- MAP -------- */
#map {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
  background: #120a22; border-top: 2px solid #4a2e7a;
  padding: 8px 10px;
  min-height: 62px;
  max-height: 30vh;
  overflow-y: auto;
}
#map button {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 6px 11px; cursor: pointer; border-radius: 4px;
  font-family: inherit; font-size: 12.5px; white-space: nowrap;
  line-height: 1.3;
}
#map button:hover { background: #4a2e7a; }
#map button.current { background: #d4af37; color: #0e0a1a; font-weight: bold; }
#map button.locked { opacity: 0.4; cursor: not-allowed; }
#map button.time { background: #3a2a5a; border-color: #d4af37; }
#map button.time:disabled { opacity: 0.45; cursor: not-allowed; }
#map button.sleep-btn { background: #2a3a5a; border-color: #6ba8e0; color: #c8e0ff; }
#map button.sleep-btn:hover { background: #3a4a7a; }
#map button.map-btn { background: #2a4a3a; border-color: #6bd4a8; color: #c8ffe0; }
#map button.map-btn:hover { background: #3a6a4a; }
#map button .npc-preview {
  display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle;
}
#map button .npc-preview img {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; border: 1px solid #d4af37;
  background: #0e0a1a;
}

/* -------- FAST TRAVEL PANEL -------- */
.ft-group { margin-bottom: 18px; }
.ft-group h3 {
  margin: 0 0 8px 0; color: #d4af37; font-size: 15px;
  border-bottom: 1px solid #4a2e7a; padding-bottom: 4px;
}
.ft-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.ft-btn {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 10px 12px; cursor: pointer; border-radius: 6px;
  font-family: inherit; font-size: 13px; text-align: left;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.ft-btn:hover:not(:disabled) { background: #4a2e7a; border-color: #d4af37; }
.ft-btn.current { background: #d4af37; color: #0e0a1a; font-weight: bold; border-color: #d4af37; }
.ft-btn.locked { opacity: 0.45; cursor: not-allowed; background: #1a1230; }
.ft-btn .ft-thumbs { display: inline-flex; gap: 2px; margin-left: auto; }
.ft-btn .ft-thumbs img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 1px solid #d4af37;
  background: #0e0a1a;
}
.ft-hint { color: #9a90b0; font-size: 13px; margin-bottom: 14px; }

/* -------- SAVE / LOAD SLOTS -------- */
.slot-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.slot-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #22173a; border: 1px solid #4a2e7a; border-radius: 6px;
  padding: 10px 14px; gap: 12px;
}
.slot-row:hover { border-color: #6b4a9e; }
.slot-info { flex: 1; font-size: 13px; line-height: 1.5; }
.slot-info b { color: #e8dcff; }
.slot-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.slot-actions button {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 7px 12px; cursor: pointer; border-radius: 4px;
  font-family: inherit; font-size: 13px;
}
.slot-actions button:hover:not(:disabled) { background: #4a2e7a; border-color: #d4af37; }
.slot-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.slot-actions button.slot-del {
  background: #3a1a1a; border-color: #7a3a3a; padding: 7px 10px;
}
.slot-actions button.slot-del:hover { background: #5a2a2a; border-color: #d45a5a; }

button.big-action {
  background: #2a4a3a; color: #c8ffe0; border: 1px solid #6bd4a8;
  padding: 10px 18px; cursor: pointer; border-radius: 6px;
  font-family: inherit; font-size: 14px;
}
button.big-action:hover { background: #3a6a4a; border-color: #8be0b8; }

/* -------- PANEL -------- */
#panel {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 40; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px;
}
#panel.hidden { display: none; }
#panel-content {
  background: #1a1230; border: 2px solid #6b4a9e; border-radius: 10px;
  padding: 26px; max-width: 820px; width: 100%; max-height: 75vh; overflow-y: auto;
}
#panel-content h2 { color: #d4af37; margin-bottom: 14px; }
#panel-content h3 { color: #e07aaa; margin: 14px 0 8px; font-size: 16px; }
#panel-content .entry { padding: 10px; border-bottom: 1px solid #4a2e7a; }
#panel-content .entry b { color: #d4af37; }
#panel-content .inv-item.equipped { background: rgba(90, 212, 175, 0.08); border-left: 3px solid #5ad4af; }
#panel-content .eq-tag { color: #5ad4af; font-size: 12px; margin-left: 6px; }
#panel-content .inv-stats { color: #d4af37; margin: 4px 0 10px; }
#panel-content .v1-note { color: #d4af37; opacity: 0.8; margin-top: 16px; font-size: 13px; }
#panel-content .entry button {
  background: #2a1a4a; color: #e8e3d5; border: 1px solid #6b4a9e;
  padding: 4px 10px; cursor: pointer; border-radius: 4px;
  font-family: inherit; font-size: 13px; margin-left: 6px;
}
#panel-content .entry button:hover { background: #4a2e7a; }
#panel-content .bar {
  display: inline-block; width: 180px; height: 10px;
  background: #2a1a4a; border-radius: 5px; overflow: hidden; vertical-align: middle;
}
#panel-content .bar > div { height: 100%; background: linear-gradient(90deg, #6b4a9e, #d4af37); }
#panel-content .bar.corr { background: #2a0a1a; }
#panel-content .bar.corr > div { background: linear-gradient(90deg, #6a0a2a, #ff3c70); }
#panel-content .quest-step { margin-left: 20px; color: #aab2c5; }
#panel-content .quest-step.done { color: #5ad4af; }
#panel-content .quest-step.active { color: #d4af37; font-weight: bold; }
#panel-content .cheat-btn {
  display: block; width: 100%; text-align: left; margin: 6px 0;
  background: #3a1a4a; border: 1px solid #ff3c70; color: #ffb6c8;
  padding: 10px 14px; border-radius: 4px; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
#panel-content .cheat-btn:hover { background: #5a2a6a; }
#panel-content .cheat-btn.active { background: #5a2a6a; color: #fff; font-weight: bold; }
#panel-content .cheat-btn.done {
  background: linear-gradient(90deg, #1e5a3a, #2a8a5a) !important;
  border-color: #5ad4af !important;
  color: #c8ffd9 !important;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(90, 212, 175, 0.4);
}
#panel-content .cheat-btn.done:hover { background: linear-gradient(90deg, #2a8a5a, #3aa070) !important; }

#panel-content .cheat-gate {
  display: flex; gap: 8px; margin: 14px 0;
}
#panel-content .cheat-gate input {
  flex: 1; padding: 10px 14px; border-radius: 4px;
  background: #1e1130; border: 2px solid #d4af37; color: #f0d77a;
  font-family: inherit; font-size: 16px; letter-spacing: 2px;
}
#panel-content .cheat-gate input:focus { outline: none; border-color: #ffd77a; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
#panel-content .cheat-gate button {
  padding: 10px 20px; border-radius: 4px; cursor: pointer;
  background: #4a2e7a; color: #fff; border: 2px solid #d4af37;
  font-family: inherit; font-size: 15px; font-weight: bold;
}
#panel-content .cheat-gate button:hover { background: #6a3e9a; }
#panel-content #cheat-pw-msg { margin-top: 10px; font-weight: bold; min-height: 20px; }

/* ============================================================
   CHEAT TIERS — layout 3 colonnes (Charme / Ferveur / Sceau)
   ============================================================ */
#panel-content .cheat-intro { color: #c8b8d8; margin-bottom: 16px; }
#panel-content .cheat-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
#panel-content .cheat-col {
  background: rgba(30, 17, 48, 0.55);
  border: 2px solid #4a2e7a;
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column;
  min-height: 260px;
}
#panel-content .cheat-col.charme  { border-color: #c88adf; box-shadow: 0 0 16px rgba(200,138,223,0.12); }
#panel-content .cheat-col.ferveur { border-color: #ff8040; box-shadow: 0 0 16px rgba(255,128,64,0.14); }
#panel-content .cheat-col.sceau   { border-color: #e9b84c; box-shadow: 0 0 22px rgba(233,184,76,0.20); }
#panel-content .cheat-col.active {
  background: rgba(50, 30, 75, 0.75);
}
#panel-content .cheat-col.locked {
  opacity: 0.92;
}
#panel-content .cheat-col-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 8px; margin-bottom: 10px;
}
#panel-content .cheat-col-head h3 {
  margin: 0; font-size: 1.1em; color: #f0d77a;
}
#panel-content .tier-price {
  background: rgba(212, 175, 55, 0.15);
  color: #f0d77a;
  padding: 2px 8px; border-radius: 12px; font-size: 0.85em;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
#panel-content .cheat-col .cheat-gate {
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 4px;
}
#panel-content .cheat-col .cheat-gate input {
  width: 100%;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 10px;
}
#panel-content .cheat-col .cheat-gate button {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
}
#panel-content .cheat-pw-msg {
  min-height: 18px; font-size: 0.85em; margin: 4px 0 8px;
}
#panel-content .cheat-preview {
  margin-top: 10px;
  font-size: 0.85em;
  color: #b8a8c8;
  flex: 1;
}
#panel-content .cheat-preview b { color: #e8d4ff; display: block; margin-bottom: 6px; }
#panel-content .cheat-preview ul { margin: 0; padding-left: 18px; }
#panel-content .cheat-preview li { margin: 3px 0; line-height: 1.35; }
#panel-content .cheat-col-status {
  color: #5ad4af;
  font-weight: bold;
  text-align: center;
  margin: 4px 0 10px;
  font-size: 0.9em;
}
#panel-content .cheat-actions { display: flex; flex-direction: column; gap: 4px; }
#panel-content .cheat-actions .cheat-btn {
  margin: 0;
  font-size: 0.85em;
  padding: 8px 10px;
}
#panel-content .cheat-actions .cheat-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}
#panel-content .cheat-actions .cheat-suffix {
  color: #c8b8d8; font-size: 0.9em; font-style: italic;
}
#panel-content .cheat-sep {
  border: none; border-top: 1px dashed rgba(212, 175, 55, 0.3);
  margin: 8px 0;
}
#panel-content .cheat-footer {
  margin-top: 18px; text-align: center;
}
#panel-content .cheat-btn.reset {
  max-width: 340px; margin: 0 auto;
}

/* Sceau — bouton "tout débloquer" mis en avant */
#panel-content .cheat-col.sceau .cheat-btn[data-cheat="sceauAll"] {
  background: linear-gradient(90deg, #8a6a1e, #e9b84c);
  color: #1a0f2a;
  border-color: #ffd77a;
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  box-shadow: 0 0 14px rgba(233,184,76,0.4);
}
#panel-content .cheat-col.sceau .cheat-btn[data-cheat="sceauAll"]:hover {
  background: linear-gradient(90deg, #a07e26, #ffcc5a);
}

@media (max-width: 900px) {
  #panel-content .cheat-tiers { grid-template-columns: 1fr; }
}

#panel-close {
  margin-top: 16px; background: #4a2e7a; color: #fff; border: none;
  padding: 10px 24px; cursor: pointer; border-radius: 4px; font-size: 15px;
}

/* -------- CG -------- */
#cg-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.8s ease;
}
#cg-modal.hidden { display: none; }
#cg-inner {
  max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
#cg-media-slot {
  max-width: 80vw; max-height: 70vh;
  border: 2px solid #d4af37; border-radius: 8px; overflow: hidden;
  background: #0e0a1a;
  min-width: 400px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
#cg-media-slot img, #cg-media-slot video { max-width: 100%; max-height: 70vh; display: block; }
#cg-media-slot .empty { color: #6b4a9e; font-style: italic; padding: 40px; text-align: center; white-space: pre-line; }
#cg-caption {
  max-width: 700px; background: rgba(14,10,26,0.9);
  border: 1px solid #6b4a9e; border-radius: 6px; padding: 14px 20px;
  font-size: 15px; font-style: italic; text-align: center; color: #e8e3d5;
}
#cg-close {
  background: #4a2e7a; color: #fff; border: 1px solid #d4af37;
  padding: 10px 28px; cursor: pointer; border-radius: 4px; font-size: 15px; font-family: inherit;
}
#cg-close:hover { background: #6b4a9e; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* -------- TOAST -------- */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2a8a5a, #1e5a3a);
  color: #c8ffd9;
  border: 2px solid #5ad4af;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(90, 212, 175, 0.5);
  z-index: 100;
  font-weight: bold;
  font-size: 15px;
  font-family: inherit;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 1;
  max-width: 80vw;
  text-align: center;
}
#toast.hidden {
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
#toast.warn {
  background: linear-gradient(90deg, #8a5a2a, #5a3a1e);
  border-color: #d4af37;
  color: #ffe9b8;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
#toast.err {
  background: linear-gradient(90deg, #8a2a2a, #5a1e1e);
  border-color: #d45a5a;
  color: #ffc8c8;
  box-shadow: 0 0 20px rgba(212, 90, 90, 0.5);
}

@media (max-width: 1100px) {
  #portrait-frame { width: auto; height: min(340px, 32vh); }
  #choices { grid-template-columns: 1fr; }
}

/* -------- TITLE SCREEN -------- */
#title-screen {
  position: fixed; inset: 0; z-index: 30;
  background: #0e0a1a;
  display: flex; align-items: center; justify-content: center;
}
#title-screen.hidden { display: none; }
#title-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
}
#title-bg[src=""], #title-bg.err { display: none; }
#title-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 40px;
  background: rgba(14, 10, 26, 0.75);
  border: 3px solid #d4af37;
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
  max-width: 640px;
}
#title-main {
  font-size: 44px; color: #d4af37; letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  margin-bottom: 10px;
}
#title-sub { color: #9084b8; font-style: italic; margin-bottom: 36px; letter-spacing: 2px; }
#title-buttons { display: flex; flex-direction: column; gap: 12px; }
#title-buttons button {
  background: linear-gradient(90deg, #2a1a4a, #4a2e7a);
  color: #f0d77a; border: 2px solid #d4af37;
  padding: 14px 24px; cursor: pointer; border-radius: 6px;
  font-family: inherit; font-size: 18px; letter-spacing: 1px;
  transition: all 0.2s;
}
#title-buttons button:hover {
  background: linear-gradient(90deg, #4a2e7a, #6b4a9e);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}
#title-buttons button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
#btn-patreon { background: linear-gradient(90deg, #e85a3c, #f28c4c) !important; border-color: #f28c4c !important; color: #fff !important; }
#btn-patreon:hover { box-shadow: 0 0 20px rgba(242, 140, 76, 0.6) !important; }
#btn-lang-title { font-size: 14px !important; padding: 8px 16px !important; }

/* -------- INTRO / NEW GAME SCREEN -------- */
#intro-screen {
  position: fixed; inset: 0; z-index: 30;
  background: #0e0a1a;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
#intro-screen.hidden { display: none; }
#intro-inner {
  background: rgba(14, 10, 26, 0.95);
  border: 2px solid #6b4a9e;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(107, 74, 158, 0.5);
}
#intro-title { color: #d4af37; font-size: 28px; margin-bottom: 20px; text-align: center; letter-spacing: 2px; }
#intro-text { color: #e8e3d5; font-size: 15px; line-height: 1.7; margin-bottom: 26px; white-space: pre-line; }
#intro-text b { color: #d4af37; }
#intro-form { margin-bottom: 20px; }
#intro-label { display: block; color: #e07aaa; margin-bottom: 8px; font-size: 15px; }
#name-input {
  width: 100%;
  background: #1a1230;
  border: 2px solid #6b4a9e;
  border-radius: 6px;
  padding: 12px 14px;
  color: #e8e3d5;
  font-family: inherit;
  font-size: 18px;
}
#name-input:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
#intro-buttons { display: flex; gap: 10px; justify-content: space-between; }
#intro-buttons button {
  flex: 1;
  background: #2a1a4a;
  color: #e8e3d5;
  border: 1px solid #6b4a9e;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}
#intro-buttons button:hover { background: #4a2e7a; }
#btn-start { background: linear-gradient(90deg, #4a2e7a, #d4af37) !important; color: #0e0a1a !important; font-weight: bold !important; border-color: #d4af37 !important; }
#btn-start:hover { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
