:root {
  --bg: #05070b;
  --bg-blue: #081425;
  --panel: rgba(8, 14, 24, .88);
  --panel-strong: rgba(5, 8, 13, .96);
  --red-deep: #7a100b;
  --red: #d22b16;
  --gold: #d8a63a;
  --gold-light: #f4d27a;
  --text: #f5f1e8;
  --muted: #b8b2a7;
  --green: #74d44c;
  --line: rgba(216, 166, 58, .34);
  --line-soft: rgba(216, 166, 58, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --header-h: 78px;
  --announce-h: 34px;
  --radius: 14px;
  --heading: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--announce-h) + 14px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(18, 46, 80, .2), transparent 28%),
    radial-gradient(circle at 88% 35%, rgba(122, 16, 11, .15), transparent 27%),
    var(--bg);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: #150a03; background: var(--gold-light); }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { position: relative; padding: 90px 0; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  padding: 10px 14px; color: #111; background: var(--gold-light);
  border-radius: 6px; font-weight: 800; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.noscript { position: fixed; z-index: 9999; inset: auto 0 0; padding: 12px; color: #fff; background: #7a100b; text-align: center; }

/* Announcement */
.announcement {
  position: fixed; inset: 0 0 auto; z-index: 1200; height: var(--announce-h);
  border-bottom: 1px solid rgba(216, 166, 58, .2);
  background: linear-gradient(90deg, #05070b, #101823 45%, #05070b);
  font-size: .74rem;
}
.announcement__marquee { width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden; }
.announcement__track { display: flex; flex: 0 0 auto; width: max-content; animation: announce-scroll 26s linear infinite; }
.announcement__track:hover { animation-play-state: paused; }
.announcement__item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding-right: 56px; }
.announcement strong { color: var(--gold-light); }
.announcement a { color: var(--gold-light); font-family: var(--heading); font-weight: 700; text-decoration: none; }
@keyframes announce-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announcement__track { animation: none; } }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(116, 212, 76, .9); }

/* Header */
.site-header {
  position: fixed; inset: var(--announce-h) 0 auto; z-index: 1100;
  height: var(--header-h); border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(3, 5, 8, .97), rgba(3, 5, 8, .83));
  backdrop-filter: blur(14px); transition: box-shadow var(--ease), background var(--ease), height var(--ease);
}
.site-header.is-scrolled { background: rgba(3, 5, 8, .97); box-shadow: 0 16px 42px rgba(0,0,0,.42); }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { position: relative; z-index: 1102; width: 150px; flex: 0 0 auto; }
.brand img { width: 100%; height: 72px; object-fit: cover; object-position: center; }

