
:root {
  --bg: #050a12;
  --bg-soft: #091321;
  --panel: rgba(10, 23, 39, .82);
  --panel-strong: #0b1829;
  --line: rgba(157, 207, 255, .16);
  --text: #f5f8fc;
  --muted: #9eb0c5;
  --aqua: #59d9e8;
  --blue: #3c75f6;
  --gold: #e8bd68;
  --green: #7ee0ad;
  --orange: #f0b26e;
  --red: #ff8181;
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(43, 110, 169, .18), transparent 35%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 45%, #05080f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.bg-glow {
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.bg-glow-one { top: 16%; right: -180px; background: var(--aqua); }
.bg-glow-two { bottom: 10%; left: -180px; background: var(--blue); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, .82);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand strong { display: block; letter-spacing: .10em; font-size: .93rem; }
.brand small { display: block; color: var(--muted); font-size: .70rem; }
.crest { width: 34px; color: var(--gold); display: grid; place-items: center; }
.crest svg { width: 100%; height: auto; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.main-nav a { color: var(--muted); font-size: .9rem; transition: .2s ease; }
.main-nav a:hover { color: var(--text); }

.language-picker select {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
}

.menu-button {
  display: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0 28px; scroll-margin-top: 80px; }

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  padding-top: 94px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); letter-spacing: -.055em; max-width: 850px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }

.lead {
  max-width: 720px;
  color: #c3d0df;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 750;
}
.button-primary { background: linear-gradient(135deg, var(--blue), #5ea9ff); border-color: transparent; }
.button-ghost { background: rgba(255,255,255,.03); }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(24, 64, 98, .38), rgba(9, 20, 34, .88)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid rgba(232, 189, 104, .13);
  border-radius: 50%;
  right: -90px; top: -90px;
}
.sigil {
  width: 118px;
  height: 118px;
  margin: 8px auto 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 189, 104, .35);
  border-radius: 30% 30% 46% 46%;
  background: linear-gradient(180deg, rgba(232,189,104,.10), rgba(89,217,232,.05));
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -.12em;
  transform: rotate(45deg);
}
.sigil span { transform: rotate(-45deg); padding-right: .12em; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-grid a {
  position: relative;
  z-index: 2;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 22, .42);
}
.quick-grid strong, .quick-grid span { display: block; }
.quick-grid span { color: var(--muted); font-size: .78rem; margin-top: 3px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}
.section-heading h2 { margin-bottom: 0; }
.section-note { color: var(--muted); max-width: 520px; margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.code-card, .info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}
.code-card .code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 16px 0 6px;
}
.code-card code { font-size: 1.25rem; font-weight: 850; letter-spacing: .05em; }
.copy-button {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}
.meta { color: var(--muted); font-size: .82rem; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.verified { color: var(--green); background: rgba(126,224,173,.08); border: 1px solid rgba(126,224,173,.24); }
.testing { color: var(--orange); background: rgba(240,178,110,.08); border: 1px solid rgba(240,178,110,.24); }
.expired { color: var(--red); background: rgba(255,129,129,.08); border: 1px solid rgba(255,129,129,.24); }
.alliance { color: var(--gold); background: rgba(232,189,104,.08); border: 1px solid rgba(232,189,104,.24); }
.dynamic { color: var(--aqua); background: rgba(89,217,232,.08); border: 1px solid rgba(89,217,232,.24); }

.empty-card {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.search-wrap input {
  width: min(330px, 70vw);
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}

.ruin-list {
  display: grid;
  gap: 10px;
}
.ruin-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 23, 39, .62);
}
.ruin-row small { color: var(--muted); }
.coords { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #d8eaff; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card p { color: var(--muted); margin-bottom: 0; }

.faq-list { display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 15px 17px;
}
summary { cursor: pointer; font-weight: 750; }
details p { color: var(--muted); margin-bottom: 0; }

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  font-size: .82rem;
}
footer strong { color: var(--text); }
.build-mark { margin-left: auto; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101e30;
  box-shadow: var(--shadow);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 10px; }
  .menu-button { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #08131f;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-panel { max-width: 620px; }
  .card-grid, .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  main { width: min(100% - 22px, 1180px); }
  .site-header { padding: 11px; }
  .brand strong { font-size: .78rem; }
  .crest { width: 28px; }
  .section { padding-top: 68px; }
  .hero { gap: 34px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.65rem); }
  .hero-actions .button { width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .search-wrap input { width: 100%; }
  .ruin-row { grid-template-columns: 1fr auto; }
  .ruin-row .copy-button { grid-column: 1 / -1; width: 100%; }
  footer { width: calc(100% - 22px); }
  .build-mark { margin-left: 0; }
}


