/* Orveth Online - modern layout, classic MMO portal panels */
:root {
  --bg: #0b0806;
  --bg-2: #120d0a;
  --panel: #17110d;
  --panel-2: #1e1610;
  --line: #3a2a1c;
  --gold: #d4ae64;
  --gold-2: #f0d595;
  --gold-dim: #8c7040;
  --red: #a3201f;
  --red-2: #d23a2a;
  --text: #e9dfcf;
  --muted: #a8977f;
  --ok: #5fbf6a;
  --off: #c25445;
  --radius: 6px;
  --head: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body);
  background-image: radial-gradient(ellipse at 50% -10%, #2a120c 0%, transparent 60%),
                    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.012) 22px 23px);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); letter-spacing: .04em; margin: 0 0 .5em; line-height: 1.2; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(11,8,6,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(212,174,100,.08);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; color: var(--gold-2); white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); padding: 8px 14px; border-radius: var(--radius);
}
.nav a:hover, .nav a.active { color: var(--gold-2); background: rgba(212,174,100,.08); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: var(--radius); padding: 6px 10px; font-size: 18px; cursor: pointer; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
  padding: 14px 30px; border-radius: var(--radius); border: 1px solid var(--gold-dim);
  color: var(--gold-2); background: linear-gradient(180deg, #2a1e14, #160f0a);
  box-shadow: inset 0 1px 0 rgba(240,213,149,.18), 0 4px 18px rgba(0,0,0,.5);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: #fff3d4; box-shadow: inset 0 1px 0 rgba(240,213,149,.25), 0 6px 24px rgba(163,32,31,.35); }
.btn.primary { background: linear-gradient(180deg, var(--red-2), var(--red) 60%, #6e1414); border-color: #e0794f; color: #fff3e0; }
.btn.small { padding: 9px 18px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(163,32,31,.35), transparent 70%),
              radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.9), transparent 60%);
}
.hero .wrap { position: relative; text-align: center; padding: 56px 16px 64px; }
.hero .logo { width: 190px; margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(210,58,42,.45)); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 46px rgba(210,58,42,.7)); } }
.hero h1 { font-size: clamp(34px, 6vw, 60px); color: var(--gold-2); text-shadow: 0 2px 0 #000, 0 0 30px rgba(212,174,100,.25); margin-bottom: 6px; }
.hero p.tag { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 560px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 6px 14px; border-radius: 99px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 8px currentColor; flex: none; }
.dot.on { background: var(--ok); color: var(--ok); }
.dot.off { background: var(--off); color: var(--off); }

/* ---------- page header (inner pages) ---------- */
.page-head { text-align: center; padding: 44px 16px 30px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(163,32,31,.25), transparent); }
.page-head h1 { font-size: clamp(28px, 5vw, 42px); color: var(--gold-2); }
.page-head p { color: var(--muted); margin: 0; }

/* ---------- portal grid ---------- */
main { flex: 1; }
.portal { display: grid; grid-template-columns: 260px 1fr 280px; gap: 20px; padding: 28px 16px 48px; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.35); overflow: hidden; }
.panel > h2, .panel > .head {
  position: relative; margin: 0; padding: 11px 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  text-align: center; background: linear-gradient(180deg, #2b1f15, #1a120d); border-bottom: 1px solid var(--line);
}
.panel > h2::before, .panel > h2::after { content: "\25C6"; color: var(--red-2); font-size: 8px; position: absolute; top: 50%; transform: translateY(-50%); }
.panel > h2::before { left: 14px; } .panel > h2::after { right: 14px; }
.panel .body { padding: 16px; }

/* status rows */
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 14px; }
.rows li:last-child { border-bottom: 0; }
.rows .k { color: var(--muted); }
.rows .v { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.big-num { font-family: var(--head); font-size: 32px; color: var(--gold-2); text-align: center; line-height: 1; margin: 4px 0 2px; }
.small { font-size: 12px; color: var(--muted); text-align: center; }

/* news */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.news li:last-child { border-bottom: 0; }
.tagchip { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: #3a1512; color: #ff9b84; border: 1px solid #6b2620; }
.tagchip.update { background: #14301b; color: #8fe39c; border-color: #255c32; }
.tagchip.event { background: #33280f; color: var(--gold-2); border-color: #6b5320; }
.news .t { color: var(--text); font-weight: 500; }
.news .d { color: var(--muted); font-size: 12px; white-space: nowrap; }
.news-article { padding: 4px 0 6px; }
.news-article p { color: var(--muted); margin: 6px 0 0; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(163,32,31,.18), transparent 70%), var(--bg-2); }
.card .ico { font-size: 30px; margin-bottom: 8px; }
.card h3 { font-size: 15px; color: var(--gold-2); }
.card p { font-size: 13px; color: var(--muted); margin: 0; }

/* rank table */
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dim); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rank td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rank tr:last-child td { border-bottom: 0; }
.rank td.n { color: var(--gold); font-family: var(--head); width: 34px; }
.rank tr:nth-child(1) td.n { color: #ffd76a; } .rank tr:nth-child(2) td.n { color: #d9d9d9; } .rank tr:nth-child(3) td.n { color: #d79a5f; }
.rank td.num, .rank th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank td.muted { color: var(--muted); font-size: 13px; }
.narrow .panel .body:has(> table.rank) { overflow-x: auto; }
.empty { color: var(--muted); text-align: center; padding: 14px 0; font-size: 14px; }

/* quick links */
.quick { display: grid; gap: 10px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); font-weight: 600; }
.quick a:hover { border-color: var(--gold-dim); color: var(--gold-2); }
.quick .ico { font-size: 20px; width: 26px; text-align: center; display: inline-flex; justify-content: center; }
.quick a.discord .ico { color: #8c9eff; }
.quick a.discord:hover { border-color: #5865f2; color: #fff; background: #23263f; }

/* forms */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px; font-weight: 600; }
.field input[type=text], .field input[type=password], .field input[type=email] {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: #0d0907;
  border: 1px solid var(--line); border-radius: var(--radius); outline: none;
}
.field input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,174,100,.12); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--red-2); }
.msg { display: none; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; }
.msg.show { display: block; }
.msg.err { background: #2e1210; border: 1px solid #6b2620; color: #ffb4a6; }
.msg.ok { background: #11281a; border: 1px solid #255c32; color: #a8f0b3; }

/* narrow single-column pages */
.narrow { max-width: 760px; margin: 0 auto; padding: 30px 16px 56px; display: grid; gap: 20px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--head); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); border: 1px solid var(--gold-dim); background: #1f1610; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.tabs button { font: 600 13px var(--body); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.tabs button.active { color: var(--gold-2); border-color: var(--gold-dim); background: #241a12; }

/* footer */
footer { border-top: 1px solid var(--line); background: #080605; padding: 26px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .portal { grid-template-columns: 1fr 1fr; }
  .portal .col.center { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
  .portal { grid-template-columns: 1fr; padding-top: 20px; }
  .cards { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
  .menu-btn { display: block; flex: none; }
  .brand { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 30px; height: 30px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #0b0806; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .hero .wrap { padding: 40px 16px 48px; }
  .hero .logo { width: 140px; }
  .news li { grid-template-columns: auto 1fr; }
  .news .d { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .hero .logo { animation: none; } }