.nav-toggle {
  position: relative; z-index: 1102; width: 46px; height: 43px;
  display: grid; place-content: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 7, 11, .9);
}
.nav-toggle span { width: 22px; height: 2px; background: var(--gold-light); transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed; inset: 0; z-index: 1101; padding: 116px 24px 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  background: radial-gradient(circle at 50% 18%, rgba(10, 28, 52, .9), transparent 38%), rgba(3, 5, 8, .985);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav > a:not(.nav-account) {
  position: relative; padding: 11px 10px; color: #d8d4ca;
  font-family: var(--heading); font-size: .96rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
}
.main-nav > a:not(.nav-account)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 1px; background: var(--gold); transition: left var(--ease), right var(--ease); }
.main-nav > a:not(.nav-account):hover, .main-nav > a:not(.nav-account):focus-visible, .main-nav > a.is-active { color: var(--gold-light); }
.main-nav > a:not(.nav-account):hover::after, .main-nav > a:not(.nav-account):focus-visible::after, .main-nav > a.is-active::after { left: 9px; right: 9px; }
.nav-account {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 19px;
  border: 1px solid var(--gold); border-radius: 5px; color: #fff3cf; background: linear-gradient(180deg, #9c1a0f, #65100c);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 139, .13), 0 0 22px rgba(210, 43, 22, .15);
  font-family: var(--heading); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.nav-account img { width: 18px; }

/* Shared heading/button */
.section-heading { max-width: 790px; margin: 0 auto 44px; text-align: center; }
.section-heading__eyebrow { display: block; margin-bottom: 8px; color: var(--gold-light); font-family: var(--heading); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2, .world__content h2, .community__copy h2 {
  margin: 0; color: #fff2ce; font-family: var(--heading); font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 5px 30px rgba(0,0,0,.66);
}
.section-heading p { max-width: 680px; margin: 12px auto 0; color: var(--muted); }
.ornament { width: min(500px, 86%); height: 20px; margin: 12px auto 0; }

.btn {
  min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px;
  border: 1px solid transparent; border-radius: 5px; font-family: var(--heading); font-size: .9rem; font-weight: 800; letter-spacing: .04em; line-height: 1.15; text-align: center; text-transform: uppercase;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--primary, .btn--download { color: #fff8e6; border-color: #edb74b; background: linear-gradient(180deg, #bf2415, #72110b); box-shadow: inset 0 0 0 1px rgba(255,238,191,.12), 0 0 28px rgba(210,43,22,.25), 0 12px 34px rgba(0,0,0,.35); }
.btn--primary:hover, .btn--primary:focus-visible, .btn--download:hover, .btn--download:focus-visible { box-shadow: inset 0 0 0 1px rgba(255,238,191,.22), 0 0 38px rgba(244,210,122,.28), 0 16px 40px rgba(0,0,0,.45); }
.btn--secondary { color: var(--gold-light); border-color: var(--gold); background: linear-gradient(180deg, rgba(216,166,58,.15), rgba(5,7,11,.92)); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: rgba(216,166,58,.15); box-shadow: 0 0 26px rgba(216,166,58,.17); }
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative; min-height: 920px; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--announce-h) + var(--header-h) + 45px) 0 72px;
  background: #05070b;
}
.hero__media, .hero__overlay, .hero__embers { position: absolute; inset: 0; }
.hero__media { z-index: -4; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay { z-index: -3; background: linear-gradient(180deg, rgba(1,4,9,.12), rgba(1,4,9,.14) 55%, #05070b 100%), radial-gradient(circle at 50% 44%, rgba(0,0,0,.03), rgba(0,0,0,.46) 82%); }
.hero__embers { z-index: -2; opacity: .75; background: radial-gradient(circle at 12% 72%, rgba(210,43,22,.75) 0 2px, transparent 3px), radial-gradient(circle at 20% 84%, rgba(244,210,122,.55) 0 1px, transparent 2px), radial-gradient(circle at 80% 76%, rgba(210,43,22,.58) 0 2px, transparent 3px), radial-gradient(circle at 91% 88%, rgba(244,210,122,.5) 0 1px, transparent 2px); background-size: 280px 250px, 200px 180px, 330px 300px, 210px 190px; animation: ember-drift 19s linear infinite; }
.hero__layout { width: 100%; display: grid; place-items: center; }
.hero__content { width: min(820px, 100%); text-align: center; }
.hero__status { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border: 1px solid rgba(216,166,58,.27); border-radius: 999px; color: #d7d2c7; background: rgba(4,8,14,.62); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero__logo { display: block; width: min(520px, 84vw); margin: 0 auto -2px; overflow: hidden; border-radius: 12px; mix-blend-mode: screen; }
.hero__logo img { width: 100%; height: auto; }
.hero__kicker { margin: 3px 0 6px; color: var(--gold-light); font-family: var(--heading); font-size: clamp(.82rem, 2vw, 1.08rem); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; color: #fff2cd; font-family: var(--heading); font-size: clamp(3.1rem, 7vw, 5.65rem); font-weight: 800; line-height: .98; letter-spacing: .025em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(55,24,4,.58), 0 0 34px rgba(216,166,58,.16), 0 10px 38px rgba(0,0,0,.85); }
.hero__lead { max-width: 700px; margin: 20px auto 0; color: #d0cbc0; font-size: clamp(.96rem, 2vw, 1.08rem); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 29px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 24px auto 0; }
.hero__stats div { min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 10px; border: 1px solid rgba(216,166,58,.25); background: linear-gradient(180deg, rgba(7,14,24,.74), rgba(3,6,11,.72)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.hero__stats span { color: #aaa59b; font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero__stats strong { color: var(--gold-light); font-family: var(--heading); font-size: clamp(.9rem,2vw,1.15rem); }
.hero__version { margin: 12px 0 0; color: #938f87; font-size: .78rem; }
.scroll-indicator { position: absolute; left: 50%; bottom: 22px; width: 30px; height: 46px; display: grid; place-items: start center; padding-top: 7px; border: 1px solid rgba(244,210,122,.38); border-radius: 999px; transform: translateX(-50%); }
.scroll-indicator span { width: 5px; height: 10px; border-radius: 999px; background: var(--gold-light); animation: scroll-cue 1.8s ease-in-out infinite; }

/* Features */
.features { background: linear-gradient(180deg, #05070b, #07101c 48%, #05070b); }
.features::before, .combat::before, .download::before, .community::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .65; }

.world-status { background: radial-gradient(circle at 50% 0%, rgba(28, 58, 91, .26), transparent 52%), #07101c; }
.world-status::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .65; }
.world-status__panel { max-width: 850px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(216,166,58,.38); border-radius: 14px; background: linear-gradient(145deg, rgba(11,24,42,.9), rgba(4,7,11,.98)); box-shadow: var(--shadow); }
.world-status__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(216,166,58,.2); }
.world-status__tab { min-height: 56px; padding: 12px 10px; border: 0; border-right: 1px solid rgba(216,166,58,.16); background: transparent; color: #a9a399; font-family: var(--heading); font-size: .78rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: color var(--ease), background var(--ease); }
.world-status__tab:last-child { border-right: 0; }
.world-status__tab:hover, .world-status__tab:focus-visible, .world-status__tab.is-active { background: rgba(216,166,58,.13); color: var(--gold-light); }
.world-status__tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.world-status__content { min-height: 205px; padding: 34px clamp(24px, 5vw, 54px); text-align: center; }
.world-status__badge { display: inline-block; padding: 5px 10px; border: 1px solid rgba(216,166,58,.45); border-radius: 999px; color: var(--gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.world-status__content h3 { margin: 15px 0 10px; font-family: var(--heading); font-size: clamp(1.25rem, 3vw, 1.65rem); color: #f4ede0; }
.world-status__content p { max-width: 590px; margin: 0 auto; color: var(--muted); }
.clan-status__summary { margin-bottom: 22px !important; }
.clan-status__list { display: grid; gap: 12px; max-width: 650px; margin: 0 auto; text-align: left; }
.clan-status__card { padding: 17px 18px; border: 1px solid rgba(216,166,58,.2); border-radius: 10px; background: rgba(255,255,255,.025); }
.clan-status__card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid rgba(216,166,58,.14); }
.clan-status__card h4 { margin: 0; color: #f4ede0; font-family: var(--heading); font-size: 1rem; }
.clan-status__count { color: var(--gold-light); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.clan-status__details { display: grid; gap: 8px; margin: 13px 0 0; }
.clan-status__details div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.clan-status__details dt { color: #9f9a91; font-size: .78rem; }
.clan-status__details dd { margin: 0; color: #e8e2d6; font-size: .84rem; }
.clan-status__empty { margin: 0; color: var(--muted); text-align: center; }
.town-status__summary { margin-bottom: 20px !important; }
.town-status__table-wrap { max-width: 650px; margin: 0 auto; overflow-x: auto; border: 1px solid rgba(216,166,58,.2); border-radius: 10px; }
.town-status__table { width: 100%; border-collapse: collapse; text-align: left; }
.town-status__table th, .town-status__table td { padding: 12px 15px; border-bottom: 1px solid rgba(216,166,58,.12); font-size: .84rem; }
.town-status__table th { color: var(--gold-light); background: rgba(216,166,58,.1); font-family: var(--heading); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.town-status__table td { color: #e8e2d6; }
.town-status__table tbody tr:last-child td { border-bottom: 0; }
.town-status__table td:last-child { color: #cfc8ba; }
.town-status__empty { color: var(--muted) !important; text-align: center; }
.relic-status__summary { margin-bottom: 20px !important; }
.relic-status__table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border: 1px solid rgba(216,166,58,.2); border-radius: 10px; }
.relic-status__table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.relic-status__table th, .relic-status__table td { padding: 13px 15px; border-bottom: 1px solid rgba(216,166,58,.12); font-size: .84rem; }
.relic-status__table th { color: var(--gold-light); background: rgba(216,166,58,.1); font-family: var(--heading); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.relic-status__table td { color: #e8e2d6; }
.relic-status__table tbody tr:last-child td { border-bottom: 0; }
.relic-status__table td:first-child { width: 31%; color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.relic-status__table td:last-child { color: #e8e2d6; line-height: 1.6; }
.relic-status__empty { color: var(--muted) !important; text-align: center; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature-card { position: relative; overflow: hidden; padding: 25px 20px 23px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15,28,47,.86), rgba(5,7,11,.95)); box-shadow: 0 14px 38px rgba(0,0,0,.28); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.feature-card::after { content: ""; position: absolute; inset: auto -25% -88px 22%; height: 150px; background: radial-gradient(circle, rgba(210,43,22,.19), transparent 67%); pointer-events: none; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(244,210,122,.72); box-shadow: 0 22px 48px rgba(0,0,0,.38), 0 0 28px rgba(216,166,58,.07); }
.feature-card__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid rgba(216,166,58,.58); border-radius: 50%; background: rgba(216,166,58,.07); box-shadow: 0 0 24px rgba(216,166,58,.1); }
.feature-card__icon img { width: 34px; height: 34px; }
.feature-card h3 { margin: 0; font-family: var(--heading); font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.feature-card strong { display: block; margin-top: 2px; color: var(--gold-light); font-family: var(--heading); font-size: 1.35rem; }
.feature-card p { margin: 9px 0 0; color: var(--muted); font-size: .89rem; }

/* Combat */
.combat { background: radial-gradient(circle at 89% 20%, rgba(122,16,11,.2), transparent 32%), #05070b; }
.combat-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 78vw); gap: 13px; overflow-x: auto; padding: 4px 1px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,.04); cursor: grab; }
.combat-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.combat-scroller::-webkit-scrollbar { height: 7px; }
.combat-scroller::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.combat-scroller::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(216,166,58,.7); }
.combat-card { position: relative; overflow: hidden; aspect-ratio: 1.23 / 1; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 9px; background: #0a101a; box-shadow: var(--shadow); isolation: isolate; }
.combat-card::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(244,210,122,.1); pointer-events: none; }
.combat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, filter 500ms ease; }
.combat-card__hover { position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: #fff3cf; background: linear-gradient(transparent, rgba(3,5,8,.94) 54%); font-family: var(--heading); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity var(--ease), transform var(--ease); }
.combat-card:hover img { transform: scale(1.045); filter: saturate(1.1) contrast(1.05); }
.combat-card:hover .combat-card__hover, .combat-card:focus-visible .combat-card__hover { opacity: 1; transform: none; }
.combat-card--blue:hover { box-shadow: 0 18px 48px rgba(0,78,181,.22); }
.combat-card--red:hover { box-shadow: 0 18px 48px rgba(210,43,22,.22); }
.combat-card--green:hover { box-shadow: 0 18px 48px rgba(85,171,63,.2); }
.combat-card--purple:hover { box-shadow: 0 18px 48px rgba(135,61,187,.22); }
.combat-card--gold:hover { box-shadow: 0 18px 48px rgba(216,166,58,.2); }
.swipe-hint { margin: 12px 0 0; color: #8e8980; font-size: .78rem; text-align: center; }

/* World */
.world { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.world__media, .world__veil { position: absolute; inset: 0; }
.world__media { z-index: -3; }
.world__media img { width: 100%; height: 100%; object-fit: cover; }
.world__veil { z-index: -2; background: linear-gradient(90deg, rgba(3,7,13,.98), rgba(3,7,13,.76) 55%, rgba(3,7,13,.2)), linear-gradient(180deg, #05070b, transparent 20%, transparent 80%, #05070b); }
.world__content { max-width: 710px; margin-left: 0; padding-block: 98px; }
.world__content h2 { margin-top: 8px; }
.world__content p { max-width: 650px; margin: 18px 0 0; color: #c2bdb2; font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 23px; color: var(--gold-light); font-family: var(--heading); font-size: .83rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.text-link img { width: 21px; transition: transform var(--ease); }
.text-link:hover img { transform: translateX(5px); }

/* Download */
.download { overflow: hidden; background: radial-gradient(circle at 50% 4%, rgba(122,16,11,.25), transparent 35%), url('/assets/images/decor/dark-texture.webp') center/cover, #05070b; }
.download__dragon { position: absolute; bottom: 0; z-index: 0; width: min(34vw, 500px); height: 330px; opacity: .38; background-repeat: no-repeat; background-size: contain; pointer-events: none; }
.download__dragon--left { left: 0; background-image: url('/assets/images/decor/dragon-left.webp'); background-position: left bottom; }
.download__dragon--right { right: 0; background-image: url('/assets/images/decor/dragon-right.webp'); background-position: right bottom; }
.download .container { position: relative; z-index: 1; }
.download-panel { display: grid; gap: 28px; padding: 26px; border: 1px solid rgba(216,166,58,.48); border-radius: 15px; background: linear-gradient(135deg, rgba(9,18,31,.95), rgba(4,6,10,.97)); box-shadow: var(--shadow); }
.install-steps { display: grid; gap: 12px; }
.install-steps article { display: flex; gap: 13px; padding: 14px; border: 1px solid rgba(216,166,58,.14); border-radius: 9px; background: rgba(255,255,255,.018); }
.install-steps article > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: var(--heading); font-size: .72rem; font-weight: 800; }
.install-steps h3 { margin: 0; font-family: var(--heading); font-size: .9rem; text-transform: uppercase; }
.install-steps p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.download-box { align-self: center; padding: 24px; border: 1px solid rgba(216,166,58,.25); border-radius: 12px; background: radial-gradient(circle at 50% 0%, rgba(216,166,58,.12), transparent 54%), rgba(2,5,9,.74); text-align: center; }
.download-box__emblem { display: block; width: min(250px, 100%); height: auto; margin: 0 auto 15px; }
.download-box__emblem img { display: block; width: 100%; height: auto; }
.download-box__label { margin: 0; color: #aaa49a; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.download-box h3 { margin: 2px 0 18px; color: var(--gold-light); font-family: var(--heading); font-size: 1.3rem; }
.btn--download { width: 100%; min-height: 62px; font-size: 1rem; }
.download-box small { display: block; margin: 10px 0 17px; color: #89857e; font-size: .74rem; }
.security-note { display: flex; align-items: flex-start; gap: 10px; max-width: 790px; margin: 20px auto 0; color: #a9a49b; font-size: .8rem; }
.security-note img { width: 26px; flex: 0 0 auto; }
.security-note p { margin: 0; }
.security-note strong { color: var(--gold-light); }

/* Community */
.community { background: linear-gradient(180deg, #05070b, #07101c); }
.community__grid { display: grid; gap: 28px; }
.community__copy h2 { margin-top: 8px; }
.community__copy > p { max-width: 630px; margin: 15px 0 0; color: var(--muted); }
.community__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-button { min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid rgba(216,166,58,.28); border-radius: 7px; color: #e9e3d6; background: rgba(255,255,255,.025); font-size: .83rem; font-weight: 700; transition: transform var(--ease), border-color var(--ease), background var(--ease); }
.social-button:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(216,166,58,.07); }
.social-button img { width: 22px; }
.server-card { padding: 24px; border: 1px solid rgba(216,166,58,.4); border-radius: 13px; background: linear-gradient(145deg, rgba(11,24,42,.86), rgba(4,7,11,.96)); box-shadow: var(--shadow); }
.server-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid rgba(216,166,58,.16); }
.server-card__header span { color: #99948a; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.server-card__header h3 { margin: 3px 0 0; font-family: var(--heading); font-size: 1.05rem; }
.server-state { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: .76rem; }
.server-state.is-offline { color: #ef6b5b; }
.server-state.is-offline .live-dot { background: #ef6b5b; box-shadow: 0 0 12px rgba(239,107,91,.8); }
.server-card dl { margin: 16px 0 0; }
.server-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.server-card dt { color: #9f9a91; font-size: .82rem; }
.server-card dd { margin: 0; color: #e8e2d6; font-family: var(--heading); font-size: .82rem; font-weight: 700; }
.server-card__updated { margin: 13px 0 0; color: #77736c; font-size: .7rem; }

/* Footer */
.site-footer { border-top: 1px solid rgba(216,166,58,.25); background: #030508; }
.footer-grid { display: grid; gap: 30px; padding-block: 50px; }
.footer-brand img { width: 180px; height: 86px; object-fit: cover; }
.footer-brand p { max-width: 350px; margin: 12px 0 0; color: #a19c93; font-size: .85rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin: 0 0 4px; color: var(--gold-light); font-family: var(--heading); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: #9e9a91; font-size: .82rem; }
.footer-column a:hover { color: var(--gold-light); }
.footer-online { display: inline-flex; align-items: center; gap: 7px; }
.footer-online .live-dot { width: 7px; height: 7px; }
.footer-bottom { border-top: 1px solid rgba(216,166,58,.14); }
.footer-bottom__inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #77736c; font-size: .75rem; }
.footer-bottom__inner p { margin: 0; }
.footer-bottom button { width: 36px; height: 36px; border: 1px solid rgba(216,166,58,.3); border-radius: 6px; color: var(--gold-light); background: rgba(255,255,255,.025); cursor: pointer; }

/* Mobile fixed action */
.mobile-action-bar { position: fixed; z-index: 1050; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid rgba(216,166,58,.28); background: rgba(3,5,8,.96); backdrop-filter: blur(12px); }
.mobile-action-bar a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff1c9; font-family: var(--heading); font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.mobile-action-bar a:first-child { border-right: 1px solid rgba(216,166,58,.22); color: var(--gold-light); }
.mobile-action-bar img { width: 19px; }

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes ember-drift { from { transform: translate3d(0,20px,0); } to { transform: translate3d(-40px,-55px,0); } }
@keyframes scroll-cue { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(15px); opacity: 1; } }

/* Small phones */
@media (max-width: 420px) {
  .announcement__item { padding-right: 40px; }
  .hero__logo { width: 92vw; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 3.45rem); }
  .hero__stats { gap: 6px; }
  .hero__stats div { padding: 8px 3px; }
  .hero__stats strong { font-size: .83rem; }
  .world-status__tabs { grid-template-columns: 1fr; }
  .world-status__tab { border-right: 0; border-bottom: 1px solid rgba(216,166,58,.16); }
  .world-status__tab:last-child { border-bottom: 0; }
  .clan-status__card-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .community__buttons { display: grid; }
}

/* Mobile */
@media (max-width: 700px) {
  :root { --header-h: 68px; --announce-h: 32px; }
  body { padding-bottom: 62px; }
  .brand { width: 132px; }
  .brand img { height: 62px; }
  .hero { min-height: 930px; padding-top: calc(var(--announce-h) + var(--header-h) + 22px); }
  .hero__media img { object-position: center top; }
  .hero__overlay { background: linear-gradient(180deg, rgba(1,4,9,.04), rgba(1,4,9,.22) 38%, rgba(1,4,9,.62) 72%, #05070b 100%); }
  .hero__content { padding-top: 70px; }
  .hero__logo { margin-bottom: 5px; }
  .hero__lead { max-width: 560px; }
  .section { padding: 78px 0; }
  .world { min-height: 610px; }
  .world__veil { background: linear-gradient(180deg, rgba(3,7,13,.9), rgba(3,7,13,.62), #05070b); }
  .world__content { padding-block: 84px; text-align: center; }
  .world__content p { margin-inline: auto; }
  .download__dragon { opacity: .2; width: 58vw; }
  .footer-bottom__inner { padding-block: 15px; }
}

/* Tablet */
@media (min-width: 520px) {
  .hero__actions { flex-direction: row; justify-content: center; }
  .hero__actions .btn { min-width: 230px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 701px) {
  .mobile-action-bar { display: none; }
  .hero__content { padding-top: 40px; }
  .combat-scroller { grid-auto-columns: minmax(260px, 42vw); }
  .community__grid { grid-template-columns: 1.25fr .75fr; align-items: center; }
}

@media (min-width: 820px) {
  :root { --header-h: 84px; }
  .section { padding: 112px 0; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .download-panel { grid-template-columns: 1.25fr .75fr; gap: 40px; padding: 40px; }
  .footer-grid { grid-template-columns: 1.35fr repeat(3,.72fr); }
  .combat-scroller { grid-auto-columns: minmax(250px, 31vw); }
  .swipe-hint { display: none; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; inset: auto; flex-direction: row; justify-content: flex-end; gap: 1px; padding: 0; opacity: 1; visibility: visible; transform: none; background: none; }
  .main-nav > a:not(.nav-account) { padding: 12px 9px; font-size: .7rem; }
  .nav-account { margin: 0 0 0 9px; }
  .brand { width: 162px; }
  .brand img { height: 76px; }
  .combat-scroller { grid-auto-flow: initial; grid-template-columns: repeat(5, minmax(0,1fr)); overflow: visible; gap: 9px; cursor: default; }
  .combat-card { aspect-ratio: .93 / 1; }
  .combat-card img { object-fit: cover; }
}

@media (min-width: 1240px) {
  .main-nav > a:not(.nav-account) { padding-inline: 12px; font-size: .74rem; }
  .hero__content { width: 860px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .feature-card, .combat-card, .download-panel, .server-card { border: 1px solid CanvasText; }
}
