/* Rune Haven website: dark fantasy theme (deep night sky, gold trim, parchment accents). */
:root {
  --bg: #0d0b14;
  --bg-2: #141120;
  --panel: #1a1628;
  --panel-2: #221d34;
  --line: #3a3150;
  --line-gold: #6b5427;
  --text: #ece6f5;
  --muted: #a99fbf;
  --gold: #e8c26a;
  --gold-2: #f6dc94;
  --gold-dark: #a8812e;
  --blue: #6fb6ff;
  --green: #6fd99a;
  --red: #ff7d7d;
  --purple: #b48cff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font-head: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-body);
}
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: .5px; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 20, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-gold); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--gold); }
.brand-logo { display: block; width: auto; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45)); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name.small { font-size: 1.1rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-weight: 700; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--gold); background: rgba(232, 194, 106, .08); }
.nav .nav-register { border: 1px solid var(--line); }
.nav .nav-play { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800;
  letter-spacing: .3px; border-radius: 10px; padding: 12px 22px; min-height: 46px; cursor: pointer; border: 1px solid transparent;
  text-align: center; transition: transform .08s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { color: #1d1505 !important; background: linear-gradient(180deg, var(--gold-2), var(--gold) 50%, var(--gold-dark));
  border-color: #f3d58a; box-shadow: 0 4px 18px rgba(232, 194, 106, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text) !important; background: rgba(255, 255, 255, .04); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold) !important; }
/* Second action next to a gold button (hero Register). */
.btn-outline-gold { color: var(--gold) !important; background: rgba(232, 194, 106, .08); border-color: var(--gold-dark); }
.btn-outline-gold:hover { background: rgba(232, 194, 106, .16); border-color: var(--gold); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
/* Discord invite: Discord's own blue so it stands out next to the gold Play button. */
.btn-discord { color: #fff !important; background: #5865f2; border-color: #7983f5; box-shadow: 0 6px 18px rgba(88, 101, 242, .35); }
.btn-discord:hover { background: #6974f4; box-shadow: 0 8px 22px rgba(88, 101, 242, .5); }
.btn-discord .discord-ico { width: 22px; height: 22px; flex: none; fill: currentColor; }
/* "Critical hit" starburst on the hero Discord button: free gift codes are posted there. */
.btn-discord.has-crit { position: relative; overflow: visible; }
.crit-badge { position: absolute; top: -30px; right: -22px; width: 74px; height: 74px; display: grid; place-items: center;
  pointer-events: none; z-index: 2; animation: crit-pop 1.6s ease-in-out infinite; }
.crit-badge::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, #fff6b0 0, #ffd23f 38%, #ff8a1f 72%, #e2381b 100%);
  clip-path: polygon(50% 0, 59% 22%, 79% 7%, 74% 30%, 98% 26%, 82% 44%, 100% 58%, 77% 63%, 88% 86%, 65% 77%, 58% 100%,
    47% 79%, 30% 96%, 30% 72%, 6% 80%, 19% 59%, 0 46%, 22% 38%, 9% 16%, 33% 22%, 38% 0);
  filter: drop-shadow(0 0 6px rgba(255, 170, 40, .9)); }
.crit-badge span { position: relative; color: #4a0e00; font: 900 .6rem/1.05 var(--font-body); letter-spacing: .3px;
  text-align: center; text-transform: uppercase; transform: rotate(-12deg); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
@keyframes crit-pop {
  0%, 100% { transform: scale(1) rotate(0); }
  12% { transform: scale(1.22) rotate(-6deg); }
  24% { transform: scale(.96) rotate(3deg); }
  36% { transform: scale(1.06) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .crit-badge { animation: none; } }
/* Phones: the button reaches the screen gutter, so keep the burst inside the screen. */
@media (max-width: 600px) { .crit-badge { right: -4px; top: -26px; width: 66px; height: 66px; } }
.footer-discord { margin-top: 12px; padding: 9px 16px; min-height: 40px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-gold); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.03); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 11, 20, .96) 0%, rgba(13, 11, 20, .82) 40%, rgba(13, 11, 20, .35) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(13, 11, 20, 0) 40%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: center; padding: 72px 16px 64px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--line-gold); background: rgba(232, 194, 106, .07); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.hero h1 { background: linear-gradient(180deg, #fff6d8, var(--gold) 60%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .6)); }
.hero .lead { font-size: 1.15rem; color: #d9d0ea; max-width: 560px; }
/* Hero buttons: an even grid of equal buttons (2 per row; 1 per row on phones). */
.hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin: 24px 0 8px; }
.hero-cta .btn { width: 100%; white-space: nowrap; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* status card */
.status-card { background: linear-gradient(180deg, rgba(34, 29, 52, .95), rgba(20, 17, 32, .95)); border: 1px solid var(--line-gold);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.status-head h3 { margin: 0; color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.online { color: var(--green); border-color: rgba(111, 217, 154, .4); }
.pill.online .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pill.offline { color: var(--red); border-color: rgba(255, 125, 125, .4); }
.pill.offline .dot { background: var(--red); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat .k { font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--font-head); font-size: 1.4rem; color: var(--gold-2); }
a.stat { display: block; text-decoration: none; }
a.stat:hover { border-color: var(--gold-2); }

/* ---------- rates strip ---------- */
.rates { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.rates-inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: -36px auto 0; position: relative; z-index: 2; box-shadow: var(--shadow); }
.rate { background: var(--panel); padding: 16px 10px; text-align: center; }
.rate .v { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); line-height: 1.1; }
.rate .k { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold-dark); margin: 6px 0 12px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold-dark), transparent); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line-gold); }
.card h3 { color: var(--gold-2); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(232, 194, 106, .3), rgba(232, 194, 106, .06)); border: 1px solid var(--line-gold); }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #1d1505; background: var(--gold); }

/* news */
.news-list { display: grid; gap: 14px; }
.news-previews .news-item{grid-template-columns:1fr;gap:8px;padding:18px}
.news-previews .news-date{font-size:.75rem}
.news-previews h3{font:700 1rem/1.4 var(--font-body)}
.news-previews p{font-size:.88rem;line-height:1.6;margin-bottom:8px}
.news-read-more{font-size:.82rem;font-weight:700}
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.news-date { font-family: var(--font-head); color: var(--gold); font-size: .95rem; }
.news-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--purple);
  border: 1px solid rgba(180, 140, 255, .4); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.news-item h3 { margin-bottom: .3em; }

/* page header */
.page-head { background: radial-gradient(ellipse at top, #2a2140 0%, var(--bg) 70%); border-bottom: 1px solid var(--line-gold); padding: 48px 0 32px; text-align: center; }
.page-head h1 { color: var(--gold); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }

/* guide layout */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.toc a { display: block; color: var(--text); padding: 7px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.toc a:hover { background: rgba(232, 194, 106, .08); color: var(--gold); }
.toc .toc-title { font-family: var(--font-head); color: var(--gold); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px 8px; }
.prose h2 { color: var(--gold); margin-top: 1.6em; padding-top: .4em; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { color: var(--gold-2); margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: var(--gold-2); }
.callout { border: 1px solid var(--line-gold); background: rgba(232, 194, 106, .06); border-radius: var(--radius); padding: 14px 16px; margin: 1em 0; }
.callout.info { border-color: rgba(111, 182, 255, .4); background: rgba(111, 182, 255, .06); }
table.tbl { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; background: rgba(0, 0, 0, .2); }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.table-wrap { overflow-x: auto; }

/* ---------- database ---------- */
.db-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tabs button { font: inherit; font-weight: 800; color: var(--muted); background: var(--panel); border: 0; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.tabs button.active { color: #1d1505; background: var(--gold); }
.db-bar input, .db-bar select, .field input, .field select { font: inherit; color: var(--text); background: #0f0c18; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.db-bar input { flex: 1; min-width: 200px; }
.db-bar input:focus, .db-bar select:focus, .field input:focus, .field select:focus { outline: 2px solid var(--gold-dark); border-color: var(--gold-dark); }
.db-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.db-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.db-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(58, 49, 80, .6);
  cursor: pointer; color: var(--text); }
.db-row:hover, .db-row.active { background: rgba(232, 194, 106, .07); }
.db-row .ico { width: 24px; height: 24px; image-rendering: pixelated; justify-self: center; }
.db-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-row .meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.db-more { padding: 12px; text-align: center; color: var(--muted); font-size: .9rem; }
.db-detail { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 20px;
  position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.db-detail .head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.db-detail .head img.big { width: 75px; height: 100px; object-fit: contain; image-rendering: pixelated; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; }
.db-detail h2 { margin: 0; color: var(--gold-2); font-size: 1.4rem; }
.db-detail .sub { color: var(--muted); font-size: .9rem; }
.desc { background: #f4ecd8; color: #2a2316; border-radius: 8px; padding: 12px 14px; font-size: .92rem; line-height: 1.5; margin: 12px 0;
  border: 1px solid #c9b88f; box-shadow: inset 0 0 20px rgba(120, 90, 30, .15); }
.desc .line { min-height: 1em; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.kv div { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.kv .k { font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.kv .v { font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--text); background: rgba(255, 255, 255, .03); }
.chip.gold { color: var(--gold); border-color: var(--line-gold); }
.chip.red { color: var(--red); border-color: rgba(255, 125, 125, .4); }
.drop-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(58, 49, 80, .5); cursor: pointer; }
.drop-row img { width: 24px; height: 24px; image-rendering: pixelated; }
.drop-row .pct { font-weight: 800; color: var(--gold-2); font-size: .9rem; }
.drop-row:hover .nm { color: var(--gold); }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

/* ---------- forms (register) ---------- */
.form-card { max-width: 460px; margin: 0 auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-gold);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.field input, .field select { width: 100%; font-size: 16px; min-height: 48px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: .85rem; color: var(--red); margin-top: 4px; }
.row { display: flex; gap: 10px; }
.choice { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; min-height: 48px; cursor: pointer; }
.choice input { width: auto; min-height: 0; }
.message { margin-top: 16px; padding: 12px; border-radius: 10px; display: none; }
.message.error { display: block; background: rgba(255, 125, 125, .1); color: var(--red); }
.message.ok { display: block; background: rgba(111, 217, 154, .1); color: var(--green); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-gold); background: var(--bg-2); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; align-items: center; gap: 36px; padding: 28px 16px 22px; }
.footer-about { display: flex; align-items: center; gap: 16px; }
.footer-brand { display: inline-flex; flex: 0 0 auto; }
.footer-brand img { display: block; width: auto; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.footer-copy { min-width: 0; }
.footer-copy p { max-width: 360px; margin: 4px 0 0; font-size: .86rem; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 700; }
.footer-links a:hover { color: var(--gold); }
.legal { border-top: 1px solid rgba(107, 84, 39, .35); font-size: .72rem; color: #7f7695; padding: 14px 16px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 16px 64px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rates-inner { grid-template-columns: repeat(3, 1fr); }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc .toc-title { width: 100%; }
  .db-layout { grid-template-columns: 1fr; }
  .db-detail { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .brand-logo { height: 42px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line-gold); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav-play { margin: 8px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 1.05rem; letter-spacing: 1.4px; }
  .footer-inner { text-align: center; }
  .footer-about { flex-direction: column; gap: 8px; }
  .footer-brand img { height: 56px; }
  .footer-links { justify-content: center; }
  .legal { text-align: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .rates-inner { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .hero-cta { grid-template-columns: 1fr; max-width: none; }
  .section { padding: 44px 0; }
}

/* ---------- RO widgets: WoE, rankings, costumes ---------- */
.widgets-section { padding-top: 40px; padding-bottom: 0; }
.widget { display: flex; flex-direction: column; gap: 8px; }
.widget > a:last-child { margin-top: auto; font-weight: 700; }
.widget-title { font-family: var(--font-head); color: var(--gold); font-size: 1.05rem; letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.woe-card .eyebrow { align-self: flex-start; margin: 0; }
.countdown { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--gold-2); letter-spacing: 2px; line-height: 1.1; }
.woe-card.live { border-color: rgba(255, 125, 125, .6); box-shadow: 0 0 24px rgba(255, 90, 90, .18); }
.woe-card.live .eyebrow { color: var(--red); border-color: rgba(255, 125, 125, .5); background: rgba(255, 125, 125, .08); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.mini-rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-rank li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: .95rem; }
.mini-rank .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank .muted { font-size: .8rem; }
.medal, .rank-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85rem; }
.medal { color: #1d1505; }
.medal.m1 { background: linear-gradient(180deg, #fff1b8, #e8c26a 60%, #a8812e); box-shadow: 0 0 10px rgba(232, 194, 106, .5); }
.medal.m2 { background: linear-gradient(180deg, #ffffff, #c9cfd8 60%, #8a93a3); }
.medal.m3 { background: linear-gradient(180deg, #ffd9b0, #c98a4b 60%, #8a5426); }
.medal.m4, .medal.m5, .rank-no { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line); }
.social { display: grid; gap: 8px; }
.social-discord:hover { border-color: #5865f2; color: #aab2ff !important; }
.social-facebook:hover { border-color: #1877f2; color: #8fbaff !important; }
.rank-card { padding: 6px 10px; }
.rank-table .nm { font-weight: 800; color: var(--gold-2); }
.rank-table .zeny { color: var(--gold); font-weight: 700; white-space: nowrap; }
.realm h3 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.castle { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(58, 49, 80, .5); }
.castle .nm { font-weight: 700; }
.castle .owner { color: var(--gold); font-weight: 800; }
.castle .owner.none { color: var(--muted); font-weight: 600; font-style: italic; }
.woe-head { background: radial-gradient(ellipse at top, #4a1d24 0%, var(--bg) 70%); }
.woe-top .card { min-height: 100%; }

/* costume showcase: the game's collection art on parchment cards */
.costume-section { padding-bottom: 0; }
.costume-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.costume { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, #f6eedb, #e6d6b0); border: 1px solid #c9b88f; color: #3a2c12 !important; font-weight: 800; font-size: .85rem;
  text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s; }
.costume:hover { transform: translateY(-3px); }
.costume-price { font-size: 12px; font-weight: normal; }
.costume img { width: 75px; height: 100px; object-fit: contain; image-rendering: pixelated; mix-blend-mode: multiply; }
/* The Agony Helm's collection image has a credit strip below the artwork. Crop the card preview only. */
.costume[href="/database#item/30125"] img { clip-path: inset(0 0 16px 0); }
@media (max-width: 960px) { .costume-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .costume-strip { grid-template-columns: repeat(2, 1fr); } .countdown { font-size: 2rem; } }

/* ---------- RO art layer (v3): overlapping characters, animated monsters, ornate frames ---------- */
/* hero with the Valkyrie breaking out of the banner */
.hero-art { overflow: visible; z-index: 3; }
.hero-art .hero-inner { grid-template-columns: 1fr 1fr; min-height: 560px; padding-bottom: 90px; }
.hero-copy { position: relative; z-index: 2; }
.hero-character { position: absolute; right: -40px; bottom: -70px; width: min(760px, 62vw); height: auto; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(246, 220, 148, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-sky span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px 4px rgba(246, 220, 148, .6);
  animation: twinkle 4s ease-in-out infinite; z-index: 1; }
.hero-sky span:nth-child(1) { top: 18%; left: 52%; }
.hero-sky span:nth-child(2) { top: 40%; left: 88%; animation-delay: 1.3s; }
.hero-sky span:nth-child(3) { top: 70%; left: 46%; animation-delay: 2.6s; }
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.btn-ico { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; margin: -6px 0; }

/* Porings walking along the bottom of the hero */
.poring-parade { position: absolute; left: 0; right: 0; bottom: 4px; height: 50px; overflow: hidden; z-index: 2; pointer-events: none; }
.poring-parade img { position: absolute; bottom: 0; height: 44px; image-rendering: pixelated; animation: parade 38s linear infinite; }
.poring-parade img:nth-child(2) { animation-delay: -9s; }
.poring-parade img:nth-child(3) { animation-delay: -19s; }
.poring-parade img:nth-child(4) { animation-delay: -28s; height: 50px; }
@keyframes parade { from { left: -80px; } to { left: 100%; } }

/* ornate RO frame: gold corner flourishes on panels */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border: 2px solid var(--gold-dark); }
.frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; box-shadow: -2px -2px 8px rgba(232, 194, 106, .25); }
.frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; box-shadow: 2px 2px 8px rgba(232, 194, 106, .25); }
.rates-inner.frame { overflow: visible; }

/* animated monster icons */
.mob-ico { height: 64px; width: auto; max-width: 90px; object-fit: contain; image-rendering: pixelated; display: block; margin-bottom: 8px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); transition: transform .2s; }
.features .card:hover .mob-ico { transform: translateY(-4px) scale(1.08); }
.w-ico { height: 30px; width: auto; vertical-align: middle; image-rendering: pixelated; margin: -6px 2px -6px 0; }
.widget .status-head { display: flex; align-items: center; justify-content: space-between; }

/* launch phase banner */
.phase-section { padding-bottom: 0; }
.phase { display: flex; gap: 22px; align-items: center; background: linear-gradient(90deg, rgba(120, 30, 40, .35), var(--panel) 60%);
  border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 22px 26px; }
.phase h2 { color: var(--gold); margin: 8px 0 6px; }
.phase p { margin: 0; }
.phase-mob { height: 110px; width: auto; image-rendering: pixelated; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }

@media (max-width: 960px) {
  .hero-art .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-bottom: 260px; }
  .hero-character { right: 50%; transform: translateX(50%); width: min(560px, 110vw); bottom: -40px; animation: none; }
}
@media (max-width: 600px) {
  .phase { flex-direction: column; text-align: center; }
  .hero-art .hero-inner { padding-bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-character, .hero-sky span, .poring-parade img { animation: none; }
}

/* v3 layout fixes: keep the hero text and rates strip clear of the character */
.hero-copy { max-width: 560px; }
.hero-character { right: 0; bottom: -10px; width: min(640px, 48vw); }
.rates { position: relative; z-index: 4; }
@media (max-width: 960px) {
  .hero-character { width: min(420px, 88vw); bottom: 0; }
  .hero-art .hero-inner { padding-bottom: calc(min(420px, 88vw) * .68 + 40px); }
}
@media (max-width: 960px) {
  .hero-character { right: auto; left: 50%; transform: translateX(-50%); }
}
html, body { overflow-x: clip; }   /* clip, not hidden: hidden breaks position: sticky */

/* ---------- v4: hero halo, Kafra tip, marquee, pre-registration ---------- */
/* The Valkyrie stands in the right half of the hero, feet fading into the rates strip. */
.hero-art .hero-inner { position: relative; }
.hero-character { left: 50%; right: auto; bottom: 0; width: 50%; max-width: 640px;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }
.hero-halo { position: absolute; left: 75%; top: 54%; width: min(500px, 38vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(246, 220, 148, .32), rgba(246, 220, 148, .08) 46%, transparent 70%); }
.hero-halo::before, .hero-halo::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(246, 220, 148, .35); }
.hero-halo::after { inset: 15%; border: 2px dashed rgba(246, 220, 148, .25); animation: halo-spin 60s linear infinite; }
@keyframes halo-spin { to { transform: rotate(360deg); } }
.prereg-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 16px 6px 8px; border-radius: 99px; font-size: .92rem;
  background: rgba(232, 194, 106, .12); border: 1px solid var(--line-gold); color: var(--text); }
.prereg-pill img { height: 30px; image-rendering: pixelated; margin: -6px 0; }
.prereg-pill strong { color: var(--gold-2); }
.prereg-pill:hover { background: rgba(232, 194, 106, .22); color: var(--text); }
@media (max-width: 960px) {
  .hero-character { left: 50%; width: min(420px, 88vw); transform: translateX(-50%); }
  .hero-halo { left: 50%; top: auto; bottom: calc(min(420px, 88vw) * .1); width: min(360px, 76vw); transform: translateX(-50%); }
}

/* Kafra tip under the start steps: a framed bust with a speech bubble */
.kafra-tip { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.kafra-portrait { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold-dark); background: radial-gradient(circle at 50% 35%, #4a3a6a, #15111f 75%);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .45), 0 0 26px rgba(246, 220, 148, .28); }
.kafra-portrait img { position: absolute; width: 170%; height: auto; left: -50%; top: -2%; max-width: none; }
.kafra-bubble { position: relative; flex: 1; background: var(--panel-2); border: 1px solid var(--line-gold); border-radius: 14px; padding: 14px 18px; }
.kafra-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; background: var(--panel-2);
  border-left: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold); transform: translateY(-50%) rotate(45deg); }
.kafra-name { display: block; font-family: Cinzel, serif; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.kafra-bubble .btn { display: inline-flex; margin-top: 10px; }
@media (max-width: 600px) {
  .kafra-tip { flex-direction: column; text-align: center; }
  .kafra-bubble::before { left: 50%; top: -9px; transform: translateX(-50%) rotate(135deg); }
}

/* Scrolling news marquee under the top bar */
.marquee { display: block; overflow: hidden; white-space: nowrap; position: relative; z-index: 5; color: #f3e6c4; font-size: .92rem;
  background: linear-gradient(90deg, #4e1824, #261436 50%, #4e1824); border-bottom: 1px solid var(--line-gold); }
.marquee:hover { color: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus .marquee-track { animation-play-state: paused; }
.marquee-run { display: flex; align-items: center; gap: 22px; padding: 8px 11px; }
.marquee b { color: var(--gold-2); }
.marquee i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.nav a.nav-prereg { color: var(--gold-2); }
.nav a.nav-prereg::before { content: "\2726"; margin-right: 5px; color: var(--gold); }

/* Pre-registration page */
.prereg-head { position: relative; z-index: 2; text-align: center; padding: 72px 16px 60px; }
.prereg-head .lead { margin: 0 auto; }
.prereg-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.prereg-count { display: inline-block; margin-top: 28px; padding: 16px 40px; background: rgba(13, 11, 20, .72); border: 1px solid var(--line-gold); border-radius: var(--radius); }
.prereg-count .k { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.prereg-count .v { font-family: Cinzel, serif; font-weight: 800; font-size: 3.2rem; line-height: 1.1; color: var(--gold); text-shadow: 0 0 24px rgba(246, 220, 148, .35); }
.milestones { position: relative; }
.milestone-track { position: absolute; top: 15px; left: calc(100% / 12); right: calc(100% / 12); height: 6px; border-radius: 3px; background: var(--line); }
.milestone-fill { height: 100%; width: var(--p, 0%); border-radius: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2));
  box-shadow: 0 0 12px rgba(246, 220, 148, .6); transition: width .8s ease; }
.milestone-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.milestone { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ms-node { position: relative; z-index: 1; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 3px solid var(--line); color: #1a1208; font-weight: 800; }
.milestone.done .ms-node { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 14px rgba(246, 220, 148, .7); }
.ms-card { position: relative; width: 100%; flex: 1; padding: 16px 10px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.milestone.done .ms-card { border-color: var(--line-gold); }
.milestone.grand .ms-card { border-color: var(--gold); background: linear-gradient(180deg, rgba(232, 194, 106, .18), var(--panel) 70%); box-shadow: 0 0 26px rgba(232, 194, 106, .25); }
.ms-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 99px;
  background: var(--gold); color: #1a1208; font-size: .68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ms-pic { height: 108px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, #f6eedb, #e6d6b0); border: 1px solid #c9b88f; }
.ms-pic img { max-height: 96px; max-width: 90%; image-rendering: pixelated; mix-blend-mode: multiply; }
.cp-coin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: Cinzel, serif; font-weight: 800; font-size: 1.9rem; color: #5a3d08;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e8c26a 55%, #a8812e); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 3px 8px rgba(0, 0, 0, .3); }
.ms-at { font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ms-reward { font-family: Cinzel, serif; font-weight: 700; color: var(--gold-2); margin: 4px 0; line-height: 1.25; }
.ms-state { font-size: .82rem; color: var(--muted); }
.milestone.done .ms-state { color: #6fdc8c; font-weight: 700; }
.prereg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prereg-card { padding: 26px; }
.prereg-card h2 { color: var(--gold); margin-top: 0; }
.prereg-mob { float: right; height: 54px; image-rendering: pixelated; margin: -6px 0 0 12px; }
.prereg-form { display: flex; gap: 10px; margin: 18px 0 8px; }
.prereg-form input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: #0f0c18; border: 1px solid var(--line); border-radius: 10px; }
.prereg-form input:focus { outline: 2px solid var(--gold-dark); border-color: var(--gold-dark); }
.prereg-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.prereg-msg { min-height: 1.4em; margin: 6px 0; font-weight: 700; }
.prereg-msg.ok { color: #6fdc8c; }
.prereg-msg.err { color: #ff7d7d; }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.claim-steps { padding-left: 22px; line-height: 1.7; }
.claim-steps li { margin-bottom: 6px; }
.prereg-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 960px) {
  .milestone-list { grid-template-columns: 1fr; gap: 12px; }
  .milestone { flex-direction: row; align-items: center; gap: 14px; text-align: left; }
  .ms-node { margin: 0; flex: none; }
  .ms-card { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: center; padding: 12px; }
  .ms-pic { grid-row: span 3; height: 76px; margin: 0; }
  .ms-pic img { max-height: 66px; }
  .cp-coin { width: 50px; height: 50px; font-size: 1.5rem; }
  .milestone-track { top: 0; bottom: 0; left: 15px; right: auto; width: 6px; height: auto; }
  .milestone-fill { width: 100%; height: var(--p, 0%); }
  .ms-badge { left: auto; right: 12px; transform: none; }
  .prereg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .prereg-form { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-halo::after { animation: none; }
  .marquee { overflow-x: auto; }
}
.hero-art { overflow: hidden; }
.kafra-bubble .btn { display: flex; width: fit-content; }
/* The rates strip overlaps the hero by 36px: keep the Valkyrie and the monster parade above it. */
.hero-character { bottom: 56px; }
.poring-parade { bottom: 38px; }
.hero-art .hero-inner { padding-bottom: 130px; }
@media (max-width: 960px) {
  .hero-character { bottom: 40px; }
  .poring-parade { bottom: 30px; }
  .hero-art .hero-inner { padding-bottom: calc(min(420px, 88vw) * .68 + 80px); }
}
/* The monster sprites face left: mirror them so they face the way they walk. */
.poring-parade img { transform: scaleX(-1); }
/* Play Now keeps its gold button look on hover (the nav hover style would replace the background). */
.nav a.btn-gold:hover { color: #1d1505; background: linear-gradient(180deg, var(--gold-2), var(--gold) 50%, var(--gold-dark)); filter: brightness(1.1); }
/* Dropdowns: one styled gold chevron with room on the right, the same on every page. */
.wrap select, .db-bar select, .field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 40px; background-color: #0f0c18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23e8c26a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
select option { background: #15111f; color: var(--text); }
/* Refining page */
.refine-tabs { margin: 6px 0 12px; flex-wrap: wrap; }
.refine-table tr.risky td:first-child { color: var(--gold); }
.refine-table .breaks { color: #ff8a8a; font-weight: 700; }
/* ---------- Ads landing page (/join, layout-landing.html) ---------- */
.lp-top { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 20, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-gold); }
.lp-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-top-cta { min-height: 40px; padding: 8px 18px; }
.lp-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-gold);
  background: radial-gradient(ellipse at 75% 20%, #3a2b52 0%, var(--bg) 65%); }
.lp-art { position: absolute; top: 0; right: max(0px, calc(50% - 640px)); bottom: 0; width: min(560px, 48%); pointer-events: none; }
.lp-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 82%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 82%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.lp-hero-inner { position: relative; z-index: 1; padding: 64px 16px 56px; max-width: 1180px; }
.lp-hero-inner > * { max-width: 600px; }
.lp-title { font-size: clamp(2.8rem, 8vw, 5rem); margin-bottom: .15em;
  background: linear-gradient(180deg, #fff6d8, var(--gold) 60%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .7)); }
.lp-tag { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.55rem); color: #f3ead2; line-height: 1.35; margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.lp-date { margin: -12px 0 22px; font-size: 1.08rem; color: #f3ead2; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.lp-date strong { color: var(--gold); font-size: 1.15em; }
.lp-signup { padding: 22px; background: linear-gradient(180deg, rgba(34, 29, 52, .94), rgba(20, 17, 32, .94)); border-color: var(--line-gold); box-shadow: var(--shadow); }
.lp-signup .prereg-form { margin: 14px 0 4px; }
.lp-signup .btn { white-space: nowrap; }
.lp-gift { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; line-height: 1.4; }
.lp-gift strong { color: var(--gold-2); }
.lp-gift-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(232, 194, 106, .35), rgba(232, 194, 106, .08)); border: 1px solid var(--line-gold); }
.lp-fine { font-size: .82rem; margin: 8px 0 0; }
.lp-signup .prereg-msg { min-height: 0; margin: 8px 0 0; }
.lp-signup .prereg-msg:empty { display: none; }
.lp-count.few b { display: none; }
.lp-count { margin: 18px 0 0; color: #d9d0ea; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.lp-count b { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-2); margin-right: 4px; }
.lp-features { padding-top: 40px; padding-bottom: 8px; }
.lp-feature h3 { margin-bottom: .35em; }
.lp-feature p { font-size: .93rem; color: var(--muted); }
.lp-share { text-align: center; margin: 26px auto 0; max-width: 560px; }
.lp-faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq-list details { padding: 0; }
.lp-faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--gold-2); list-style: none; position: relative; padding-right: 44px; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 400; }
.lp-faq-list details[open] summary::after { content: "\2212"; }
.lp-faq-list details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.lp-final { text-align: center; background: radial-gradient(ellipse at center, #2a2140 0%, var(--bg) 70%); }
.lp-final h2 { color: var(--gold); margin-bottom: 20px; }
.lp-footer { margin-top: 0; }
.lp-sticky { display: none; }
@media (max-width: 860px) {
  .lp-art { width: 78%; right: -8%; opacity: .5; }
  .lp-hero-inner { padding: 36px 16px 40px; }
}
@media (max-width: 600px) {
  .lp-art { width: 100%; right: 0; opacity: .38; }
  .lp-features .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lp-feature { padding: 14px; }
  .lp-feature .mob-ico { height: 44px; }
  .lp-feature h3 { font-size: 1rem; }
  .lp-feature p { font-size: .85rem; }
  .lp-signup { padding: 16px; }
  .lp-signup .btn { width: 100%; }
  .lp-top-cta { display: none; }
  .lp-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; transform: translateY(150%); transition: transform .25s; }
  .lp-sticky.show { transform: none; }
  .lp-body .lp-footer { padding-bottom: 76px; }
}

.community-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.2rem}.community-card{padding:1.5rem;margin-bottom:1rem}.community-card label{display:block;margin:1rem 0}.community-card input:not([type=checkbox]){display:block;width:100%;max-width:36rem;padding:.6rem}.community-grid figure{margin:0}.community-grid img{width:100%;height:220px;object-fit:contain}.community-table{width:100%;text-align:left;border-collapse:collapse}.community-table th,.community-table td{padding:.6rem;border-bottom:1px solid #645842}

.community-table{table-layout:fixed;overflow-wrap:anywhere}.community-card input{color:inherit;background:#16121f;border:1px solid #645842;border-radius:4px}.community-grid figcaption{padding:.5rem}

/* Grouped navigation and consistent feature-page layout. */
.nav-group{position:relative}
.nav-group summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:10px 12px;border-radius:8px;font-weight:700;font-size:.95rem;white-space:nowrap}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary::after{content:'';width:6px;height:6px;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.75}
.nav-group[open] summary::after{transform:translateY(2px) rotate(225deg)}
.nav a.btn-gold,.nav a.btn-gold.active,.nav a.btn-gold:hover{color:#1d1505;background:linear-gradient(180deg,var(--gold-2),var(--gold) 50%,var(--gold-dark))}
.nav-group[open] summary,.nav-group.active summary{background:rgba(232,194,106,.08);color:var(--gold)}
.nav-dropdown{position:absolute;top:calc(100% + 12px);left:0;min-width:235px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.nav-group:last-of-type .nav-dropdown{left:auto;right:0}
.nav-dropdown a{display:block;font-weight:600;padding:10px 12px;font-size:.9rem}
.nav a:focus-visible,.nav summary:focus-visible,.feature-sidebar a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.footer-groups{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:24px}
.footer-groups h3{font:700 .85rem var(--font-body);color:var(--text);margin-bottom:12px}
.footer-groups a{display:block;margin:6px 0;font-size:.85rem}
.feature-head{padding:30px 0 34px;text-align:left;border-bottom:1px solid var(--line)}
.feature-head h1{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:10px}
.feature-head p{max-width:740px;font-size:1.08rem;color:var(--muted);margin:0 0 18px}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:.78rem;color:var(--muted);margin-bottom:22px}
.feature-facts{display:flex;gap:8px;flex-wrap:wrap}
.feature-facts span{padding:5px 10px;border:1px solid var(--line);border-radius:6px;font-size:.8rem;background:var(--panel);color:var(--text)}
.feature-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:38px;padding-top:32px;padding-bottom:48px;align-items:start}
.feature-sidebar{position:sticky;top:92px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);padding:16px}
.sidebar-label{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:1px;font-weight:800;margin:0 0 8px}
.feature-sidebar a{display:block;padding:8px 0;font-size:.85rem;line-height:1.4;color:var(--text)}
.feature-sidebar a:hover{color:var(--gold)}
.sidebar-related{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
.sidebar-related a{color:var(--gold)}
.feature-content{min-width:0}
.feature-content .section{padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid var(--line);scroll-margin-top:90px}
.feature-content .section:last-child{border-bottom:0;margin-bottom:0}
.feature-content .section>.wrap{padding:0;max-width:none}
.feature-content h2{font:800 1.45rem/1.3 var(--font-body);letter-spacing:0;margin-bottom:14px}
.feature-content h3{font:800 1.06rem/1.4 var(--font-body);letter-spacing:0}
.feature-content p,.feature-content li{font-size:.95rem;line-height:1.7}
.feature-content ol,.feature-content ul{padding-left:22px}
.feature-content li{margin-bottom:8px}
.feature-content code{font-size:.88em;color:var(--gold-2);background:var(--panel);padding:2px 6px;border-radius:4px}
.feature-content .community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feature-content .community-grid>h2{grid-column:1/-1}
.feature-content .community-grid + p,.feature-content .community-grid + .wrap{margin-top:20px}
.feature-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-top:20px}
.feature-actions .btn{margin:0}
.feature-content [data-community-shots]:not(:empty){margin-bottom:20px}
.feature-content .community-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;margin:0;box-shadow:none}
.feature-content .community-card::before,.feature-content .community-card::after{display:none}
.feature-content .community-card p:last-child{margin-bottom:0}
.feature-content .community-card h2{font-size:1.06rem}
.feature-content label{display:block;font-size:.85rem;font-weight:700;margin:14px 0 7px}
.feature-content input:not([type=checkbox]){display:block;width:100%;max-width:520px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-2);color:var(--text);font:inherit}
.feature-content input[type=checkbox]{accent-color:var(--gold)}
.feature-content button{margin:8px 8px 8px 0}
.feature-content .album-catalog{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.album-catalog .community-card{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:58px}
.album-catalog .community-card span{font-size:.82rem;line-height:1.35}
.album-catalog [hidden]{display:none}
.catalog-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.catalog-toolbar label{margin:0}
.catalog-toolbar input{flex:1;min-width:160px}
.catalog-toolbar>span{font-size:.8rem;color:var(--muted)}
.feature-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.feature-hub a{display:flex;flex-direction:column;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px}
.feature-hub a:hover{border-color:var(--gold-dark)}
.feature-hub span{font-size:.9rem;color:var(--muted);line-height:1.5}
@media(min-width:961px){.nav{display:flex!important}.nav-toggle{display:none!important}}
@media(max-width:960px){
 .nav-toggle{display:block}
 .nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:12px 16px 20px;background:var(--bg-2);border-bottom:1px solid var(--line);max-height:calc(100dvh - 64px);overflow:auto;flex-direction:column;align-items:stretch;gap:4px}
 .nav.open{display:flex}
 .nav-group{border-bottom:1px solid var(--line)}
 .nav-group summary{padding:12px}
 .nav-group summary::after{margin-left:auto}
 .nav-dropdown{position:static;min-width:0;border:0;box-shadow:none;background:transparent;padding:0 8px 10px}
 .nav-dropdown a{padding:10px 18px}
 .nav .nav-play{margin:12px 0 0}
 .feature-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}
 .footer-groups{gap:18px;grid-template-columns:repeat(2,minmax(100px,1fr))}
}
@media(max-width:680px){
 .feature-head{padding:20px 0 26px}
 .feature-head p{font-size:.98rem}
 .feature-facts span{font-size:.75rem}
 .feature-layout{display:block;padding-top:20px}
 .feature-sidebar{position:static;margin-bottom:28px;padding:14px}
 .feature-sidebar nav{display:flex;gap:6px;flex-wrap:wrap}
 .feature-sidebar .sidebar-label{width:100%}
 .feature-sidebar nav a{padding:6px 10px;background:var(--panel);border-radius:6px;font-size:.78rem}
 .sidebar-related{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;padding-top:12px}
 .sidebar-related .sidebar-label{width:100%;margin:0}
 .sidebar-related a{padding:0;font-size:.8rem}
 .feature-content .community-grid{grid-template-columns:minmax(0,1fr)}
 .feature-content .album-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
 .album-catalog .community-card{padding:9px;gap:7px}
 .album-catalog .community-card span{font-size:.76rem}
 .feature-content h2{font-size:1.28rem}
 .feature-hub{grid-template-columns:minmax(0,1fr)}
 .footer-groups{width:100%}
}

.rank-reward-intro{margin-bottom:24px}.rank-reward-intro h2,.rank-history h2{font:800 1.4rem var(--font-body)}.rank-reward-intro p{font-size:.92rem;line-height:1.7}.rank-crowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.rank-crowns>div{background:var(--bg-2);border:1px solid var(--line);border-radius:8px;padding:16px}.rank-crowns strong,.rank-crowns span{display:block}.rank-crowns strong{color:var(--gold);margin-bottom:8px}.rank-history{margin-top:32px}.rank-history li{margin:10px 0}@media(max-width:680px){.rank-crowns{grid-template-columns:1fr}}
/* Progress bars: 2nd job milestone and server-cost meter (milestone.js, premium.js); Founders
   list; Premium star on rankings. Not .milestone: that is the pre-registration timeline. */
.goal-meter{margin-top:14px;text-align:left}.goal-bar{width:100%;height:12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);overflow:hidden;margin:8px 0}
.goal-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#c9a24a,#f2d27a);transition:width .6s}
.founders{columns:2;column-gap:24px;padding-left:1.4rem}.founders li{break-inside:avoid;margin-bottom:4px}
.vip-star{color:#f2c94c;font-size:.9em}
@media (max-width:600px){.founders{columns:1}}
/* Radio choices inside feature pages (e.g. /premium): undo the full-width text input style. */
.feature-content .choice{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;min-height:48px;padding:0 14px;font-size:.95rem;color:var(--text)}
.feature-content .choice:has(input:checked){border-color:var(--gold-dark);background:rgba(232,194,106,.08)}
.feature-content .choice input{display:inline-block;width:auto;max-width:none;min-height:0;margin:0;padding:0;accent-color:var(--gold)}
.feature-content .form-card select{max-width:520px}
/* /premium: steps and payment details beside the form; paired fields on wide screens. */
.buy-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start}
.buy-steps ol{margin-top:0;padding-left:1.2rem}.buy-steps li{margin-bottom:6px}
.feature-content .buy-form{max-width:none;margin:0;padding:20px}
.buy-form h2{margin:0 0 6px}.buy-form .field{margin-bottom:10px}.buy-form .field label{margin:6px 0 5px}
.buy-form .buy-hint{margin:-4px 0 8px}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-pair>.field[hidden]{display:none}
@media (max-width:900px){.buy-grid{grid-template-columns:1fr}}
@media (max-width:560px){.field-pair{grid-template-columns:1fr;gap:0}}
/* /premium payment QR (img/pay/<method>-qr.png) and paypal.me button */
.pay-qr{display:flex;gap:16px;align-items:center;margin-bottom:12px}.pay-qr img{width:200px;height:200px;background:#fff;border-radius:8px;padding:6px;flex:none}
.pay-qr p{margin:6px 0 0}.pay-link{display:inline-block;margin-left:6px;padding:8px 14px;min-height:0}
@media (max-width:560px){.pay-qr{flex-direction:column;align-items:flex-start}}
/* /premium: [hidden] must win over .field-pair grid and .btn display rules (PayPal checkout toggle). */
.buy-form [hidden]{display:none !important}.paypal-buttons{margin-top:8px;min-height:48px}
/* /vote toplist buttons */
.vote-sites{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:12px 0}.vote-btn{text-align:center}
.tier-badge{font-size:.72rem;padding:1px 7px;border-radius:999px;margin-left:6px;border:1px solid currentColor}.tier-bronze{color:#d39a62}.tier-silver{color:#c9d1d9}.tier-gold{color:#f2c94c}.tier-diamond{color:#7fd8ff}
/* Home page vote banner (pages/home.html) */
.vote-banner-section{padding:18px 0 0}
.vote-banner{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:12px;text-decoration:none;color:var(--text);border:1px solid var(--line-gold);background:linear-gradient(90deg,rgba(232,194,106,.14),var(--panel) 60%)}
.vote-banner:hover{border-color:var(--gold)}
.vote-banner-icon{font-size:1.8rem;color:var(--gold);flex:none}
.vote-banner-text{display:flex;flex-direction:column;gap:4px;flex:1}.vote-banner-text span{color:var(--muted);font-size:.92rem}
.vote-banner-btn{flex:none}
@media (max-width:640px){.vote-banner{flex-wrap:wrap}.vote-banner-btn{width:100%;text-align:center}}
/* /vote toplist image buttons (VOTE_SITES "image") */
.vote-img{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--text);font-size:.85rem;background:var(--panel)}
.vote-img img{display:block}
a.vote-img:hover{border-color:var(--gold)}
.vote-img.is-disabled,.vote-btn.is-disabled{opacity:.45;cursor:not-allowed}
.vote-need{grid-column:1/-1;margin:0}
.vote-fallback{font-weight:700;color:var(--gold);padding:6px 4px}
/* /vote: toplist buttons as plain images in a row (override the card look above) */
.vote-sites{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.vote-img{padding:0;border:0;border-radius:0;background:none;display:inline-block;line-height:0;transition:transform .15s,filter .15s}
a.vote-img:hover{transform:translateY(-2px);filter:brightness(1.15)}
.vote-img .vote-fallback{line-height:normal;display:inline-block;padding:7px 12px;border:1px solid var(--line-gold);border-radius:6px}

/* Homepage gameplay showcase replaces the overlapping Valkyrie artwork. */
.hero-gameplay .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 40px; min-height: 560px; padding-top: 64px; padding-bottom: 100px; }
.hero-gameplay-card { position: relative; z-index: 2; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--gold-dark); border-radius: 16px; background: #0b0e15; box-shadow: 0 24px 65px #0009, 0 0 40px #e8c26a16; }
.hero-gameplay-card video { display: block; width: 100%; height: auto; aspect-ratio: 80 / 37; object-fit: contain; background: #0b0e15; }
.hero-gameplay-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; color: #d9d0bb; font-size: .8rem; border-top: 1px solid var(--line-gold); }
.gameplay-live { color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: 1.8px; }
@media (max-width: 960px) {
  .hero-gameplay .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding-top: 42px; padding-bottom: 86px; }
  .hero-gameplay .hero-copy { max-width: 640px; }
  .hero-gameplay-card { width: 100%; max-width: 720px; justify-self: center; }
}
@media (max-width: 480px) { .hero-gameplay-card figcaption { padding: 12px; font-size: .73rem; } }
