/* AimPeak site: dark, flat colours (no gradients), the game's accent green. Every page is a bento grid of
   rounded tiles; the sidebar is a tile too, floating on the background. */
:root {
  --bg: #08090b;
  --side: #0f1114;
  --panel: #15171d;
  --panel-2: #1b1e25;
  --row-hover: #1d2027;
  --line: #252831;
  --text: #eceef2;
  --dim: #969ca6;
  --faint: #5d636d;
  --accent: #4df000;
  --accent-ink: #0b1400;
  --accent-soft: rgba(77, 240, 0, 0.12);
  --danger: #ff5a6a;
  --warn: #ffc83d;
  --clicking: #ff6b6b;
  --tracking: #5aa9ff;
  --switching: #b98cff;
  --radius: 16px;
  --gap: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.i { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---- Frame ---- */
.app { display: flex; min-height: 100vh; gap: var(--gap); padding: var(--gap); }
/* The sidebar is a slim icon rail: icons only, each label shown beside it on hover. */
.side { width: 64px; flex: none; background: var(--side); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; position: sticky; top: var(--gap); height: calc(100vh - 2 * var(--gap)); display: flex; flex-direction: column; align-items: center; z-index: 6; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 0 16px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); }
.side .brand span { display: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; justify-content: center; width: 46px; height: 42px; border-radius: 12px; color: var(--dim); position: relative; }
.nav a .i { width: 20px; height: 20px; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav a span { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.nav a:hover span, .nav a:focus-visible span { opacity: 1; }
.side-foot { display: none; }
/* Account at the foot of the rail: sign in, or your settings and your photo (your profile). */
.rail-foot { margin-top: auto; }
.rail-foot .me .av { width: 30px; height: 30px; border-radius: 50%; }
.rail-foot .signin { color: var(--accent); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.content { width: 100%; flex: 1; }  /* the full width of the window: no side margins */

/* ---- Controls ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--faint); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 90, 106, 0.4); }
.btn.small { padding: 5px 9px; font-size: 13px; }
.btn.on { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(77, 240, 0, 0.4); }
.btn .i { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration: underline; }
.linkbtn.danger:hover { color: var(--danger); }
input[type="text"], input[type="search"], input[type="number"], textarea, select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(77, 240, 0, 0.5); outline-offset: 0; border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.inline { display: inline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; }
.chip:hover { text-decoration: none; border-color: var(--faint); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--panel-2); color: var(--dim); vertical-align: middle; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: rgba(255, 200, 61, 0.12); color: var(--warn); }
.tag.danger { background: rgba(255, 90, 106, 0.12); color: var(--danger); }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); border: 1px solid rgba(77, 240, 0, 0.35); margin-bottom: 16px; }
.notice.warn { background: rgba(255, 200, 61, 0.08); border-color: rgba(255, 200, 61, 0.35); }
.notice.danger { background: rgba(255, 90, 106, 0.08); border-color: rgba(255, 90, 106, 0.35); }

/* ---- Panels and tables ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.narrow { max-width: 560px; margin: 40px auto; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { margin: 0; flex: 1; }
.head .search { width: 260px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stack > * + * { margin-top: 20px; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.t th.num { text-align: right; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--row-hover); }
.t tr.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.t tr.me-row { box-shadow: inset 3px 0 0 var(--accent); }
.t a.row-link { color: var(--text); font-weight: 600; }
.t .who { display: flex; align-items: center; gap: 10px; }
.t .who a { color: var(--accent); font-weight: 600; }
.rank1 { color: #ffc83d; } .rank2 { color: #c0c7d0; } .rank3 { color: #cd7f32; }
.empty { padding: 28px; text-align: center; color: var(--dim); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 14px; }
.pager a, .pager b { min-width: 32px; padding: 5px 8px; border-radius: 6px; text-align: center; border: 1px solid var(--line); }
.pager a { color: var(--text); background: var(--panel); }
.pager b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager .gap { color: var(--faint); padding: 0 4px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.av-none { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #0b0c0f; background: hsl(var(--h), 55%, 62%); }
.cc { display: inline-block; min-width: 30px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 3px; }
.cc.none { border-color: transparent; }
.tier { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.verified { color: var(--accent); display: inline-flex; vertical-align: middle; }
.verified .i { width: 15px; height: 15px; }

/* ---- Aim-type split ---- */
.split { display: flex; gap: 3px; height: 6px; border-radius: 4px; overflow: hidden; background: var(--panel-2); min-width: 60px; }
.split.big { height: 8px; }
.split i { display: block; border-radius: 4px; }
.c-clicking { background: var(--clicking); } .c-tracking { background: var(--tracking); } .c-switching { background: var(--switching); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.legend .l-clicking { color: var(--clicking); } .legend .l-tracking { color: var(--tracking); } .legend .l-switching { color: var(--switching); }
.legend b { color: var(--text); margin-left: 4px; }
.cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cat-clicking { color: var(--clicking); } .cat-tracking { color: var(--tracking); } .cat-switching { color: var(--switching); }

/* ---- Home ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 24px; }
.hero img.wordmark { width: 312px; max-width: 100%; height: auto; margin-bottom: 10px; }
.hero h1 { font-size: 30px; }
.hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero .stats .stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---- Playlists ---- */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pl-detail { position: sticky; top: 76px; }
.pl-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pl-title h2 { flex: 1; margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; }
.meta-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.mods { font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 6px; }

/* ---- Gear ---- */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gear-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.gear-card .pic { height: 92px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--faint); }
.gear-card .pic .i { width: 46px; height: 46px; }
.gear-card .no { position: absolute; top: 20px; left: 20px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--bg); color: var(--dim); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.gear-card .no.top { background: var(--accent); color: var(--accent-ink); }
.gear-card h3 { margin: 0; font-size: 15px; }
.bar { height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.gear-list td .bar { width: 160px; }

/* ---- Profile and the ID badge ---- */
.profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.badge-col { display: flex; justify-content: center; }
.badge-wrap { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; }
.strap { width: 30px; height: 46px; background: var(--strap); border-left: 1px solid rgba(255,255,255,.15); border-right: 1px solid rgba(255,255,255,.15); }
.clip { width: 34px; height: 40px; margin-top: -4px; margin-bottom: -20px; border-radius: 8px; background: #b4bac2; position: relative; z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.clip::after { content: ""; position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #6e747d; box-shadow: inset 2px 2px 0 #c8cdd4; }
.badge { --acc: #4df000; width: 340px; background: #15171d; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); box-shadow: 6px 10px 0 rgba(0,0,0,.35); padding: 12px 0 18px; position: relative; overflow: hidden; }
.badge .slot { width: 68px; height: 11px; border-radius: 6px; background: #050608; margin: 2px auto 0; }
.badge .bhead { display: flex; justify-content: space-between; padding: 0 20px; margin-top: -12px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #969ca6; }
.badge .bhead b { color: var(--acc); }
.badge .banner { margin: 14px 12px 0; height: 104px; border-radius: 10px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--acc) 10%, #15171d); }
.badge .banner .bigname { position: absolute; right: 12px; top: 2px; font-size: 40px; font-weight: 900; color: color-mix(in srgb, var(--acc) 22%, transparent); white-space: nowrap; letter-spacing: 0.02em; }
.badge .pat-1 { background: color-mix(in srgb, var(--acc) 30%, #15171d); }
.badge .pat-2 { background-image: linear-gradient(color-mix(in srgb, var(--acc) 22%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--acc) 22%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
.badge .pat-3 { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, #15171d) 0 10px, #15171d 10px 22px); }
.badge .pat-4 { background: radial-gradient(circle at 80% 50%, transparent 14px, color-mix(in srgb, var(--acc) 30%, transparent) 15px 17px, transparent 18px 30px, color-mix(in srgb, var(--acc) 25%, transparent) 31px 33px, transparent 34px), color-mix(in srgb, var(--acc) 8%, #15171d); }
.badge .pat-5 { background: repeating-radial-gradient(ellipse at 0% 120%, color-mix(in srgb, var(--acc) 25%, #15171d) 0 6px, #15171d 6px 16px); }
.badge .pat-6 { background: conic-gradient(from 210deg at 75% 60%, color-mix(in srgb, var(--acc) 40%, #15171d) 0 25%, #1b1e25 0 50%, color-mix(in srgb, var(--acc) 22%, #15171d) 0 75%, #15171d 0); }
.badge .pat-7 { background: color-mix(in srgb, var(--acc) 38%, #15171d); }
.badge .idrow { display: flex; gap: 18px; padding: 0 20px; margin-top: -48px; position: relative; }
.badge .photo { width: 116px; height: 155px; flex: none; border-radius: 8px; border: 3px solid var(--acc); box-shadow: 0 0 0 2px #15171d; background: color-mix(in srgb, var(--acc) 18%, #15171d); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.badge .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge .photo .sil { width: 74%; height: 80%; color: color-mix(in srgb, #5a606b 85%, var(--acc)); }
.badge .who { padding-top: 56px; min-width: 0; }
.badge .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: #969ca6; }
.badge .nm { font-size: 22px; font-weight: 800; color: var(--acc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.badge .val { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge .val.sm { font-size: 13px; }
.badge .cells { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; padding: 18px 20px 0; }
.badge .cells.setup { border-top: 1px solid rgba(255,255,255,.1); margin: 16px 20px 0; padding: 14px 0 0; }
.badge .chiprow { display: flex; align-items: center; gap: 14px; padding: 16px 20px 0; }
.badge .simchip { width: 46px; height: 36px; border-radius: 7px; background: #deba62; border: 1px solid #967634; position: relative; flex: none; }
.badge .simchip::before { content: ""; position: absolute; inset: 8px 15px; border-radius: 3px; background: #cca852; border: 1px solid #967634; }
.badge .barcode { display: block; margin: 18px auto 4px; height: 26px; }
.badge .bno { text-align: center; font-size: 11px; letter-spacing: 0.3em; color: #969ca6; }
/* The site draws no gradients: the badge's holographic shine is the game's only. */

/* ---- Forum ---- */
.cats .t td:first-child { width: 60%; }
.thread-title { font-size: 15px; font-weight: 650; color: var(--text); }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .author { padding: 16px; border-right: 1px solid var(--line); background: var(--panel-2); font-size: 13px; }
.post .author a { font-weight: 700; }
.post .author .av { width: 48px; height: 64px; border-radius: 8px; display: block; margin-bottom: 8px; }
.post .author .av-none { display: flex; font-size: 22px; }
.post .bodywrap { padding: 16px 18px; min-width: 0; }
.post .body { overflow-wrap: anywhere; }
.post .body p:last-child { margin-bottom: 0; }
.post .tools { display: flex; gap: 14px; margin-top: 12px; align-items: center; font-size: 12px; color: var(--faint); }
.post.deleted .body { color: var(--faint); font-style: italic; }
details.report summary { cursor: pointer; color: var(--dim); list-style: none; }
details.report summary::-webkit-details-marker { display: none; }
details.report form { display: flex; gap: 8px; margin-top: 8px; }

/* ---- Small screens ---- */
@media (max-width: 1000px) {
  .pl-layout, .profile, .grid2, .grid3, .hero { grid-template-columns: minmax(0, 1fr); }
  .pl-detail, .badge-wrap { position: static; }
}
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .side { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; }
  .brand { padding: 0 4px 0 2px; font-size: 17px; }
  .brand img { width: 26px; height: 26px; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { width: 34px; height: 36px; padding: 0; border-radius: 10px; }
  .nav a .i { width: 19px; height: 19px; }
  .nav a span { display: none; }
  .side-foot { display: none; }
  .rail-foot { margin-top: 0; margin-left: auto; }
  .content { padding: 0; }
  .hero { padding: 20px; }
  .t th, .t td { padding: 8px 8px; }
  .hide-sm { display: none; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .author { border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
  .post .author .av { width: 32px; height: 32px; margin: 0; }
  .badge { width: 100%; max-width: 340px; }
  .head .search { width: 100%; }
}

/* ---- Marketplace ---- */
.tag.kind-sell { background: rgba(77, 240, 0, 0.12); color: var(--accent); }
.tag.kind-buy { background: rgba(90, 169, 255, 0.14); color: var(--tracking); }
.tag.kind-trade { background: rgba(185, 140, 255, 0.14); color: var(--switching); }
.listing { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 14px; }
.listing .price { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.listing .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; flex: 1; }
.listing form { margin-left: auto; }

/* ---- Bento: pages are grids of rounded tiles of different sizes ---- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.bento + .bento { margin-top: var(--gap); }
.bento > * { min-width: 0; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.r2 { grid-row: span 2; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile.flush { padding: 0; }
.tile.lit { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.tile-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 10px; }
.tile-head h2, .tile-head h1 { flex: 1; margin: 0; }
.tile-head .search { width: 240px; }
.tile .label { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tile .big { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .big.sm { font-size: 22px; }
.tile .grow { flex: 1; }
.tile .t td:first-child, .tile .t th:first-child { padding-left: 18px; }
.tile .t td:last-child, .tile .t th:last-child { padding-right: 18px; }
.tile .t th { background: transparent; }
.tile .chips { padding: 0 18px 12px; }
.tile .pager { padding: 0 18px 14px; }
.tile-link { color: inherit; }
.tile-link:hover { text-decoration: none; border-color: var(--line-strong, #33363f); background: var(--row-hover); }
.hello h1 { font-size: 34px; margin-bottom: 10px; }
.hello h1 b { color: var(--accent); }
.pct { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.pct div { display: flex; flex-direction: column; }
.pct b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pct span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.medal { display: flex; align-items: center; gap: 12px; }
.medal .pos { font-size: 34px; font-weight: 800; width: 40px; }
.tiers { display: flex; flex-direction: column; gap: 6px; }
.tiers .row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12px; }
.tiers .bar i { border-radius: 2px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; }
.cat-tile .nm { font-size: 16px; font-weight: 700; color: var(--text); }
.cat-tile .nums { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--dim); }
.cat-tile .nums b { color: var(--text); font-size: 15px; }
.top-item .k { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.top-item .nm { font-size: 16px; font-weight: 700; margin-top: 6px; }

@media (max-width: 1100px) {
  .s2, .s3 { grid-column: span 4; }
  .s4, .s5 { grid-column: span 6; }
  .s7, .s8, .s9 { grid-column: span 12; }
  .s6 { grid-column: span 12; }
  .r2 { grid-row: auto; }
}
@media (max-width: 760px) {
  .app { padding: 8px; gap: 8px; }
  .side { border-radius: 12px; }
  .bento > * { grid-column: span 12 !important; }
  .tile-head { flex-wrap: wrap; }
  .tile-head .search { width: 100%; }
  .hello h1 { font-size: 26px; }
}
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .five { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .bento > .s2 { grid-column: span 4 !important; } .bento > .s2 .big { font-size: 24px; } }
.finder { gap: 10px; }
.finder label { margin: 0; }
.finder-row { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--dim); }
.finder-row input { border: 0; background: none; padding: 9px 0; }
.finder-row input:focus { outline: none; }
.finder-row:focus-within { outline: 2px solid rgba(77, 240, 0, 0.5); }
.finder .btn { align-self: flex-start; }

/* ---- Community ---- */
.news-title { font-size: 24px; margin: 6px 0 4px; }
.news-title a { color: var(--text); }
.tile .body { overflow-wrap: anywhere; line-height: 1.6; }
.tile .body p:last-child { margin-bottom: 0; }
.poll-q { display: block; color: var(--text); font-weight: 700; font-size: 16px; margin: 6px 0 10px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
/* A poll option: its share of the votes drawn as a bar behind the label (--w). */
.opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; overflow: hidden; }
.opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(77, 240, 0, 0.12); }
.opt > * { position: relative; }
.opt-label { flex: 1; min-width: 0; }
.opt.mine { border-color: rgba(77, 240, 0, 0.55); }
button.opt { cursor: pointer; }
button.opt:hover { border-color: var(--dim); }

/* The pre-launch landing page (pages/landing.ts): one centred column, no sidebar. */
body.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 64px 16px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.landing-logo { width: 112px; height: 112px; margin-bottom: 14px; }
.landing-word { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.landing-word b { color: var(--accent); }
.landing-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px; }
.landing-main h1 { font-size: clamp(28px, 5vw, 44px); max-width: 760px; }
.landing-main h1 .accent { color: var(--accent); }
.landing-lead { color: var(--dim); font-size: 16px; max-width: 620px; margin-bottom: 30px; }
.landing-notice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; color: var(--warn); }
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); width: 100%; text-align: left; }
.landing-card { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.landing-card b { font-size: 15px; }
.landing-card span { color: var(--dim); }
.landing-foot { display: flex; justify-content: center; gap: 22px; padding: 22px 16px 28px; color: var(--faint); font-size: 13px; flex-wrap: wrap; }
.landing-foot a { color: var(--dim); }
@media (max-width: 720px) {
  .landing-main { padding-top: 40px; }
  .landing-grid { grid-template-columns: 1fr; }
}
