:root {
  --ink:#17191d;
  --ink-soft:#24272d;
  --paper:#f3f0ea;
  --paper-deep:#e5e0d6;
  --line:#d0c9bd;
  --muted:#706e6a;
  --accent:#7544ad;
  --accent-bright:#9c5ee0;
  --gold:#d6aa51;
  --white:#fff;
  --shell:1180px;
  --shadow:0 18px 45px rgba(0,0,0,.14);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Arial,Helvetica,sans-serif; line-height:1.5; }
body.dialogOpen { overflow:hidden; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
.shell { width:min(var(--shell),calc(100% - 40px)); margin-inline:auto; }
.srOnly { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.skipLink { position:fixed; z-index:999; top:8px; left:8px; transform:translateY(-160%); padding:10px 14px; background:#fff; color:#111; }
.skipLink:focus { transform:none; }

.utilityBar { min-height:34px; background:#0c0d10; color:#9da0a8; font-size:11px; letter-spacing:.05em; text-transform:uppercase; }
.utilityBar__inner { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.utilityBar p { margin:0; }
.utilityBar__status { display:flex; align-items:center; gap:9px; }
.utilityBar__status span:last-child { padding-left:9px; border-left:1px solid #2b2e34; }
.statusDot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#d4a148; box-shadow:0 0 0 3px rgba(212,161,72,.12); }
.statusDot.isOnline { background:#65c583; box-shadow:0 0 0 3px rgba(101,197,131,.12); }
.statusDot.isOffline { background:#d45b5b; box-shadow:0 0 0 3px rgba(212,91,91,.12); }

.mainNav { position:sticky; z-index:50; top:0; background:rgba(18,20,24,.97); border-bottom:1px solid rgba(255,255,255,.08); }
.mainNav__inner { min-height:76px; display:flex; align-items:center; gap:30px; }
.brand { flex:none; }
.brand--word { min-width:158px; display:grid; justify-items:center; gap:5px; line-height:1; text-align:center; }
.brand--word strong { color:#fff; font-family:Georgia,'Times New Roman',serif; font-size:23px; font-weight:600; letter-spacing:.13em; }
.brand--word small { color:var(--accent-bright); font-size:8px; font-weight:900; letter-spacing:.42em; text-transform:uppercase; }
.navLinks { display:flex; align-self:stretch; align-items:center; gap:4px; margin-left:auto; }
.navLinks a { position:relative; height:100%; display:flex; align-items:center; padding:0 13px; color:#c8c9ce; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.navLinks a::after { content:""; position:absolute; right:13px; bottom:0; left:13px; height:3px; transform:scaleX(0); background:var(--accent-bright); transition:transform .2s ease; }
.navLinks a:hover,.navLinks a.isActive { color:#fff; }
.navLinks a:hover::after,.navLinks a.isActive::after { transform:scaleX(1); }
.accountActions { display:flex; align-items:center; gap:10px; }
.textAction { border:0; background:transparent; color:#d7d7da; font-size:11px; font-weight:800; text-transform:uppercase; cursor:pointer; }
.navToggle { display:none; width:43px; height:39px; place-items:center; gap:4px; border:1px solid #3a3c43; background:#1c1e23; cursor:pointer; }
.navToggle span:not(.srOnly) { display:block; width:20px; height:2px; background:#fff; }

.primaryAction,.secondaryAction { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 23px; border:1px solid transparent; font-weight:900; letter-spacing:.035em; text-transform:uppercase; cursor:pointer; transition:transform .2s ease,background .2s ease; }
.primaryAction { background:var(--accent); color:#fff; }
.primaryAction:hover { transform:translateY(-2px); background:var(--accent-bright); }
.primaryAction--small { min-height:38px; padding-inline:15px; font-size:10px; }
.primaryAction--large { min-width:285px; min-height:58px; }
.primaryAction--block { width:100%; }
.secondaryAction { border-color:rgba(255,255,255,.6); background:rgba(9,10,14,.2); color:#fff; }
.secondaryAction:hover { transform:translateY(-2px); background:#fff; color:#17191d; }

.hero { position:relative; min-height:580px; overflow:hidden; background:#111318; color:#fff; }
.hero__backdrop { position:absolute; inset:0; background:linear-gradient(90deg,rgba(10,11,15,.94) 0%,rgba(10,11,15,.72) 42%,rgba(10,11,15,.2) 72%,rgba(10,11,15,.55) 100%),var(--hero-image,url('./assets/sections/hero-characters.jpg')) center/cover no-repeat; }
.hero__backdrop::after { content:""; position:absolute; inset:auto 0 0; height:150px; background:linear-gradient(transparent,#111318); }
.hero__inner { position:relative; min-height:580px; display:grid; grid-template-columns:minmax(0,1fr) 330px; align-items:center; gap:80px; padding-block:72px; }
.hero__copy { max-width:690px; }
.eyebrow { margin:0 0 11px; color:var(--accent-bright); font-size:11px; font-weight:900; letter-spacing:.22em; text-transform:uppercase; }
.hero h1 { max-width:680px; margin:0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(46px,5.3vw,76px); font-weight:500; line-height:.98; letter-spacing:-.035em; }
.hero__lead { max-width:620px; margin:24px 0 30px; color:#d2d4d9; font-size:17px; }
.hero__actions { display:flex; flex-wrap:wrap; gap:12px; }
.heroCard { border-top:4px solid var(--accent-bright); background:rgba(20,22,27,.9); box-shadow:var(--shadow); padding:30px; backdrop-filter:blur(6px); }
.heroCard__label { color:#989ba2; font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.heroCard > strong { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:7px 0 22px; font-family:Georgia,serif; font-size:27px; font-weight:500; }
.heroCard > strong em { color:var(--gold); font-family:Arial,sans-serif; font-size:13px; font-style:normal; }
.heroCard dl { display:grid; gap:0; margin:0; }
.heroCard dl div { display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid rgba(255,255,255,.1); }
.heroCard dt { color:#9699a0; font-size:12px; }
.heroCard dd { margin:0; color:#fff; font-weight:800; }

.quickStrip { position:relative; z-index:2; margin-top:-1px; background:#111318; color:#fff; }
.quickStrip__grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #32353c; border-bottom:1px solid #32353c; }
.quickStrip a,.quickStrip button { min-width:0; min-height:110px; display:flex; align-items:center; gap:18px; padding:24px 30px; border:0; border-right:1px solid #32353c; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.quickStrip > .shell > :last-child { border-right:0; }
.quickStrip a:hover,.quickStrip button:hover { background:#1a1c21; }
.quickStrip a > span,.quickStrip button > span { color:var(--accent-bright); font-family:Georgia,serif; font-size:31px; }
.quickStrip strong,.quickStrip small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.quickStrip strong { font-size:13px; text-transform:uppercase; }
.quickStrip small { margin-top:4px; color:#888b93; font-size:11px; }

.section { padding:86px 0; }
.section--paper { background-color:#15171c; color:#fff; }
.section--dark { background-color:#1a1c21; color:#fff; }
#noticias { background-image:linear-gradient(90deg,rgba(13,15,19,.96) 0%,rgba(13,15,19,.86) 56%,rgba(13,15,19,.62) 100%),var(--news-image,url('./assets/sections/news-classes.jpg')); background-position:center; background-size:cover; background-repeat:no-repeat; }
#servidor { background-image:linear-gradient(90deg,rgba(26,28,33,.97),rgba(26,28,33,.9)),var(--info-image,url('./assets/sections/info-events.jpg')); background-position:center,right center; background-size:auto,cover; background-repeat:no-repeat; }
#ranking { background-image:linear-gradient(90deg,rgba(13,15,19,.96) 0%,rgba(13,15,19,.87) 57%,rgba(13,15,19,.7) 100%),var(--ranking-image,url('./assets/sections/download-castle.jpg')); background-position:center; background-size:cover; background-repeat:no-repeat; }
.sectionHeading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:34px; border-bottom:1px solid var(--line); padding-bottom:18px; }
.sectionHeading h2 { margin:0; font-family:Georgia,serif; font-size:34px; font-weight:500; }
.sectionHeading > span { color:var(--muted); font-size:12px; }
.sectionHeading--light { border-color:#34373d; }
.sectionHeading--light > span { color:#888b92; }
#noticias .sectionHeading,#ranking .sectionHeading { border-color:rgba(255,255,255,.18); }
#noticias .sectionHeading > span,#ranking .sectionHeading > span { color:#b8bac1; }
.contentGrid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:45px; }
.newsList { display:grid; gap:1px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.15); box-shadow:var(--shadow); }
.newsItem { display:grid; grid-template-columns:82px minmax(0,1fr); gap:22px; align-items:center; min-height:116px; padding:22px 25px; background:rgba(20,22,27,.91); backdrop-filter:blur(5px); }
.newsItem time { color:#a7a9b0; font-size:10px; font-weight:900; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
.newsItem time strong { display:block; color:#fff; font-family:Georgia,serif; font-size:27px; font-weight:500; }
.newsItem div { min-width:0; padding-left:22px; border-left:1px solid rgba(255,255,255,.14); }
.newsItem span { color:var(--accent-bright); font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.newsItem h3 { margin:3px 0 5px; overflow:hidden; font-family:Georgia,serif; font-size:19px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
.newsItem p { margin:0; overflow:hidden; color:#b6b8bf; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.serverPanel { align-self:start; padding:29px; background:#202329; color:#fff; box-shadow:var(--shadow); }
.serverPanel h2 { margin:0 0 18px; font-family:Georgia,serif; font-size:27px; font-weight:500; }
.serverPanel__online { display:flex; align-items:center; gap:9px; padding:12px 0; border-block:1px solid #383b42; color:#7cd195; font-size:12px; text-transform:uppercase; }
.serverPanel dl { margin:8px 0 25px; }
.serverPanel dl div { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #34373d; }
.serverPanel dt { color:#9699a0; font-size:11px; }
.serverPanel dd { margin:0; font-size:12px; font-weight:800; }

.featureGrid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:#35383e; border:1px solid #35383e; }
.featureGrid article { min-height:235px; padding:35px; background:#22252a; }
.featureGrid article > span { color:var(--accent-bright); font-family:Georgia,serif; font-size:29px; }
.featureGrid h3 { margin:38px 0 12px; font-family:Georgia,serif; font-size:22px; font-weight:500; }
.featureGrid p { margin:0; color:#a9abb1; font-size:13px; }
.ratesPanel { display:grid; grid-template-columns:repeat(var(--rate-count,5),1fr); margin-top:28px; border:1px solid #34373d; }
.ratesPanel div { padding:23px 20px; border-right:1px solid #34373d; text-align:center; }
.ratesPanel div:last-child { border-right:0; }
.ratesPanel small { display:block; color:#82858d; font-size:9px; font-weight:900; letter-spacing:.14em; }
.ratesPanel strong { display:block; margin-top:7px; color:#fff; font-family:Georgia,serif; font-size:20px; font-weight:500; }

.rankingTabs { display:flex; gap:6px; }
.rankingTabs button { padding:8px 14px; border:1px solid rgba(255,255,255,.25); background:rgba(18,20,24,.68); color:#d2d3d7; font-size:10px; font-weight:900; text-transform:uppercase; cursor:pointer; }
.rankingTabs button.isActive { border-color:var(--accent); background:var(--accent); color:#fff; }
.rankingTableWrap { overflow-x:auto; border:1px solid rgba(255,255,255,.16); background:rgba(16,18,22,.9); box-shadow:var(--shadow); backdrop-filter:blur(5px); }
.rankingTable { width:100%; min-width:650px; border-collapse:collapse; }
.rankingTable th,.rankingTable td { padding:16px 19px; border-bottom:1px solid rgba(255,255,255,.12); text-align:left; }
.rankingTable th { background:rgba(38,41,48,.94); color:#aeb0b7; font-size:9px; letter-spacing:.14em; text-transform:uppercase; }
.rankingTable td { font-size:12px; }
.rankingTable td:first-child { width:60px; color:var(--accent-bright); font-family:Georgia,serif; font-size:18px; }
.rankingTable tr:last-child td { border-bottom:0; }
.playerState { display:inline-flex; align-items:center; gap:7px; color:#8a8781; }
.playerState::before { content:""; width:7px; height:7px; border-radius:50%; background:#aaa; }
.playerState.isOnline { color:#429660; }
.playerState.isOnline::before { background:#58b879; }

.downloadSection { background:linear-gradient(110deg,rgba(61,30,88,.96),rgba(35,27,46,.82)),var(--download-image,url('./assets/sections/download-castle.jpg')) center 42%/cover; color:#fff; }
.downloadSection__inner { min-height:290px; display:flex; align-items:center; justify-content:space-between; gap:60px; padding-block:55px; }
.downloadSection h2 { max-width:680px; margin:0; font-family:Georgia,serif; font-size:39px; font-weight:500; line-height:1.08; }
.downloadSection p:not(.eyebrow) { max-width:650px; margin:15px 0 0; color:#d7cedd; }
.downloadSection .primaryAction { background:#fff; color:#24182e; }
.downloadSection .primaryAction:hover { background:#eee7f4; }

.siteFooter { padding:38px 0; border-top:1px solid #2e3036; background-color:#111318; background-image:linear-gradient(rgba(17,19,24,.94),rgba(17,19,24,.94)),var(--footer-image,none); background-position:center; background-size:cover; color:#858890; }
.siteFooter__grid { display:grid; grid-template-columns:180px 1fr auto; align-items:center; gap:35px; }
.brand--footer { min-width:155px; }
.siteFooter p { margin:0; font-size:11px; }
.siteFooter nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:17px; }
.siteFooter nav a { font-size:10px; font-weight:800; text-transform:uppercase; }
.siteFooter nav a:hover { color:#fff; }
.siteFooter .adminLink { color:var(--accent-bright); }

.accountDialog { width:min(440px,calc(100% - 28px)); max-height:calc(100vh - 28px); overflow:auto; border:0; padding:0; background:transparent; color:var(--ink); }
.accountDialog::backdrop { background:rgba(8,9,12,.82); backdrop-filter:blur(4px); }
.dialogCard { position:relative; display:grid; gap:16px; padding:35px; border-top:4px solid var(--accent); background:#f6f3ed; box-shadow:0 25px 80px rgba(0,0,0,.5); }
.dialogCard h2 { margin:-8px 0 4px; font-family:Georgia,serif; font-size:30px; font-weight:500; }
.dialogCard label { display:grid; gap:6px; color:#5c5a56; font-size:11px; font-weight:800; text-transform:uppercase; }
.dialogCard input { width:100%; height:45px; border:1px solid #c8c1b6; background:#fff; padding:0 13px; color:#222; outline:0; }
.dialogCard input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(117,68,173,.12); }
.dialogClose { position:absolute; top:13px; right:15px; border:0; background:transparent; color:#777; font-size:27px; cursor:pointer; }
.dialogSwitch { border:0; background:transparent; color:var(--accent); font-size:11px; font-weight:800; cursor:pointer; }
.formMessage { min-height:18px; margin:0; color:#a63737; font-size:11px; }
.formMessage.isSuccess { color:#347d4d; }
.captchaLabel span { color:#2c2d30; font-size:12px; text-transform:none; }

@media (max-width:1000px) {
  .mainNav__inner { gap:18px; }
  .brand--word { min-width:142px; }
  .brand--word strong { font-size:20px; }
  .navLinks a { padding-inline:8px; font-size:10px; }
  .hero__inner { grid-template-columns:1fr 285px; gap:35px; }
  .contentGrid { grid-template-columns:minmax(0,1fr) 290px; gap:28px; }
}

@media (max-width:820px) {
  .utilityBar p { display:none; }
  .utilityBar__inner { justify-content:center; }
  .mainNav__inner { min-height:68px; }
  .brand--word { min-width:142px; }
  .navToggle { display:grid; margin-left:auto; }
  .navLinks { position:absolute; top:100%; right:0; left:0; display:none; height:auto; padding:8px 20px 18px; border-top:1px solid #33363c; background:#15171b; }
  .navLinks.isOpen { display:grid; }
  .navLinks a { min-height:44px; padding:0 10px; border-bottom:1px solid #292c31; }
  .navLinks a::after { display:none; }
  .accountActions .textAction { display:none; }
  .hero__inner { grid-template-columns:1fr; gap:35px; }
  .heroCard { max-width:440px; }
  .quickStrip__grid { grid-template-columns:1fr; }
  .quickStrip a,.quickStrip button { min-height:92px; border-right:0; border-bottom:1px solid #32353c; }
  .contentGrid { grid-template-columns:1fr; }
  .serverPanel { width:100%; }
  .featureGrid { grid-template-columns:1fr; }
  .featureGrid article { min-height:0; }
  .featureGrid h3 { margin-top:20px; }
  .ratesPanel { grid-template-columns:repeat(2,1fr); }
  .ratesPanel div { border-bottom:1px solid #34373d; }
  .downloadSection__inner { align-items:flex-start; flex-direction:column; gap:30px; }
  .siteFooter__grid { grid-template-columns:1fr; text-align:center; }
  .brand--footer { margin:auto; }
  .siteFooter nav { justify-content:center; }
  #noticias,#ranking { background-size:cover; background-position:center; }
}

@media (max-width:560px) {
  .shell { width:min(100% - 26px,var(--shell)); }
  .accountActions .primaryAction { display:none; }
  .hero { min-height:620px; }
  .hero__inner { min-height:620px; padding-block:55px; }
  .hero h1 { font-size:43px; }
  .hero__lead { font-size:15px; }
  .hero__actions { display:grid; }
  .heroCard { padding:24px; }
  .section { padding:62px 0; }
  .sectionHeading { align-items:flex-start; flex-direction:column; gap:10px; }
  .sectionHeading h2 { font-size:29px; }
  .newsItem { grid-template-columns:58px minmax(0,1fr); gap:13px; padding:18px 14px; }
  .newsItem div { padding-left:13px; }
  .newsItem h3,.newsItem p { white-space:normal; }
  .ratesPanel { grid-template-columns:1fr; }
  .ratesPanel div { border-right:0; }
  .rankingTabs { width:100%; }
  .rankingTabs button { flex:1; }
  .downloadSection h2 { font-size:31px; }
  .primaryAction--large { width:100%; min-width:0; }
  .dialogCard { padding:31px 22px 25px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}
