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

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

:root {
  --dark:        #120600;
  --dark2:       #1e0c04;
  --wood:        #2c1408;
  --gold:        #8b6914;
  --gold-light:  #c9aa71;
  --amber:       #e08000;
  --parchment:   #f0e6c8;
  --parch-dark:  #d4c49a;
  --red:         #7a1515;
  --red-light:   #c04040;
  --green:       #3a7a3a;
  --text:        #221000;
  --text-mid:    #5a3a18;
  --white:       #fff8ef;
}

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

body {
  background: var(--dark);
  color: var(--parchment);
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  line-height: 1.65;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

em { color: var(--gold-light); font-style: italic; }

/* ── Layout ────────────────────────────────────────────────────── */
.game-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

/* ── Top Bar ───────────────────────────────────────────────────── */
.top-bar {
  background: var(--dark2);
  border-bottom: 2px solid var(--gold);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
}

.top-bar .level-title {
  flex: 1;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-nav { display: flex; gap: 16px; align-items: center; }

.top-bar-nav a {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  transition: color .2s;
  white-space: nowrap;
}

.top-bar-nav a:hover { color: var(--amber); }

.coin-pill {
  background: rgba(139,105,20,.2);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 3px 12px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.coin-pill::before { content: '⬡ '; }

/* ── Scene Header (hero image) ─────────────────────────────────── */
.scene-header {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  background: var(--dark2);
}

.scene-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(.55) sepia(.25);
  display: block;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 30%, var(--dark) 100%);
}

.scene-caption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
}

.scene-caption h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
  margin-bottom: 4px;
}

.scene-caption p {
  font-family: 'Lora', serif;
  font-size: .82rem;
  color: var(--parch-dark);
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}

/* ── Parchment Panel ───────────────────────────────────────────── */
.parchment {
  background: var(--parchment);
  color: var(--text);
  border-radius: 3px;
  padding: 18px 22px;
  margin: 18px 0;
  border: 1px solid #b8961a;
  box-shadow: 0 0 24px rgba(180,120,0,.12), inset 0 0 60px rgba(0,0,0,.06);
  position: relative;
}

.parchment::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(139,105,20,.25);
  border-radius: 2px;
  pointer-events: none;
}

.parchment p  { margin-bottom: 10px; font-size: .95rem; }
.parchment p:last-child { margin-bottom: 0; }
.parchment h3 { font-family: 'Cinzel', serif; font-size: .85rem; color: var(--wood); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.parchment em { color: var(--wood); font-style: italic; }

/* ── Dialogue Box ──────────────────────────────────────────────── */
.dialogue {
  background: var(--dark2);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 14px 0;
  border-radius: 0 3px 3px 0;
  animation: fadeUp .35s ease;
}

.dialogue.dying  { border-left-color: var(--red-light); }
.dialogue.urgent { border-left-color: var(--amber); }

.speaker {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.dialogue.dying .speaker  { color: var(--red-light); }
.dialogue.urgent .speaker { color: var(--amber); }

.dialogue p {
  font-style: italic;
  color: var(--gold-light);
  font-size: .93rem;
  line-height: 1.7;
}

.dialogue.dying p  { color: #e0aaaa; }
.dialogue.urgent p { color: var(--parch-dark); }

/* ── Turn Counter ──────────────────────────────────────────────── */
.turn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--dark2);
  border: 1px solid var(--gold);
  border-radius: 3px;
  margin: 18px 0 12px;
}

.turn-label {
  font-family: 'Cinzel', serif;
  font-size: .73rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  flex: 1;
}

.turn-pip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  color: var(--gold-light);
  transition: all .25s;
  flex-shrink: 0;
}

