/* The Heva Clonia website (src/main/siteServer.ts serves it). Colours from
   the game's logo: gold, teal and the cat's violet, on a night-sky navy. */
:root {
  --bg: #0e0b22;
  --bg2: #141032;
  --panel: #1c1744;
  --panel2: #251e58;
  --panel3: #2e2669;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f3f0ff;
  --soft: #cfc8f2;
  --muted: #9a92c4;
  --gold: #ffc83d;
  --gold2: #ffe08a;
  --gold3: #e09a00;
  --teal: #31e3c3;
  --violet: #8f73ff;
  --pink: #ff7ebd;
  --ok: #3fdc8b;
  --bad: #ff5f78;
  --wait: #ffb547;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(4, 2, 18, .45);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(143, 115, 255, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(49, 227, 195, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #241600; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.noscript { padding: 20px; text-align: center; }
.sr-only, .honey { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 28px; height: 28px; }
.icon.sm { width: 16px; height: 16px; }

/* ------------------------------------------------------------ buttons, fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--body); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); color: var(--text); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold {
  background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, var(--gold3));
  border-color: #ffd765; color: #2b1a00; box-shadow: 0 6px 18px rgba(255, 200, 61, .25), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn.gold:hover:not(:disabled) { background: linear-gradient(180deg, #fff0b8, var(--gold2) 50%, var(--gold)); color: #2b1a00; box-shadow: 0 8px 24px rgba(255, 200, 61, .35); }
.btn.teal { background: linear-gradient(180deg, #6ff5dc, var(--teal)); border-color: #7af7e0; color: #022a24; }
.btn.teal:hover:not(:disabled) { color: #022a24; background: linear-gradient(180deg, #9dfbe9, #4cebce); }
.btn.danger { border-color: rgba(255, 95, 120, .5); color: #ffc2cc; }
.btn.danger:hover:not(:disabled) { background: rgba(255, 95, 120, .15); color: #ffd9df; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.link { background: none; border: none; padding: 0; color: var(--gold2); font-weight: 700; }
.btn.link:hover { transform: none; background: none; color: var(--gold); }

label.field { display: block; margin: 0 0 14px; font-size: 14px; color: var(--soft); font-weight: 600; }
label.field > span.hint { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font: 15px/1.4 var(--body); color: var(--text);
  background: rgba(8, 6, 24, .55); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(49, 227, 195, .18); }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { display: inline-block; width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--teal); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 2px; font-size: 14.5px; color: var(--soft); margin: 4px 0 16px; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > * { flex: 1 1 180px; }
.row > .btn, .row > .grow-0 { flex: 0 0 auto; }
.error { color: var(--bad); font-size: 14px; min-height: 1.3em; margin: 6px 0 0; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(14, 11, 34, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px;
  color: var(--soft); font-weight: 700; font-size: 15px;
}
.mainnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.mainnav a.on { color: var(--gold2); background: rgba(255, 200, 61, .1); }
.mainnav .nav-account { display: none; }
.account-area { display: flex; align-items: center; gap: 10px; }
.credit-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 8px; border-radius: 999px;
  background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .35); color: var(--gold2); font-weight: 800; font-size: 14.5px;
}
.credit-chip:hover { background: rgba(255, 200, 61, .18); color: var(--gold2); }
.user-menu { position: relative; }
.user-button { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .05); color: var(--text); font: 700 14.5px var(--body); cursor: pointer; }
.user-button:hover { background: rgba(255, 255, 255, .1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); color: #241600;
  background: linear-gradient(135deg, var(--gold2), var(--pink)); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--panel); border: 1px solid var(--line2);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--soft);
  font: 700 14.5px var(--body); background: none; border: none; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.dropdown hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05);
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ page parts */
main { display: block; min-height: 60vh; outline: none; }
.loading-page { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .12); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section { padding: 46px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 5px; background: linear-gradient(var(--gold), var(--pink)); }
.section-head a { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card { background: linear-gradient(180deg, rgba(37, 30, 88, .9), rgba(28, 23, 68, .9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h3 { margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; border: 1px dashed var(--line2); border-radius: var(--radius); }
.empty .icon { width: 38px; height: 38px; margin: 0 auto 10px; opacity: .7; }

.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 11, 34, .95) 0%, rgba(14, 11, 34, .78) 45%, rgba(14, 11, 34, .35) 100%), linear-gradient(0deg, var(--bg), transparent 55%); }
.page-head .wrap { position: relative; z-index: 1; padding: 54px 0 44px; }
.page-head h1 { margin-bottom: 8px; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.page-head p { color: var(--soft); max-width: 620px; margin: 0; font-size: 17px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 800 11.5px/1 var(--body); letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--soft); }
.badge.gold { background: rgba(255, 200, 61, .16); color: var(--gold2); }
.badge.teal { background: rgba(49, 227, 195, .14); color: var(--teal); }
.badge.violet { background: rgba(143, 115, 255, .2); color: #c6b8ff; }
.badge.pink { background: rgba(255, 126, 189, .16); color: #ffb3d8; }
.badge.ok { background: rgba(63, 220, 139, .15); color: var(--ok); }
.badge.bad { background: rgba(255, 95, 120, .15); color: #ff9aab; }
.badge.wait { background: rgba(255, 181, 71, .16); color: var(--wait); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 220, 139, .18); display: inline-block; }
.dot.off { background: var(--muted); box-shadow: none; }

/* the credit coin */
.coin { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff6c4, var(--gold) 48%, var(--gold3)); box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .35), 0 1px 3px rgba(0, 0, 0, .4);
  color: #6b4100; font: 800 11px/1 var(--display); }
.coin.lg { width: 30px; height: 30px; font-size: 16px; }
.price { display: inline-flex; align-items: center; gap: 7px; font: 700 18px/1 var(--display); color: var(--gold2); }
.price .rp { font: 600 12.5px var(--body); color: var(--muted); margin-left: 2px; }

/* ------------------------------------------------------------ home */
.hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero > img.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14, 11, 34, .35) 0%, rgba(14, 11, 34, .82) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 0 60px; }
.hero-logo { width: min(340px, 72vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-tag { font: 600 clamp(18px, 2.3vw, 24px)/1.35 var(--display); color: #fff; max-width: 660px; margin: 18px 0 26px; text-shadow: 0 3px 14px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.status-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(14, 11, 34, .7);
  border: 1px solid var(--line2); font-weight: 700; font-size: 14px; color: var(--soft); backdrop-filter: blur(6px); }
.status-pill b { color: var(--text); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -42px; position: relative; z-index: 2; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line2); color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.quick a:hover { transform: translateY(-3px); border-color: rgba(255, 200, 61, .5); color: var(--text); }
.quick .q-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quick .q-icon .icon { width: 26px; height: 26px; }
.quick b { display: block; font: 600 17px var(--display); }
.quick span.small { color: var(--muted); }
.q-gold { background: rgba(255, 200, 61, .15); color: var(--gold); }
.q-teal { background: rgba(49, 227, 195, .14); color: var(--teal); }
.q-violet { background: rgba(143, 115, 255, .2); color: #b9a8ff; }
.q-pink { background: rgba(255, 126, 189, .16); color: var(--pink); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); transition: transform .15s ease, border-color .15s ease; box-shadow: var(--shadow); }
.news-card:hover { transform: translateY(-3px); border-color: var(--line2); color: var(--text); }
.news-card .thumb { aspect-ratio: 16 / 7; position: relative; overflow: hidden; background: var(--panel2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb .badge { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(6px); }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card h3 { margin: 0; font-size: 18px; }
.news-card .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.news-card p { color: var(--soft); font-size: 14.5px; margin: 0; }
.pin { color: var(--gold); }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.class-card { position: relative; padding: 20px; border-radius: var(--radius); background: linear-gradient(170deg, var(--panel2), var(--panel)); border: 1px solid var(--line); overflow: hidden; }
.class-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(var(--accent, var(--gold)), transparent 70%); opacity: .25; }
.class-card .portraits { display: flex; gap: 8px; margin-bottom: 14px; position: relative; }
.class-card .portraits img { width: 64px; height: 64px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .25); }
.class-card h3 { margin-bottom: 8px; }
.class-path { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12.5px; color: var(--soft); }
.class-path + .class-path { margin-top: 6px; }
.class-path span { padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.class-path .icon { width: 12px; height: 12px; color: var(--muted); }
.class-card.closed { opacity: .55; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; right: 16px; top: 10px; font: 700 44px/1 var(--display); color: rgba(255, 255, 255, .07); }
.step .icon { color: var(--teal); margin-bottom: 10px; }
.step b { display: block; font: 600 17px var(--display); margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ shop */
.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 26px 0 18px; }
.char-pick { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.char-pick img { width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.char-pick select { margin: 0; min-width: 190px; padding: 8px 34px 8px 12px; border-radius: 10px; }
.char-pick .credits { display: flex; align-items: center; gap: 7px; font: 700 17px var(--display); color: var(--gold2); padding: 0 6px; }
.search { position: relative; flex: 0 1 320px; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { margin: 0; padding-left: 40px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--soft); font: 700 14px var(--body); cursor: pointer; }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.chip.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: #ffd765; color: #2b1a00; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.item-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px;
  border-radius: var(--radius); background: linear-gradient(175deg, var(--panel2), var(--panel)); border: 1px solid var(--line); cursor: pointer;
  color: var(--text); font: inherit; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.item-card:hover { transform: translateY(-3px); border-color: rgba(255, 200, 61, .45); box-shadow: 0 16px 34px rgba(4, 2, 18, .55); }
.item-card .item-tab { position: absolute; left: 10px; top: 10px; }
.icon-tile { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; margin: 8px 0 6px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 224, 138, .28), rgba(143, 115, 255, .12) 55%, transparent 72%), rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .08); }
.icon-tile img { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.icon-tile.lg { width: 132px; height: 132px; border-radius: 28px; }
.icon-tile.lg img { width: 92px; height: 92px; }
.icon-tile.sm { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.icon-tile.sm img { width: 36px; height: 36px; }
.item-card .item-name { font: 600 16px/1.25 var(--display); }
.item-card .item-qty { font-size: 13px; color: var(--muted); font-weight: 700; }
.item-card .price { margin-top: auto; padding-top: 8px; }
.item-card .warn-flag { position: absolute; right: 10px; top: 10px; color: var(--wait); }

.item-detail { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.item-detail .desc { color: var(--soft); font-size: 15px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--soft); background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }
.note.warn { background: rgba(255, 181, 71, .1); color: #ffd9a3; }
.note.warn .icon { color: var(--wait); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.row > .stepper { flex: 0 0 auto; }
.stepper button { width: 40px; height: 40px; background: rgba(255, 255, 255, .06); border: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 46px; text-align: center; font: 700 17px var(--display); }
.buy-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------ top-up */
.topup-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; margin-top: 26px; }
.topup-step { background: linear-gradient(180deg, rgba(37, 30, 88, .85), rgba(28, 23, 68, .85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; }
.topup-step + .topup-step { margin-top: 16px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-title .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--display); color: #2b1a00;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); flex: none; }
.step-title h3 { margin: 0; }
.step-title .done { margin-left: auto; color: var(--ok); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 2px solid var(--line); color: var(--text); font: inherit; text-align: center; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.pick:hover { border-color: var(--line2); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.pick.on { border-color: var(--gold); background: rgba(255, 200, 61, .1); box-shadow: 0 0 0 3px rgba(255, 200, 61, .15); }
.pick.on::after { content: ""; position: absolute; right: 9px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1a00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pick .amount { font: 700 22px/1 var(--display); color: var(--gold2); display: flex; align-items: center; gap: 8px; }
.pick .label { font-size: 13px; color: var(--muted); font-weight: 700; }
.pick .cost { font-weight: 800; font-size: 14.5px; color: var(--text); }
.pick .bonus { font-size: 12px; font-weight: 800; color: var(--teal); }
.pick.char img { width: 54px; height: 54px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.pick.char b { font: 600 16px var(--display); }
.pick.method { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 14px; }
.pick.method .m-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--teal); flex: none; overflow: hidden; }
.pick.method .m-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pick.method b { display: block; font-size: 15.5px; }
.method-group + .method-group { margin-top: 14px; }
.method-group h4 { font: 800 12.5px var(--body); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pay-box { border-radius: 16px; background: rgba(8, 6, 24, .45); border: 1px solid var(--line2); padding: 16px; }
.pay-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line2); }
.pay-line:last-child { border-bottom: none; }
.pay-line span { color: var(--muted); font-size: 14px; }
.pay-line b { font-size: 17px; letter-spacing: .3px; word-break: break-all; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--soft); font: 700 12.5px var(--body); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.qris-img { width: min(280px, 100%); border-radius: 16px; background: #fff; padding: 10px; margin: 12px auto; }
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; padding: 26px 16px; border-radius: 16px; border: 2px dashed var(--line2); cursor: pointer;
  color: var(--muted); transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: rgba(49, 227, 195, .06); color: var(--soft); }
.dropzone .icon { width: 34px; height: 34px; color: var(--teal); }
.dropzone img { max-height: 260px; width: auto; border-radius: 12px; }
.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.summary .line span:first-child { color: var(--muted); }
.summary .line b { text-align: right; }
.summary .total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; font: 700 22px var(--display); }
.summary .total b { color: var(--gold2); }
.success-box { text-align: center; padding: 34px 20px; }
.success-box .big { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(63, 220, 139, .15); color: var(--ok); }
.success-box .big .icon { width: 38px; height: 38px; }
.order-id { font: 700 30px var(--display); color: var(--gold2); letter-spacing: 1px; }

/* ------------------------------------------------------------ rankings */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin: 28px 0 22px; }
.podium .spot { text-align: center; padding: 22px 14px 18px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); position: relative; }
.podium .spot.first { padding-top: 34px; border-color: rgba(255, 200, 61, .5); box-shadow: 0 0 40px rgba(255, 200, 61, .12); }
.podium .medal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; font: 700 18px var(--display); color: #2b1a00; }
.medal.m1 { background: linear-gradient(180deg, #fff1a8, #ffc83d); }
.medal.m2 { background: linear-gradient(180deg, #f4f6ff, #b9c1d9); }
.medal.m3 { background: linear-gradient(180deg, #ffd4ae, #d98a4e); }
.podium img { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); }
.podium b { display: block; font: 600 18px var(--display); }
.podium .lv { font: 700 22px var(--display); color: var(--gold2); margin-top: 4px; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(20, 16, 50, .7); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; background: rgba(255, 255, 255, .03); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
td .who { display: flex; align-items: center; gap: 10px; }
td .who img { width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
td input { margin: 0; padding: 8px 10px; min-width: 90px; }
.rank-num { font: 700 17px var(--display); color: var(--muted); width: 44px; }

/* ------------------------------------------------------------ news, text pages */
.article { max-width: 820px; margin: 28px auto 0; }
.article .cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 22px; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.prose { font-size: 16.5px; color: var(--soft); }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose h3 { color: var(--text); margin-top: 1.2em; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(28, 23, 68, .8); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font: 600 17px var(--display); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--gold); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 16px; color: var(--soft); }

/* ------------------------------------------------------------ account pages */
.auth-wrap { display: grid; place-items: center; padding: 50px 0 30px; position: relative; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 30px; }
.auth-card .switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 22px 0 20px; }
.tabs button { padding: 11px 16px; border: none; background: none; color: var(--muted); font: 700 15px var(--body); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--gold2); border-bottom-color: var(--gold); }
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.char-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: linear-gradient(170deg, var(--panel2), var(--panel)); border: 1px solid var(--line); }
.char-card img { width: 64px; height: 64px; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.char-card b { font: 600 18px var(--display); display: block; }
.status { font-weight: 800; }

/* ------------------------------------------------------------ owner page */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
/* Wide tables scroll in their own box instead of widening the page. */
.admin > * { min-width: 0; }
.admin-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.admin-side button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: none; background: none; color: var(--soft); font: 700 14.5px var(--body); cursor: pointer; text-align: left; }
.admin-side button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.admin-side button.on { background: rgba(255, 200, 61, .12); color: var(--gold2); }
.admin-side .count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: var(--radius); background: linear-gradient(170deg, var(--panel2), var(--panel)); border: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.stat b { font: 700 28px var(--display); }
.request { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.request:last-child { border-bottom: none; }
.request img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: rgba(0, 0, 0, .3); }
.request .actions { display: flex; flex-direction: column; gap: 8px; }
.switch-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch-toggle input { opacity: 0; width: 0; height: 0; margin: 0; }
.switch-toggle span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .15); cursor: pointer; transition: background .15s ease; }
.switch-toggle span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch-toggle input:checked + span { background: var(--ok); }
.switch-toggle input:checked + span::before { transform: translateX(20px); }
.switch-toggle input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.editor-list > .editor-row { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.editor-list > .editor-row + .editor-row { margin-top: 10px; }
.editor-row .row { align-items: flex-end; }
.thumb-pick { display: flex; align-items: center; gap: 10px; }
.thumb-pick img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; }
.banner-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.banner-picks button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16 / 7; }
.banner-picks button img { width: 100%; height: 100%; object-fit: cover; }
.banner-picks button.on { border-color: var(--gold); }

/* ------------------------------------------------------------ footer */
.footer { margin-top: 70px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 16, 50, .6), rgba(10, 8, 26, .95)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
.footer img.logo { height: 64px; width: auto; margin-bottom: 12px; }
.footer h4 { font: 700 14px var(--body); text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 9px; }
.footer li a { color: var(--soft); font-weight: 600; }
.footer li a:hover { color: var(--gold2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--soft); }
.socials a:hover { background: rgba(255, 200, 61, .14); color: var(--gold2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ modal, toast */
.modal-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 16, .72); backdrop-filter: blur(4px); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2);
  border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s ease; }
.modal-box.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.modal-head h3 { margin: 0; }
.modal-close { width: 38px; height: 38px; border-radius: 12px; border: none; background: rgba(255, 255, 255, .07); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { background: rgba(255, 255, 255, .14); }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 22px 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 14px;
  background: var(--panel3); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 700; display: flex; gap: 10px; align-items: center; animation: rise .2s ease; }
.toast.good { border-color: rgba(63, 220, 139, .55); }
.toast.good .icon { color: var(--ok); }
.toast.bad { border-color: rgba(255, 95, 120, .55); }
.toast.bad .icon { color: var(--bad); }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 1080px) {
  .mainnav a { padding: 9px 10px; font-size: 14.5px; }
  .mainnav a .icon { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .mainnav { position: fixed; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: rgba(14, 11, 34, .98); border-bottom: 1px solid var(--line2); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - 72px); overflow-y: auto; }
  body.nav-open .mainnav { transform: none; }
  .mainnav a { padding: 13px 12px; font-size: 16px; }
  .mainnav a .icon { display: inline-block; }
  .mainnav .nav-account { display: flex; }
  .account-area .user-menu, .account-area .auth-buttons { display: none; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .classes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .topup-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: static; flex-direction: row; overflow-x: auto; }
  .admin-side button { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-inner { min-height: 64px; gap: 10px; }
  .brand img { height: 46px; }
  .mainnav { top: 64px; max-height: calc(100vh - 64px); }
  .credit-chip { padding: 6px 10px 6px 6px; font-size: 13.5px; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 50px 0 64px; }
  .quick { gap: 10px; }
  .quick a { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
  .quick span.small { display: none; }
  .news-grid, .classes, .steps { grid-template-columns: 1fr; }
  .items { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item-card { padding: 14px 8px 12px; }
  .icon-tile { width: 76px; height: 76px; }
  .icon-tile img { width: 56px; height: 56px; }
  .item-card .item-name { font-size: 14.5px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .method-group .pick-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .spot.first { order: -1; }
  .item-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .request { grid-template-columns: 80px 1fr; }
  .request img { width: 80px; height: 80px; }
  .request .actions { grid-column: 1 / -1; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; }
  .char-pick { flex: 1 1 100%; }
  .char-pick select { min-width: 0; flex: 1; }
  .page-head .wrap { padding: 38px 0 32px; }
  .card { padding: 18px; }
  .modal-body { padding: 16px; }
}

/* The wiki (v150, wiki.js). */
.wiki-search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 20px; margin-bottom: 34px; box-shadow: var(--shadow); }
.wiki-search > svg { color: var(--muted); flex: none; }
.wiki-search input, .wiki-filter input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); outline: none; }
.wiki-search input { font: 600 17px var(--body); padding: 10px 0; }
.wiki-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; }
.wiki-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.wiki-result:hover, .wiki-result:focus { background: rgba(255, 255, 255, .07); color: var(--text); }
.wiki-result > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-result img, .wiki-link img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 4px; flex: none; }
.wiki-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 34px; }
.wiki-guides .card + .card { margin-top: 0; }
.wiki-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wiki-guide-list a { font-weight: 700; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.wiki-card { display: block; background: linear-gradient(180deg, rgba(37, 30, 88, .9), rgba(28, 23, 68, .9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); transition: transform .15s, border-color .15s; }
.wiki-card:hover { transform: translateY(-2px); border-color: var(--line2); color: var(--text); }
.wiki-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--gold); }
.wiki-card h3 { margin-bottom: 6px; }
.wiki-card p { margin: 0; }
.wiki-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.wiki-filter { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 16px; flex: 1; max-width: 460px; color: var(--muted); }
.wiki-filter input { font: 600 15px var(--body); padding: 8px 0; }
.wiki-link { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.wiki-links { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.wiki-table td { vertical-align: middle; }
.wiki-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.wiki-article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-bottom: 30px; }
.wiki-article.no-box { grid-template-columns: minmax(0, 1fr); }
.wiki-body { min-width: 0; }
.wiki-lead { font-size: 18px; color: var(--soft); }
.wiki-section { margin: 0 0 28px; }
.wiki-section h2 { font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.wiki-section ul { margin: 0 0 .8em; padding-left: 22px; }
.wiki-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wiki-chips .wiki-link { padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.wiki-infobox { position: sticky; top: 90px; padding: 18px; }
.wiki-infobox-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.wiki-infobox-head img { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.wiki-infobox-head > svg { width: 40px; height: 40px; color: var(--gold); flex: none; }
.wiki-infobox-head strong { font-family: var(--display); font-size: 19px; display: block; }
.wiki-infobox dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 14.5px; }
.wiki-infobox dt { color: var(--muted); }
.wiki-infobox dd { margin: 0; overflow-wrap: anywhere; }
.wiki-foot { margin-top: 30px; }
@media (max-width: 960px) {
  .wiki-article { grid-template-columns: minmax(0, 1fr); }
  .wiki-infobox { position: static; order: -1; }
}
