/* ================= PVPSILKROAD main site (/portal) – same classic portal theme as the landing page ================= */
:root {
  --bg: #05070c;
  --frame-hi: #a3a3a3;
  --frame-mid: #5e5e5e;
  --frame-lo: #2a2a2a;
  --title-1: #7d3524;
  --title-2: #2b0d06;
  --gold: #f6c86a;
  --gold-2: #d99a2b;
  --gold-line: #c99a3a;
  --cream: #f1e3bf;
  --text: #d6d0c0;
  --muted: #8e8a7e;
  --green: #6fcf4a;
  --red: #d94a2c;
  --blurple: #5865f2;
  --row: #0b1424;
  --row-2: #0e192c;
  --line: #1d2738;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-h: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-n: "Open Sans", Tahoma, Verdana, sans-serif;
  --font-b: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #4a4a4a #000; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.55 var(--font-b); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; background: #f29a22; color: #2a1200; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.page { width: min(var(--page), 100% - 24px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.gold-text { background: linear-gradient(180deg, #fff4c8 0%, var(--gold) 45%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 51; height: 38px; background: #0d1117; border-bottom: 1px solid #222a35; }
.topbar .page { display: flex; align-items: center; gap: 6px; height: 100%; }
.tb-gap { flex: 1; }
.p-clock { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #aab; white-space: nowrap; }
.p-clock .fi { font-size: 15px; color: #8ab4ff; }
.p-clock b { color: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 2px 9px; border: 1px solid #2a3442; border-radius: 20px; font-size: 11.5px; font-weight: 700; color: #ccc; white-space: nowrap; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #c98a2a; box-shadow: 0 0 6px #c98a2a; }
.status-pill.on i { background: var(--green); box-shadow: 0 0 6px var(--green); }
.tb-btn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border: 1px solid #000; border-radius: 2px; font: 700 12px var(--font-b); color: #fff; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); background: linear-gradient(#9a9a9a, #4d4d4d); }
.tb-btn:hover { filter: brightness(1.18); }
.tb-orange { background: linear-gradient(#e88a3a, #9a3f0a); }
.tb-blurple { background: linear-gradient(#7c86f5, #3c45c2); }
.tb-fb { background: linear-gradient(#4a8af0, #1a4ab0); }
@media (max-width: 600px) { .p-clock .lbl, .tb-hide { display: none; } .status-pill { margin-left: 4px; } }
@media (max-width: 400px) { .status-pill { display: none; } }

/* ---------- main nav (logo in the middle, shrinks on scroll) ---------- */
.mainbar { position: sticky; top: 0; z-index: 50; height: 84px; background: radial-gradient(ellipse 30% 140% at 50% 0%, rgba(255, 160, 50, .16), transparent 70%), linear-gradient(180deg, #120c07, #000 70%); border-bottom: 2px solid var(--gold-line); box-shadow: 0 1px 0 #6a4a14, 0 3px 0 rgba(0, 0, 0, .9), 0 10px 24px rgba(0, 0, 0, .7); transition: height .3s var(--ease); }
.mainbar::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); background: linear-gradient(135deg, #ffe08a, #a86a10); box-shadow: 0 0 0 2px #000, 0 0 10px rgba(255, 180, 60, .6); }
.mainbar .page { position: relative; display: grid; grid-template-columns: 1fr 220px 1fr; grid-template-rows: 100%; align-items: center; height: 100%; } /* fixed row: the hanging logo must not push the links down */
.nav-side { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-side.left { justify-content: flex-end; padding-right: 8px; }
.nav-side.right { justify-content: flex-start; padding-left: 8px; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { position: relative; display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 3px; font: 700 13.5px var(--font-h); letter-spacing: .05em; color: #efe6d0; text-transform: uppercase; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.nav-link .fi:first-child { font-size: 13px; color: #b8862b; transition: color .2s ease, transform .2s var(--ease); }
.nav-link .caret { font-size: 9px; color: #8a7a5a; transition: transform .25s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-item:hover .nav-link, .nav-item:focus-within .nav-link { color: #fff; background: rgba(255, 190, 90, .07); }
.nav-item:hover .nav-link .fi:first-child { color: var(--gold); transform: translateY(-1px); }
.nav-item:hover .nav-link::after, .nav-item.is-active .nav-link::after { transform: scaleX(1); }
.nav-item.is-active .nav-link { color: var(--gold); }
.nav-item.is-active .nav-link .fi:first-child { color: var(--gold); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); color: var(--gold); }
/* dropdown */
.sub { position: absolute; top: calc(100% - 10px); left: 50%; z-index: 60; min-width: 200px; padding-top: 12px; transform: translateX(-50%) translateY(6px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .25s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%); }
.sub-in { position: relative; display: grid; padding: 6px; background: linear-gradient(180deg, #17110b, #0a0806); border: 1px solid #000; box-shadow: inset 0 0 0 1px #6a4a14, 0 16px 40px rgba(0, 0, 0, .85); }
.sub-in::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: #17110b; border-left: 1px solid #6a4a14; border-top: 1px solid #6a4a14; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font: 700 13px var(--font-n); color: #ddd; white-space: nowrap; border-radius: 2px; }
.sub a .fi { width: 16px; text-align: center; font-size: 12px; color: #8a7a5a; }
.sub a:hover, .sub a:focus-visible { color: #fff; background: linear-gradient(90deg, rgba(201, 154, 58, .25), transparent); }
.sub a:hover .fi { color: var(--gold); }
/* call to action */
.nav-cta { display: inline-flex; align-items: center; gap: 7px; height: 38px; margin-left: 10px; padding: 0 16px; border: 1px solid #000; border-radius: 4px; font: 700 13.5px var(--font-h); font-variant: small-caps; letter-spacing: .04em; color: #fff6dc; text-shadow: 0 1px 0 #5a2a00; white-space: nowrap; background: linear-gradient(180deg, #f8c25a 0%, #e8901f 45%, #b8600c 55%, #d77d16 100%); box-shadow: inset 0 1px 0 rgba(255, 245, 200, .7), 0 0 14px rgba(240, 150, 30, .35); transition: filter .15s ease, box-shadow .2s ease; }
.nav-cta:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 245, 200, .7), 0 0 22px rgba(240, 150, 30, .6); }
/* logo */
.nav-logo { position: relative; z-index: 3; justify-self: center; align-self: start; width: 200px; margin-top: 4px; transition: width .3s var(--ease); }
.nav-logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .9)) drop-shadow(0 0 18px rgba(255, 150, 40, .25)); transition: transform .3s var(--ease); }
.nav-logo:hover img { transform: scale(1.04) rotate(-1deg); }
.mainbar.is-scrolled { height: 62px; }
.mainbar.is-scrolled .nav-logo { width: 120px; }
.mainbar.is-scrolled .sub { top: calc(100% - 4px); }
.menu-btn, .m-cta { display: none; }
@media (max-width: 1180px) {
  .nav-link { padding: 0 8px; font-size: 12.5px; letter-spacing: .03em; }
  .nav-link .fi:first-child { display: none; }
  .mainbar .page { grid-template-columns: 1fr 170px 1fr; }
  .nav-logo { width: 170px; }
  .nav-cta { margin-left: 4px; padding: 0 12px; }
}
@media (max-width: 960px) {
  .mainbar, .mainbar.is-scrolled { height: 62px; }
  .mainbar .page { grid-template-columns: 44px 1fr 44px; }
  .nav-side { display: none; }
  .nav-logo, .mainbar.is-scrolled .nav-logo { width: 124px; margin-top: 2px; }
  .menu-btn { display: grid; align-content: center; justify-items: center; gap: 5px; width: 42px; height: 38px; padding: 0; border: 1px solid #4a3a20; border-radius: 3px; background: linear-gradient(#1a140d, #0a0806); cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .m-cta { display: grid; place-items: center; width: 42px; height: 38px; justify-self: end; border: 1px solid #000; border-radius: 3px; color: #fff6dc; font-size: 16px; background: linear-gradient(180deg, #f8c25a, #b8600c); box-shadow: inset 0 1px 0 rgba(255, 245, 200, .6); }
}
/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); animation: fade .25s ease; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(330px, 86vw); overflow-y: auto; background: linear-gradient(180deg, #140e08, #05070c 40%); border-right: 2px solid var(--gold-line); box-shadow: 20px 0 40px rgba(0, 0, 0, .8); animation: slide .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.drawer-head img { width: 110px; height: auto; }
.drawer-x { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #3a3a3a; border-radius: 3px; background: #111; color: #ddd; font-size: 18px; cursor: pointer; }
.drawer-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 12px; border-bottom: 1px solid #2a2218; }
.drawer-ctas .btn { min-height: 40px; }
.drawer-list { flex: 1; padding: 6px 0; }
.drawer-list > li > a { display: flex; align-items: center; gap: 12px; padding: 13px 18px; font: 700 14px var(--font-h); letter-spacing: .04em; text-transform: uppercase; color: #efe6d0; border-left: 3px solid transparent; }
.drawer-list > li > a .fi { width: 18px; text-align: center; color: #b8862b; }
.drawer-list > li > a:hover { background: rgba(255, 190, 90, .06); color: #fff; }
.drawer-list > li > a.is-active { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(201, 154, 58, .18), transparent); }
.m-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px 48px; }
.m-sub a { padding: 5px 10px; font-size: 12px; font-weight: 700; color: #cfc4a4; background: #12161f; border: 1px solid #263246; border-radius: 3px; }
.m-sub a:hover { color: #fff; border-color: var(--gold-line); }
.drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid #2a2218; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-scrim { animation: none; } .sub, .nav-link::after, .mainbar, .nav-logo { transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 300px; margin-top: -3px; overflow: hidden; background: #1a0e06; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(0deg, var(--bg), transparent); }
.hero.sm { height: 150px; }
.hero.sm img { object-position: center 30%; }
@media (max-width: 900px) { .hero { height: 200px; } .hero.sm { height: 90px; } }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 2; margin-top: -110px; margin-bottom: 30px; padding: 8px; background: rgba(5, 7, 12, .96); border: 1px solid #000; box-shadow: 0 0 0 1px #1d2430, 0 -10px 40px rgba(0, 0, 0, .6); }
.stage.no-hero { margin-top: -40px; }
.stage-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; }
.side, .main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
@media (max-width: 900px) {
  .stage { margin-top: -60px; }
  .stage.no-hero { margin-top: -20px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .side { order: 2; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.preview-note { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 10px; font-size: 12px; color: #e9d8a8; background: linear-gradient(90deg, rgba(201, 154, 58, .18), transparent); border-left: 3px solid var(--gold-line); }
.preview-note .fi { color: var(--gold); }

/* ---------- frame + title bar (classic Silkroad window) ---------- */
.frame { position: relative; padding: 5px; background: #141414; border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--frame-hi), inset 0 0 0 3px var(--frame-lo), inset 0 0 0 4px var(--frame-mid), 0 4px 12px rgba(0, 0, 0, .8); }
.frame::before, .frame::after { content: ""; position: absolute; width: 9px; height: 9px; transform: rotate(45deg); z-index: 2; pointer-events: none; background: linear-gradient(135deg, #f2f2f2, #8a8a8a 50%, #3a3a3a); box-shadow: 0 0 0 1px #000; }
.frame::before { left: -4px; top: -4px; }
.frame::after { right: -4px; bottom: -4px; }
.tbar { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 2px 6px 2px 4px; background: linear-gradient(180deg, #8c3c28 0%, var(--title-1) 30%, #3d140b 70%, var(--title-2) 100%); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 210, 170, .35), inset 0 -1px 0 rgba(0, 0, 0, .6); }
.tbar h2 { flex: 1; min-width: 0; font: 700 13.5px/1.2 var(--font-h); letter-spacing: .06em; color: var(--cream); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbar .ico { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1px solid #000; background: linear-gradient(135deg, #e8e8e8, #7a7a7a); color: #3a1a08; font-size: 10px; }
.box { display: flex; flex-direction: column; }
.box-body { padding: 12px 8px 6px; }
.box-body.narrow { max-width: 440px; margin: 0 auto; padding: 18px 8px 10px; }
.box-more { display: block; margin-top: auto; padding: 7px 8px 3px; text-align: right; font-size: 12px; font-weight: 700; color: var(--gold); }
.box-more:hover { color: #fff; }
.intro { margin: 0 0 12px; color: #c9c2b0; }
.intro a, .article a, .alt a, .form-note a, .tbl a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
h3.sub { margin: 18px 0 8px; font: 700 14px var(--font-h); letter-spacing: .04em; color: var(--gold); }

/* ---------- buttons + inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 4px 16px; border: 1px solid #000; border-radius: 4px; cursor: pointer; font: 700 13px var(--font-h); font-variant: small-caps; letter-spacing: .03em; white-space: nowrap; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.12) saturate(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.btn-gold { color: #fff6dc; text-shadow: 0 1px 0 #5a2a00, 0 0 4px rgba(90, 40, 0, .6); background: linear-gradient(180deg, #f8c25a 0%, #e8901f 45%, #b8600c 55%, #d77d16 100%); box-shadow: inset 0 1px 0 rgba(255, 245, 200, .7), inset 0 0 0 1px rgba(120, 60, 0, .5); }
.btn-dark { color: var(--cream); background: linear-gradient(180deg, #6b6b6b, #3a3a3a 50%, #262626); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px #777; }
.btn-hero { min-height: 42px; padding: 6px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.input { width: 100%; height: 34px; padding: 4px 10px; color: #fff; background: #070a10; border: 1px solid #39424f; border-radius: 3px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8); }
.input:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 2px rgba(201, 154, 58, .25); }

/* ---------- sidebar ---------- */
.login { display: grid; gap: 6px; padding: 10px 6px 6px; }
.login-alt { text-align: center; font-size: 12px; }
.login-alt a { color: var(--gold); }
.status { display: grid; gap: 1px; padding: 8px 6px 6px; }
.st-row { display: flex; justify-content: space-between; padding: 5px 6px; background: var(--row); }
.st-row span { color: #9aa; }
.st-row b { color: #fff; }
.st-row b.ok { color: var(--green); }
.st-row b.warn { color: #f0b040; }
.st-next { display: grid; justify-items: center; gap: 1px; margin-top: 6px; padding: 8px 6px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #2c2c2c, #121212); border: 1px solid #000; box-shadow: inset 0 0 0 1px #5a5a5a; }
.st-next small { font: 700 10px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: #bbb; }
.st-next b { font: 700 13px var(--font-h); color: var(--cream); }
.st-next span { font: 700 20px var(--font-b); letter-spacing: .06em; color: #ffc93a; text-shadow: 0 0 8px rgba(255, 170, 30, .55); }
.mini-rank { display: grid; gap: 1px; padding: 8px 6px 0; }
.mini-rank li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; background: var(--row); }
.mini-rank .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 700; }
.mini-rank b { color: var(--gold); }
.rk { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; font: 700 11px var(--font-b); color: #ccc; background: #1a2333; border: 1px solid #2c3850; }
.rk.r1 { color: #2a1a00; background: linear-gradient(#ffe08a, #d99a2b); border-color: #000; }
.rk.r2 { color: #1a1a1a; background: linear-gradient(#f2f2f2, #9a9a9a); border-color: #000; }
.rk.r3 { color: #2a1200; background: linear-gradient(#f0b07a, #a85a20); border-color: #000; }
.side-dl, .side-dc, .side-fb { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #000; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .6); transition: filter .15s ease; }
.side-dl { background: linear-gradient(180deg, #e8901f, #9a4a08); }
.side-dc { background: linear-gradient(180deg, #7c86f5, #3c45c2); }
.side-fb { background: linear-gradient(180deg, #4a8af0, #1a4ab0); }
.side-dl:hover, .side-dc:hover, .side-fb:hover { filter: brightness(1.12); }
.side-dl .fi, .side-dc .fi, .side-fb .fi { font-size: 24px; }
.side-dl b, .side-dc b, .side-fb b { display: block; font: 700 15px var(--font-h); }
.side-dl small, .side-dc small, .side-fb small { font-size: 11.5px; opacity: .85; }

/* ---------- home ---------- */
.welcome { background: #141414; }
.welcome-in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: clamp(18px, 3vw, 30px) 14px; text-align: center; border: 1px solid #000; background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(255, 150, 40, .18), transparent 70%), linear-gradient(rgba(10, 6, 3, .8), rgba(10, 6, 3, .92)), url("map-1000.webp") center / cover; }
.welcome .kicker { font: 700 12px var(--font-h); letter-spacing: .4em; text-transform: uppercase; color: #e9c27a; }
.welcome h1 { font: 900 clamp(24px, 3.4vw, 38px)/1.1 var(--font-h); }
.welcome p { max-width: 560px; color: #d8cfb8; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.phases { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.phases li { display: grid; gap: 1px; min-width: 190px; padding: 6px 12px; background: rgba(0, 0, 0, .45); border: 1px solid #4a3a20; }
.phases li b { font: 700 13px var(--font-h); color: #ffc93a; }
.phases li span { font-size: 12px; color: #cfc4a4; }
.phases li.done b::after { content: " ✓"; color: var(--green); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.news-list, .kills, .mini-rank { grid-template-columns: minmax(0, 1fr); }
.news-list { display: grid; gap: 1px; padding: 8px 6px 0; }
.news-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: var(--row); }
.news-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #fff; }
.news-row a:hover { color: var(--gold); }
.news-row time { font-size: 11.5px; color: #8a93a3; }
.tag { display: inline-block; padding: 1px 6px; font: 700 10px var(--font-b); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #3a4a60; border-radius: 2px; }
.tag-notice { background: #a3461a; }
.tag-event { background: #2a7a3a; }
.tag-update { background: #2a5a9a; }
.kills { display: grid; gap: 1px; padding: 8px 6px 0; }
.kills li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 7px 8px; background: var(--row); color: #aab; }
.kills b { color: #fff; }
.kills .hl { color: var(--gold); font-weight: 700; }
.kills time { margin-left: auto; font-size: 11.5px; color: #8a93a3; }
.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .feature-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feature-strip { grid-template-columns: minmax(0, 1fr); } }
.feat-card { display: grid; gap: 4px; padding: 14px; background: linear-gradient(180deg, #121a28, #0a1018); border: 1px solid #263246; }
.feat-card .fi { font-size: 20px; color: var(--gold); }
.feat-card b { font: 700 14px var(--font-h); color: var(--cream); }
.feat-card p { font-size: 12px; color: #a9b0bc; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.box > .tbl-wrap { padding: 8px 6px 4px; }
.tbl { width: 100%; font-size: 12.5px; }
.tbl th { padding: 7px 8px; text-align: left; font: 700 11px var(--font-h); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); background: linear-gradient(180deg, #5a2a1a, #2b0d06); border: 1px solid #000; white-space: nowrap; }
.tbl td { padding: 7px 8px; background: var(--row); border-bottom: 1px solid #05070c; vertical-align: middle; }
.tbl tr:nth-child(even) td { background: var(--row-2); }
.tbl tr:hover td { background: #142238; }
.tbl td b { color: #fff; }
.tbl td small { display: block; margin-top: 2px; font-size: 11.5px; color: #9aa3b2; }
.tbl .c { text-align: center; width: 48px; }
.tbl .num { white-space: nowrap; }
.tbl .reward { color: #f0c870; font-weight: 700; font-size: 12px; }
.tbl .next { color: #ffc93a; font-weight: 700; }
.tbl tr.is-soon td { background: #1e1a0c; }
.times { display: flex; flex-wrap: wrap; gap: 3px; }
.times span { padding: 1px 5px; font-size: 11.5px; font-weight: 700; color: #a8e08a; background: #10260c; border: 1px solid #234a1a; }
.times span.past { color: #5a6a55; background: transparent; border-color: #1c2a1a; }
.live { color: var(--green); font-weight: 700; }
.dead { color: #e86a4a; font-weight: 700; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: #e86a4a; font-weight: 700; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px 6px 0; }
.tabs a { padding: 6px 12px; font: 700 12.5px var(--font-h); color: #ccc; background: linear-gradient(#2a2a2a, #161616); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #2a1200; background: linear-gradient(180deg, #f8c25a, #d77d16); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 5px 10px; background: var(--row); border: 1px solid #263246; color: #c9c2b0; font-size: 12px; }
.chip b { color: var(--gold); font-size: 14px; }

/* ---------- news ---------- */
.news-list.big { gap: 8px; padding: 10px 6px 4px; }
.news-card { padding: 12px 14px; background: var(--row); border-left: 3px solid var(--gold-line); }
.nc-head { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #8a93a3; }
.news-card h3 { margin: 6px 0 4px; font: 700 16px var(--font-h); }
.news-card h3 a:hover { color: var(--gold); }
.news-card p { color: #b9bfc9; }
.article { display: grid; gap: 12px; padding: 14px 10px 6px; font-size: 14px; line-height: 1.7; color: #d6d0c0; }
.article .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #8a93a3; }

/* ---------- download ---------- */
.dl-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; margin-bottom: 12px; background: radial-gradient(ellipse at 20% 0%, rgba(255, 150, 40, .16), transparent 60%), #0e0a06; border: 1px solid #4a3a20; }
.dl-main h3 { font: 900 22px var(--font-h); }
.dl-main p { color: #bfb397; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; gap: 2px; padding: 10px 12px; background: var(--row); border: 1px solid #263246; }
.steps li b { font: 700 14px var(--font-h); color: var(--cream); }
.steps li b::before { content: counter(st) ". "; color: var(--gold); }
.steps li span { font-size: 12px; color: #a9b0bc; }
@media (max-width: 700px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.dl .tbl-wrap { margin-bottom: 12px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 6px; }
.form label { margin-top: 6px; font-weight: 700; color: #cfc8b6; }
.form .btn { margin-top: 12px; }
.alt { margin-top: 12px; text-align: center; color: #aab; }
.form-note { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; font-size: 12.5px; color: #d8cfb8; background: rgba(201, 154, 58, .1); border: 1px solid #4a3a20; }
.form-note .fi { margin-top: 2px; color: var(--gold); }
.form-msg { margin-bottom: 12px; padding: 9px 12px; font-weight: 700; color: #ffd890; background: #2a1a06; border: 1px solid #6a4a14; }

/* ---------- account ---------- */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acc-stats div { display: grid; gap: 2px; padding: 12px; text-align: center; background: var(--row); border: 1px solid #263246; }
.acc-stats small { font: 700 10.5px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: #9aa3b2; }
.acc-stats b { font: 700 20px var(--font-h); color: #fff; }
.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.char-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--row); border: 1px solid #263246; }
.char-card > .fi { font-size: 26px; color: var(--gold); }
.char-card div { flex: 1; display: grid; }
.char-card b { color: #fff; font-size: 14px; }
.char-card span { font-size: 12px; color: #9aa3b2; }
.char-card .pts { color: var(--gold); font-weight: 700; }
.box-body > .cta-row { justify-content: flex-start; margin-top: 14px; }

/* ---------- register form ---------- */
.form-lead { margin-bottom: 14px; text-align: center; color: #d8cfb8; }
.form-lead b { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fld { display: grid; gap: 4px; margin-top: 8px; }
.fld > label { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-weight: 700; color: #e6dcc4; }
.fld > label em { font-style: normal; color: #f0883a; }
.fld > label small { font-weight: 400; font-size: 11.5px; color: #8e8a7e; }
.input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 2px rgba(217, 74, 44, .25); }
.field-error { font-size: 12px; color: #ff8a6a; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 60px; }
.pw-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); padding: 3px 8px; font: 700 11px var(--font-b); color: #ddd; background: #1a2230; border: 1px solid #39424f; border-radius: 2px; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; color: #b9b2a0; cursor: pointer; }
.check input { margin-top: 2px; accent-color: #e8901f; }
#captcha { min-height: 65px; }
#reg-status { margin-top: 10px; padding: 9px 12px; font-weight: 700; color: #ffb39a; background: #2a0f08; border: 1px solid #6a2a14; }
.form-legal { margin-top: 12px; font-size: 11.5px; color: #8e8a7e; text-align: center; }
.form-legal a { color: #c9b98a; text-decoration: underline; }
.reg-done { display: grid; justify-items: center; gap: 10px; padding: 10px 0; text-align: center; }
.reg-done > .fi { font-size: 44px; color: var(--green); }
.reg-done h3 { font: 900 26px var(--font-h); }
.reg-done p { color: #d8cfb8; }
.reg-done b { color: var(--gold); }
.iti { width: 100%; }
.iti--container { z-index: 120; }
.iti__country-list { background: #0e1118; color: #ddd; border: 1px solid #39424f; box-shadow: 0 12px 30px rgba(0, 0, 0, .7); max-width: min(360px, 92vw); white-space: normal; }
.iti__country.iti__highlight, .iti__country:hover { background: #1c2636; }
.iti__dial-code { color: #8e8a7e; }
.iti--separate-dial-code .iti__selected-flag { background: #11161f; }
.iti--separate-dial-code .iti__selected-dial-code { color: #ddd; }

/* ================= copied from the landing page (index.html) so both look the same ================= */
:root { --parch: #ebe2bf; --parch-line: #c9b98a; --ink: #3a3020; --ink-2: #6e5d3d; --navy: #0b1424; }
/* parchment (modal body) */
.parch { color: var(--ink); border: 1px solid #000; box-shadow: inset 0 0 18px rgba(110, 80, 30, .35);
  background: radial-gradient(ellipse at 20% 10%, rgba(255, 255, 240, .5), transparent 50%), radial-gradient(ellipse at 80% 90%, rgba(150, 120, 60, .18), transparent 55%), repeating-radial-gradient(circle at 30% 40%, rgba(120, 90, 40, .035) 0 2px, transparent 2px 5px), var(--parch); }
.parch a { color: #6a3a08; }
/* join buttons + glossy icons */
.jbtn { justify-self: start; display: inline-flex; align-items: center; height: 22px; margin-top: 4px; padding: 0 12px; border: 1px solid #000; font: 700 12px var(--font-h); font-variant: small-caps; color: #fff; text-shadow: 0 1px 0 #000; }
.jbtn-green { background: linear-gradient(#5c86f2, #3a4fc8 50%, #2a3aa8 52%, #4058d0); box-shadow: inset 0 0 0 1px #a8b8ff; }
.dc-banner:hover { filter: brightness(1.12); }

/* glossy square icons (social) */
.gloss { position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 0, 0, .7); }
.gloss::after { content: ""; position: absolute; left: -10%; right: -10%; top: -30%; height: 75%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)); pointer-events: none; }
.gloss svg { position: relative; width: 22px !important; height: 22px !important; color: #fff !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.g-fb { background: linear-gradient(#4d7bd6, #2b4c9b); }
.g-dc { background: linear-gradient(#7d88f7, #4450cf); }
/* live dot + floating Discord button */
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 8px var(--green); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2s ease-out infinite; }
.live-dot.dc { background: #8b94ff; box-shadow: 0 0 8px #8b94ff; } .live-dot.dc::after { border-color: #8b94ff; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.dc-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 44; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 1px solid #000; border-radius: 30px;
  background: linear-gradient(#2a3290, #151a52); box-shadow: inset 0 0 0 1px #8b94ff, 0 6px 18px rgba(0, 0, 0, .7), 0 0 20px rgba(88, 101, 242, .45);
  color: #fff; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease);
}
.dc-float.show { opacity: 1; transform: none; pointer-events: auto; }
.dc-float .gloss { border-radius: 50%; width: 36px; height: 36px; }
.dc-float b { display: block; font: 700 13px var(--font-h); font-variant: small-caps; }
.dc-float small { display: block; font-size: 10.5px; color: #c6cbff; }
.dc-float:hover { filter: brightness(1.15); }
body.cookie-open .dc-float { bottom: 120px; }
@media (max-width: 900px) { .dc-float { display: none; } }
/* sticky mobile bar */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: #000; border-top: 2px solid var(--gold-line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { min-height: 40px; }
}
/* embers */
#embers { position: fixed; inset: 0; z-index: -5; pointer-events: none; }
/* community cards */
.community { padding: 46px 0 40px; background: radial-gradient(ellipse 60% 60% at 50% 30%, rgba(88, 101, 242, .12), transparent 70%); }
.comm-head { display: grid; justify-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.comm-kicker { font: 700 13px var(--font-h); letter-spacing: .42em; text-transform: uppercase; color: #e9c27a; }
.comm-head h2 { font: 900 clamp(28px, 4vw, 44px)/1.05 var(--font-h); }
.comm-head > p:last-child { max-width: 560px; color: #cfc4a4; }
.comm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 820px) { .comm-grid { grid-template-columns: 1fr; } }
.comm-card { position: relative; display: block; min-height: 260px; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s ease; }
.comm-card:hover { transform: translateY(-4px); }
.comm-dc { background: radial-gradient(ellipse at 80% 20%, #3b4bb0, transparent 60%), linear-gradient(135deg, #16205a, #080b20); }
.comm-dc:hover { box-shadow: inset 0 0 0 1px var(--frame-hi), inset 0 0 0 3px var(--frame-lo), inset 0 0 0 4px var(--frame-mid), 0 0 34px rgba(88, 101, 242, .45); }
.comm-fb { background: radial-gradient(ellipse at 80% 20%, #2b4c9b, transparent 60%), linear-gradient(135deg, #12204a, #070b18); }
.comm-fb:hover { box-shadow: inset 0 0 0 1px var(--frame-hi), inset 0 0 0 3px var(--frame-lo), inset 0 0 0 4px var(--frame-mid), 0 0 34px rgba(77, 123, 214, .4); }
.comm-art { position: absolute; right: -30px; bottom: -40px; z-index: -1; height: 120%; width: auto; opacity: .45; -webkit-mask: linear-gradient(90deg, transparent, #000 45%); mask: linear-gradient(90deg, transparent, #000 45%); transition: opacity .3s ease, transform .5s var(--ease); }
.comm-card:hover .comm-art { opacity: .65; transform: scale(1.03); }
.comm-deco { position: absolute; left: -30px; bottom: -40px; z-index: -1; width: 200px; height: 200px; color: rgba(255, 255, 255, .05); }
.comm-body { position: relative; display: grid; justify-items: start; gap: 10px; max-width: 420px; padding: 22px; }
.comm-ico { width: 52px; height: 52px; }
.comm-ico svg { width: 28px !important; height: 28px !important; }
/* the site uses the Font Awesome web font (<i>), the landing page used SVGs: same look for both */
.gloss .fi { position: relative; z-index: 1; color: #fff; font-size: 20px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.comm-ico .fi { font-size: 26px; }
.dc-float .gloss .fi { font-size: 18px; }
.comm-body h3 { font: 900 26px var(--font-h); color: #fff; text-shadow: 0 2px 0 #000; }
.comm-body p { font-size: 13px; color: #d6dbff; text-shadow: 0 1px 3px #000; }
.comm-stats { display: flex; gap: 10px; }
.comm-stats div { padding: 6px 12px; border: 1px solid rgba(139, 148, 255, .4); background: rgba(5, 8, 30, .6); }
.comm-stats small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #aab3ff; }
.comm-stats b { display: inline-flex; align-items: center; gap: 6px; font: 700 20px var(--font-b); color: #fff; }
.comm-cta { height: 28px; padding: 0 16px; font-size: 13px; }
.jbtn-fb { background: linear-gradient(#5b86de, #2b4c9b 50%, #22407f 52%, #3558a8); box-shadow: inset 0 0 0 1px #a8c0ff; }
/* community art placement */
.comm-dc .comm-art { right: 20px; bottom: -150px; height: 160%; }
/* ================= HERO (caravan scene) ================= */
.hero { height: 600px; }
.hero-bg img.scene { object-position: 50% 45%; filter: saturate(1.08) brightness(.82) contrast(1.05); animation: kenburns 40s ease-in-out infinite alternate; }
.hero-bg::after { background:
  radial-gradient(ellipse 48% 62% at 50% 46%, rgba(6, 4, 2, .62), rgba(6, 4, 2, .25) 60%, transparent 80%),
  linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 22%, transparent 58%, var(--bg) 100%),
  linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 25%, transparent 75%, rgba(0, 0, 0, .35)); }
.hero-copy { top: 44%; }
.hero-copy .kicker { display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .kicker::before, .hero-copy .kicker::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #e9c27a); }
.hero-copy .kicker::after { transform: scaleX(-1); }
.hero-cd { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 14px; border: 1px solid rgba(255, 201, 58, .35); background: rgba(0, 0, 0, .55); }
.hero-cd-label { font: 700 12px var(--font-h); letter-spacing: .08em; text-transform: uppercase; color: #f1e3bf; }
.hero-cd-units { display: inline-flex; align-items: baseline; gap: 2px; }
.hero-cd-units b { min-width: 1.4em; font: 700 18px var(--font-b); color: #ffc93a; text-shadow: 0 0 10px rgba(255, 170, 30, .5); }
.hero-cd-units small { margin-right: 6px; font-size: 11px; color: #cfc4a4; }
.hero-proof { margin-top: 10px; }
@media (max-width: 900px) { .hero { height: 520px; } }
@media (max-width: 560px) {
  .hero { height: 560px; }
  .hero-copy { top: 47%; }
  .hero-copy .kicker::before, .hero-copy .kicker::after { width: 16px; }
  .hero-cd { flex-direction: column; gap: 2px; padding: 5px 12px; }
}

@media (max-aspect-ratio: 1/1) {
  .hero-bg img.scene { filter: saturate(1.1) brightness(1); object-position: 50% 50%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 30%, rgba(0, 0, 0, .55) 70%, var(--bg) 100%); }
}
@media (min-width: 901px) { .hero { height: 680px; } .hero-copy { top: 41%; } }
/* countdown characters */
.cdb-body { position: relative; overflow: hidden; isolation: isolate; }
.cdb-char { position: absolute; bottom: -30px; z-index: -1; width: auto; pointer-events: none; filter: drop-shadow(0 0 22px rgba(255, 160, 40, .3)) drop-shadow(0 12px 20px rgba(0, 0, 0, .9)); -webkit-mask: linear-gradient(0deg, transparent 0, #000 18%); mask: linear-gradient(0deg, transparent 0, #000 18%); }
.cc-l { left: 2%; height: 108%; }
.cc-r { right: 1%; height: 112%; }
@media (max-width: 1100px) { .cdb-char { opacity: .35; } .cc-l { left: -60px; } .cc-r { right: -80px; } }
@media (max-width: 700px) { .cdb-char { display: none; } }
.modal-art .c1 { left: 6px; bottom: -30px; height: 210px; }
.modal-art .c2 { right: 2px; bottom: -40px; height: 230px; }
/* final art placement */
.comm-dc .comm-art { right: 0; bottom: -110px; height: 150%; }
.comm-fb .comm-art { right: -40px; bottom: -30px; height: 118%; }
/* footer */
.site-foot { padding: 0 0 18px; border-top: 3px solid var(--gold-line); }
.site-foot .page { display: grid; }
.foot-cta { padding: 22px 0; margin-bottom: 30px; background: radial-gradient(ellipse 50% 120% at 50% 0%, rgba(255, 150, 40, .16), transparent 70%), linear-gradient(180deg, #1a1108, #0a0705); border-bottom: 1px solid #2a2016; }
.foot-cta .page { grid-template-columns: 1fr auto; align-items: center; gap: 14px 24px; }
.foot-cta p { display: grid; gap: 2px; }
.foot-cta b { font: 900 clamp(22px, 2.6vw, 30px)/1.1 var(--font-h); }
.foot-cta span { font-size: 13px; color: #cfc4a4; }
.foot-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .foot-cta .page { grid-template-columns: 1fr; text-align: center; } .foot-cta-btns { justify-content: center; } }
@media (max-width: 480px) { .foot-cta-btns { flex-direction: column; } }
.foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { width: 150px; height: auto; }
.foot-brand p { margin-top: 10px; max-width: 380px; font-size: 12px; color: #8e8a7e; }
.foot-social { display: flex; gap: 8px; margin-top: 12px; }
.foot-social a:hover .gloss { filter: brightness(1.15); transform: translateY(-1px); }
.foot-col h4 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #2a2016; font: 700 14px var(--font-h); font-variant: small-caps; letter-spacing: .06em; color: #f6c86a; }
.foot-col ul { display: grid; gap: 6px; }
.foot-col a, .foot-col .foot-link-btn { font-size: 12.5px; color: #aaa; }
.foot-col a::before, .foot-col .foot-link-btn::before { content: "◆ "; font-size: 8px; color: #6a5022; vertical-align: 2px; }
.foot-col a:hover, .foot-col .foot-link-btn:hover { color: #f6c86a; text-decoration: none; }
.foot-time { margin-top: 12px; font-size: 11.5px; color: #8e8a7e; }
.foot-time b { color: #ffc93a; }
.foot-bottom { grid-template-columns: 1fr auto; gap: 4px 20px; margin-top: 26px; padding-top: 14px; border-top: 1px solid #1d1d1d; font-size: 11px; color: #6e6a5e; }
.foot-bottom b { color: #aaa; }
.foot-bottom span:nth-child(2) { grid-column: 1; }
/* footer backlinks */
.foot-bl { grid-column: 1; font-size: 10px; color: #4a4740; }
.foot-bl a { color: #55524a; }
.foot-bl a:hover { color: #8e8a7e; }
/* hero sun + dust */
.hero-sun { position: absolute; right: -8%; top: -30%; z-index: -1; width: 60vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 220, 140, .45) 0%, rgba(255, 170, 60, .18) 30%, transparent 62%); mix-blend-mode: screen; animation: sunBreath 7s ease-in-out infinite; }
@keyframes sunBreath { 50% { opacity: .55; transform: scale(1.08); } }
.hero-dust { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-dust i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffd98a; box-shadow: 0 0 6px 1px rgba(255, 200, 100, .8); opacity: 0;
  animation: dust var(--t) linear var(--d) infinite; }
@keyframes dust { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(var(--x), -620px); opacity: 0; } }
/* urgency line */
.urgency { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 8px; border: 1px solid #c88a5a; background: rgba(220, 120, 60, .12); font-size: 12px; color: #5a2a10; }
.urgency svg { width: 14px; height: 14px; flex: none; }
.urgency b { margin-left: auto; color: #a04a00; }
/* link button */
.link-btn { border: 0; background: none; color: inherit; opacity: .75; font-size: 11.5px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { opacity: 1; }
/* modals */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); animation: fade .25s ease both; }
.modal-panel { position: relative; width: min(560px, 100%); margin: auto; animation: modalIn .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #000; background: linear-gradient(#c0582c, #6a1a06); box-shadow: inset 0 1px 0 rgba(255, 210, 170, .5); color: #fff; cursor: pointer; }
.modal-close svg { width: 13px; height: 13px; }
.modal-art { position: relative; height: 170px; overflow: hidden; border: 1px solid #000; background: radial-gradient(ellipse at 70% 60%, #6a2a08, #1a0a03 70%); }
.modal-art .emb { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #e8b54a, 0 0 30px rgba(255, 160, 40, .7); }
.modal-art .c1 { position: absolute; left: -10px; bottom: -40px; height: 230px; width: auto; }
.modal-art .c2 { position: absolute; right: -6px; bottom: -60px; height: 250px; width: auto; }
.modal-body { display: grid; justify-items: center; gap: 8px; padding: 12px 14px 14px; text-align: center; }
.modal-body h2 { font: 900 22px var(--font-h); color: #6a2a06; }
.modal-body > p { font-size: 12.5px; color: #4a4030; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
@media (max-width: 460px) { .choices { grid-template-columns: 1fr; } .modal-art { height: 130px; } .modal-art .emb { width: 96px; height: 96px; } }
.choice { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border: 1px solid #000; cursor: pointer; text-align: center; transition: filter .15s ease, transform .2s var(--ease); }
.choice:hover { filter: brightness(1.12); transform: translateY(-2px); }
.choice svg { width: 28px; height: 28px; }
.choice strong { font: 900 16px var(--font-h); }
.choice span { font-size: 11px; }
.choice.reg { color: #fff6dc; text-shadow: 0 1px 0 #5a2a00; background: linear-gradient(180deg, #f8c25a, #e8901f 45%, #b8600c 55%, #d77d16); box-shadow: inset 0 1px 0 rgba(255, 245, 200, .7); }
.choice.dc { color: #fff; background: linear-gradient(180deg, #8a93f8, var(--blurple) 50%, #3c45c2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
/* scroll reveal */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- portal extras built on the landing pieces ---------- */
.btn-discord { color: #fff; background: linear-gradient(180deg, #8a93f8, var(--blurple) 50%, #3c45c2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .6); }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-130%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
.hero { isolation: isolate; }
.hero > img { animation: kenburns 40s ease-in-out infinite alternate; filter: saturate(1.1) brightness(.85); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero .hero-sun, .hero .hero-dust { z-index: 1; }
.hero::after { z-index: 2; }
.welcome-in { position: relative; overflow: hidden; isolation: isolate; }
.w-char { position: absolute; bottom: -12px; z-index: -1; width: auto; pointer-events: none; filter: drop-shadow(0 0 22px rgba(255, 150, 40, .25)) drop-shadow(0 12px 20px rgba(0, 0, 0, .9)); -webkit-mask: linear-gradient(0deg, transparent 0, #000 18%); mask: linear-gradient(0deg, transparent 0, #000 18%); }
.w-char.l { left: 0; height: 108%; animation: charL 1.1s var(--ease) .15s both; }
.w-char.r { right: 0; height: 112%; animation: charR 1.1s var(--ease) .25s both; }
@keyframes charL { from { opacity: 0; transform: translateX(-50px); } }
@keyframes charR { from { opacity: 0; transform: translateX(50px); } }
@media (max-width: 1150px) { .w-char { opacity: .35; } .w-char.l { left: -60px; } .w-char.r { right: -70px; } }
@media (max-width: 700px) { .w-char { display: none; } }
.page-art { position: relative; isolation: isolate; overflow: hidden; }
.page-art > .art { position: absolute; right: -10px; bottom: -20px; z-index: -1; height: 115%; width: auto; opacity: .22; pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent, #000 50%); mask: linear-gradient(90deg, transparent, #000 50%); }
@media (max-width: 760px) { .page-art > .art { display: none; } }
.community { padding: 18px 0 6px; }
.comm-head { margin-bottom: 14px; }
.side .activity, .form .activity { margin: 0; font-size: 12px; color: #c8e8b0; border-color: #3a6a20; background: rgba(90, 160, 50, .12); }
.side .activity b, .form .activity b { color: #8fe060; }
.activity { display: flex; align-items: center; gap: 8px; }
.st-row .dc-n { display: inline-flex; align-items: center; gap: 6px; }
.modal-body .urgency { width: 100%; }
.foot-bl { margin-top: 6px; }
.site-foot .to-top { color: #aaa; font-size: 11.5px; }
.site-foot .to-top:hover { color: var(--gold); }
.foot-col .foot-link-btn { border: 0; background: none; padding: 0; cursor: pointer; }
@media (max-width: 960px) { .site-foot { padding-bottom: 76px; } }
.site-foot { background: #000; font-size: 11.5px; color: #777; }
.ts-box { min-height: 0; }
.form .ts-box { min-height: 65px; }
.form-msg.bad { color: #ffb39a; background: #2a0f08; border-color: #6a2a14; }

/* cookie notice + settings (copied from the landing page) */
.cookie-notice { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 720px; margin-inline: auto; padding: 10px 12px; }
.cn-text { flex: 1 1 300px; }
.cn-text strong { font: 700 13px var(--font-h); color: var(--gold); }
.cn-text p { margin-top: 2px; font-size: 11.5px; color: #ccc; }
.cn-text a { color: var(--gold); text-decoration: underline; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.cookie-body { display: grid; gap: 8px; padding: 14px; }
.cookie-body h2 { font: 900 20px var(--font-h); color: #6a2a06; }
.ck-intro { font-size: 12px; }
.ck-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--parch-line); background: rgba(255, 255, 240, .4); cursor: pointer; }
.ck-row > div { flex: 1; }
.ck-row b { display: block; color: #3a2a10; }
.ck-row span { font-size: 11.5px; color: #5a4a30; }
.ck-always { flex: none; font-size: 11px !important; font-weight: 700; color: #2f7a10 !important; }
.switch { position: relative; flex: none; width: 42px; height: 22px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 11px; background: #9a8a6a; transition: background .2s ease; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: #d77d16; }
.switch input:checked + i::after { transform: translateX(20px); }
.ck-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
body.cookie-open .dc-float { bottom: 120px; }

/* ---------- ranking categories ---------- */
.rank-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.rank-tabs a .fi { font-size: 13px; color: var(--c); transition: transform .2s var(--ease); }
.rank-tabs a:hover .fi { transform: scale(1.15); }
.rank-tabs a.on .fi { color: #2a1200; }
.rank-cat { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--row); border: 1px solid #263246; border-left: 3px solid var(--c); }
.rank-cat-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid #000; border-radius: 50%; color: #fff; font-size: 20px; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 45%, #000)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15), 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
.rank-cat h3 { font: 700 16px var(--font-h); color: var(--cream); }
.rank-cat p { font-size: 12.5px; color: #b9bfc9; }
.nm-link { color: inherit; }
.nm-link:hover, a.nm:hover, .kills a.hl:hover { color: var(--gold); text-decoration: underline; }
a.nm { color: #fff; }

/* ---------- character + guild pages ---------- */
.char-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px; background: radial-gradient(ellipse at 0% 0%, rgba(255, 150, 40, .14), transparent 60%), #0e0a06; border: 1px solid #4a3a20; }
.char-badge { display: grid; justify-items: center; align-content: center; gap: 2px; width: 72px; height: 72px; border: 1px solid #000; border-radius: 50%; font-weight: 700; font-size: 11px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 0 18px rgba(0, 0, 0, .6); }
.char-badge .fi { font-size: 26px; }
.char-badge.ch { background: radial-gradient(circle at 40% 35%, #c8442a, #4a0a02); }
.char-badge.eu { background: radial-gradient(circle at 40% 35%, #3a6ad8, #0a1a4a); }
.char-badge.guild { background: radial-gradient(circle at 40% 35%, #c99a3a, #3a2604); }
.char-id { flex: 1; min-width: 200px; }
.char-id h3 { font: 900 28px/1.1 var(--font-h); }
.char-id p { color: #c9c2b0; }
.char-id a { color: var(--gold); }
.char-title { color: #e88aff !important; font-weight: 700; }
.char-rank { display: grid; justify-items: end; }
.char-rank small { font: 700 10.5px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: #9aa3b2; }
.char-rank b { font: 900 30px var(--font-h); color: var(--gold); }
.char-rank span { color: #c9c2b0; }
.acc-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-stats span { font-size: 11.5px; color: #9aa3b2; }
@media (max-width: 700px) { .acc-stats.four { grid-template-columns: 1fr 1fr; } }
.gear { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
@media (max-width: 640px) { .gear { grid-template-columns: minmax(0, 1fr); } }
.slot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--row); border: 1px solid #263246; }
.slot > .fi { display: grid; place-items: center; flex: none; width: 38px; height: 38px; font-size: 17px; color: #ffe2a0; border: 1px solid #000; background: radial-gradient(circle at 40% 35%, #8a3a14, #2a0a02); box-shadow: inset 0 0 0 1px #d8b25a; }
.slot.hot > .fi { box-shadow: inset 0 0 0 1px #ffe08a, 0 0 10px rgba(255, 190, 60, .6); }
.slot > span { display: grid; min-width: 0; }
.slot small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a93a3; }
.slot b { color: #fff; }
.slot em { font-style: normal; color: var(--gold); }
.slot .blue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #6ab4ff; }
.slot.empty { opacity: .45; }
.role { padding: 1px 7px; font-size: 11px; font-weight: 700; border-radius: 2px; background: #2a3442; color: #ccc; }
.role.master { background: #8a5a10; color: #ffe2a0; }
.role.deputy { background: #2a4a7a; color: #cfe0ff; }

/* ---- game account (live game DB) */
.tb-form { display: inline; margin: 0; }
.tb-form .tb-btn { font: inherit; cursor: inherit; }
.login.logged { display: grid; gap: 10px; }
.login.logged form { margin: 0; }
.login.logged .hello { margin: 0; color: var(--muted, #c9b99a); }
.empty-note { color: var(--muted, #8f7f63); font-size: 14px; font-style: italic; margin: 10px 0; }
.empty-cell { text-align: center; color: var(--muted, #8f7f63); font-style: italic; padding: 22px 10px !important; }
.acc-email { font: 600 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif !important; text-transform: none !important; font-variant: normal !important; letter-spacing: 0 !important; word-break: break-all; }
.form.narrow { max-width: 420px; }
.drawer-ctas form { margin: 0; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- item database (icons from the game client) */
.item-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; margin: 0 0 14px; }
.if-field { display: grid; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.if-field select, .if-field .input { width: 100%; min-height: 38px; background: #0b0806; color: #f4e9d8; border: 1px solid #4a3418; border-radius: 3px; padding: 6px 8px; font: 14px/1.2 "Open Sans", sans-serif; text-transform: none; letter-spacing: 0; }
.item-filter .btn { min-height: 38px; }
.item-count { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.item-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.item-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: linear-gradient(180deg, rgba(40, 26, 14, .7), rgba(16, 10, 6, .8)); border: 1px solid #3a2a14; border-radius: 3px; }
.item-ico { width: 40px; height: 40px; display: grid; place-items: center; background: #050302; border: 1px solid #5a4020; box-shadow: inset 0 0 8px rgba(0, 0, 0, .8); }
.item-ico img { width: 32px; height: 32px; image-rendering: auto; }
.item-txt { display: grid; min-width: 0; }
.item-txt b { color: #f4e9d8; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-txt small { color: var(--muted); font-size: 12px; }
.item-meta { display: grid; justify-items: end; gap: 2px; font-size: 11px; white-space: nowrap; }
.item-meta .deg { color: #ffa800; font-weight: 800; }
.item-meta .lvl { color: var(--muted); }
.item-card.r-sox .item-txt b, .item-card.r-sox .rar { color: #ffd34d; }
.item-card.r-sox .item-ico { border-color: #c99a3a; box-shadow: inset 0 0 8px rgba(0, 0, 0, .8), 0 0 8px rgba(255, 200, 60, .25); }
.item-card.r-egy .item-txt b, .item-card.r-egy .rar { color: #ff8ad8; }
.item-card.r-egy .item-ico { border-color: #a84a90; box-shadow: inset 0 0 8px rgba(0, 0, 0, .8), 0 0 8px rgba(255, 110, 210, .25); }
.item-card.r-normal .rar { color: #b9c7d8; }

/* ---- character faces */
.char-face { width: 96px; height: 96px; border: 2px solid #c99a3a; border-radius: 4px; background: radial-gradient(circle at 50% 35%, #3a2814, #0b0705); box-shadow: 0 0 0 3px #0b0705, 0 0 18px rgba(255, 168, 0, .25); object-fit: cover; }
.slot img { width: 32px; height: 32px; }
.face-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; }
.face-strip img { width: 56px; height: 56px; border: 1px solid #5a4020; border-radius: 3px; background: radial-gradient(circle at 50% 35%, #3a2814, #0b0705); transition: transform .2s, border-color .2s; }
.face-strip img:hover { transform: translateY(-3px); border-color: #ffa800; }

/* ---- item details + game-style item tooltips */
.item-card { position: relative; }
.item-link { position: absolute; inset: 0; z-index: 1; }
.item-card:hover { border-color: #8a6420; }
.item-head { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.item-head h3 { margin: 0 0 4px; color: #f4e9d8; font-size: 20px; }
.item-head p { margin: 0; color: var(--muted); font-size: 14px; }
.item-head.r-sox h3, .item-head.r-sox .rar { color: #ffd34d; }
.item-head.r-egy h3, .item-head.r-egy .rar { color: #ff8ad8; }
.item-ico.big { width: 64px; height: 64px; }
.item-ico.big img { width: 52px; height: 52px; }
.item-ico.sm { width: 36px; height: 36px; }
.sox-name { color: #ffd34d; }
.plus { color: #ffa800; font-style: normal; font-weight: 800; }
.slot.has-tip { position: relative; cursor: help; outline: none; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; display: none; width: max-content; max-width: 300px; transform: translateX(-50%); padding: 10px 12px; background: rgba(8, 10, 20, .96); border: 1px solid #6a7a9a; box-shadow: 0 8px 24px rgba(0, 0, 0, .8); font: 12px/1.55 "Open Sans", sans-serif; color: #e8e8e8; text-align: left; pointer-events: none; }
.tip > span, .tip > b { display: block; }
.slot > .tip { display: none; }
.slot.has-tip:hover > .tip, .slot.has-tip:focus > .tip, .slot.has-tip:focus-within > .tip { display: block; }
.slot .tip b.tip-name { color: #fff; }
.slot .tip b.tip-name.sox { color: #ffd34d; }
.tip-name { font-size: 13px; color: #fff; }
.tip-name.sox { color: #ffd34d; }
.tip-sox { color: #ffd34d; }
.tip-deg { color: #b9c7d8; margin-bottom: 4px; }
.tip-sep { height: 1px; margin: 6px 0; background: #3a4660; }
.tip-blue { color: #50cecd; }
.tip-red { color: #ff2f51; }
@media (max-width: 640px) { .tip { left: 0; transform: none; max-width: calc(100vw - 48px); } }

/* ---- faces next to names */
.nm-face { display: inline-flex; align-items: center; gap: 8px; }
.mini-face { width: 28px; height: 28px; flex: none; border: 1px solid #5a4020; border-radius: 3px; background: radial-gradient(circle at 50% 35%, #3a2814, #0b0705); object-fit: cover; }
.char-card .mini-face { width: 40px; height: 40px; }
