:root {
  --ink: #090806;
  --ink-soft: #11100d;
  --panel: rgba(17, 14, 10, .92);
  --panel-2: rgba(29, 23, 15, .94);
  --line: rgba(219, 159, 51, .34);
  --line-bright: rgba(255, 199, 87, .78);
  --gold: #e5a936;
  --gold-light: #ffe09a;
  --gold-dark: #8f5410;
  --cream: #f5e7c4;
  --muted: #b9aa8f;
  --red: #b33a26;
  --frost: #54bff0;
  --sand: #d8a32f;
  --hell: #ff6348;
  --neutral: #b9b3a8;
  --green: #56d58c;
  --shadow: 0 22px 80px rgba(0, 0, 0, .48);
  --max: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(194, 112, 25, .2), transparent 35rem),
    linear-gradient(180deg, #0b0906 0%, #050504 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  border: 1px solid rgba(229, 169, 54, .18);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, .55);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 42px 42px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.site-shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-main { min-height: 70vh; overflow: hidden; }
.is-ar body { letter-spacing: 0; }
.is-ar .page-copy, .is-ar .section-heading, .is-ar .event-card, .is-ar .info-card, .is-ar .update-card, .is-ar .safe-card, .is-ar .download-card { text-align: right; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 9px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 7, 5, .91);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.brand img { width: 72px; height: 52px; object-fit: cover; object-position: center; border-radius: 4px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: Georgia, serif; color: var(--gold-light); font-size: 1.45rem; letter-spacing: .12em; }
.brand small { margin-top: 6px; color: #8f8168; font-size: .58rem; letter-spacing: .13em; }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 3px; }
.site-nav a {
  position: relative;
  padding: 11px 12px;
  color: #bcb09a;
  font-weight: 700;
  font-size: .9rem;
  transition: color .2s ease, background .2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-light); background: rgba(229,169,54,.06); }
.site-nav a.active::after, .site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-toggle, .nav-toggle {
  color: var(--gold-light);
  background: #18130d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
}
.nav-toggle { display: none; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: var(--gold-light);
  background: rgba(20, 16, 10, .9);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.28);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.button-primary { color: #201204; background: linear-gradient(180deg, #ffdf7e, #c9871d 58%, #93530b); text-shadow: 0 1px rgba(255,255,255,.4); }
.button-secondary { background: linear-gradient(180deg, rgba(74,32,18,.95), rgba(31,17,11,.98)); }
.button.compact { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.button.disabled, .button[aria-disabled="true"] { pointer-events: none; filter: grayscale(1); opacity: .45; }

.hero-section {
  position: relative;
  min-height: min(820px, calc(100vh - 82px));
  display: grid;
  align-items: center;
  background: url("assets/images/hero-bg.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4,4,3,.95) 0%, rgba(4,4,3,.58) 42%, rgba(4,4,3,.15) 64%, rgba(4,4,3,.7) 100%), linear-gradient(0deg, #080705 0%, transparent 35%);
}
.hero-content { width: min(660px, 58%); padding-block: 90px 130px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-content h1, .page-hero h1 {
  margin: 18px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: .9;
  color: var(--gold-light);
  text-shadow: 0 4px 0 #4b2507, 0 0 45px rgba(235,151,40,.25);
}
.hero-content h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2.2rem); color: white; }
.hero-content p { max-width: 610px; margin: 22px 0 28px; color: #d4c8b4; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.server-status, .meta-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(7,6,5,.82); color: var(--muted); font-weight: 700; font-size: .9rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a1773a; box-shadow: 0 0 0 4px rgba(161,119,58,.12); }
.server-status.online .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(86,213,140,.12), 0 0 14px rgba(86,213,140,.7); }

.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent), #080705; border-block: 1px solid rgba(229,169,54,.08); }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { margin: 5px 0 10px; color: var(--gold-light); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.kingdom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kingdom-card {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.kingdom-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,3,3,.98), rgba(3,3,3,.12) 76%); }
.kingdom-card::after { content: ""; position: absolute; inset: 8px; z-index: -1; border: 1px solid rgba(255,223,154,.2); border-radius: 9px; }
.kingdom-card.sand { background-image: url("assets/images/kingdoms/sand-bg.jpg"); }
.kingdom-card.frost { background-image: url("assets/images/kingdoms/frost-bg.jpg"); }
.kingdom-card.hell { background-image: url("assets/images/kingdoms/hell-bg.jpg"); }
.kingdom-copy { width: 100%; padding: 26px; display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 16px; }
.kingdom-copy img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 14px #000); }
.kingdom-copy h3 { margin: 0 0 4px; font: 700 1.75rem Georgia, serif; }
.kingdom-copy p { margin: 0; color: #c8bda9; }

.feature-grid, .info-grid, .download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .info-card, .download-card, .safe-card, .update-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32,25,17,.95), rgba(10,9,7,.98));
  box-shadow: 0 16px 44px rgba(0,0,0,.3);
}
.feature-card { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; isolation: isolate; }
.feature-card::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(0deg,#090806 8%,rgba(9,8,6,.15)); }
.feature-card.world { background-image: url("assets/images/world-map.webp"); }
.feature-card.castle { background-image: url("assets/images/castle.jpg"); }
.feature-card.tech { background-image: url("assets/images/tech.jpg"); }
.feature-card h3, .info-card h2, .download-card h2, .update-card h2 { margin: 0 0 8px; color: var(--gold-light); font-family: Georgia, serif; }
.feature-card p, .info-card p, .download-card p, .update-card p, .safe-card p { margin: 0; color: var(--muted); }

.cta-section { padding: 82px 0; text-align: center; background: radial-gradient(circle, rgba(163,76,22,.24), transparent 60%); }
.cta-panel { padding: 46px 26px; border: 1px solid var(--line-bright); background: linear-gradient(135deg, rgba(57,27,11,.9), rgba(10,8,6,.98)); box-shadow: var(--shadow); }
.cta-panel h2 { margin: 0 0 8px; font: 700 clamp(2rem,4vw,3.4rem) Georgia,serif; color: var(--gold-light); }
.cta-panel p { margin: 0 auto 24px; max-width: 700px; color: var(--muted); }

.page-hero { position: relative; padding: 86px 0 54px; text-align: center; border-bottom: 1px solid var(--line); background: linear-gradient(0deg,#080705,rgba(8,7,5,.3)), url("assets/images/world-map.webp") center / cover; }
.page-hero h1 { font-size: clamp(2.8rem,6vw,5.5rem); margin: 0 0 10px; }
.page-hero p { max-width: 720px; margin: auto; color: #d0c1a9; }
.is-ar .page-hero .site-shell { direction: rtl; unicode-bidi: plaintext; }
.page-copy { max-width: 760px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,11,8,.9); }
.filter-chip { padding: 9px 20px; border: 1px solid rgba(229,169,54,.24); border-radius: 999px; color: var(--muted); background: #15110c; cursor: pointer; font-weight: 800; }
.filter-chip:hover, .filter-chip.active { color: #201204; border-color: var(--gold-light); background: linear-gradient(#ffe08c,#bd7816); }
.heroes-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.hero-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0b0907; transition: transform .25s ease, border-color .25s ease; }
.hero-card:hover { transform: translateY(-6px); border-color: var(--line-bright); }
.hero-portrait { position: relative; aspect-ratio: 1; overflow: hidden; }
.hero-portrait::after { content:""; position:absolute; inset:auto 0 0; height:45%; background:linear-gradient(transparent,#0b0907); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { padding: 14px; }
.hero-card h2 { margin: 3px 0 12px; font: 700 1.45rem Georgia,serif; color: var(--gold-light); }
.realm-label, .status-pill { display:inline-flex; padding:3px 8px; border:1px solid currentColor; border-radius:999px; color:var(--neutral); font-size:.72rem; font-weight:800; }
.realm-frost .realm-label { color:var(--frost); } .realm-sand .realm-label{color:var(--sand);} .realm-hell .realm-label{color:var(--hell);}
.hero-card dl { margin: 0; display: grid; gap: 8px; }
.hero-card dl div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 7px; }
.hero-card dt { color: var(--muted); font-size: .76rem; } .hero-card dd { margin:0; color:white; font-size:.82rem; font-weight:800; }

.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.event-card { display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: center; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,#1b160f,#090806); }
.event-icon { width: 100px; height: 100px; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle,rgba(229,169,54,.18),transparent 68%); }
.event-icon img { width: 94px; height:94px; object-fit:contain; filter:drop-shadow(0 10px 12px #000); }
.event-card h2 { margin:6px 0 4px; font:700 1.35rem Georgia,serif; color:var(--gold-light); }
.event-card p { margin:0; color:var(--muted); font-size:.9rem; }
.event-card .text-link { grid-column:1/-1; color:var(--gold); border-top:1px solid rgba(229,169,54,.14); padding-top:9px; font-weight:800; }
.status-pill { color:var(--green); }
.status-pill.upcoming { color:var(--gold); }
.event-time { display:block; margin-top:9px; color:var(--gold); font-size:.75rem; }

.live-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:18px; padding:14px; border:1px solid var(--line); border-radius:12px; background:rgba(13,11,8,.82); }
.live-toolbar label { display:grid; gap:6px; min-width:190px; color:var(--muted); font-size:.78rem; font-weight:800; }
.live-toolbar select { min-height:42px; padding:8px 36px 8px 12px; color:var(--text); border:1px solid var(--line-bright); border-radius:8px; background:#110e0a; font:inherit; }
.live-toolbar select:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.live-toolbar small { flex:1 1 240px; color:#e5b75d; }
.live-rankings { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.ranking-row { display:grid; grid-template-columns:50px minmax(150px,1fr) minmax(90px,.65fr) 80px 100px; align-items:center; gap:12px; min-height:52px; padding:8px 16px; border-top:1px solid rgba(255,255,255,.06); }
.ranking-row:first-child { border-top:0; }
.ranking-row strong { color:var(--gold-light); }
.ranking-head { min-height:44px; color:var(--muted); background:rgba(229,169,54,.08); font-size:.76rem; font-weight:800; text-transform:uppercase; }

.rank-showcase { display:grid; grid-template-columns:1.2fr .8fr; gap:20px; align-items:stretch; }
.rank-visual { min-height:470px; padding:34px; display:flex; flex-direction:column; justify-content:flex-end; background:linear-gradient(0deg,rgba(5,5,4,.98),rgba(5,5,4,.18)),url("assets/images/world-map.webp") center/cover; border:1px solid var(--line); border-radius:14px; }
.rank-visual h2 { margin:0; color:var(--gold-light); font:700 2.2rem Georgia,serif; }
.rank-visual p { color:var(--muted); max-width:600px; }
.rank-types { display:grid; gap:12px; }
.rank-type { padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.rank-type strong { display:block; color:var(--gold-light); font-size:1.1rem; }.rank-type span{color:var(--muted);font-size:.9rem;}

.updates-list { display:grid; gap:18px; }
.update-card { display:grid; grid-template-columns:150px 1fr; align-items:center; gap:24px; padding:0; }
.update-card img { width:150px; height:150px; object-fit:cover; }
.update-card > div { padding:24px 24px 24px 0; }
.is-ar .update-card > div { padding:24px 0 24px 24px; }
.update-card time { color:var(--gold); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }

.safe-layout { display:grid; grid-template-columns:1.15fr .85fr; gap:22px; }
.safe-card.highlight { border-color:var(--line-bright); background:linear-gradient(135deg,rgba(81,38,13,.88),rgba(12,9,6,.98)); }
.safe-card h2 { margin-top:0; color:var(--gold-light); font:700 2rem Georgia,serif; }
.check-list { list-style:none; padding:0; margin:20px 0; display:grid; gap:10px; }
.check-list li { padding:10px 12px; border:1px solid rgba(229,169,54,.14); background:rgba(0,0,0,.25); }
.check-list li::before { content:"✓"; color:var(--green); font-weight:900; margin-right:10px; }.is-ar .check-list li::before{margin:0 0 0 10px;}

.download-card { text-align:center; min-height:330px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.platform-icon { width:76px; height:76px; display:grid; place-items:center; margin-bottom:18px; border:1px solid var(--line-bright); border-radius:20px; color:var(--gold-light); background:radial-gradient(circle,rgba(229,169,54,.25),#15100a); font-size:2.2rem; }
.download-card .button { margin-top:20px; }
.download-state { min-height:48px; color:var(--muted); font-size:.87rem; }

/* Official account and recharge center */
[hidden] { display: none !important; }
.account-hero, .recharge-hero { padding-block: 66px 42px; }
.account-section, .recharge-section { padding-top: 44px; }
.auth-shell { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.72fr); gap:22px; align-items:stretch; }
.auth-panel, .account-security, .account-summary, .recharge-auth-required, .recharge-dashboard {
  border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,rgba(30,23,15,.97),rgba(8,7,5,.99)); box-shadow:var(--shadow);
}
.is-ar .auth-panel,
.is-ar .account-security,
.is-ar .account-summary,
.is-ar .recharge-auth-required,
.is-ar .recharge-dashboard { direction:rtl; }
.auth-panel { overflow:hidden; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); background:#0c0a07; }
.auth-tab { min-height:58px; border:0; border-right:1px solid rgba(229,169,54,.13); color:#95866f; background:transparent; cursor:pointer; font-weight:900; letter-spacing:.035em; }
.auth-tab:hover { color:var(--gold-light); background:rgba(229,169,54,.06); }
.auth-tab.active { color:#1d1204; background:linear-gradient(180deg,#ffe08d,#c88216); box-shadow:inset 0 -3px 0 #7c4307; }
.auth-form { display:grid; gap:16px; padding:30px clamp(22px,4vw,46px) 24px; }
.form-heading h2, .account-security h2, .account-summary h2, .recharge-auth-required h2, .recharge-title-row h2 { margin:6px 0 0; color:var(--gold-light); font:700 clamp(1.65rem,3vw,2.35rem) Georgia,serif; }
.auth-form label { display:grid; gap:7px; color:#e8d8b9; font-size:.84rem; font-weight:800; }
.auth-form input, .character-picker select {
  width:100%; min-height:50px; padding:0 14px; border:1px solid rgba(229,169,54,.3); border-radius:9px; outline:none; color:#fff7e7; background:#090806; font:inherit;
}
.auth-form input:focus, .character-picker select:focus { border-color:var(--gold-light); box-shadow:0 0 0 3px rgba(229,169,54,.12); }
.auth-submit { width:100%; min-height:52px; margin-top:2px; }
.auth-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 18px; }
.text-button { padding:4px 0; border:0; color:var(--gold); background:transparent; cursor:pointer; font:700 .77rem inherit; }
.text-button:hover { color:var(--gold-light); text-decoration:underline; }
.form-hint { margin:-4px 0 0; color:#988a74; font-size:.77rem; }
.form-message { margin:16px 24px 24px; padding:13px 15px; border:1px solid rgba(93,174,255,.38); border-radius:10px; color:#a9d7ff; background:rgba(21,72,111,.25); }
.form-message.success { border-color:rgba(75,221,128,.4); color:#8df5b4; background:rgba(15,91,48,.28); }
.form-message.warning { border-color:rgba(255,190,68,.42); color:#ffda8e; background:rgba(122,73,8,.3); }
.form-message.error { border-color:rgba(255,91,73,.48); color:#ffaaa0; background:rgba(126,26,20,.3); }
.account-security { padding:38px 34px; border-color:var(--line-bright); background:radial-gradient(circle at 50% 0,rgba(191,112,22,.22),transparent 44%),linear-gradient(145deg,#1e160e,#080705); }
.security-emblem, .account-avatar { width:76px; height:76px; display:grid; place-items:center; margin-bottom:22px; border:1px solid #f1be56; clip-path:polygon(50% 0,92% 16%,84% 77%,50% 100%,16% 77%,8% 16%); color:#160c03; background:linear-gradient(150deg,#ffe18a,#a95c0b); font:900 2.1rem Georgia,serif; filter:drop-shadow(0 10px 14px #000); }
.account-security p, .recharge-auth-required p, .recharge-title-row p { color:var(--muted); }
.security-list { display:grid; gap:10px; margin:24px 0 0; padding:0; list-style:none; }
.security-list li { padding:11px 13px; border:1px solid rgba(229,169,54,.14); background:rgba(0,0,0,.25); color:#d4c3a7; }
.security-list li::before { content:"✓"; margin-right:9px; color:var(--green); font-weight:900; }
.is-ar .security-list li::before { margin:0 0 0 9px; }
.account-summary { display:grid; grid-template-columns:auto 1fr auto; gap:24px; align-items:center; padding:32px; border-color:var(--line-bright); }
.account-summary .account-avatar { margin:0; }
.account-summary p { margin:4px 0 0; color:var(--muted); }
.account-summary-actions { display:flex; flex-wrap:wrap; gap:10px; }

.recharge-auth-required { max-width:680px; margin:auto; padding:44px; text-align:center; border-color:var(--line-bright); }
.recharge-auth-required .security-emblem { margin:0 auto 22px; }
.recharge-auth-required .button { margin-top:16px; }
.recharge-dashboard { padding:18px; }
.recharge-account-bar { display:grid; grid-template-columns:minmax(170px,.7fr) minmax(280px,1.2fr) auto; gap:18px; align-items:end; padding:18px; border:1px solid rgba(229,169,54,.25); border-radius:12px; background:rgba(0,0,0,.32); }
.recharge-account-bar strong { display:block; margin-top:5px; color:var(--gold-light); font-size:1.2rem; }
.character-picker { display:grid; gap:7px; color:#d5c29e; font-size:.75rem; font-weight:900; }
.recharge-dashboard > .form-message { margin:14px 0; }
.recharge-title-row { display:grid; grid-template-columns:260px 1fr; gap:26px; align-items:center; margin:18px 0; padding:22px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(115deg,rgba(74,38,9,.75),rgba(10,8,6,.96)); }
.balance-card { display:grid; gap:7px; padding:18px; border:1px solid var(--line-bright); border-radius:11px; text-align:center; background:radial-gradient(circle,rgba(229,169,54,.2),rgba(0,0,0,.25)); }
.balance-card > span { color:#bba783; font-size:.78rem; font-weight:900; }
.balance-card strong { color:#ffe18a; font:900 2rem Georgia,serif; }
.balance-card small { color:var(--gold); font:800 .72rem inherit; }
.product-filters { display:flex; flex-wrap:wrap; gap:9px; margin:18px 0; }
.recharge-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.recharge-product { position:relative; min-width:0; display:flex; flex-direction:column; align-items:center; gap:9px; padding:18px 14px 14px; overflow:hidden; border:1px solid var(--line); border-radius:13px; text-align:center; background:linear-gradient(160deg,#261b0e,#090806 68%); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.recharge-product:hover { transform:translateY(-5px); border-color:var(--line-bright); box-shadow:0 18px 34px rgba(0,0,0,.38),0 0 22px rgba(229,169,54,.09); }
.recharge-product.featured { border-color:#e8b243; background:radial-gradient(circle at 50% 18%,rgba(235,158,28,.25),transparent 30%),linear-gradient(160deg,#35210b,#090806 70%); }
.product-ribbon { position:absolute; top:11px; left:-34px; width:145px; padding:5px 0; transform:rotate(-35deg); color:#241201; background:linear-gradient(#ffe086,#c2760e); font-size:.62rem; font-weight:900; box-shadow:0 4px 12px #000; z-index:2; }
.product-visual { width:112px; height:105px; display:grid; place-items:center; margin-top:7px; border-radius:50%; background:radial-gradient(circle,rgba(247,187,64,.25),transparent 68%); }
.product-visual img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 10px 11px #000); }
.product-visual span { font-size:3.6rem; }
.recharge-product h3 { min-height:42px; margin:0; color:var(--gold-light); font:700 1.1rem Georgia,serif; }
.product-rewards { min-height:62px; display:flex; flex-direction:column; gap:4px; color:#bcae98; font-size:.72rem; }
.product-rewards b { color:#fff0c6; font-size:.9rem; }
.product-price { margin-top:auto; color:#ffe18a; font:900 1.35rem Georgia,serif; }
.product-timer { color:#ffca65; font-size:.7rem; font-weight:900; }
.product-secure { color:#776d5c; font-size:.62rem; }
.product-buy { width:100%; min-height:42px; padding:9px 12px; }
.product-buy:disabled { cursor:not-allowed; filter:grayscale(.75); opacity:.55; }
.transaction-panel { margin-top:26px; padding:22px; border:1px solid var(--line); border-radius:12px; background:rgba(7,6,5,.72); }
.compact-heading { margin-bottom:15px; }
.compact-heading h2 { margin:3px 0 0; color:var(--gold-light); font:700 1.55rem Georgia,serif; }
.transaction-list { display:grid; gap:8px; }
.transaction-row { display:grid; grid-template-columns:1.4fr .65fr .8fr 1fr; gap:12px; align-items:center; padding:12px 14px; border:1px solid rgba(229,169,54,.14); border-radius:8px; color:#bbaa91; background:rgba(255,255,255,.025); font-size:.8rem; }
.transaction-row strong { color:#f1dfbd; overflow-wrap:anywhere; }
.transaction-status { color:#8bbfff; }.status-completed,.status-paid,.status-succeeded{color:#75e59b}.status-failed,.status-cancelled{color:#ff8375}
.empty-state { margin:0; padding:18px; color:#928570; text-align:center; }

.site-footer { width:min(var(--max),calc(100% - 40px)); margin:auto; padding:44px 0 30px; display:grid; grid-template-columns:1fr auto; gap:18px; align-items:end; border-top:1px solid var(--line); }
.footer-brand { display:flex; flex-direction:column; }.footer-brand strong{font:700 2rem Georgia,serif;color:var(--gold-light);letter-spacing:.1em}.footer-brand span{color:var(--muted)}
.site-footer nav { display:flex; flex-wrap:wrap; gap:15px; justify-content:flex-end; }.site-footer nav a{color:var(--muted)}.site-footer nav a:hover{color:var(--gold)}
.site-footer p { grid-column:1/-1; margin:15px 0 0; padding-top:15px; border-top:1px solid rgba(229,169,54,.1); color:#776d5c; font-size:.8rem; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .55s ease,transform .55s ease; }.reveal.visible{opacity:1;transform:none;}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .site-nav { display:none; position:absolute; top:76px; left:20px; right:20px; flex-direction:column; align-items:stretch; padding:12px; border:1px solid var(--line); background:rgba(8,7,5,.98); box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }.site-nav a{text-align:center;}
  .header-actions { justify-self:end; }
  .heroes-grid { grid-template-columns:repeat(4,1fr); }
  .events-grid { grid-template-columns:repeat(2,1fr); }
  .recharge-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .site-shell { width:min(100% - 24px,var(--max)); }
  .site-header { min-height:70px; padding-inline:12px; gap:8px; }
  .brand { min-width:0; }.brand img{width:58px;height:42px}.brand span{display:none}
  .nav-toggle span { display:none; }.header-actions .button{display:none}
  .hero-section { min-height:720px; align-items:end; background-position:62% center; }
  .hero-section::before { background:linear-gradient(0deg,#080705 5%,rgba(4,4,3,.62) 64%,rgba(4,4,3,.15)); }
  .hero-content { width:100%; padding-block:240px 80px; text-align:center; }.hero-content p{margin-inline:auto}.hero-actions,.hero-meta{justify-content:center}
  .kingdom-grid,.feature-grid,.info-grid,.download-grid { grid-template-columns:1fr; }
  .kingdom-card { min-height:380px; }
  .heroes-grid { grid-template-columns:repeat(3,1fr); }
  .rank-showcase,.safe-layout { grid-template-columns:1fr; }
  .rank-visual{min-height:380px}.site-footer{grid-template-columns:1fr;text-align:center}.site-footer nav{justify-content:center}
  .auth-shell { grid-template-columns:1fr; }
  .account-security { order:-1; }
  .recharge-account-bar { grid-template-columns:1fr 1fr; }
  .recharge-account-bar .button { grid-column:1/-1; justify-self:end; }
  .recharge-title-row { grid-template-columns:1fr; }
  .recharge-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .transaction-row { grid-template-columns:1fr 1fr; }
}

@media (max-width: 580px) {
  .section { padding:58px 0; }.page-hero{padding:60px 0 40px}
  .page-hero h1{width:100%;max-width:100%;font-size:1.85rem;line-height:1.15;overflow-wrap:anywhere;word-break:break-word}
  .page-hero p{width:78%;max-width:100%;padding-inline:4px;font-size:.84rem;line-height:1.7;overflow-wrap:anywhere;word-break:break-word}
  .page-hero .eyebrow{max-width:100%;font-size:.78rem;letter-spacing:.08em}
  .hero-content h1{font-size:3.8rem}.hero-content h2{font-size:1.22rem}
  .heroes-grid { grid-template-columns:minmax(0,1fr); gap:12px; }.hero-card{display:grid;grid-template-columns:42% 1fr}.hero-portrait{height:100%;min-height:190px}.hero-card-body{padding:14px}.hero-card h2{font-size:1.3rem}.hero-card dd{overflow-wrap:anywhere}
  .events-grid { grid-template-columns:1fr; }.event-card{grid-template-columns:76px 1fr}.event-icon{width:76px;height:76px}.event-icon img{width:72px;height:72px}
  .live-toolbar label{min-width:100%;}.ranking-row{grid-template-columns:28px minmax(100px,1fr) 64px 42px 54px;gap:6px;padding-inline:9px;font-size:.72rem}.ranking-head{font-size:.64rem}
  .update-card{grid-template-columns:1fr}.update-card img{width:100%;height:190px}.update-card>div,.is-ar .update-card>div{padding:20px}
  .site-footer{width:calc(100% - 24px)}
  .account-section,.recharge-section{padding-top:26px}.auth-form{padding-inline:18px}.account-security,.recharge-auth-required{padding:28px 20px}
  .account-summary{grid-template-columns:1fr;text-align:center}.account-summary .account-avatar{margin:auto}.account-summary-actions{justify-content:center}
  .recharge-dashboard{padding:10px}.recharge-account-bar{grid-template-columns:1fr}.recharge-account-bar .button{grid-column:auto;width:100%}
  .recharge-products{grid-template-columns:1fr}.recharge-product{display:grid;grid-template-columns:92px 1fr;grid-template-areas:"visual title" "visual rewards" "price price" "timer timer" "secure secure" "buy buy";text-align:start}.product-visual{grid-area:visual;width:88px;height:88px}.recharge-product h3{grid-area:title;min-height:0}.product-rewards{grid-area:rewards;min-height:0}.product-price{grid-area:price;justify-self:center}.product-timer{grid-area:timer;justify-self:center}.product-secure{grid-area:secure;justify-self:center}.product-buy{grid-area:buy}.transaction-row{grid-template-columns:1fr}
}

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