/* MuWEB Online — website. Dark stone, old gold, embers. A classic portal: header + menu, a banner, and three columns
   (account / server / events | the page | top players / castle / guilds), built by shell.js on every page. */
:root {
  --bg: #0b0907;
  --bg2: #120e0a;
  --stone: #1a1510;
  --stone2: #241c14;
  --line: rgba(226, 182, 90, .22);
  --line2: rgba(226, 182, 90, .45);
  --gold: #e2b65a;
  --gold-hi: #ffe7a3;
  --gold-lo: #8a6224;
  --ember: #ff6a1f;
  --text: #e9dcc4;
  --muted: #a8977c;
  --dim: #7a6d5a;
  --ok: #7be07b;
  --bad: #ff8a7a;
  --radius: 3px;
  --head: 'Cinzel', 'Times New Roman', serif;
  --deco: 'Cinzel Decorative', 'Cinzel', serif;
  --body: 'Alegreya Sans', system-ui, sans-serif;
  --gold-grad: linear-gradient(180deg, #fff3c4 0%, #f0c968 36%, #b98428 62%, #ffe29a 100%);
  --nav-h: 60px;
  --side: 236px;
  --max: 1480px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 15% 0%, rgba(120, 60, 20, .10), transparent 60%),
    radial-gradient(900px 500px at 90% 40%, rgba(90, 40, 10, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .32 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
button { font-family: inherit; }
kbd { font: 600 .82em var(--body); color: var(--gold-hi); background: #20180f; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px; padding: 0 .4em; white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
.small { margin: 2px 0 0; font-size: 13px; color: var(--dim); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 40px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 1.4em; font: 700 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; transition: transform .15s, box-shadow .25s, filter .2s; white-space: nowrap;
}
.btn-sm { --h: 32px; font-size: 11px; padding: 0 1em; }
.btn-gold {
  color: #2a1606; background: var(--gold-grad); border: 1px solid #ffe8a8;
  box-shadow: 0 0 0 1px #5a3a10, 0 0 18px rgba(255, 170, 60, .3), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,70,10,.5);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
}
.btn-gold:hover { color: #2a1606; transform: translateY(-1px); box-shadow: 0 0 0 1px #5a3a10, 0 0 30px rgba(255, 170, 60, .55), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,70,10,.5); }
.btn-ghost { color: var(--gold-hi); background: rgba(20, 14, 8, .6); border: 1px solid var(--line2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); box-shadow: 0 0 20px rgba(226, 182, 90, .25); }

/* ------------------------------------------------------------------ type */
.eyebrow { margin: 0 0 4px; font: 700 12px var(--head); letter-spacing: .32em; text-transform: uppercase; color: var(--ember); text-shadow: 0 0 12px rgba(255, 106, 31, .4); }
.gold-title {
  margin: 0; font: 800 clamp(28px, 4vw, 42px)/1.1 var(--head); letter-spacing: .04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 170, 70, .3)) drop-shadow(0 2px 0 #2a1806);
}
.panel-title { margin: 0 0 10px; font: 700 14px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* the ornament frame: dark stone, a thin gold line and gold corner brackets (widgets, boxes, the old .panel) */
.panel, .wg, .box {
  position: relative; background: linear-gradient(180deg, rgba(36, 28, 20, .92), rgba(16, 12, 9, .94)); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.7), inset 0 0 40px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35); border-radius: var(--radius);
}
.panel::after, .wg::after, .box::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: var(--radius);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 2px, linear-gradient(var(--gold), var(--gold)) top left / 2px 14px,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 2px, linear-gradient(var(--gold), var(--gold)) top right / 2px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 2px, linear-gradient(var(--gold), var(--gold)) bottom left / 2px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 2px, linear-gradient(var(--gold), var(--gold)) bottom right / 2px 14px;
  background-repeat: no-repeat; opacity: .8;
}

/* ------------------------------------------------------------------ header */
.sh-top { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: linear-gradient(180deg, rgba(16, 12, 8, .97), rgba(9, 7, 5, .97)); border-bottom: 1px solid var(--line2); box-shadow: 0 4px 18px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.sh-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, transparent); opacity: .55; }
.sh-bar { height: 100%; width: min(var(--max), 100% - 24px); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.sh-brand { display: flex; align-items: center; gap: 8px; flex: none; }
.sh-emblem { width: 50px; height: 27px; filter: drop-shadow(0 0 6px rgba(255, 160, 60, .45)); }
.sh-name { font: 900 20px/1 var(--deco); letter-spacing: .03em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.sh-name small { font: 700 10px var(--head); letter-spacing: .3em; text-transform: uppercase; margin-left: 3px; -webkit-text-fill-color: var(--muted); }
.sh-menu { display: flex; align-items: stretch; height: 100%; margin: 0 auto; }
.sh-menu a { position: relative; display: flex; align-items: center; padding: 0 13px; font: 700 12px var(--head); letter-spacing: .13em; text-transform: uppercase; color: var(--text); white-space: nowrap; transition: color .15s, background .15s; }
.sh-menu a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); transition: left .2s, right .2s; }
.sh-menu a:hover { color: var(--gold-hi); background: rgba(226, 182, 90, .05); }
.sh-menu a:hover::after, .sh-menu a.on::after { left: 10px; right: 10px; }
.sh-menu a.on { color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 190, 90, .45); }
.sh-status { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 8, 6, .6);
  font: 700 11px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex: none; }