/* --- Ruin explorer v0.2 --- */
.ruins-heading {
  align-items: flex-start;
}
.ruins-intro {
  margin-top: 10px;
  max-width: 720px;
}
.ruin-tools {
  min-width: min(100%, 410px);
  display: grid;
  gap: 12px;
  justify-items: end;
}
.level-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.filter-chip {
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  transition: .18s ease;
}
.filter-chip:hover,
.filter-chip.active {
  color: var(--text);
  border-color: rgba(89,217,232,.35);
  background: rgba(89,217,232,.09);
}
.ruin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}
.stat-pill {
  color: var(--muted);
  font-size: .78rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 999px;
  padding: 7px 10px;
}
.stat-pill strong { color: var(--text); }

.ruin-areas {
  display: grid;
  gap: 12px;
}
.ruin-area {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 23, 39, .58);
}
.ruin-area[open] {
  background: rgba(10, 23, 39, .78);
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
}
.ruin-area > summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 16px 18px;
}
.ruin-area > summary::-webkit-details-marker { display: none; }
.area-level {
  min-width: 58px;
  text-align: center;
  color: var(--gold);
  border: 1px solid rgba(232,189,104,.22);
  background: rgba(232,189,104,.06);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: .72rem;
  font-weight: 850;
}
.area-title strong {
  display: block;
  font-size: 1rem;
}
.area-title small {
  color: var(--muted);
}
.area-count {
  color: var(--muted);
  font-size: .78rem;
}
.area-body {
  border-top: 1px solid var(--line);
  padding: 15px 18px 18px;
}
.area-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.copy-area-button {
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}
.coord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
}
.coord-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  color: #dcecff;
  background: rgba(4, 12, 22, .48);
  border: 1px solid rgba(157, 207, 255, .13);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.coord-button:hover {
  transform: translateY(-1px);
  border-color: rgba(89,217,232,.38);
  background: rgba(89,217,232,.065);
}
.coord-button::after {
  content: "⧉";
  color: var(--muted);
  font-family: inherit;
  font-size: .82rem;
}
.coord-button.copied {
  border-color: rgba(126,224,173,.44);
  background: rgba(126,224,173,.08);
}

