@font-face { font-family: "RuneScape"; src: url("/fonts/runescape_bold.ttf") format("truetype"); font-display: swap; }

:root {
	--bg: #030916;
	--bg2: #071330;
	--panel: rgba(9, 22, 52, .78);
	--panel-solid: #0a1838;
	--line: rgba(94, 160, 255, .22);
	--line-strong: rgba(110, 180, 255, .55);
	--text: #e6efff;
	--muted: #8ea6cf;
	--blue: #3d8bff;
	--cyan: #63d3ff;
	--glow: 0 0 24px rgba(61, 139, 255, .35);
	--radius: 14px;
	--serif: "Cinzel", "Trajan Pro", Georgia, serif;
	--sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; }
body {
	font-family: var(--sans); color: var(--text); min-height: 100vh;
	background:
		radial-gradient(1200px 600px at 15% 10%, rgba(40, 110, 255, .18), transparent 60%),
		radial-gradient(900px 600px at 90% 30%, rgba(0, 190, 255, .12), transparent 60%),
		radial-gradient(1000px 700px at 50% 110%, rgba(60, 80, 255, .16), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg2) 60%, var(--bg) 100%);
	background-attachment: fixed;
}
body::before { /* starfield */
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
	background-image:
		radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #cfe3ff, transparent),
		radial-gradient(1.5px 1.5px at 33% 68%, #9cc8ff, transparent), radial-gradient(1px 1px at 58% 41%, #fff, transparent),
		radial-gradient(1px 1px at 88% 74%, #bcd8ff, transparent), radial-gradient(1.5px 1.5px at 6% 86%, #8fc0ff, transparent),
		radial-gradient(1px 1px at 45% 8%, #fff, transparent), radial-gradient(1px 1px at 68% 90%, #d8e8ff, transparent);
	background-size: 520px 520px;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
img.px { image-rendering: pixelated; }
.wrap { width: min(1240px, 94vw); margin: 0 auto; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); letter-spacing: .06em; }

/* ---------- header ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
	background: linear-gradient(180deg, rgba(3, 9, 22, .96), rgba(3, 9, 22, .82));
	border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; }
.nav { display: flex; gap: clamp(10px, 2.4vw, 34px); align-items: center; }
.nav.right { justify-content: flex-end; }
.nav a {
	font-family: var(--serif); text-transform: uppercase; letter-spacing: .08em; font-size: 15px;
	color: #c9d8f5; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s;
}
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--blue); text-shadow: 0 0 12px rgba(99, 211, 255, .7); }
.logo { position: relative; width: 120px; height: 74px; display: block; }
.logo img {
	position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 118px;
	filter: drop-shadow(0 0 18px rgba(61, 139, 255, .65)); transition: transform .3s;
}
.logo:hover img { transform: translateX(-50%) scale(1.05); }
.play { text-align: center; line-height: 1.1; }
.play b { display: block; font-family: var(--serif); letter-spacing: .08em; color: #fff; font-size: 15px; }
.online {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 2px 10px; border-radius: 99px;
	font-size: 12px; font-weight: 700; color: #bff0ff; border: 1px solid var(--line-strong); background: rgba(30, 90, 200, .25);
}
.online i { width: 7px; height: 7px; border-radius: 50%; background: #3ef08a; box-shadow: 0 0 8px #3ef08a; }
.online.off i { background: #ff5a6a; box-shadow: 0 0 8px #ff5a6a; }
.burger { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 18px; }

/* ---------- panels / buttons ---------- */
.panel {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 50px rgba(0, 0, 0, .35);
}
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 700;
	padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line-strong); color: #fff; font-size: 15px;
	background: linear-gradient(180deg, #2f7dff, #1d4fd8); box-shadow: var(--glow); transition: .2s; font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); color: #fff; }
.btn.ghost { background: rgba(20, 50, 110, .35); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: .05em; margin: 0 0 12px; }
.section-title { text-align: center; font-family: var(--serif); letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; font-size: 15px; margin: 22px 0 12px; }

/* ---------- pills (modes / difficulties) ---------- */
.toggle { display: inline-flex; padding: 5px; gap: 4px; border-radius: 14px; background: rgba(8, 20, 48, .85); border: 1px solid var(--line-strong); }
.toggle button {
	display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 10px; border: 0; cursor: pointer;
	background: transparent; color: #cfe0ff; font-weight: 800; font-size: 17px; font-family: var(--sans);
}
.toggle button.on { background: linear-gradient(180deg, rgba(61, 139, 255, .45), rgba(29, 79, 216, .35)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong), var(--glow); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
	display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 18px; border-radius: 12px; cursor: pointer;
	font-weight: 700; color: #eaf2ff; font-size: 14px; border: 1px solid var(--line); background: rgba(10, 26, 62, .8);
	transition: .15s; font-family: var(--sans);
}
.pill:hover { border-color: var(--line-strong); }
.pill.on { border-color: var(--cyan); background: linear-gradient(180deg, rgba(61, 139, 255, .35), rgba(20, 60, 160, .35)); box-shadow: var(--glow); }
.pill img { height: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- hiscores ---------- */
.hs-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; margin: 26px 0 60px; align-items: start; }
.side { padding: 18px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.search {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(3, 10, 26, .7);
	color: #fff; font-size: 14px; outline: none; margin-bottom: 14px; font-family: var(--sans);
}
.search:focus { border-color: var(--cyan); box-shadow: var(--glow); }
.cat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; cursor: pointer;
	border: 1px solid var(--line); background: rgba(6, 16, 40, .6); color: #e8f0ff; font-size: 15px; text-align: left; font-family: var(--sans); }
.cat img { width: 20px; height: 20px; object-fit: contain; }
.cat:hover { border-color: var(--line-strong); }
.cat.on { border-color: var(--cyan); background: linear-gradient(90deg, rgba(61, 139, 255, .35), rgba(61, 139, 255, .06)); }
.board { padding: 22px 22px 14px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.board-head h2 { margin: 0; font-size: 24px; text-transform: uppercase; }
.chip { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(20, 60, 150, .35); font-weight: 700; font-size: 14px; }
table.hs { width: 100%; border-collapse: collapse; }
table.hs th { text-align: left; font-family: var(--serif); font-variant: small-caps; letter-spacing: .06em; color: var(--cyan); font-size: 15px;
	padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.hs td { padding: 13px 10px; border-bottom: 1px solid rgba(94, 160, 255, .1); font-size: 15px; }
table.hs tr:hover td { background: rgba(61, 139, 255, .07); }
table.hs .num { font-variant-numeric: tabular-nums; }
.rank-1 { color: #ffd76a; font-weight: 800; } .rank-2 { color: #d9e6ff; font-weight: 800; } .rank-3 { color: #ffb37a; font-weight: 800; }
.uname { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; vertical-align: middle; }
.uname:hover { color: var(--cyan); }
.uname img { height: 15px; }
.diff-tag { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 800; line-height: 1.4; padding: 1px 8px; border-radius: 99px;
	border: 1px solid currentColor; opacity: .9; margin-left: 10px; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 0 4px; }
.pager button { min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: rgba(10, 26, 62, .8); color: #fff; cursor: pointer; font-weight: 700; }
.pager button.on { border-color: var(--cyan); box-shadow: var(--glow); }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.loading { opacity: .5; transition: opacity .2s; }

/* player profile */
.pf-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.pf-back:hover { color: #fff; }
.pf-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pf-id { min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-name h2 { margin: 0; font-size: 30px; overflow-wrap: anywhere; }
.pf-name > img { height: 22px; }
.pf-maxed { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2a1a00; padding: 3px 10px; border-radius: 99px;
	background: linear-gradient(180deg, #ffe39a, #e0a93a); box-shadow: 0 0 14px rgba(255, 210, 90, .45); }
.pf-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pf-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line);
	background: rgba(10, 26, 62, .8); font-size: 13px; font-weight: 700; color: #dce8ff; white-space: nowrap; }
.pf-tag img { height: 15px; }
.pf-tag .muted { font-weight: 600; }
.pf-combat { flex: none; width: 98px; height: 98px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
	border: 1px solid var(--line-strong); box-shadow: var(--glow), inset 0 0 22px rgba(61, 139, 255, .25);
	background: radial-gradient(circle at 50% 30%, rgba(61, 139, 255, .4), rgba(8, 20, 48, .95) 72%); }
.pf-combat img { height: 18px; margin-bottom: 2px; }
.pf-combat b { font-family: var(--serif); font-size: 30px; line-height: 1; color: #fff; }
.pf-combat small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-stat { flex: 1 1 150px; min-width: 0; padding: 13px 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 16, 40, .6); }
.pf-stat small, .pf-stat span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-stat b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: #fff; margin: 5px 0 3px; white-space: nowrap; }
.pf-stat b i { font-style: normal; font-size: 15px; color: var(--muted); }
.pf-stat span { font-size: 12.5px; color: #b6c8ea; }
.pf-max { margin-top: 12px; padding: 13px 16px 15px; border-radius: 12px; border: 1px solid rgba(255, 215, 106, .25);
	background: linear-gradient(90deg, rgba(255, 200, 80, .08), rgba(6, 16, 40, .5)); }
.pf-max-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 9px; font-size: 13.5px; color: #e9dcb5; }
.pf-max-top b { font-family: var(--serif); letter-spacing: .06em; color: #ffe39a; font-size: 15px; }
.pf-max .bar { height: 10px; }
.bar { height: 7px; border-radius: 99px; background: rgba(120, 160, 255, .13); overflow: hidden; }
.bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #2f7dff, #63d3ff); box-shadow: 0 0 10px rgba(99, 211, 255, .45); }
.bar.gold i { background: linear-gradient(90deg, #c98d1c, #ffd76a); box-shadow: 0 0 10px rgba(255, 215, 106, .4); }
.pf-section { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.pf-section h3 { margin: 0; font-size: 18px; text-transform: uppercase; color: #fff; }
.pf-section span { font-size: 13px; }
.pf-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.pf-skill { display: block; min-width: 0; padding: 11px 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 16, 40, .6); color: var(--text); transition: .15s; }
.pf-skill:hover { border-color: var(--line-strong); background: rgba(14, 34, 80, .7); color: var(--text); transform: translateY(-1px); }
.pf-skill-top { display: flex; align-items: center; gap: 9px; }
.pf-skill-top img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.pf-skill-top span { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-skill-top b { font-family: var(--serif); font-size: 22px; line-height: 1; color: #fff; }
.pf-bar-row { display: flex; align-items: center; gap: 8px; margin: 9px 0 7px; }
.pf-bar-row .bar { flex: 1; }
.pf-bar-row em { flex: none; min-width: 30px; text-align: right; font-style: normal; font-size: 11px; font-weight: 800; color: var(--cyan); }
.pf-skill-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-skill-foot span { overflow: hidden; text-overflow: ellipsis; }
.pf-skill.is99 { border-color: rgba(255, 215, 106, .38); background: linear-gradient(180deg, rgba(255, 200, 80, .09), rgba(6, 16, 40, .6)); }
.pf-skill.is99 .pf-skill-top b, .pf-skill.is99 .pf-bar-row em { color: #ffd76a; }
.pf-rank { flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-strong);
	color: #cfe0ff; background: rgba(20, 60, 150, .35); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-rank.r1 { color: #ffd76a; border-color: rgba(255, 215, 106, .65); background: rgba(120, 90, 10, .3); }
.pf-rank.r2 { color: #eef3ff; border-color: rgba(220, 230, 255, .6); }
.pf-rank.r3 { color: #ffb37a; border-color: rgba(255, 179, 122, .6); background: rgba(120, 60, 20, .25); }
.pf-bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.pf-boss { display: block; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 16, 40, .6); color: var(--text); transition: .15s; }
.pf-boss:hover { border-color: var(--line-strong); background: rgba(14, 34, 80, .7); color: var(--text); transform: translateY(-1px); }
.pf-boss-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-boss-top span:first-child { min-width: 0; font-weight: 700; font-size: 13.5px; color: #dce8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-boss b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.15; color: #fff; margin-top: 8px; }
.pf-boss small { color: var(--muted); font-size: 12px; }
.pf-bosses:not(.all) .pf-boss.extra { display: none; }
.pf-more { display: block; margin: 12px auto 0; padding: 9px 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(20, 50, 110, .45);
	color: #dce8ff; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: var(--sans); }
.pf-more:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--glow); }
.pf-clues { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pf-clue { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(6, 16, 40, .6); color: var(--text); }
.pf-clue:hover { border-color: var(--line-strong); color: var(--text); }
.pf-clue span:first-child { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf-clue b { font-family: var(--serif); font-size: 21px; color: #fff; line-height: 1.2; }
.pf-activity { list-style: none; margin: 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 12, 30, .55); }
.pf-activity li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(94, 160, 255, .12); font-size: 14px; color: #f3d9e6; }
.pf-activity li:last-child { border: 0; }
.pf-activity time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pf-note { font-size: 13px; margin: 22px 0 6px; }
@media (max-width: 980px) { body.pf-mode .side .cats { display: none; } body.pf-mode .side .search { margin-bottom: 0; } }
@media (max-width: 560px) {
	.board { padding: 16px 14px 10px; }
	.pf-hero { align-items: flex-start; }
	.pf-name h2 { font-size: 24px; }
	.pf-combat { width: 76px; height: 76px; }
	.pf-combat b { font-size: 24px; }
	.pf-combat img { height: 14px; }
	.pf-stat { flex-basis: 130px; }
	.pf-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.pf-skill { padding: 10px; }
	.pf-skill-top { gap: 7px; }
	.pf-skill-top span { font-size: 13px; }
	.pf-skill-foot { flex-direction: column; gap: 1px; }
	.pf-bosses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.pf-boss { padding: 10px 11px; }
	.pf-boss-top { flex-direction: column; align-items: flex-start; gap: 4px; }
	.pf-boss-top span:first-child { max-width: 100%; }
	.pf-clues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- home ---------- */
.hero { text-align: center; padding: 60px 0 40px; position: relative; }
.hero img.big { width: min(300px, 60vw); filter: drop-shadow(0 0 40px rgba(61, 139, 255, .7)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(34px, 6vw, 64px); margin: 10px 0 6px; background: linear-gradient(180deg, #fff, #9fd0ff 60%, #4a8dff);
	-webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero p { color: #b9cdf1; font-size: 18px; max-width: 640px; margin: 0 auto 26px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 10px 0 40px; }
.stat { padding: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; font-family: var(--serif); color: #fff; }
.stat span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; }
.card { padding: 22px; transition: .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.card h3 img { height: 22px; }
.card p { color: #b6c8ea; line-height: 1.55; margin: 0; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin: 34px 0 60px; }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border: 0; }
.news-item time { color: var(--cyan); font-size: 13px; font-weight: 700; }
.news-item h3 { font-size: 18px; margin: 4px 0 6px; }
.news-item p { margin: 0; color: #b6c8ea; line-height: 1.55; }
.rates { width: 100%; border-collapse: collapse; }
.rates td { padding: 10px 6px; border-bottom: 1px solid rgba(94, 160, 255, .12); }
.rates td:last-child { text-align: right; font-weight: 800; color: #fff; }

/* ---------- vote / store ---------- */
.page-head { text-align: center; padding: 46px 0 10px; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); }
.page-head p { color: #b6c8ea; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.name-box { display: flex; gap: 10px; max-width: 520px; margin: 24px auto; }
.name-box .search { margin: 0; font-size: 16px; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.vote-card { padding: 24px; text-align: center; }
.vote-card h3 { font-size: 22px; }
.vote-card .cd { color: var(--muted); font-size: 14px; min-height: 20px; margin: 8px 0 14px; }
.vote-card.done { opacity: .75; }
.banner { padding: 16px 20px; border-radius: 12px; border: 1px solid rgba(62, 240, 138, .45); background: rgba(20, 120, 70, .2); text-align: center; font-weight: 700; margin: 10px auto; max-width: 720px; }
.banner.info { border-color: var(--line-strong); background: rgba(30, 80, 200, .2); }
code.cmd { font-family: "RuneScape", monospace; font-size: 18px; color: #ffe066; background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 6px; letter-spacing: .5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 50px; }
.step { padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px;
	background: linear-gradient(180deg, #2f7dff, #1d4fd8); box-shadow: var(--glow); margin-bottom: 12px; }
.step p { color: #b6c8ea; line-height: 1.55; margin: 0; }
.store-cta { text-align: center; padding: 40px 20px; margin-top: 20px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.rank-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(6, 16, 40, .6); font-weight: 700; }
.rank-card img { height: 16px; }

/* ---------- store: bonds ---------- */
.bond-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 26px 0 14px; }
.bond { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 14px 18px; color: var(--text); transition: .2s; }
.bond:hover { border-color: var(--line-strong); transform: translateY(-3px); color: var(--text); }
.bond img { width: 102px; height: 96px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); margin-bottom: 4px; }
.bond b { font-family: var(--serif); letter-spacing: .04em; font-size: 17px; color: #fff; overflow-wrap: anywhere; }
.bond .pts { color: #b6c8ea; font-size: 14px; }
.bond .bonus { font-size: 12px; font-weight: 800; color: #3ef08a; letter-spacing: .04em; text-transform: uppercase; min-height: 16px; }
.bond .bonus.none { visibility: hidden; }
.bond .btn { margin-top: auto; width: 100%; padding: 10px 12px; }
.bond.best { border-color: rgba(255, 210, 90, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 28px rgba(255, 200, 60, .18), 0 18px 50px rgba(0, 0, 0, .35); }
.store-note { text-align: center; color: #b6c8ea; max-width: 720px; margin: 6px auto 0; line-height: 1.6; }
@media (max-width: 980px) { .bond { flex: 0 0 calc((100% - 32px) / 3); } }
@media (max-width: 560px) { .bond-grid { gap: 10px; } .bond { flex: 0 0 calc((100% - 10px) / 2); } .bond b { font-size: 15px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; background: rgba(3, 9, 22, .6); }
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.hs-grid { grid-template-columns: 1fr; }
	.side { position: static; max-height: none; }
	.side .cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
	.side .cat { margin: 0; }
	.two, .steps { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}
.mobile-menu { display: none; }
@media (max-width: 860px) {
	.topbar .wrap { grid-template-columns: 1fr auto; height: 64px; }
	.nav { display: none; }
	.logo { width: 90px; height: 64px; } .logo img { width: 84px; }
	.burger { display: block; }
	.topbar.open .mobile-menu { display: flex; flex-direction: column; padding: 8px 4vw 16px; border-top: 1px solid var(--line); }
	.mobile-menu a { padding: 12px 4px; font-family: var(--serif); letter-spacing: .08em; text-transform: uppercase; color: #dce8ff; border-bottom: 1px solid rgba(94,160,255,.1); }
	.toggle button { padding: 10px 14px; font-size: 15px; }
	table.hs th:nth-child(4), table.hs td:nth-child(4) { display: none; }
	.stats { grid-template-columns: 1fr 1fr; }
}

/* game activity feed (home page) */
.activity { margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(4, 12, 30, .55); }
.activity-head { position: relative; padding: 22px 24px 26px; background:
	radial-gradient(120% 140% at 20% 0%, rgba(99, 211, 255, .35), transparent 60%),
	linear-gradient(135deg, #1a4fb8 0%, #2d7bff 45%, #123a8c 100%); }
.activity-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: rgba(4, 12, 30, .95);
	clip-path: polygon(0 60%, 4% 30%, 9% 70%, 15% 25%, 22% 65%, 28% 35%, 35% 75%, 41% 30%, 48% 70%, 55% 20%, 61% 65%, 68% 35%, 74% 70%, 81% 25%, 87% 65%, 93% 30%, 100% 60%, 100% 100%, 0 100%); }
.activity-head span { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.activity ul { list-style: none; margin: 0; padding: 6px 20px 10px; }
.activity li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0;
	border-bottom: 1px solid var(--line); line-height: 1.5; color: #d9c4ff; }
.activity li:last-child { border: 0; }
.activity li.muted { display: block; color: var(--muted); }
.act-icon { font-size: 16px; }
.act-text { color: #f3d9e6; }
.act-name { color: #7fe07a; font-weight: 700; text-decoration: none; }
.act-name:hover { text-decoration: underline; }
.act-name img.px { height: 13px; margin-right: 4px; vertical-align: -1px; image-rendering: pixelated; }
.act-name img.act-realism { margin: 0 0 0 4px; }
.act-level .act-text { color: #ffe9a8; }
.act-pet .act-text { color: #b9e3ff; }
.activity time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.activity-head small { display: block; margin-top: 4px; color: rgba(230, 240, 255, .8); font-size: 13px; }
/* hero on the left, game activity on the right */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(340px, 1fr); gap: 30px; align-items: center; padding: 26px 0 10px;
	/* wider than the page column; logo/buttons centred under the top logo, activity on the far right */
	width: min(1640px, calc(100vw - 60px)); margin-left: calc((100% - min(1640px, calc(100vw - 60px))) / 2); }
.hero-row .hero { grid-column: 2; padding: 30px 0 20px; justify-self: center; width: 100%; }
.activity-side { grid-column: 3; margin: 0; align-self: center; justify-self: end; width: min(360px, 100%); }
.activity-side .activity-head { padding: 14px 18px 20px; }
.activity-side .activity-head span { font-size: 13px; }
.activity-side ul { padding: 2px 14px 6px; }
.activity-side li { grid-template-columns: 20px 1fr auto; gap: 8px; padding: 9px 0; font-size: 13px; line-height: 1.4; }
.activity-side .act-icon { font-size: 13px; }
.activity-side time { font-size: 11px; }
.activity-side ul { max-height: 470px; overflow-y: auto; }
@media (max-width: 1100px) { .hero-row { grid-template-columns: 1fr; width: 100%; margin-left: 0; } .hero-row .hero, .activity-side { grid-column: auto; justify-self: center; } .activity-side { width: 100%; } .activity-side ul { max-height: none; } }
