/* RO Offline 2026 - friends' site. Light, clean, game-portal style. */
:root {
  color-scheme: light;
  --bg: #f6f8fb; --bg2: #edf1f7; --card: #ffffff; --ink: #0f1b33; --muted: #5b6a82; --line: #e2e8f0;
  --brand: #1e4fd8; --brand-d: #173fae; --brand-ink: #ffffff; --brand-soft: #e8efff; --gold: #b8892b; --gold-soft: #fbf3e2;
  --ok: #0f8a5f; --ok-bg: #e7f7ef; --err: #c8283c; --err-bg: #fdecef; --field: #ffffff; --ring: rgba(30, 79, 216, .2);
  --shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 8px 24px rgba(15, 27, 51, .06); --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Prompt', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; position: relative; }
/* page background: Prontera overhead map, faded, fixed while scrolling */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/img/bg-map.png) center / cover no-repeat; opacity: .13; filter: saturate(.7); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(246, 248, 251, .2), rgba(246, 248, 251, .75)); }
main, .top, .foot { position: relative; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 10px; letter-spacing: -.005em; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }
code { background: var(--bg2); padding: 1px 7px; border-radius: 6px; font-size: .9em; color: var(--ink); }
.section-head { margin-bottom: 28px; }
.alt { background: rgba(255, 255, 255, .86); backdrop-filter: blur(2px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 3px rgba(15, 27, 51, .18)); }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-t b { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand-t small { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--ink); background: var(--bg2); text-decoration: none; }
.top nav a.on { color: var(--ink); font-weight: 600; }
.top nav a.btn-nav { background: var(--brand); color: var(--brand-ink); margin-left: 8px; font-weight: 600; }
.top nav a.btn-nav:hover { background: var(--brand-d); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.up { color: var(--ok); } .pill.up i { background: var(--ok); }
.pill.down { color: var(--err); } .pill.down i { background: var(--err); }
.menu-t, .menu-b { display: none; }
@media (max-width: 860px) {
  .menu-b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; order: 3; }
  .menu-b span, .menu-b span::before, .menu-b span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ''; }
  .menu-b span::before { position: absolute; top: -6px; } .menu-b span::after { position: absolute; top: 6px; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .menu-t:checked ~ nav { display: flex; }
  .top nav a.btn-nav { margin: 6px 0 0; text-align: center; }
  .pill { order: 2; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; border-bottom: 1px solid var(--line); isolation: isolate; }
/* blurred game art behind the hero text, washed out with white so it stays bright and readable */
.hero::before, .page-head::before { content: ''; position: absolute; inset: -30px; z-index: -2;
  background: url(/assets/img/hero.jpg) center 30% / cover no-repeat; filter: blur(14px) saturate(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.55) 100%),
              linear-gradient(transparent 70%, var(--bg)); }
