/* RF Online - Origin Port: site theme */
:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --panel: #111a2c;
  --panel-2: #16223a;
  --line: #22314f;
  --text: #dfe6f3;
  --muted: #8d9ab3;
  --gold: #e8b24c;
  --gold-2: #ffcf6e;
  --cyan: #45c2ff;
  --ok: #3ddc97;
  --bad: #ff6b6b;
  --bellato: #f0a53a;
  --cora: #c77dff;
  --accretia: #4fc3f7;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --head: 'Rajdhani', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
code { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.strong { font-weight: 600; }
.accent { color: var(--gold); }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 3px; font-size: .85rem; color: var(--cyan); margin-bottom: .6em; font-weight: 600; }
.lead { font-size: 1.12rem; color: #c3cde0; max-width: 720px; }
.inline { display: inline; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem var(--body); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1203; box-shadow: 0 6px 22px rgba(232, 178, 76, .28); }
.btn-primary:hover { color: #1b1203; box-shadow: 0 10px 28px rgba(232, 178, 76, .4); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: #3a4c70; color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: var(--gold-2); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 20, .82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 26px; width: auto; }
.brand-tag { font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--gold); border: 1px solid rgba(232, 178, 76, .45); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a, .nav .linklike { color: #c8d1e3; font-weight: 500; }
.nav a.active, .nav a:hover { color: var(--gold-2); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1b1203; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero.jpg') center/cover no-repeat; transform: scale(1.05); }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(7, 11, 20, .25), rgba(7, 11, 20, .9) 70%), linear-gradient(180deg, rgba(7, 11, 20, .35), var(--bg) 96%); }
.hero-inner { position: relative; padding: 80px 0 70px; }
.hero-logo { width: min(520px, 90%); margin-bottom: 26px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .6)); }
.hero h1 { max-width: 820px; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.status-card { display: inline-flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 20px; border-radius: var(--radius);
  background: rgba(12, 19, 34, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); font-size: .95rem; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-dot.off { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(255, 255, 255, .04); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.page-head { padding: 64px 0 10px; background: radial-gradient(ellipse at 50% -20%, rgba(69, 194, 255, .14), transparent 60%); }
.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: 1fr 1fr; }
.stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card + .card { margin-top: 22px; }
.grid > .card + .card, .two-col > .card + .card { margin-top: 0; }
.feature { transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(232, 178, 76, .5); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem; color: var(--gold-2);
  background: rgba(232, 178, 76, .1); border: 1px solid rgba(232, 178, 76, .3); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }

/* races */
.races { grid-template-columns: repeat(3, 1fr); }
.race { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); min-height: 420px; box-shadow: var(--shadow); }
.race img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s; }
.race:hover img { transform: scale(1.05); }
.race::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 11, 20, .96) 88%); }
.race-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.race-body p { color: #b9c3d8; margin: 0; font-size: .95rem; }
.race-bellato h3 { color: var(--bellato); }
.race-cora h3 { color: var(--cora); }
.race-accretia h3 { color: var(--accretia); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--head);
  color: #1b1203; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

/* forms */
.auth { padding: 64px 0 80px; background: radial-gradient(ellipse at 20% 0%, rgba(232, 178, 76, .09), transparent 55%); }
.auth-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.auth-inner.narrow { grid-template-columns: minmax(0, 460px); justify-content: center; }
.perks { list-style: none; padding: 0; margin: 22px 0; }
.perks li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #c3cde0; }
.perks li::before { content: '\2714'; position: absolute; left: 4px; color: var(--ok); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h1, .form h2 { margin-bottom: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.form small, .hint { color: var(--muted); font-size: .82rem; font-weight: 400; margin-top: -8px; }
.form input[type=text], .form input[type=email], .form input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #2a3b5e; background: #0a1120; color: var(--text); font: 1rem var(--body); transition: border-color .15s, box-shadow .15s; }
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 178, 76, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha img { border-radius: 8px; border: 1px solid var(--line); }
.captcha-input { text-transform: uppercase; letter-spacing: 6px; max-width: 220px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* alerts */
.flashes { margin-top: 18px; }
.alert { padding: 13px 16px; border-radius: 10px; border: 1px solid; margin-bottom: 10px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .4); color: #b9f5da; }
.alert-error { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .45); color: #ffc9c9; }
.alert-info { background: rgba(69, 194, 255, .08); border-color: rgba(69, 194, 255, .35); color: #cdeeff; }

/* account */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat-value { font: 700 2rem var(--head); }
.stat-value.ok { color: var(--ok); }
.stat-value.off { color: var(--bad); }
#security { margin-top: 22px; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.rank { color: var(--muted); font-weight: 600; }
.top1 .rank { color: var(--gold-2); } .top2 .rank { color: #d9e2ef; } .top3 .rank { color: #d99a6c; }
.race-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid; }
.race-tag.bellato { color: var(--bellato); border-color: rgba(240, 165, 58, .45); background: rgba(240, 165, 58, .08); }
.race-tag.cora { color: var(--cora); border-color: rgba(199, 125, 255, .45); background: rgba(199, 125, 255, .08); }
.race-tag.accretia { color: var(--accretia); border-color: rgba(79, 195, 247, .45); background: rgba(79, 195, 247, .08); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: #c8d1e3; }
.tab.active, .tab:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 178, 76, .08); }

/* download */
.download-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.badge { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(69, 194, 255, .1); color: var(--cyan); border: 1px solid rgba(69, 194, 255, .35); }
.numbered { padding-left: 20px; color: #c3cde0; }
.numbered li { margin-bottom: 8px; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); text-align: left; }
.spec th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.spec td:first-child { color: var(--muted); }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.status-line { margin: 16px 0 0; font-weight: 500; }
.narrow-text { max-width: 820px; }
.prose h3 { color: var(--gold-2); margin-top: 1.2em; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: #c3cde0; }

/* footer */
.footer { border-top: 1px solid rgba(255, 255, 255, .06); background: #05080f; padding: 44px 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-logo { height: 22px; width: auto; margin-bottom: 12px; opacity: .85; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c8d1e3; }
.footer-links a:hover { color: var(--gold-2); }
.footer-status { text-align: right; font-weight: 500; }

/* responsive */
@media (max-width: 980px) {
  .features, .races, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .two-col, .auth-inner, .two { grid-template-columns: 1fr; }
  .auth-inner { gap: 28px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0a1120; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav .inline { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
  .nav-sep { display: none; }
  .features, .races, .steps, .stats, .row2 { grid-template-columns: 1fr; }
  .race { min-height: 340px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-status { text-align: left; }
  .hero-inner { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .card { padding: 20px; }
}

/* game guide */
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guide-toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: .9rem; }
.guide-toc a:hover { border-color: var(--gold); }
.flow { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: flow; }
.flow li { flex: 1 1 130px; position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1b1203; font: 700 .8rem/20px var(--head); text-align: center; }
.flow li strong { display: block; color: var(--gold-2); font-family: var(--head); font-size: 1.02rem; line-height: 1.2; }
.flow li span { color: var(--muted); font-size: .82rem; }
.prose ul { color: #c3cde0; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .table td, .prose .table th { padding: 8px 10px; }
[id] { scroll-margin-top: 84px; }
.ico { display: inline-block; width: 32px; height: 32px; vertical-align: middle; border-radius: 6px; margin: 1px 2px 1px 0; background: #0a0f1b; box-shadow: 0 0 0 1px var(--line); }
.flow li { padding-right: 54px; min-height: 60px; }
.flow li .ico { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; margin: 0; }
.holy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.holy strong { margin-right: 10px; color: var(--gold-2); }
.ore { display: inline-block; padding: 0 9px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.ore-blue { color: #6cb8ff; border-color: #2f5f99; }
.ore-black { color: #c9ced8; border-color: #555e70; background: rgba(0, 0, 0, .35); }
.ore-red { color: #ff7a7a; border-color: #8f3434; }
.ore-green { color: #6ee59b; border-color: #2c7a4b; }
.ore-yellow { color: #ffd760; border-color: #8c7224; }
.table td { vertical-align: middle; }
.table.nowrap td:not(:last-child) { white-space: nowrap; }