@media (max-width: 760px) {
  .ruin-tools {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }
  .level-filter {
    justify-content: flex-start;
  }
  .ruin-area > summary {
    grid-template-columns: auto 1fr;
  }
  .area-count {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .coord-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ruin-area > summary {
    padding: 14px;
  }
  .area-body {
    padding: 12px 14px 15px;
  }
}


/* --- Polish & ruin hierarchy v0.3 --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(30deg, rgba(232,189,104,.025) 12%, transparent 12.5%, transparent 87%, rgba(232,189,104,.025) 87.5%),
    linear-gradient(150deg, rgba(89,217,232,.018) 12%, transparent 12.5%, transparent 87%, rgba(89,217,232,.018) 87.5%);
  background-size: 86px 150px;
}

.server-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
}

.server-badge span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(232,189,104,.3);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 900;
}

.server-badge strong {
  color: #d9e5f2;
  font-weight: 850;
}

.ruin-levels {
  display: grid;
  gap: 14px;
}

.ruin-level-group {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 40, 65, .72), rgba(8, 18, 31, .82)),
    var(--panel);
}

.ruin-level-group > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 17px;
  border-bottom: 1px solid transparent;
}

.ruin-level-group > summary::-webkit-details-marker { display: none; }

.ruin-level-group[open] > summary {
  border-bottom-color: var(--line);
}

.level-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--gold);
  font-weight: 950;
  border: 1px solid rgba(232,189,104,.28);
  background: rgba(232,189,104,.07);
}

.level-heading strong,
.level-heading small {
  display: block;
}

.level-heading strong {
  font-size: 1.03rem;
}

.level-heading small {
  color: var(--muted);
  margin-top: 2px;
  font-size: .79rem;
}

.level-toggle {
  color: var(--muted);
  font-size: .78rem;
}

.ruin-level-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.ruin-level-body .ruin-area {
  border-radius: 13px;
  background: rgba(4, 12, 22, .34);
}

.ruin-level-body .ruin-area > summary {
  min-height: 52px;
  padding: 11px 13px;
}

.ruin-level-body .area-level {
  min-width: 42px;
  padding: 5px 7px;
  font-size: .66rem;
}

.ruin-level-body .area-title strong {
  font-size: .92rem;
}

.ruin-level-body .area-title small,
.ruin-level-body .area-count {
  font-size: .72rem;
}

.ruin-level-body .area-body {
  padding: 12px 13px 14px;
}

.coord-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 7px;
}

.coord-button {
  min-height: 40px;
  padding: 7px 9px;
  font-size: .88rem;
}

.ruin-stats {
  margin-bottom: 14px;
}

@media (max-width: 560px) {
  .server-badge {
    position: static;
    margin-bottom: 14px;
  }

  .ruin-level-group > summary {
    grid-template-columns: auto 1fr;
  }

  .level-toggle {
    grid-column: 2;
  }

  .ruin-level-body {
    padding: 8px;
  }

  .coord-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   V0.4 — Ruslan identity + hero key visual
   ========================================================= */

:root {
  --crimson: #7f211e;
  --crimson-bright: #b83a2f;
  --crimson-deep: #360907;
  --old-gold: #d9aa4e;
  --old-gold-bright: #f0c76b;
}

body {
  background:
    radial-gradient(circle at 85% 2%, rgba(126, 31, 28, .15), transparent 30%),
    radial-gradient(circle at 10% 35%, rgba(37, 91, 132, .10), transparent 28%),
    linear-gradient(180deg, #0d090b 0%, #050a12 42%, #05080f 100%);
}

.site-header {
  border-bottom-color: rgba(224, 180, 90, .16);
  background: rgba(9, 7, 10, .88);
}

.crest {
  color: var(--old-gold-bright);
}

.main-nav a:hover {
  color: var(--old-gold-bright);
}

.language-picker select {
  border-color: rgba(224, 180, 90, .18);
  background: rgba(33, 13, 16, .88);
}

.hero-v04 {
  position: relative;
  width: 100vw;
  min-height: min(760px, 78vh);
  margin-left: calc(50% - 50vw);
  padding:
    clamp(84px, 10vw, 130px)
    max(18px, calc((100vw - 1180px) / 2))
    clamp(68px, 9vw, 110px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg,
      rgba(7, 7, 10, .97) 0%,
      rgba(7, 7, 10, .91) 24%,
      rgba(9, 7, 9, .62) 48%,
      rgba(9, 5, 5, .12) 72%,
      rgba(7, 5, 5, .04) 100%
    ),
    linear-gradient(0deg, rgba(5,8,15,.42), transparent 45%),
    url("../img/vv-ruslan-hero.webp") center right / cover no-repeat;
  border-bottom: 1px solid rgba(218, 170, 78, .14);
}

.hero-v04::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 43%, rgba(234, 178, 82, .08), transparent 32%),
    linear-gradient(180deg, transparent 72%, rgba(5, 8, 15, .64) 100%);
  pointer-events: none;
}