.turn-pip.active  { background: var(--gold); color: var(--dark); font-weight: 700; box-shadow: 0 0 10px rgba(200,160,0,.5); }
.turn-pip.spent   { background: var(--red); border-color: var(--red); color: #faa; }

/* ── Question Input ─────────────────────────────────────────────── */
.question-panel { margin: 14px 0; }

.panel-heading {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 9px;
}

.own-row {
  display: flex;
  gap: 9px;
}

.own-row input {
  flex: 1;
  padding: 10px 14px;
  background: var(--dark2);
  border: 1px solid var(--gold);
  color: var(--parchment);
  font-family: 'Lora', serif;
  font-size: .93rem;
  border-radius: 3px;
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}

.own-row input:focus   { border-color: var(--amber); }
.own-row input::placeholder { color: var(--text-mid); font-style: italic; }
.own-row input:disabled { opacity: .4; }

.earn-note {
  font-size: .73rem;
  color: var(--text-mid);
  font-style: italic;
  margin-top: 5px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  letter-spacing: .06em;
  padding: 9px 18px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn:hover:not(:disabled)  { background: var(--gold); color: var(--dark); }
.btn:disabled              { opacity: .38; cursor: not-allowed; }

.btn-primary { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); }

.btn-danger { border-color: var(--red-light); color: #e09090; }
.btn-danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }

.btn-sm   { padding: 6px 13px; font-size: .72rem; }
.btn-full { width: 100%; display: block; padding: 13px; font-size: .88rem; }

.btn-hint {
  padding: 7px 14px;
  font-size: .72rem;
  border-color: rgba(139,105,20,.5);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  letter-spacing: .06em;
  cursor: pointer;
  background: transparent;
  border-radius: 3px;
  border-style: dashed;
  border-width: 1px;
  transition: all .2s;
}

.btn-hint:hover { background: rgba(139,105,20,.15); }

/* ── Preset Question Cards ──────────────────────────────────────── */
.preset-section { margin-top: 14px; }

.or-divider {
  text-align: center;
  position: relative;
  margin: 12px 0;
}

.or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(139,105,20,.3);
}

