/* The Heavenly Kingdom -- the Classic site's sky-blue + gold look, rebuilt as a responsive layout. */
:root {
  --sky-0: #0b2f66;
  --sky-1: #12438f;
  --sky-2: #1f5fbf;
  --sky-3: #4d93e0;
  --sky-4: #bfe0ff;
  --sky-5: #eaf5ff;
  --gold-1: #e7a21f;
  --gold-2: #f6c84c;
  --gold-3: #ffe39a;
  --ink: #18263d;
  --muted: #586a86;
  --line: #c6dcf4;
  --panel: #ffffff;
  --ok: #17804a;
  --bad: #b8332a;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(11, 47, 102, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: #8fc9e8 url(/static/img/bg-hero.webp) center top / 2000px auto no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky-2); }
a:hover { color: var(--sky-1); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-2); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-0));
  border-bottom: 3px solid var(--gold-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.2rem/1.1 var(--display); color: var(--gold-2); text-shadow: 0 2px 0 var(--sky-0), 0 0 12px rgba(246, 200, 76, .35); }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-4); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold-2); border-radius: 0; }
.nav a.nav-cta { background: linear-gradient(180deg, var(--gold-2), var(--gold-1)); color: var(--ink); }
.langs { display: inline-flex; margin-left: 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; }
.langs a { padding: 4px 9px; border-radius: 0; font-size: .78rem; }
.langs a[aria-current="true"] { background: var(--gold-2); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* ---------- hero (home) ---------- */
.hero { min-height: 430px; display: flex; align-items: center; }
.hero-in { padding-top: 32px; padding-bottom: 32px; }
.hero-copy {
  max-width: 540px; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(11, 47, 102, .86), rgba(31, 95, 191, .72));
  color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .25);
}
.hero h1 { font: 700 2.4rem/1.1 var(--display); margin: 4px 0 10px; color: var(--gold-2); text-shadow: 0 3px 0 var(--sky-0); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--sky-4); }
.lead { margin: 0 0 18px; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* ---------- layout ---------- */
main { flex: 1; padding-top: 24px; padding-bottom: 32px; }
body:not(.is-home) main { padding-top: 28px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.with-menu { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.col { display: grid; gap: 22px; min-width: 0; }
.side { display: grid; gap: 22px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; min-width: 0;
}
.card-title {
  margin: -22px -24px 16px; padding: 12px 24px; font: 700 1.05rem/1.3 var(--font); color: #fff;
  background: linear-gradient(180deg, var(--sky-2), var(--sky-1)); border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--gold-2); letter-spacing: .02em;
}
.page-title { font: 700 1.9rem/1.2 var(--display); color: var(--sky-1); margin: 0 0 8px; }
.lead-sm { color: var(--muted); margin-top: 0; font-size: 1.05rem; }
.crumbs { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.notice { background: var(--sky-5); border-left: 4px solid var(--sky-3); padding: 10px 14px; border-radius: 8px; }
.alert { background: #fdecea; border-left: 4px solid var(--bad); padding: 10px 14px; border-radius: 8px; color: #7c1d16; }
.ok { background: #e7f6ee; border-left: 4px solid var(--ok); padding: 10px 14px; border-radius: 8px; color: #0e4f2d; }
.more { margin: 8px 0 0; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--sky-1); cursor: pointer;
  background: linear-gradient(180deg, var(--sky-3), var(--sky-2)); color: #fff; font: 700 .95rem/1 var(--font);
  text-decoration: none; box-shadow: 0 3px 0 var(--sky-0);
}
.btn:hover { filter: brightness(1.07); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.btn-gold { background: linear-gradient(180deg, var(--gold-3), var(--gold-2) 45%, var(--gold-1)); color: var(--ink); border-color: #b97a0c; box-shadow: 0 3px 0 #9a6407; }
.btn-gold:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--sky-1); box-shadow: none; }
.btn-ghost:hover { background: var(--sky-5); color: var(--sky-1); }
.btn-lg { min-height: 50px; padding: 10px 24px; font-size: 1.05rem; }

/* ---------- sidebar ---------- */
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa9bf; box-shadow: 0 0 0 4px rgba(154, 169, 191, .25); }
.status.is-up .dot { background: #23b45f; box-shadow: 0 0 0 4px rgba(35, 180, 95, .22); }
.status.is-up { color: var(--ok); }
.status.is-down .dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(184, 51, 42, .2); }
.status.is-down { color: var(--bad); }
.kv { margin: 0; display: grid; gap: 2px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gm-list li:not(.muted) { background: var(--sky-5); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.quick { display: grid; gap: 10px; }

/* ---------- home ---------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-grid li { background: var(--sky-5); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.feature-grid strong { color: var(--sky-1); }
.feature-grid span { color: var(--muted); font-size: .95rem; }
.class-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.class-grid a { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.class-grid img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .25s; }
.class-grid a:hover img { transform: scale(1.05); }
.class-grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(11, 47, 102, .85)); }

/* ---------- news ---------- */
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:first-of-type { padding-top: 0; }
.news-item:last-of-type { border-bottom: 0; }
.news-item h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.news-item h3 a { text-decoration: none; color: var(--sky-1); }
.meta { margin: 0 0 6px; color: var(--muted); font-size: .88rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-body p { margin: 0 0 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sky-5); color: var(--sky-1); border: 1px solid var(--line); }
.tag-update { background: #e6f0ff; }
.tag-event { background: #fff4d6; color: #7a5200; border-color: #f0d590; }
.tag-maintenance { background: #fdecea; color: #7c1d16; border-color: #f2c2bd; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: #fff; }
.chips a[aria-current="true"] { background: var(--sky-2); color: #fff; border-color: var(--sky-2); }
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--gold-2); border-color: var(--gold-1); color: var(--ink); font-weight: 700; }
.pager a[rel] { border-radius: 19px; padding: 0 14px; width: auto; }
.pager .gap { min-width: 20px; height: 38px; display: grid; place-items: center; color: var(--muted); }
.pager-jump { margin-top: 10px; align-items: center; gap: 8px; }
.pager-jump input[type="number"] { width: 6em; }

/* ---------- guides ---------- */
.guide-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.guide-sec { background: var(--sky-5); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.guide-sec h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--sky-1); }
.guide-sec ul { margin: 0; padding-left: 18px; }
.guide-menu { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 16px 18px; }
.guide-menu h2 { margin: 0 0 6px; font-size: 1rem; color: var(--sky-1); }
.guide-menu ul { list-style: none; margin: 0; padding: 0; }
.guide-menu a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.guide-menu a:hover { background: var(--sky-5); }
.guide-menu a[aria-current="page"] { background: var(--sky-2); color: #fff; font-weight: 700; }
.guide-hero { display: block; width: calc(100% + 48px); max-width: none; margin: -22px -24px 16px; height: 220px; object-fit: cover; object-position: right center; border-radius: var(--radius) var(--radius) 0 0; }
.prose h2 { font: 700 1.45rem/1.25 var(--display); color: var(--sky-1); margin: 28px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--sky-4); }
.prose h3 { font-size: 1.15rem; color: var(--sky-1); margin: 22px 0 6px; }
.prose h4 { margin: 18px 0 4px; }
.prose img { border-radius: 8px; vertical-align: middle; }
.prose img[width="44"], .prose img[width="32"], .prose img[width="46"], .prose img[height="44"] { border-radius: 6px; }
.guide-body table, .prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 12px 0; max-width: 100%; }
.guide-body td, .guide-body th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.guide-body tr:nth-child(even) td { background: #f6faff; }
.guide-body p:empty { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.rank, table.req { width: 100%; border-collapse: collapse; }
.rank th, .rank td, .req th, .req td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rank thead th { background: var(--sky-5); color: var(--sky-1); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.rank .num, .rank td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank tr.top1 td:first-child { color: #b07900; font-weight: 800; }
.rank tr.top2 td:first-child { color: #6f7f94; font-weight: 800; }
.rank tr.top3 td:first-child { color: #9a5b2c; font-weight: 800; }
.req th { width: 40%; color: var(--muted); font-weight: 600; }

/* ---------- download ---------- */
.dl-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(135deg, var(--sky-5), #fff); border: 1px solid var(--line); margin: 16px 0; }
.dl-box h2 { margin: 0; border: 0; padding: 0; }
.dl-box p { margin: 4px 0 0; color: var(--muted); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }

/* ---------- forms ---------- */
.form-card { max-width: 560px; margin: 0 auto; width: 100%; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input, .form select { font: inherit; padding: 10px 12px; border: 1px solid #a9c5e6; border-radius: 10px; background: #fff; min-height: 44px; width: 100%; }
.form input:focus, .form select:focus { border-color: var(--sky-2); outline: 3px solid rgba(31, 95, 191, .2); }
.form .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.form .check input { width: 20px; min-height: 20px; margin-top: 3px; }
.help { margin: -6px 0 0; font-size: .85rem; color: var(--muted); font-weight: 400; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-grid, .svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.sub { background: var(--sky-5); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.sub h2 { margin: 0 0 10px; font-size: 1.1rem; color: var(--sky-1); }
.roles { margin: 0 0 12px; padding-left: 18px; }
.muted-box { background: #f7f9fc; }

/* ---------- shop ---------- */
.shop-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.shop-grid > li { display: grid; gap: 8px; align-content: start; }
.shop-grid .big { font-size: 1.2rem; color: var(--sky-1); }
.price { font-weight: 800; font-size: 1.15rem; }
.perks { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.foot {
  margin-top: 24px; color: #e8f2ff;
  background: url(/static/img/bg-island.webp) center top / 2000px auto no-repeat, linear-gradient(180deg, #8fc9e8 0, #4f8fcf 300px, var(--sky-0));
  padding: 230px 0 28px;
}
.foot-in { text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { color: #fff; font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--gold-3); }
.foot .fine { color: #c8dcf5; margin: 4px 0; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .with-side, .with-menu { grid-template-columns: minmax(0, 1fr); }
  .guide-menu { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--sky-0); padding: 8px 16px 16px; border-bottom: 3px solid var(--gold-2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold-2); }
  .langs { margin: 8px 0 0; align-self: flex-start; }
  .topbar-in { position: relative; }
}
@media (max-width: 640px) {
  body { background-size: 1300px auto; }
  .hero { min-height: 0; }
  .hero-in { padding-top: 150px; }
  .hero h1 { font-size: 1.9rem; }
  .card { padding: 18px 16px; }
  .card-title { margin: -18px -16px 14px; padding: 11px 16px; }
  .guide-hero { width: calc(100% + 32px); margin: -18px -16px 14px; height: 150px; }
  .feature-grid, .class-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .page-title { font-size: 1.55rem; }
  .brand-sub { display: none; }
  .foot { padding-top: 150px; background-size: 1300px auto, auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- statistics, Hall of Fame, profiles, database, shop (2026-10-22) ---------- */
.tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tiles li { background: linear-gradient(170deg, var(--sky-5), #fff); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; }
.tiles strong { display: block; font: 700 1.8rem/1.1 var(--display); color: var(--sky-1); }
.tiles span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.tiles em { display: block; font-style: normal; font-size: .78rem; color: var(--sky-2); margin-top: 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--sky-2); font-weight: 600; font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--sky-2); border-color: var(--sky-2); color: #fff; }

table.grid { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.grid th, table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.grid thead th { background: var(--sky-5); color: var(--sky-0); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 2px solid var(--sky-3); }
table.grid tbody tr:nth-child(even) { background: #fafcff; }
table.grid tbody th { font-weight: 700; color: var(--sky-1); }
.bar { display: inline-block; width: 64px; height: 7px; border-radius: 4px; background: var(--line);
  margin-right: 8px; vertical-align: middle; position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--sky-3), var(--gold-1)); }
.bar.p0::after { width: 0%; }
.bar.p5::after { width: 5%; }
.bar.p10::after { width: 10%; }
.bar.p15::after { width: 15%; }
.bar.p20::after { width: 20%; }
.bar.p25::after { width: 25%; }
.bar.p30::after { width: 30%; }
.bar.p35::after { width: 35%; }
.bar.p40::after { width: 40%; }
.bar.p45::after { width: 45%; }
.bar.p50::after { width: 50%; }
.bar.p55::after { width: 55%; }
.bar.p60::after { width: 60%; }
.bar.p65::after { width: 65%; }
.bar.p70::after { width: 70%; }
.bar.p75::after { width: 75%; }
.bar.p80::after { width: 80%; }
.bar.p85::after { width: 85%; }
.bar.p90::after { width: 90%; }
.bar.p95::after { width: 95%; }
.bar.p100::after { width: 100%; }

.rank-list { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: rank; }
.rank-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rank-list li > a, .rank-list li > :first-child { font-weight: 600; }
.rank-list li > span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--sky-1);
  font-weight: 700; }
.rank-list .cls { font-style: normal; font-size: .82rem; color: var(--muted); }
.rank-list.numbered li::before { counter-increment: rank; content: counter(rank); width: 1.5em; flex: none;
  color: var(--muted); font-size: .82rem; text-align: right; }

.board-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.board h2 { margin: 0 0 2px; font: 700 1.1rem/1.2 var(--display); color: var(--sky-1); }
.two-col { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.kv.wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); display: grid; gap: 8px 18px; }
.kv.wide div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line);
  padding: 6px 0; }
.rankno { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 6px; }

.form.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.form.inline label { margin: 0; }

/* shop */
.wallet-bar { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 14px;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-0)); color: #fff; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25); padding: 12px 18px; box-shadow: var(--shadow); }
.wallet-bar .fine, .wallet-bar p { margin: 0; }
.wallet-bar .fine { color: var(--sky-4); }
.balance strong { font: 700 1.4rem/1 var(--display); color: var(--gold-2); }
.shop-layout { display: grid; gap: 16px; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.shop-side ul { list-style: none; margin: 0; padding: 0; }
.shop-side a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600;
  color: var(--sky-1); }
.shop-side a:hover { background: var(--sky-5); }
.shop-side a[aria-current="page"] { background: var(--sky-2); color: #fff; }
.shop-subs { margin: 2px 0 6px 10px; border-left: 2px solid var(--line); }
.shop-subs a { font-weight: 500; font-size: .9rem; padding: 5px 10px; }
.shop-side .sep { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.item-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.item-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; text-align: center; }
.item-icon { width: 44px; height: 44px; margin: 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--sky-2), var(--sky-0)); color: var(--gold-2);
  font: 700 1.2rem/1 var(--display); }
.item-name { font-size: .95rem; line-height: 1.25; }
.item-name a { text-decoration: none; }
.item-kind { font-size: .76rem; color: var(--muted); }
.item-card .price { margin-top: auto; }
.ledger { list-style: none; margin: 10px 0 0; padding: 0; font-size: .9rem; }
.ledger li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ledger em { font-style: normal; font-weight: 700; color: var(--sky-1); }
.sub-title { font: 700 1rem/1.2 var(--display); color: var(--sky-1); margin: 14px 0 6px; }
.notice.bad { border-color: var(--bad); color: var(--bad); }

@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
}

/* the launcher picture on the Download page (the friend's artwork, same as the live launcher) */
.launcher-shot { margin: 18px 0 24px; text-align: center; }
.launcher-shot img { max-width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.launcher-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