.hero-v04 .hero-copy {
  width: min(690px, 58vw);
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--old-gold-bright);
  font-size: .77rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .22em;
}

.hero-v04 h1 {
  margin: 0;
  max-width: 720px;
  color: #fff9f0;
  font-size: clamp(3.2rem, 7.2vw, 7.4rem);
  line-height: .87;
  letter-spacing: -.06em;
  text-shadow: 0 7px 34px rgba(0,0,0,.36);
}

.hero-identity {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3em;
  margin: 24px 0 0;
  color: #d8c8b5;
  font-size: clamp(.9rem, 1.6vw, 1.08rem);
  letter-spacing: .02em;
}

.hero-identity strong {
  color: #f0c76b;
}

.hero-v04 .lead {
  max-width: 625px;
  margin-top: 18px;
  color: #d0d5dd;
  font-size: clamp(1rem, 1.55vw, 1.14rem);
}

.hero-v04 .button-primary {
  color: #1b0e08;
  border-color: transparent;
  background: linear-gradient(135deg, var(--old-gold-bright), #d79838);
  box-shadow: 0 10px 30px rgba(208, 146, 49, .14);
}

.hero-v04 .button-primary:hover {
  filter: brightness(1.05);
}

.hero-v04 .button-ghost {
  border-color: rgba(240, 199, 107, .22);
  background: rgba(16, 9, 11, .58);
}

.hero-art-credit {
  position: absolute;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 20px;
  color: rgba(247, 221, 176, .54);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.alliance-identity {
  width: min(1180px, calc(100% - 32px));
  margin: -30px auto 0;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 13px 16px;
  border: 1px solid rgba(224, 180, 90, .18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 90% 30%, rgba(224, 180, 90, .10), transparent 30%),
    linear-gradient(112deg,
      rgba(4, 5, 8, .995) 0%,
      rgba(5, 7, 11, .99) 30%,
      rgba(10, 10, 14, .97) 50%,
      rgba(48, 9, 10, .92) 72%,
      rgba(112, 22, 19, .87) 100%
    );
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
}

.identity-core {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.identity-core > span:last-child {
  display: grid;
}

.identity-core strong {
  color: #fff4e4;
  font-size: .76rem;
  letter-spacing: .12em;
}

.identity-core small {
  color: #bfae9e;
  font-size: .66rem;
  letter-spacing: .08em;
}

.identity-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--old-gold-bright);
  border: 1px solid rgba(240,199,107,.38);
  border-radius: 50%;
  background: rgba(95, 15, 13, .54);
  font-weight: 950;
  letter-spacing: -.06em;
}

.war-cries {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.war-label {
  margin-right: 2px;
  color: #9d8d80;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.warcry-wrap {
  position: relative;
}

.warcry-button {
  color: #f2c76a;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(240,199,107,.17);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .055em;
}

.warcry-button:hover,
.warcry-button[aria-expanded="true"] {
  color: #fff1c9;
  border-color: rgba(240,199,107,.4);
  background: rgba(127,33,30,.23);
}

.warcry-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 90;
  width: min(330px, 78vw);
  padding: 12px 13px;
  color: #d9dde5;
  background: #100d12;
  border: 1px solid rgba(224,180,90,.2);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.38);
  font-size: .8rem;
  line-height: 1.48;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: .16s ease;
  pointer-events: none;
}

.warcry-wrap:hover .warcry-popover,
.warcry-wrap:focus-within .warcry-popover,
.warcry-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.knowledge-overview {
  padding-top: 38px;
  padding-bottom: 8px;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-access a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(123, 28, 24, .075), rgba(10,23,39,.7));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-access a:hover {
  transform: translateY(-2px);
  border-color: rgba(222, 176, 83, .28);
  background:
    linear-gradient(135deg, rgba(123, 28, 24, .15), rgba(10,23,39,.82));
}