.hero-in { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.015em; margin-bottom: 16px; }
.hero h1 span { color: var(--brand); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-d); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #c5d0e0; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* artwork */
.art { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 4px rgba(15,27,51,.06), 0 24px 48px rgba(15,27,51,.16); background: #0f1b33; aspect-ratio: 4 / 3; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-badge { position: absolute; left: 14px; top: 14px; }
.art-badge .pill { background: rgba(255,255,255,.95); border-color: transparent; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
.hero-sprites { position: absolute; right: -6px; bottom: -22px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.hero-sprites img { width: 56px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.hero-art-wrap { position: relative; }
.stripe { margin-top: -36px; position: relative; z-index: 2; }
.stripe .server { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stripe .cell { padding: 18px 20px; border-right: 1px solid var(--line); }
.stripe .cell:last-child { border-right: 0; }
.stripe .cell span { display: block; color: var(--muted); font-size: 13px; }
.stripe .cell b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .stripe .cell { border-right: 0; border-bottom: 1px solid var(--line); } }

/* MVP showcase */
.mvps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mvp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.mvp:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,51,.05), 0 16px 32px rgba(15,27,51,.12); }
.mvp .pic { height: 110px; display: grid; place-items: end center; margin-bottom: 10px; background: radial-gradient(60% 30% at 50% 92%, rgba(15,27,51,.10), transparent 70%); }
.mvp .pic img { max-height: 108px; max-width: 120px; }
.mvp b { display: block; font-size: 15px; }
.mvp span { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; } .gallery .art:first-child { grid-row: span 2; aspect-ratio: auto; } }

/* page head decoration */
.page-head .wrap { position: relative; }
.head-deco { position: absolute; right: 16px; bottom: -6px; display: flex; gap: 6px; align-items: flex-end; }
.head-deco img { width: 52px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
@media (max-width: 700px) { .head-deco { display: none; } }
.empty img { display: block; margin: 0 auto 10px; width: 48px; opacity: .9; }
.side-art { margin-top: 20px; }

/* server card */
.server { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.server-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.server-head b { font-size: 15px; }
.server-body { padding: 8px 22px 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.server-foot { padding: 16px 22px 20px; background: var(--bg); border-top: 1px solid var(--line); }
.gauge { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 8px 0 6px; }
.gauge > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #4f7cf5); }

/* cards & grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; }
.ico.gold { background: var(--gold-soft); color: var(--gold); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 2fr 1fr; } }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title h3 { margin: 0; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg2); padding: 3px 9px; border-radius: 6px; }

/* community */
.gang { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .gang { grid-template-columns: 1fr 1.2fr; } }
.bar { height: 10px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 16px 0 8px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.chip .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.chip small { color: var(--muted); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; margin-bottom: 10px; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.rank { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--bg2); color: var(--muted); }
.rank.r1 { background: #f6e7bf; color: #7a5a12; } .rank.r2 { background: #e5e9f0; color: #3f4b5e; } .rank.r3 { background: #f3dcc8; color: #7a4320; }
.job { font-size: 14px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 32px 10px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; }

/* status */
.lights { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.light { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.light i { width: 12px; height: 12px; border-radius: 50%; background: var(--err); flex: none; box-shadow: 0 0 0 4px var(--err-bg); }
.light.on i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.status-banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.status-banner .big { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.status-banner.up .big { background: var(--ok-bg); color: var(--ok); } .status-banner.down .big { background: var(--err-bg); color: var(--err); }
.status-banner .big svg { width: 26px; height: 26px; }
.status-banner h2 { margin: 0; font-size: 22px; }

/* forms */
.form-wrap { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 500; font-size: 14px; margin: 16px 0 6px; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
input[type=text], input[type=password], input[type=email], input[type=number] { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #d5deea; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.sex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sex input { position: absolute; opacity: 0; pointer-events: none; }
.sex label { margin: 0; padding: 11px; border: 1px solid #d5deea; border-radius: 10px; text-align: center; cursor: pointer; background: var(--field); font-weight: 500; }
.sex input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.sex input:focus-visible + label { box-shadow: 0 0 0 4px var(--ring); }
.cap { display: flex; align-items: center; gap: 10px; }
.cap .q { white-space: nowrap; font-weight: 600; background: var(--bg2); padding: 11px 14px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.msg.err { background: var(--err-bg); color: var(--err); } .msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg ul { margin: 0; padding-left: 18px; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 500; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 10px 0 0; }
.rules li { margin-bottom: 10px; }
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 24px; border-bottom: 1px solid var(--line); }
.page-head::before { background-image: url(/assets/img/art-1.jpg); background-position: center 25%; }
.page-head::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.86) 60%, rgba(255,255,255,.7)); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.foot { padding: 36px 16px 44px; border-top: 1px solid var(--line); font-size: 14px; background: var(--card); }
.foot-in { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* member login + daily lucky wheel */
select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #d5deea; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.top nav .me { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 6px 10px; font-weight: 600; font-size: 14px; color: var(--ink); }
.top nav .me svg { width: 18px; height: 18px; color: var(--brand); }
.top nav a.btn-nav.ghost-nav { background: var(--brand-soft); color: var(--brand); }
.top nav a.btn-nav.ghost-nav:hover { background: #dbe6ff; }
.wheel-page { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .wheel-page { grid-template-columns: 1fr 1fr; } }
.wheel-box { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.wheel { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(15, 27, 51, .16)); }
.wheel-t { font-family: 'Prompt', system-ui, sans-serif; font-size: 12px; font-weight: 600; fill: var(--ink); }
.wheel-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--gold); filter: drop-shadow(0 2px 2px rgba(15, 27, 51, .3)); }
.prize-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.prize-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prize-table tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(15, 27, 51, .15); }
.wheel-i { image-rendering: pixelated; }
.prize-i { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; image-rendering: pixelated; }
