:root {
  --radius: 0.65rem;
  --radius-sm: calc(var(--radius) - 4px);

  --background: #050b07;
  --foreground: #f2fff5;
  --border: rgba(194, 248, 200, 0.1);
  --input: rgba(194, 248, 200, 0.14);

  --card: #0b150e;
  --primary: #5cba78;
  --primary-foreground: #04120a;
  --secondary: #12241a;
  --muted-foreground: #93ab9b;
  --accent: #163222;
  --accent-foreground: #c2f8c8;
  --destructive: #ff5c5c;

  --gold: #ffd166;
  --gem: #c084fc;
  --shard: #3ddc97;
  --orange: #ffa94d;
  --mint: #08fb7b;
  --cookie: #f4b942;
  --silver: #d3ded8;
  --bronze: #e0a370;
}

* { box-sizing: border-box; border-color: var(--border); }

html { color-scheme: dark; scrollbar-color: #1d3a29 var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  background-image: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(92, 186, 120, 0.14), transparent 70%);
  background-repeat: no-repeat;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(92, 186, 120, 0.35); color: var(--foreground); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; }

.page { position: relative; display: flex; min-height: 100vh; flex-direction: column; }
.page-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.25;
  background-position: center; background-size: cover; background-attachment: fixed; background-repeat: no-repeat;
}
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--background), transparent); }
.page-inner { position: relative; z-index: 1; display: flex; min-height: 100vh; flex-direction: column; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; opacity: 0.1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 0; background: transparent; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background-color .15s, color .15s;
}
.btn:hover { background: rgba(22, 50, 34, 0.5); color: var(--accent-foreground); }
.btn i { font-size: 20px; }
.btn.primary { background: var(--primary); color: var(--primary-foreground); height: 40px; padding: 0 20px; font-weight: 600; }
.btn.primary:hover { background: rgba(92, 186, 120, 0.9); color: var(--primary-foreground); }