.quick-access strong,
.quick-access small {
  display: block;
}

.quick-access strong {
  color: #f5f8fc;
}

.quick-access small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .73rem;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(222, 176, 83, .18);
  border-radius: 11px;
  color: var(--old-gold);
  background: rgba(81, 21, 18, .18);
  font-size: .68rem;
  font-weight: 900;
}

/* A subtle Ruslan accent across the existing data UI */
.eyebrow,
.area-level,
.level-emblem {
  color: var(--old-gold-bright);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: rgba(221, 173, 75, .35);
  background: rgba(127,33,30,.13);
}

.coord-button:hover {
  border-color: rgba(221,173,75,.32);
  background: rgba(127,33,30,.09);
}

@media (max-width: 900px) {
  .hero-v04 {
    min-height: 690px;
    align-items: flex-end;
    background:
      linear-gradient(90deg,
        rgba(7,7,10,.95) 0%,
        rgba(7,7,10,.79) 45%,
        rgba(7,7,10,.26) 100%
      ),
      linear-gradient(0deg, rgba(5,8,15,.62), transparent 55%),
      url("../img/vv-ruslan-hero.webp") 70% center / cover no-repeat;
  }

  .hero-v04 .hero-copy {
    width: min(720px, 82vw);
  }

  .alliance-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .war-cries {
    width: 100%;
    justify-content: flex-start;
  }

  .quick-access {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-v04 {
    min-height: 650px;
    padding-top: 92px;
    padding-bottom: 74px;
    background:
      linear-gradient(0deg,
        rgba(6,7,10,.98) 0%,
        rgba(6,7,10,.88) 39%,
        rgba(6,7,10,.48) 68%,
        rgba(6,7,10,.18) 100%
      ),
      url("../img/vv-ruslan-hero.webp") 73% top / auto 62% no-repeat,
      #07070a;
  }

  .hero-v04 .hero-copy {
    width: 100%;
  }

  .hero-v04 h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-identity {
    margin-top: 18px;
    font-size: .9rem;
  }

  .hero-v04 .lead {
    font-size: .96rem;
  }

  .hero-art-credit {
    display: none;
  }

  .alliance-identity {
    width: calc(100% - 22px);
    margin-top: -22px;
  }

  .warcry-popover {
    right: auto;
    left: 0;
  }

  .quick-access {
    grid-template-columns: 1fr;
  }

  .knowledge-overview {
    padding-top: 28px;
  }
}


/* =========================================================
   V0.4.1 — mobile hero overflow fix
   ========================================================= */

.hero-line {
  display: block;
}

/* The decorative corner label was intentionally removed in v0.4.1. */
.hero-art-credit {
  display: none !important;
}

@media (max-width: 560px) {
  /*
    Keep the short first line large, but size the long word independently.
    This avoids viewport overflow on 320–560px phones without changing desktop.
  */
  .hero-v04 h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
    max-width: 100%;
  }

  .hero-v04 .hero-line-long {
    font-size: clamp(2.45rem, 10.7vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .hero-v04 .hero-line-long {
    font-size: clamp(2.25rem, 10.5vw, 2.5rem);
  }
}

/* =========================================================
   V0.4.2 — Knowledge Base visual polish
   Warm Ruslan identity below the hero, without touching
   ruin explorer logic or hero artwork.
   ========================================================= */

:root {
  --vv-ink: #07070a;
  --vv-panel: rgba(10, 14, 22, .90);
  --vv-panel-warm: rgba(42, 13, 15, .34);
  --vv-line-warm: rgba(217, 170, 78, .16);
  --vv-line-strong: rgba(240, 199, 107, .28);
  --vv-muted-warm: #b9aca1;
}

.bg-glow-one {
  background: var(--crimson-bright);
  opacity: .10;
}

.bg-glow-two {
  background: var(--old-gold);
  opacity: .055;
}

body::before {
  opacity: .14;
  background-image:
    linear-gradient(30deg, rgba(217,170,78,.026) 12%, transparent 12.5%, transparent 87%, rgba(217,170,78,.026) 87.5%),
    linear-gradient(150deg, rgba(127,33,30,.028) 12%, transparent 12.5%, transparent 87%, rgba(127,33,30,.028) 87.5%);
}

/* --- chapter rhythm ---------------------------------------------------- */

.section:not(.knowledge-overview) {
  position: relative;
  padding-top: 104px;
}

.section:not(.knowledge-overview)::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(90deg,
      rgba(240,199,107,.52) 0,
      rgba(127,33,30,.44) 12%,
      rgba(217,170,78,.10) 46%,
      transparent 100%);
}

.section:not(.knowledge-overview)::after {
  position: absolute;
  top: 68px;
  right: 0;
  color: rgba(217,170,78,.42);
  font-size: .61rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .19em;
}

#codes::after { content: "VV / 01"; }
#ruins::after { content: "VV / 02"; }
#guide::after { content: "VV / 03"; }
#faq::after { content: "VV / 04"; }

.section-heading {
  position: relative;
  padding-left: 18px;
  margin-bottom: 30px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--old-gold-bright), var(--crimson));
  box-shadow: 0 0 24px rgba(217,170,78,.10);
}