.sh-status b { color: var(--gold-hi); }
.sh-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.sh-status.up { color: var(--text); border-color: rgba(123, 224, 123, .35); }
.sh-status.up .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
.sh-status.down { color: var(--bad); border-color: rgba(255, 110, 90, .35); }
.sh-status.down .dot { background: #ff5a4a; }
.sh-peak { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--ok); } }
.sh-play { flex: none; }
/* the EN | RU switch (the game's .langsw look, src/client/style.css) */
.langsw { display: inline-flex; flex: none; border: 1px solid #5a4a2a; border-radius: 3px; overflow: hidden; }
.langsw button { background: rgba(20, 14, 6, .7); border: 0; color: #a89870; padding: 4px 9px; font: 700 11px/1.4 var(--head); letter-spacing: .08em; cursor: pointer; min-width: 0; }
.langsw button + button { border-left: 1px solid #5a4a2a; }
.langsw button.on { background: #4a3818; color: #ffe0a0; cursor: default; }
.langsw button:not(.on):hover { color: #fff; }
.langsw button:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.sh-burger { display: none; width: 40px; height: 40px; flex: none; background: none; border: 1px solid var(--line2); border-radius: 2px; cursor: pointer; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.sh-burger span { display: block; height: 2px; background: var(--gold); transition: transform .25s, opacity .25s; }
.sh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ banner */
.sh-banner { position: relative; height: 250px; overflow: hidden; background: radial-gradient(ellipse 50% 90% at 72% 50%, #2e160a, #070504 70%); border-bottom: 1px solid var(--line2); isolation: isolate; }
.sh-banner::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,4,3,.92) 0%, rgba(5,4,3,.6) 34%, transparent 62%), linear-gradient(180deg, transparent 60%, rgba(5,4,3,.75)); }
.sb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.sb-slide.on { opacity: 1; visibility: visible; }
.sb-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-slide.on > img { animation: kb 14s ease-out both; }
/* the key art: the winged hero whole, on the right, its dark left edge fading into the banner */
.sb-slide > img.sb-fit { inset: auto; top: -18%; right: max(0px, calc((100% - var(--max)) / 2 - 120px)); width: auto; height: 136%; max-width: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.sb-copy { position: relative; z-index: 2; height: 100%; width: min(var(--max), 100% - 32px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sb-copy > * { max-width: 560px; }
.sb-title { margin: 0; font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--head); letter-spacing: .03em; color: var(--gold-hi); text-shadow: 0 0 18px rgba(255, 170, 70, .4), 0 2px 4px #000; }
.sb-text { margin: 8px 0 0; font: italic 400 17px/1.4 var(--body); color: #f0e2c8; text-shadow: 0 1px 6px #000; }
.sb-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sb-logo { display: grid; justify-items: start; line-height: 1; }
.sb-logo svg { width: 120px; height: 64px; margin: 0 0 -6px 4px; filter: drop-shadow(0 0 14px rgba(255, 150, 50, .55)); }
.sb-logo b { font: 900 clamp(44px, 6vw, 72px)/.95 var(--deco); letter-spacing: .02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255, 170, 70, .45)) drop-shadow(0 3px 0 #3a2208) drop-shadow(0 6px 10px rgba(0,0,0,.9)); }
.sb-logo span { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 700 14px/1 var(--head); letter-spacing: .55em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 170, 70, .6), 0 2px 3px #000; }
.sb-logo span i { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sb-logo span i:last-child { transform: scaleX(-1); }
.sb-dots { position: absolute; z-index: 3; right: max(16px, calc((100% - var(--max)) / 2)); bottom: 14px; display: flex; gap: 8px; }
.sb-dots button { width: 12px; height: 12px; padding: 0; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(0,0,0,.5); cursor: pointer; }
.sb-dots button[aria-selected="true"] { background: var(--gold-grad); box-shadow: 0 0 10px rgba(255, 170, 70, .7); }
/* inner pages: a compact strip with the page's title */
.sh-banner-sm { height: 130px; }
.sh-banner-sm .sb-slide > img { animation: none; }
.sh-banner-sm .sb-slide > img.sb-fit { height: 190%; top: -42%; }
.sh-banner-sm .sb-copy { justify-content: center; }
.sh-banner-sm .sb-text { font-size: 15px; margin-top: 4px; }

/* ------------------------------------------------------------------ the three columns */
.sh-layout { width: min(var(--max), 100% - 24px); margin: 16px auto 28px; display: grid; gap: 14px; align-items: start;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side); grid-template-areas: "left main right"; }
.sh-center { grid-area: main; min-width: 0; }
.sh-left { grid-area: left; }
.sh-right { grid-area: right; }
.sh-side { display: grid; gap: 14px; min-width: 0; }
.pg { display: grid; gap: 14px; }
.pg > *, .sh-side > * { min-width: 0; }

/* sidebar widgets */
.wg-h { position: relative; margin: 0; padding: 9px 12px 8px; text-align: center; font: 700 12px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(80, 56, 24, .55), rgba(30, 22, 12, .6)); border-bottom: 1px solid var(--line2); text-shadow: 0 0 10px rgba(255, 170, 70, .35), 0 1px 2px #000; }
.wg-h span::before, .wg-h span::after { content: '◆'; display: inline-block; margin: 0 8px; font-size: 7px; vertical-align: 2px; color: var(--gold); }
.wg-b { padding: 10px 12px 12px; font-size: 14px; }
.wg-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wg-empty { list-style: none; color: var(--dim); font-style: italic; text-align: center; padding: 10px 4px; margin: 0; font-size: 13px; }
.wg-more { display: block; margin-top: 8px; text-align: right; font: 600 12px var(--head); letter-spacing: .06em; }
.wg-foot { margin: 6px 0 0; text-align: right; font-size: 11px; color: var(--dim); }
.acc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-find { display: flex; margin-top: 10px; }
.acc-find input, .hero-find input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; font: 500 14px var(--body); color: var(--text); background: rgba(10, 8, 6, .85); border: 1px solid var(--line2); border-radius: 2px 0 0 2px; outline: none; }
.acc-find input:focus, .hero-find input:focus { border-color: var(--gold); }
.acc-find button { width: 34px; border: 1px solid var(--line2); border-left: 0; background: rgba(40, 28, 14, .9); color: var(--gold-hi); cursor: pointer; font-size: 17px; border-radius: 0 2px 2px 0; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(226, 182, 90, .08); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.kv dd b { color: var(--gold-hi); }
.kv small, .ev-n small, .tp-name small { color: var(--dim); font-size: 12px; }
.st-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); vertical-align: 1px; }
.st-dot.off { background: #ff5a4a; box-shadow: none; }

/* the events list */
.evl { list-style: none; margin: 0; padding: 0; }
.ev-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(226, 182, 90, .08); }
.ev-row:last-child { border-bottom: 0; }
.ev-ico { text-align: center; color: var(--gold); font-size: 14px; }
.ev-n { min-width: 0; font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-n small { display: block; overflow: hidden; text-overflow: ellipsis; }
.ev-t { font: 700 13px var(--head); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-live .ev-t { color: #fff; background: var(--ember); padding: 1px 6px; border-radius: 8px; font-size: 11px; letter-spacing: .06em; animation: pulseEmber 1.6s infinite; }
.ev-live .ev-ico { color: #ffb070; }
.ev-soon .ev-t { color: #ffd76a; }
.ev-open .ev-t { color: var(--ok); }
@keyframes pulseEmber { 50% { box-shadow: 0 0 10px rgba(255, 106, 31, .8); } }

/* top players / guilds */
.mini-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: -2px 0 6px; }
.mini-tabs button { padding: 5px 2px; font: 700 10px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(0,0,0,.35); border: 1px solid var(--line); cursor: pointer; }
.mini-tabs button[aria-selected="true"] { color: #2a1606; background: var(--gold-grad); border-color: #ffe8a8; }
.topl { list-style: none; margin: 0; padding: 0; }
.topl li:not(.wg-empty) { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(226, 182, 90, .08); }
.topl li:last-child { border-bottom: 0; }
.tp-n { font: 800 12px var(--head); color: var(--dim); text-align: center; }
.topl li:nth-child(1) .tp-n { color: #ffd76a; text-shadow: 0 0 8px rgba(255, 215, 106, .6); }
.topl li:nth-child(2) .tp-n { color: #d8dce6; }
.topl li:nth-child(3) .tp-n { color: #d08a4a; }
.tp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; line-height: 1.2; }
.tp-name small { display: block; font-weight: 400; color: var(--c, var(--dim)); }
.tp-name .ml { color: #c8a0ff; }
.tp-name .w { color: var(--ok); } .tp-name .l { color: var(--bad); }
.tp-v { font: 700 13px var(--head); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.topg .emblem { margin-right: 6px; }
.cs { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.cs-ico { width: 40px; height: 40px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255,170,70,.5)); }
.cs-k { margin: 0; font: 700 10px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.cs-lord { margin: 0; font: 800 17px/1.2 var(--head); color: var(--gold-hi); overflow-wrap: anywhere; }
.cs-guild { margin: 2px 0 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; }
.cs-next { display: grid; gap: 1px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); text-align: center; }
.cs-next span { font: 700 10px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.cs-next b { font: 700 20px var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.cs-next small { color: var(--dim); font-size: 12px; }
#wg-castle.live .cs-next b { color: #ffb070; }
#wg-castle.live .cs-next span { color: var(--ember); }

/* ------------------------------------------------------------------ the center: boxes, tabs, pager */
.box { padding: 0 16px 14px; }
.box-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 0 -16px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(80, 56, 24, .45), rgba(30, 22, 12, .35)); }
.box-h h2 { margin: 0; font: 700 16px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 170, 70, .35); }
.box-h h2::before { content: '◆'; margin-right: 10px; font-size: 9px; vertical-align: 3px; color: var(--ember); }
.box-sub { font-size: 13px; color: var(--dim); }
.box-lead { margin: 0 0 14px; color: var(--muted); }
.box-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.box-tabs a { flex: none; padding: 6px 12px; font: 700 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid transparent; border-radius: 2px; }
.box-tabs a:hover { color: var(--gold-hi); }
.box-tabs a.on { color: #2a1606; background: var(--gold-grad); border-color: #ffe8a8; }
/* tabs as the first row of a box (about, guides) */
.box-tabs-top { margin: 0 -16px 14px; padding: 8px 12px; border-bottom: 1px solid var(--line2); background: linear-gradient(180deg, rgba(80, 56, 24, .45), rgba(30, 22, 12, .35)); }
.sub-h { margin: 22px 0 12px; font: 700 15px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.pager:empty { display: none; }
.pager button { min-width: 32px; height: 30px; padding: 0 8px; font: 700 13px var(--head); color: var(--muted); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.pager button:hover:not(:disabled) { color: var(--gold-hi); border-color: var(--line2); }
.pager button.on { color: #2a1606; background: var(--gold-grad); border-color: #ffe8a8; }
.pager button:disabled { opacity: .35; cursor: default; }

/* news cards */
.news { display: grid; gap: 10px; }
.nc { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .12); border-radius: 2px; transition: border-color .2s; }
.nc:hover { border-color: var(--line2); }
.nc-img { width: 150px; height: 94px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; background: #000; }
.nc-meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.tag { display: inline-block; padding: 1px 7px; font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line2); border-radius: 8px; color: var(--gold); }
.tag-patch { color: #8ad0ff; border-color: rgba(138, 208, 255, .45); }
.tag-event { color: #ffb070; border-color: rgba(255, 176, 112, .5); }
.nc h3 { margin: 3px 0 2px; font: 700 17px/1.25 var(--head); color: var(--gold-hi); }
.nc-t { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-more { display: none; }
.nc.open .nc-t { display: block; -webkit-line-clamp: unset; }
.nc.open .nc-more { display: inline; }
.nc-read { margin-top: 4px; padding: 0; background: none; border: 0; cursor: pointer; font: 700 12px var(--head); letter-spacing: .08em; color: var(--gold); }
.nc-read:hover { color: var(--gold-hi); }
.nc-read::after { content: ' →'; }

/* the live feed */
.feed { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.fd { break-inside: avoid; display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(226, 182, 90, .08); font-size: 14px; line-height: 1.35; }
.fd-ico { grid-row: span 2; color: var(--gold); text-align: center; }
.fd-castle .fd-ico, .fd-war .fd-ico { color: #ffb040; }
.fd-jewel .fd-ico { color: #46f07a; }
.fd-level .fd-ico { color: #c8a0ff; }
.fd-boss .fd-ico, .fd-raid .fd-ico, .fd-dungeon .fd-ico { color: #ff7a4a; }
.fd time { font-size: 12px; color: var(--dim); }
.feed .wg-empty { column-span: all; }

/* ------------------------------------------------------------------ rankings */
.hero-find { display: flex; align-items: center; gap: 0; }
.hero-find input { width: 180px; }
.hero-find .btn { border-radius: 0 2px 2px 0; border-left: 0; }
.rank-tabs { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rank-cls { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rank-cls button { padding: 3px 11px; font: 600 13px var(--body); color: var(--muted); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rank-cls button:hover { color: var(--text); border-color: var(--line2); }
.rank-cls button[aria-pressed="true"] { color: #2a1606; background: var(--gold-grad); border-color: #ffe8a8; }
.rank-note { margin: 0 0 6px; min-height: 1.3em; color: var(--muted); font-size: 14px; }
.rank-note b { color: var(--gold-hi); }
.map-chip { display: inline-block; margin: 2px 2px 0 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank-table th { font: 700 10px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); background: rgba(0,0,0,.25); }
.rank-table td { padding: 7px 8px; border-bottom: 1px solid rgba(226, 182, 90, .08); white-space: nowrap; }
.rank-table tbody tr:nth-child(even) { background: rgba(255, 230, 180, .02); }
.rank-table tbody tr:hover { background: rgba(226, 182, 90, .07); }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table td.rk { width: 36px; font: 800 14px var(--head); color: var(--dim); }
.rank-table tbody tr:nth-child(1) td.rk { color: #ffd76a; text-shadow: 0 0 10px rgba(255, 215, 106, .6); }
.rank-table tbody tr:nth-child(2) td.rk { color: #d8dce6; }
.rank-table tbody tr:nth-child(3) td.rk { color: #d08a4a; }
.rank-table .nm { font-weight: 700; color: var(--text); }
.rank-table .cls { color: var(--c, var(--muted)); font-size: 14px; }
.rank-table .ml { color: #c8a0ff; }
.rank-table .rk-title { display: block; font-size: 11px; font-style: italic; letter-spacing: .3px; opacity: .9; }
.rank-table .gl { color: var(--muted); font-size: 14px; }
.rank-table .empty { text-align: center; color: var(--dim); padding: 24px 8px; font-style: italic; white-space: normal; }
.rank-table .w { color: var(--ok); font-weight: 700; }
.rank-table .l { color: var(--bad); font-weight: 700; }
.rank-table .rating, .rank-table .floor { color: var(--gold-hi); font-weight: 700; }
.rank-table td.party { white-space: normal; }
.rank-table tbody tr:has(.hero-link) { cursor: pointer; }
.emblem { display: inline-block; width: 18px; height: 18px; image-rendering: pixelated; vertical-align: -4px; margin-right: 7px; border: 1px solid var(--line); background: #0a0806; }
.hero-link { color: inherit; border-bottom: 1px dotted rgba(226, 182, 90, .35); transition: color .15s, border-color .15s; }
.hero-link:hover, tr:hover .hero-link { color: var(--gold-hi); border-bottom-color: var(--gold); }
.crown { color: #ffd76a; margin-left: 6px; text-shadow: 0 0 8px rgba(255, 215, 106, .7); }
.on-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); vertical-align: 2px; }

/* ------------------------------------------------------------------ about: classes */
.class-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.class-tab {
  display: grid; justify-items: center; gap: 4px; padding: 8px 4px 9px; cursor: pointer; min-width: 0;
  background: linear-gradient(180deg, #1d1610, #120d09); border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
  font: 700 11px/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s, color .2s, box-shadow .25s;
}
.class-tab img { width: 56px; height: 56px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; border: 1px solid var(--line2); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 30%, #1a120c), #0b0806 70%); }
.class-tab:hover { color: var(--text); border-color: var(--line2); }
.class-tab[aria-selected="true"] { color: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent), inset 0 0 20px rgba(0,0,0,.5); }
.class-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px; align-items: center; animation: fadeIn .4s both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.class-art { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: end center; max-height: 460px; }
.class-art::before { content: ''; position: absolute; inset: 8% 4% 0; border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--c) 34%, transparent), transparent 66%); filter: blur(6px); }
.class-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 30%, transparent));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 100%); mask-composite: intersect; }
.class-info h3 { margin: 0; font: 800 30px/1.05 var(--head); color: var(--gold-hi); letter-spacing: .03em; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.class-evo { margin: 4px 0 12px; font: 600 12px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.class-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.class-meta li { font: 600 12px var(--body); padding: 3px 10px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(0,0,0,.3); }
.class-meta li b { color: var(--gold); }
.class-desc { margin: 0 0 10px; }
.class-gear { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.skills { display: grid; gap: 6px; }
.skill { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 7px 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .14); border-radius: 2px; }
.skill-ico { width: 40px; height: 40px; display: grid; place-items: center; font: 800 13px var(--head); color: #fff; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--s) 70%, #000);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--s) 75%, #fff), color-mix(in srgb, var(--s) 55%, #000) 75%); text-shadow: 0 1px 2px #000; box-shadow: 0 0 12px color-mix(in srgb, var(--s) 40%, transparent); }
.skill h4 { margin: 0; font: 700 14px var(--head); color: var(--gold-hi); }
.skill h4 small { font: 500 11px var(--body); color: var(--muted); margin-left: 6px; }
.skill p { margin: 1px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* about: the world grid + lightbox, bosses */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.shot { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; cursor: zoom-in; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.06); }
.shot:hover { border-color: var(--gold); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font: 700 11px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); background: linear-gradient(transparent, rgba(0,0,0,.88)); text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 16px; background: rgba(4, 3, 2, .94); }
.lightbox figure { margin: 0; justify-self: center; max-width: min(1280px, 100%); }
.lightbox img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border: 1px solid var(--line2); }
.lightbox figcaption { display: grid; gap: 2px; padding: 10px 2px 0; text-align: center; }
.lightbox figcaption b { font: 800 20px var(--head); color: var(--gold-hi); }
.lightbox figcaption span { color: var(--text); font-size: 15px; }
.lb-x { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; font: 400 30px/1 var(--head); color: var(--gold-hi); background: rgba(20, 14, 8, .8); border: 1px solid var(--line2); cursor: pointer; }
.lb-arrow { width: 44px; height: 60px; border: 1px solid var(--line2); background: rgba(10,8,6,.7); color: var(--gold-hi); font: 400 36px/1 var(--head); cursor: pointer; }
.lb-arrow:hover, .lb-x:hover { background: rgba(40, 28, 14, .9); }
body.lb-on { overflow: hidden; }
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.boss { padding: 8px 8px 10px; text-align: center; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .14); border-radius: 2px; }
.boss .b-art { aspect-ratio: 1; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 28%, transparent), transparent 65%); }
.boss img { width: 100%; height: 100%; object-fit: contain; }
.boss h4 { margin: 4px 0 0; font: 700 14px/1.2 var(--head); color: var(--gold-hi); }
.boss p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.3; }
.boss .tag { margin-top: 6px; color: var(--c); border-color: color-mix(in srgb, var(--c) 50%, transparent); }

/* about: features; server info */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.feat { padding: 14px 14px 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .14); border-radius: 2px; transition: border-color .2s; }
.feat:hover { border-color: var(--line2); }
.feat svg { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 170, 70, .45)); }
.feat h3 { margin: 8px 0 4px; font: 700 16px/1.25 var(--head); color: var(--gold-hi); }
.feat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.info-card { padding: 10px 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .14); border-radius: 2px; }
.info-h { margin: 0 0 4px; font: 700 13px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.info-card dl { margin: 0; }
.info-card dl div { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(226, 182, 90, .08); font-size: 14px; line-height: 1.35; }
.info-card dl div:last-child { border-bottom: 0; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; }
.info-card dd small { color: var(--dim); font-size: 12px; }

/* ------------------------------------------------------------------ guides */
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 10px; padding-top: 10px; }
.step { position: relative; padding: 20px 14px 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(226, 182, 90, .14); border-radius: 2px; }
.step-n { position: absolute; top: -12px; left: 12px; min-width: 30px; height: 24px; padding: 0 6px; display: grid; place-items: center; font: 800 13px var(--head); color: #2a1606; background: var(--gold-grad); border: 1px solid #ffe8a8; }
.step h3 { margin: 0 0 4px; font: 700 16px var(--head); color: var(--gold-hi); }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.step b { color: var(--text); }
.guide-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 2px; }
.faq details { border-bottom: 1px solid rgba(226, 182, 90, .12); }
.faq summary { padding: 10px 4px; cursor: pointer; font: 700 15px var(--head); color: var(--gold-hi); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '◆'; display: inline-block; margin-right: 10px; font-size: 9px; vertical-align: 2px; color: var(--gold-lo); transition: transform .2s, color .2s; }
.faq details[open] summary::before { color: var(--ember); transform: rotate(45deg); }
.faq p { margin: 0 0 12px 22px; color: var(--muted); font-size: 15px; }
.rules { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.rules b { color: var(--gold-hi); }

/* ------------------------------------------------------------------ the Vite pages inside the shell (db, calc, profile):
   their own CSS (src/site/*.css) styles the content; here only what the narrower center column needs */
.sh .kb, .sh .profile { width: auto; margin: 0; padding: 0; }
.sh .kb-head { margin: 0 0 10px; text-align: left; }
.sh .calc-grid { grid-template-columns: minmax(0, 1fr) auto; }
.sh .c-out { grid-column: 1 / -1; }
.sh .p-grid { grid-template-columns: minmax(0, 1fr) auto; }
.sh .p-view { grid-column: 1 / -1; }
.sh .p-canvas { height: clamp(320px, 48vh, 480px); }

/* ------------------------------------------------------------------ footer */
.sh-foot { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #070605; }
.sh-foot-in { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sh-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.sh-foot-links a { font: 600 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sh-foot-links a:hover { color: var(--gold-hi); }
.disclaimer { max-width: 760px; margin: 0; font-size: 12px; color: var(--dim); }

/* ------------------------------------------------------------------ responsive */
/* the menu folds into the hamburger before it would crowd the status pill */
@media (max-width: 1320px) {
  .sh-burger { display: flex; }
  .sh-status { margin-left: auto; }
  .sh-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; height: auto; flex-direction: column; margin: 0; padding: 6px 16px 14px; background: rgba(10, 8, 6, .98); border-bottom: 1px solid var(--line2); box-shadow: 0 12px 30px rgba(0,0,0,.6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .sh-menu.open { transform: none; opacity: 1; visibility: visible; }
  .sh-menu a { padding: 13px 4px; border-bottom: 1px solid rgba(226,182,90,.1); }
  .sh-menu a::after { display: none; }
  .sh-menu a.on { color: var(--gold-hi); background: rgba(226, 182, 90, .06); padding-left: 10px; border-left: 2px solid var(--gold); }
}
/* two columns: the right sidebar stacks under the left one */
@media (max-width: 1180px) {
  .sh-layout { grid-template-columns: var(--side) minmax(0, 1fr); grid-template-areas: "left main" "right main"; grid-template-rows: auto 1fr; }
  .sh-right { align-self: start; }
}
/* one column: the page first, then the widgets, two by two */
@media (max-width: 900px) {
  .sh-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "left right"; grid-template-rows: auto; margin-top: 12px; }
  .sh .calc-grid, .sh .p-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-banner { height: 220px; }
  .sh-banner::after { background: linear-gradient(90deg, rgba(5,4,3,.9) 0%, rgba(5,4,3,.55) 55%, rgba(5,4,3,.2)), linear-gradient(180deg, transparent 50%, rgba(5,4,3,.8)); }
  .sh-banner-sm { height: 104px; }
  .feed { columns: 1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 54px; }
  body { font-size: 15px; }
  .sh-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; width: calc(100% - 16px); gap: 10px; }
  .sh-side, .pg { gap: 10px; }
  .sh-bar { gap: 8px; width: calc(100% - 16px); }
  .sh-emblem { width: 40px; height: 22px; }
  .sh-name { font-size: 17px; }
  .sh-name small, .sh-peak, .sh-play { display: none; }
  .sh-status { padding: 0 9px; }
  .langsw button { padding: 4px 7px; }
  .sh-banner { height: 200px; }
  .sh-banner::after { background: linear-gradient(90deg, rgba(5,4,3,.85), rgba(5,4,3,.35) 70%, rgba(5,4,3,.1)), linear-gradient(180deg, transparent 50%, rgba(5,4,3,.8)); }
  .sb-slide > img.sb-fit { right: -60px; }
  .sb-copy { width: calc(100% - 28px); }
  .sb-logo svg { width: 84px; height: 45px; }
  .sb-logo b { font-size: 42px; }
  .sb-logo span { font-size: 11px; }
  .sb-text { font-size: 15px; }
  .sb-cta .btn { --h: 34px; font-size: 11px; padding: 0 1em; }
  .sb-dots { bottom: 10px; }
  .sh-banner-sm { height: 88px; }
  .sh-banner-sm .sb-text { display: none; }
  .box { padding: 0 12px 12px; }
  .box-h, .box-tabs-top { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .box-h h2 { font-size: 14px; }
  .box-tabs a { padding: 5px 8px; font-size: 11px; letter-spacing: .08em; }
  .nc { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .nc-img { width: 92px; height: 70px; }
  .nc h3 { font-size: 15px; }
  .nc-t { font-size: 14px; }
  .hero-find { width: 100%; }
  .hero-find input { width: auto; }
  .hide-sm { display: none; }
  .rank-table { font-size: 14px; }
  .rank-table td { padding: 6px 5px; }
  .class-tabs { gap: 4px; }
  .class-tab { font-size: 9px; letter-spacing: 0; padding: 6px 2px; }
  .class-tab img { width: 40px; height: 40px; }
  .class-card { grid-template-columns: 1fr; }
  .class-art { max-width: 300px; width: 100%; margin: 0 auto; max-height: 360px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .lb-arrow { position: absolute; bottom: 16px; }
  .lb-arrow.prev { left: 16px; } .lb-arrow.next { right: 16px; }
  .bosses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boss .tag { font-size: 8px; letter-spacing: .04em; padding: 1px 4px; }
}
@media (max-width: 340px) {
  .sh-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