.or-divider span {
  position: relative;
  background: var(--dark);
  padding: 0 12px;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preset-cards { display: flex; flex-direction: column; gap: 8px; }

.preset-card {
  background: var(--dark2);
  border: 1px solid rgba(139,105,20,.6);
  border-radius: 3px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preset-card:hover:not(.used):not(.cant-afford) { border-color: var(--amber); background: #281005; }
.preset-card.used    { opacity: .3; cursor: default; border-style: dashed; }
.preset-card.cant-afford { opacity: .55; cursor: not-allowed; }

.preset-q  { flex: 1; font-style: italic; color: var(--gold-light); font-size: .88rem; }
.preset-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.preset-cost { font-family: 'Cinzel', serif; font-size: .72rem; color: var(--amber); }
.preset-used-label { font-family: 'Cinzel', serif; font-size: .68rem; color: #666; text-decoration: line-through; }

/* ── Question Type Badges ───────────────────────────────────────── */
.q-type-badge {
  font-family: 'Cinzel', serif;
  font-size: .63rem;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.badge-extractive    { background: #0a220a; color: #6dc86d; border: 1px solid #4aaa4a; }
.badge-investigative { background: #0a1a28; color: #6aaad0; border: 1px solid #4a8ab0; }
.badge-causal        { background: #281a08; color: #c8924a; border: 1px solid #a87030; }
.badge-generative    { background: #1a0a28; color: #9a6acc; border: 1px solid #7a4aac; }
.badge-vague         { background: #181818; color: #777;    border: 1px solid #444; }

.type-def { font-size: .73rem; color: #777; font-style: italic; }

/* ── Response Box ───────────────────────────────────────────────── */
.response-box {
  background: var(--dark2);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 16px 18px;
  margin: 14px 0;
  display: none;
  animation: fadeUp .35s ease;
}

.response-box.show { display: block; }

.response-who {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.response-text {
  font-style: italic;
  color: var(--gold-light);
  font-size: .92rem;
  line-height: 1.7;
  margin: 8px 0 6px;
}

.response-text.vague-style { color: #a08060; }

.response-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(139,105,20,.25);
}

.clue-added-tag {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  color: #6dc86d;
  letter-spacing: .08em;
}

.earn-tag {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  color: var(--amber);
}

.xp-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(0,80,180,.25);
  border: 1px solid #4a8ab0;
  color: #6aaad0;
}

/* ── Clue Board ─────────────────────────────────────────────────── */
.clue-board { margin: 22px 0; }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139,105,20,.4);
}

.clue-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 460px) { .clue-cards-row { grid-template-columns: 1fr; } }

.clue-card {
  background: var(--dark2);
  border: 1px solid rgba(139,105,20,.5);
  border-radius: 3px;
  padding: 14px 10px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all .4s;
}

.clue-card.found {
  background: #081808;
  border-color: #4aaa4a;
  box-shadow: 0 0 12px rgba(60,160,60,.15);
  animation: fadeUp .4s ease;
}

.clue-icon  { font-size: 1.7rem; margin-bottom: 6px; }
.clue-label { font-family: 'Cinzel', serif; font-size: .62rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.clue-text  { font-size: .78rem; color: var(--parch-dark); font-style: italic; line-height: 1.4; }

.clue-card:not(.found) .clue-icon  { opacity: .2; }
.clue-card:not(.found) .clue-text  { color: #3a2a18; }

/* ── Section Divider ────────────────────────────────────────────── */
.divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider span {
  position: relative;
  background: var(--dark);
  padding: 0 14px;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  color: var(--gold);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── Hint Bar ───────────────────────────────────────────────────── */
.hint-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
  border: 1px dashed rgba(139,105,20,.45);
  border-radius: 3px;
  margin: 10px 0;
  font-size: .8rem;
  color: var(--gold);
  font-style: italic;
  background: rgba(139,105,20,.06);
}

/* ── Death Overlay ──────────────────────────────────────────────── */
.death-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  animation: fadeIn .6s ease;
}

.death-overlay.show { display: flex; }

.death-panel {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.death-panel h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--red-light);
  text-shadow: 0 0 24px rgba(180,40,40,.7);
  margin-bottom: 14px;
}

.last-words {
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  padding: 16px 20px;
  border: 1px solid rgba(180,40,40,.4);
  border-radius: 3px;
  background: rgba(100,20,20,.15);
  margin-bottom: 22px;
  line-height: 1.7;
}

.score-card {
  background: var(--dark2);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 16px 22px;
  margin: 18px 0;
  text-align: left;
}

.score-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(139,105,20,.18);
  font-family: 'Cinzel', serif;
  font-size: .8rem;
}

.score-row:last-child { border-bottom: none; }
.score-row .s-label { color: var(--gold); }
.score-row .s-value { color: var(--parchment); }

/* ── Splash Page ─────────────────────────────────────────────────── */
.splash-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(139,105,20,.12) 0%, transparent 55%),
    linear-gradient(180deg, #0a0300 0%, #150700 50%, #0a0300 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.splash-emblem { font-size: 3.5rem; margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(200,140,0,.5)); }

.splash-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(200,140,0,.35);
  letter-spacing: .08em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.splash-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(.65rem, 2.2vw, .88rem);
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 38px;
}

.splash-rule {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 26px auto;
}

.splash-story {
  max-width: 520px;
  font-style: italic;
  color: var(--parch-dark);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 36px;
}

.splash-story strong { color: var(--gold-light); font-style: normal; }

/* ── Level Map (splash) ─────────────────────────────────────────── */
.level-map {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 26px auto 32px;
  max-width: 420px;
  text-align: left;
}

.map-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(139,105,20,.3);
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  transition: all .2s;
}

.map-row.playable { border-color: rgba(139,105,20,.7); cursor: pointer; }
.map-row.playable:hover { background: rgba(139,105,20,.1); }
.map-row.locked   { opacity: .3; }

.map-num   { color: var(--gold); font-weight: 700; min-width: 16px; }
.map-name  { flex: 1; color: var(--parch-dark); }
.map-badge { font-size: .66rem; letter-spacing: .06em; color: var(--amber); }
.map-row.locked .map-badge { color: #444; }

/* ── Char Row (splash) ──────────────────────────────────────────── */
.char-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 26px 0;
  flex-wrap: wrap;
}

.char-card {
  background: rgba(44,20,8,.8);
  border: 1px solid rgba(139,105,20,.4);
  border-radius: 3px;
  padding: 12px 14px;
  text-align: center;
  width: 110px;
}

.char-icon { font-size: 1.8rem; margin-bottom: 6px; }
.char-name { font-family: 'Cinzel', serif; font-size: .72rem; color: var(--gold); margin-bottom: 2px; }
.char-role { font-size: .67rem; color: var(--text-mid); font-style: italic; }

/* ── MURDLE Grid ─────────────────────────────────────────────────── */
.murdle-section { margin: 22px 0; }

.murdle-wrap { overflow-x: auto; margin-bottom: 18px; }

.murdle-table {
  border-collapse: collapse;
  min-width: 280px;
}

.murdle-table th {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid rgba(139,105,20,.35);
  background: var(--dark2);
}

.murdle-table th.row-hdr {
  text-align: left;
  padding-left: 12px;
  min-width: 80px;
}

.murdle-table td {
  border: 1px solid rgba(139,105,20,.25);
  background: #0e0500;
  padding: 2px;
}

.grid-cell {
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  color: #333;
  transition: background .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 2px;
  user-select: none;
}

.grid-cell:hover:not(.locked) { background: rgba(139,105,20,.2); }
.grid-cell.check { color: #5dba5d; background: rgba(60,180,60,.08); }
.grid-cell.cross { color: #ba5d5d; background: rgba(180,60,60,.08); }
.grid-cell.locked { cursor: default; }
.grid-cell.solution-cell { box-shadow: inset 0 0 0 2px rgba(200,160,0,.35); }

/* ── Sailor Cards ────────────────────────────────────────────────── */
.sailor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 18px 0;
}

@media (max-width: 460px) { .sailor-cards { grid-template-columns: 1fr; } }

.sailor-card {
  background: var(--dark2);
  border: 1px solid rgba(139,105,20,.6);
  border-radius: 3px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.sailor-card:hover:not(.revealed) { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.sailor-card.revealed { border-color: #4aaa4a; cursor: default; }

.sailor-icon  { font-size: 1.8rem; margin-bottom: 7px; }
.sailor-name  { font-family: 'Cinzel', serif; font-size: .82rem; color: var(--gold-light); margin-bottom: 3px; }
.sailor-from  { font-size: .7rem; color: var(--text-mid); font-style: italic; margin-bottom: 10px; }
.sailor-quote { font-size: .78rem; color: var(--parch-dark); font-style: italic; line-height: 1.5; display: none; }
.sailor-card.revealed .sailor-quote { display: block; }
.sailor-prompt { font-family: 'Cinzel', serif; font-size: .66rem; color: var(--gold); letter-spacing: .06em; }
.sailor-card.revealed .sailor-prompt { display: none; }

/* ── Map Verification ────────────────────────────────────────────── */
.verify-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }

.verify-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: var(--dark2);
  border: 1px solid rgba(139,105,20,.3);
  border-radius: 3px;
}

.v-check { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.v-label { font-family: 'Cinzel', serif; font-size: .73rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.v-detail { font-size: .83rem; color: var(--parch-dark); line-height: 1.5; }

.cipher-row { display: flex; gap: 9px; margin-top: 9px; align-items: center; flex-wrap: wrap; }

.cipher-input {
  padding: 8px 12px;
  background: var(--dark);
  border: 1px solid var(--gold);
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: .88rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 3px;
  width: 130px;
  outline: none;
  transition: border-color .2s;
}

.cipher-input:focus { border-color: var(--amber); }

/* ── Victory Banner ─────────────────────────────────────────────── */
.victory-banner {
  text-align: center;
  padding: 28px 22px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: radial-gradient(ellipse at center, rgba(139,105,20,.18) 0%, transparent 70%);
  margin: 22px 0;
  display: none;
  animation: fadeUp .5s ease;
}

.victory-banner.show { display: block; }
.victory-banner h2   { font-family: 'Cinzel', serif; font-size: 1.45rem; color: var(--gold-light); margin-bottom: 10px; }
.victory-banner p    { color: var(--parch-dark); font-style: italic; margin-bottom: 18px; }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; }                       to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes redFlash {
  0%, 100% { background: transparent; }
  15%, 45% { background: rgba(120, 20, 20, .35); }
  30%       { background: rgba(160, 30, 30, .55); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(200,160,0,.3); }
  50%       { box-shadow: 0 0 20px rgba(200,160,0,.65); }
}

.animate-flash  { animation: redFlash .6s ease; }
.animate-shake  { animation: shake .35s ease; }
.animate-glow   { animation: glow 2s infinite; }

/* ── Utilities ───────────────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.hidden { display: none !important; }
.text-gold { color: var(--gold-light); }
.text-amber { color: var(--amber); }
.text-green { color: #6dc86d; }
.text-red { color: #e09090; }
.italic { font-style: italic; }
.small { font-size: .8rem; }
.center { text-align: center; }