.section-heading h2 {
  color: #fff7ee;
  font-size: clamp(2rem, 3.2vw, 3rem);
  text-shadow: 0 8px 28px rgba(0,0,0,.20);
}

.section-note {
  color: var(--vv-muted-warm);
}

.eyebrow {
  color: var(--old-gold-bright);
}

/* --- quick access ------------------------------------------------------ */

.quick-access {
  gap: 12px;
}

.quick-access a {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-color: rgba(217,170,78,.14);
  background:
    linear-gradient(145deg, rgba(72,17,18,.16), rgba(8,14,23,.90) 58%, rgba(8,18,29,.86));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018),
    0 14px 38px rgba(0,0,0,.08);
}

.quick-access a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,170,78,.17), transparent);
  opacity: .55;
}

.quick-access a:hover {
  transform: translateY(-3px);
  border-color: rgba(240,199,107,.30);
  background:
    linear-gradient(145deg, rgba(101,24,22,.24), rgba(9,15,24,.94) 58%, rgba(9,20,31,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 18px 45px rgba(0,0,0,.14);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-color: rgba(240,199,107,.25);
  border-radius: 12px;
  color: var(--old-gold-bright);
  background:
    linear-gradient(145deg, rgba(116,28,24,.34), rgba(31,12,15,.42));
  box-shadow: inset 0 0 18px rgba(217,170,78,.035);
}

/* --- shared content surfaces ----------------------------------------- */

.code-card,
.info-card,
.faq-list details {
  border-color: var(--vv-line-warm);
  background:
    linear-gradient(145deg, rgba(54,13,16,.16), rgba(8,14,23,.92) 42%, rgba(7,13,22,.90));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018),
    0 18px 48px rgba(0,0,0,.08);
}

/* --- Gift Codes: deliberate empty state ------------------------------- */

#codes .empty-card {
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 48px 34px 34px;
  color: #c9beb5;
  border: 1px solid rgba(217,170,78,.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(127,33,30,.17), transparent 45%),
    linear-gradient(145deg, rgba(40,12,15,.20), rgba(8,14,23,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}

#codes .empty-card::before {
  content: "✓";
  position: absolute;
  top: 23px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: var(--old-gold-bright);
  border: 1px solid rgba(240,199,107,.26);
  border-radius: 50%;
  background: rgba(95,15,13,.36);
  font-size: .78rem;
  font-weight: 950;
}

/* --- Ruins: warmer frame, same functionality -------------------------- */

.ruin-tools {
  padding: 12px;
  border: 1px solid rgba(217,170,78,.12);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(42,12,15,.16), rgba(7,14,23,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.014);
}

.search-wrap {
  width: 100%;
}

.search-wrap input {
  width: 100%;
  min-width: 300px;
  border-color: rgba(217,170,78,.14);
  background: rgba(4,9,16,.66);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.search-wrap input:focus {
  outline: none;
  border-color: rgba(240,199,107,.40);
  box-shadow: 0 0 0 3px rgba(127,33,30,.12);
  background: rgba(6,10,17,.82);
}

.filter-chip {
  border-color: rgba(217,170,78,.12);
  background: rgba(255,255,255,.025);
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff2d2;
  border-color: rgba(240,199,107,.34);
  background:
    linear-gradient(135deg, rgba(127,33,30,.24), rgba(74,21,20,.12));
}

.ruin-stats {
  gap: 9px;
  margin-top: 2px;
  margin-bottom: 18px;
}

.stat-pill {
  border-color: rgba(217,170,78,.12);
  background: rgba(8,13,21,.62);
  padding: 8px 11px;
}

.stat-pill strong {
  color: #fff6e8;
}

.stat-pill:last-child {
  color: #a8e7c2;
  border-color: rgba(126,224,173,.20);
  background: rgba(126,224,173,.045);
}

.ruin-level-group {
  border-color: rgba(217,170,78,.14);
  background:
    linear-gradient(135deg, rgba(57,15,18,.18), rgba(8,16,27,.91) 42%, rgba(8,19,31,.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018),
    0 16px 44px rgba(0,0,0,.07);
}

.ruin-level-group > summary {
  transition: background .16s ease;
}

.ruin-level-group > summary:hover {
  background: rgba(127,33,30,.055);
}

.ruin-level-group[open] > summary {
  border-bottom-color: rgba(217,170,78,.12);
  background:
    linear-gradient(90deg, rgba(127,33,30,.12), transparent 48%);
}

.level-emblem {
  color: var(--old-gold-bright);
  border-color: rgba(240,199,107,.30);
  background:
    linear-gradient(145deg, rgba(112,26,23,.34), rgba(74,19,18,.16));
  box-shadow: inset 0 0 16px rgba(217,170,78,.035);
}

.ruin-level-body .ruin-area {
  border-color: rgba(217,170,78,.085);
  background: rgba(4,10,18,.52);
}

.ruin-level-body .ruin-area[open] {
  border-color: rgba(217,170,78,.14);
  background: rgba(6,12,20,.74);
}

.ruin-level-body .area-body {
  border-top-color: rgba(217,170,78,.085);
}

.area-level {
  border-color: rgba(240,199,107,.18);
  background: rgba(127,33,30,.085);
}

.coord-button {
  color: #e1e9f4;
  border-color: rgba(157,207,255,.10);
  background: rgba(4,10,18,.58);
}

.coord-button:hover {
  border-color: rgba(240,199,107,.27);
  background:
    linear-gradient(135deg, rgba(127,33,30,.12), rgba(7,15,24,.88));
}

.copy-area-button,
.copy-button {
  border-color: rgba(217,170,78,.14);
  background: rgba(255,255,255,.025);
}

.copy-area-button:hover,
.copy-button:hover {
  color: #fff0c7;
  border-color: rgba(240,199,107,.30);
  background: rgba(127,33,30,.10);
}

/* --- New Player status system ---------------------------------------- */

.guide-grid {
  gap: 16px;
}

.info-card {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  padding: 25px 24px 23px;
  border-radius: 18px;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  opacity: .90;
}

.info-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -88px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .7;
}

.info-card-mechanic::before {
  background: linear-gradient(180deg, #8de6b5, rgba(126,224,173,.18));
}

.info-card-mechanic::after {
  background: radial-gradient(circle, rgba(126,224,173,.09), transparent 70%);
}

.info-card-recommendation::before {
  background: linear-gradient(180deg, var(--old-gold-bright), var(--crimson));
}

.info-card-recommendation::after {
  background: radial-gradient(circle, rgba(217,170,78,.10), transparent 70%);
}

.info-card-dynamic::before {
  background: linear-gradient(180deg, var(--aqua), rgba(89,217,232,.15));
}

.info-card-dynamic::after {
  background: radial-gradient(circle, rgba(89,217,232,.07), transparent 70%);
}

.info-card h3 {
  position: relative;
  z-index: 1;
  margin: 22px 0 10px;
  color: #fff6ec;
  font-size: 1.28rem;
}

.info-card p {
  position: relative;
  z-index: 1;
  color: #b9c2cd;
  line-height: 1.65;
}

.tag {
  position: relative;
  z-index: 1;
  min-height: 27px;
  padding-inline: 10px;
}

/* --- FAQ -------------------------------------------------------------- */

.faq-list {
  gap: 11px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.faq-list summary {
  position: relative;
  list-style: none;
  padding: 18px 54px 18px 20px;
  color: #f5eee7;
  transition: background .16s ease, color .16s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--old-gold-bright);
  border: 1px solid rgba(240,199,107,.18);
  border-radius: 50%;
  background: rgba(127,33,30,.12);
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
}

.faq-list details[open] summary {
  color: #fff7e8;
  background:
    linear-gradient(90deg, rgba(127,33,30,.12), transparent 58%);
}

.faq-list details[open] summary::after {
  content: "−";
  border-color: rgba(240,199,107,.32);
  background: rgba(127,33,30,.22);
}

.faq-list details p {
  margin: 0;
  padding: 16px 20px 20px;
  color: #b8c1cc;
  border-top: 1px solid rgba(217,170,78,.08);
}

/* --- Footer ----------------------------------------------------------- */

footer {
  border-top-color: rgba(217,170,78,.13);
}

footer strong {
  color: #f5eadc;
}

.build-mark {
  color: rgba(240,199,107,.66);
}

/* --- tablet: deliberate single-column chapter headers ----------------- */

@media (max-width: 820px) {
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .ruin-tools {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .level-filter {
    justify-content: flex-start;
  }

  .search-wrap input {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .section:not(.knowledge-overview) {
    padding-top: 84px;
  }

  .section:not(.knowledge-overview)::before {
    top: 42px;
  }

  .section:not(.knowledge-overview)::after {
    display: none;
  }

  .section-heading {
    padding-left: 14px;
    margin-bottom: 23px;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .quick-access a {
    min-height: 82px;
  }

  .ruin-tools {
    padding: 10px;
  }

  .info-card {
    min-height: 0;
    padding: 22px 20px 21px;
  }

  #codes .empty-card {
    min-height: 150px;
    padding-inline: 24px;
  }
}

/* =========================================================
   V0.4.5 — background transition fix
   Remove the stray left-side glow below the hero and carry
   the hero lighting direction into the page: dark left,
   warmer crimson / restrained gold toward the right.
   ========================================================= */

/* The old fixed lower-left glow was responsible for much of
   the unwanted bright patch below the dark side of the hero. */
.bg-glow-two {
  opacity: 0;
  background: transparent;
}

/* Keep the page immediately below the hero genuinely dark on
   the left. Warmth now enters from the right only. */
body {
  background:
    radial-gradient(circle at 91% 6%, rgba(150, 34, 29, .20), transparent 31%),
    radial-gradient(circle at 94% 25%, rgba(217, 170, 78, .055), transparent 27%),
    linear-gradient(180deg, #050507 0%, #05070c 42%, #05080f 100%);
}

/* A touch more crimson on the right, without turning the
   functional knowledge-base area into a red wash. */
.bg-glow-one {
  background: var(--crimson-bright);
  opacity: .13;
}