header.site { width: 100%; padding: 24px 16px; }
header.site .header-bar { display: flex; align-items: center; }
/* Store sits in the exact middle; the two sides grow outwards from it. */
header.site nav.desktop { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: 100%; }
.nav-side { display: flex; align-items: center; gap: 8px; }
.nav-side.left { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }
header.site .btn { height: 40px; padding: 0 14px; font-weight: 600; }
.nav-more { position: relative; }
.nav-more .btn i { font-size: 14px; transition: transform .15s; }
.nav-more:hover .btn i, .nav-more.open .btn i { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; left: 50%; z-index: 30; display: none; padding-top: 8px; transform: translateX(-50%); }
.nav-more:hover .nav-menu, .nav-more.open .nav-menu { display: block; }
.nav-menu-panel {
  min-width: 180px; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.nav-menu-panel a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s;
}
.nav-menu-panel a i { font-size: 18px; }
.nav-menu-panel a:hover, .nav-menu-panel a:focus-visible { background: var(--accent); color: var(--accent-foreground); outline: none; }
header.site .btn.nav-store {
  height: 44px; padding: 0 28px; border-radius: 14px; color: var(--primary-foreground);
  background: linear-gradient(#7ddc98, #4fb06d); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: 0 5px 0 #2c7444, 0 8px 18px rgba(0, 0, 0, 0.35); transition: transform .1s, box-shadow .1s;
}
header.site .btn.nav-store:hover {
  color: var(--primary-foreground); background: linear-gradient(#8de6a6, #58ba76);
  transform: translateY(-1px); box-shadow: 0 6px 0 #2c7444, 0 10px 20px rgba(0, 0, 0, 0.4);
}
header.site .btn.nav-store:active { transform: translateY(4px); box-shadow: 0 1px 0 #2c7444, 0 4px 10px rgba(0, 0, 0, 0.35); }
.nav-toggle { display: none; }
.mobile-nav .btn { justify-content: flex-start; }
header.site .mobile-nav .btn.nav-store { justify-content: center; margin: 6px 0 12px; }

.hero { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 16px 0; }
.hero-side { display: flex; align-items: center; gap: 24px; background: none; border: 0; padding: 0; text-align: left; }
.hero-side.left { justify-content: flex-end; }
.hero-side.left .hero-text { align-items: flex-end; text-align: right; }
.hero-text { display: flex; flex-direction: column; }
.hero-text strong { font-size: 24px; font-weight: 700; }
.hero-text .ip { display: flex; align-items: center; gap: 4px; }
.hero-text .ip i { opacity: 0; transition: opacity .15s; font-size: 16px; }
.hero-side:hover .ip i { opacity: 1; }
.hero-icon { position: relative; border-radius: 999px; background: var(--accent); padding: 12px; display: flex; }
.hero-icon i { font-size: 36px; }
.hero-count {
  position: absolute; top: -12px; right: -12px; border-radius: 2rem; background: var(--destructive);
  padding: 0 8px; font-weight: 600; opacity: 0; transition: opacity .3s;
}
.hero-count.show { opacity: 1; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo a { width: 208px; height: 208px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; animation: smooth-bob 2.5s ease-in-out infinite; }

@keyframes smooth-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

main.site { flex: 1; }
.layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.content { grid-column: span 2; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.card {
  display: flex; flex-direction: column; gap: 24px; padding: 24px 0; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card.tight { gap: 8px; padding: 16px 0; }
.card-header { padding: 0 24px; display: flex; flex-direction: column; gap: 6px; }
.card-header.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-weight: 700; line-height: 1.1; }
.card-title.xl { font-size: 30px; font-weight: 800; }
.card-title.lg { font-size: 20px; text-transform: uppercase; }
.card-title.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.card-desc { color: var(--muted-foreground); font-size: 14px; }
.card-content { padding: 0 24px; }
.card-content.flush { padding: 0 12px; }
.light { font-weight: 300; line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.side-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-left: 2px solid transparent;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--muted-foreground); transition: background-color .15s, color .15s;
}
.side-nav a i { font-size: 20px; }
.side-nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.side-nav a.active { border-left-color: var(--primary); background: var(--accent); color: var(--primary); }

.status-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.status-row span:first-child { color: var(--muted-foreground); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); display: inline-block; flex-shrink: 0; }
.dot.off { background: #3b4a41; box-shadow: none; }

.navlink {
  position: relative; display: flex; align-items: center; gap: 32px; height: 128px; padding: 32px 48px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); transition: border-color .2s;
}
.navlink:hover { border-color: rgba(92, 186, 120, 0.4); }
.navlink .navlink-icon { width: 75px; height: 75px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--accent); color: var(--primary); }
.navlink .navlink-icon i { font-size: 40px; }
.navlink .navlink-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.navlink h3 { font-size: 24px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navlink p { color: var(--muted-foreground); font-size: 14px; margin-top: 4px; }
.navlink .arrow { font-size: 24px; opacity: 0; transition: all .3s; }
.navlink:hover .arrow { opacity: 1; transform: translateX(8px); }

.search { position: relative; }
.search input {
  width: 100%; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--input); background: rgba(194, 248, 200, 0.04);
  color: var(--foreground); padding: 0 120px 0 42px; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(92, 186, 120, 0.25); }
.search > i { position: absolute; left: 14px; top: 13px; font-size: 18px; color: var(--muted-foreground); }
.search .btn.primary { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 16px; }
.suggest {
  position: absolute; top: 50px; left: 0; right: 0; z-index: 20; display: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.suggest.show { display: block; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: none; border: 0; font-size: 14px; font-weight: 500; text-align: left; }
.suggest button:hover, .suggest button.active { background: var(--accent); color: var(--accent-foreground); }
.suggest img { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }

.profile-head { display: flex; gap: 24px; align-items: center; padding: 0 24px; }
.profile-skin { width: 120px; height: 190px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 80%, rgba(92, 186, 120, 0.18), transparent 70%); }
.profile-skin img { max-height: 180px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.profile-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.profile-info h1 { font-size: 32px; font-weight: 800; word-break: break-all; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid currentColor;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.03); white-space: nowrap;
}
.badge.muted { color: var(--muted-foreground); border-color: var(--border); text-transform: none; letter-spacing: 0; font-weight: 600; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted-foreground); }
.profile-meta b { color: var(--foreground); font-weight: 600; }
.uuid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted-foreground); cursor: pointer; word-break: break-all; }
.uuid:hover { color: var(--foreground); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--secondary); border: 1px solid var(--border); min-width: 0; }
.tile .lbl { font-size: 12px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.tile .num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .sub { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }
.tile.accent { background: var(--accent); border-color: rgba(92, 186, 120, 0.35); }
.tile.accent .num { color: var(--primary); }
.c-gold { color: var(--gold); } .c-gem { color: var(--gem); } .c-shard { color: var(--shard); } .c-red { color: var(--destructive); } .c-primary { color: var(--primary); }

.progress { height: 12px; width: 100%; border-radius: 999px; background: var(--background); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .3s ease-in-out; }

.alert { border: 1px solid rgba(255, 92, 92, 0.4); background: rgba(255, 92, 92, 0.08); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.alert b { color: var(--destructive); }
.alert.mute { border-color: rgba(255, 169, 77, 0.4); background: rgba(255, 169, 77, 0.08); }
.alert.mute b { color: var(--orange); }
.alert small { display: block; margin-top: 4px; color: var(--muted-foreground); }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.staff-member {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px;
  border-radius: var(--radius-sm); background: var(--secondary); border: 1px solid var(--border); text-align: center; transition: border-color .2s, transform .2s;
}
.staff-member:hover { border-color: rgba(92, 186, 120, 0.4); transform: translateY(-2px); }
.staff-member .skin { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.staff-member .skin img { max-height: 120px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.staff-member .name { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-member .ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.staff-member .ranks .badge { font-size: 10px; padding: 1px 6px; }
.staff-member .dot { position: absolute; top: 12px; right: 12px; }
.category-title { display: flex; align-items: center; gap: 10px; }
.category-title .swatch { width: 10px; height: 10px; border-radius: 3px; }
.count { color: var(--muted-foreground); font-size: 14px; font-weight: 600; }

.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--secondary); font-size: 14px; font-weight: 600; color: var(--muted-foreground);
  transition: background-color .15s, color .15s, border-color .15s;
}
.lb-tab i { font-size: 18px; color: var(--lb, var(--primary)); }
.lb-tab:hover { background: var(--accent); color: var(--accent-foreground); }
.lb-tab.active { background: var(--accent); border-color: rgba(92, 186, 120, 0.4); color: var(--foreground); }
.lb-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-title { display: flex; align-items: center; gap: 10px; }
.lb-title i { font-size: 22px; color: var(--lb, var(--primary)); }
.lb-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.lb-updated i { font-size: 15px; }

.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; max-width: 560px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.podium-spot.first { order: 2; --medal: var(--gold); }
.podium-spot.second { order: 1; --medal: var(--silver); }
.podium-spot.third { order: 3; --medal: var(--bronze); }
.podium-spot .skin { height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.podium-spot.first .skin { height: 150px; }
.podium-spot .skin img { max-height: 120px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); transition: transform .2s; }
.podium-spot.first .skin img { max-height: 150px; }
a.podium-spot:hover .skin img { transform: translateY(-4px); }
.podium-spot .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; }
a.podium-spot:hover .name { color: var(--accent-foreground); }
.podium-spot .value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lb, var(--primary)); }
.podium-step {
  width: 100%; display: flex; justify-content: center; padding-top: 10px; margin-top: 6px; font-size: 26px; font-weight: 800;
  color: var(--medal); background: var(--secondary); border: 1px solid var(--border); border-bottom: 0;
  border-top: 3px solid var(--medal); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.podium-spot.first .podium-step { height: 92px; background: linear-gradient(to bottom, rgba(255, 209, 102, 0.12), var(--secondary)); }
.podium-spot.second .podium-step { height: 68px; }
.podium-spot.third .podium-step { height: 52px; }

.lb-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-row {
  display: grid; grid-template-columns: 44px 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px;
  border-radius: var(--radius-sm); background: var(--secondary); border: 1px solid var(--border); transition: border-color .2s, background-color .15s;
}
.lb-row:hover { border-color: rgba(92, 186, 120, 0.4); background: var(--accent); }
.lb-row .pos { font-weight: 700; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.lb-row img { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; }
.lb-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lb, var(--primary)); white-space: nowrap; }

.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

.rules { list-style: none; margin: 0; padding: 0; }
.rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.rule:first-child { padding-top: 0; border-top: 0; }
.rule:last-child { padding-bottom: 0; }
.rule .num { font-weight: 700; color: var(--muted-foreground); font-variant-numeric: tabular-nums; line-height: 1.4; }
.rule .num:hover { color: var(--foreground); }
.rule h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.rule p { margin-top: 2px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
.rule.target .num, .rule.target h3 { color: var(--primary); }

.lb-tab .n { font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.lb-tab .n:empty { display: none; }
.pun-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pun-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--secondary); border: 1px solid var(--border);
}
.pun-row > img { width: 40px; height: 40px; border-radius: 4px; image-rendering: pixelated; }
.pun-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pun-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pun-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pun-top .badge { font-size: 10px; padding: 1px 6px; }
.pun-reason { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pun-reason.none { color: var(--muted-foreground); font-style: italic; }
.pun-by { font-size: 13px; color: var(--muted-foreground); }
.pun-by a, .pun-by span { color: var(--foreground); font-weight: 600; }
a.pun-name:hover, .pun-by a:hover { color: var(--accent-foreground); text-decoration: underline; }
.pun-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.pun-end.on { color: var(--foreground); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager .btn { height: 36px; border: 1px solid var(--border); background: var(--secondary); font-weight: 600; }
.pager .btn i { font-size: 16px; }
.pager .btn:hover { background: var(--accent); }
.pager .btn:disabled { opacity: 0.4; cursor: default; background: var(--secondary); color: inherit; }

.center { padding: 48px 24px; text-align: center; color: var(--muted-foreground); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.center h2 { color: var(--foreground); font-size: 22px; font-weight: 700; }
.center i.big { font-size: 48px; color: var(--primary); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--secondary); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--secondary); border-radius: var(--radius-sm); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.toast {
  position: fixed; top: 16px; left: 50%; z-index: 100; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer.site { margin-top: 128px; border-top: 1px solid var(--border); background: var(--card); box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.5); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 64px; padding: 48px 0; }
.footer-grid h6 { font-size: 16px; font-weight: 600; }
.footer-grid p, .footer-grid ul { margin-top: 16px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--foreground); }
.separator { height: 1px; background: var(--border); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px 8px; padding: 32px 0; color: var(--muted-foreground); font-size: 14px; }
.footer-bottom a.icon { font-size: 20px; }
.footer-bottom a.icon:hover { color: var(--foreground); }

.mobile-nav { display: none; }

@media (max-width: 1280px) {
  .container { padding: 0 16px; }
  header.site .container { padding: 0; }
}

@media (max-width: 1024px) {
  header.site nav.desktop { gap: 14px; }
  .nav-side { gap: 2px; }
  header.site .btn { padding: 0 10px; }
  header.site .btn.nav-store { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; padding: 24px 0; }
  .hero-side { display: none; }
}

@media (max-width: 768px) {
  header.site nav.desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle i { font-size: 32px; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 0; }
  .layout { grid-template-columns: 1fr; }
  .content { grid-column: auto; order: -1; }
  .sidebar .side-nav-card { display: none; }
  .navlink { padding: 24px; gap: 20px; height: 112px; }
  .navlink .navlink-icon { width: 56px; height: 56px; }
  .navlink .navlink-icon i { font-size: 30px; }
  .navlink h3 { font-size: 20px; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-info { align-items: center; }
  .profile-badges, .profile-meta { justify-content: center; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .num { font-size: 19px; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .footer-bottom { flex-direction: column-reverse; }
  .card-title.xl { font-size: 26px; }
  .search input { padding-right: 16px; }
  .search .btn.primary { display: none; }
  .lb-board .card-header.row { flex-direction: column; align-items: flex-start; }
  .lb-tab { height: 32px; padding: 0 10px; font-size: 13px; }
  .podium { gap: 8px; }
  .podium-spot .skin { height: 90px; }
  .podium-spot.first .skin { height: 112px; }
  .podium-spot .skin img { max-height: 90px; }
  .podium-spot.first .skin img { max-height: 112px; }
  .podium-spot .name { font-size: 13px; }
  .podium-spot .value { font-size: 13px; }
  .podium-step { font-size: 20px; }
  .podium-spot.first .podium-step { height: 68px; }
  .podium-spot.second .podium-step { height: 50px; }
  .podium-spot.third .podium-step { height: 38px; }
  .lb-row { grid-template-columns: 34px 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .lb-row img { width: 28px; height: 28px; }
  .rule { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .pun-row { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .pun-row > img { width: 32px; height: 32px; }
  .pun-when { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 2px 12px; white-space: normal; }
}
