:root {
  --bg: #aacfe9;
  --bg2: #e4f0f9;
  --panel: #d3e6f4;
  --panel2: #bfd9ec;
  --border: #92bad9;
  --text: #17304a;
  --muted: #4f6a88;
  --body-text: #2c4460;
  --blue: #1f7ae0;
  --blue2: #1257d6;
  --grad: linear-gradient(135deg, #3b8cff, #1257d6);
  --radius: 12px;
  --header-bg: rgba(228,240,249,.92);
  --shadow: rgba(31,122,224,.18);
  --bov1: rgba(228,240,249,.94);
  --bov2: rgba(228,240,249,.62);
  --bov3: rgba(228,240,249,.42);
  --deep: #1d4670;
  --deep-text: #ffffff;
}
html[data-theme="dark"] {
  --bg: #101114;
  --bg2: #17181c;
  --panel: #1e1f24;
  --panel2: #24262c;
  --border: #2e3038;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --body-text: #cfd5e2;
  --blue: #3b8cff;
  --header-bg: rgba(16,17,20,.92);
  --shadow: rgba(0,0,0,.5);
  --bov1: rgba(16,17,20,.95);
  --bov2: rgba(16,17,20,.55);
  --bov3: rgba(16,17,20,.35);
  --deep: #24262c;
  --deep-text: #e8eaf0;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; border-radius: 9px; }
.brand .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.brand .wordmark .go { color: var(--deep-text); }
.brand .wordmark .blox { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tag { font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 600; display: block; margin-top: -3px; }

/* ---------- Search ---------- */
.searchbox { position: relative; flex: 1; max-width: 560px; }
.searchbox input {
  width: 100%; padding: 10px 16px 10px 40px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; color: var(--deep-text); font-size: 15px; outline: none;
}
.searchbox input::placeholder { color: var(--deep-text); opacity: .6; }
.searchbox input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,140,255,.15); }
.searchbox .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius);
  max-height: 420px; overflow-y: auto; box-shadow: 0 12px 40px var(--shadow); display: none;
}
.search-results.open { display: block; }
.search-results .group { padding: 8px 14px 4px; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.search-results a.result {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; color: var(--text);
}
.search-results a.result:hover { background: rgba(59,140,255,.12); text-decoration: none; }
.search-results .r-emoji { font-size: 20px; }
.search-results .r-sub { font-size: 12px; color: var(--muted); }
.search-results .empty { padding: 16px; color: var(--muted); font-size: 14px; }

.header-links { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.header-links a { color: var(--deep-text); opacity: .85; font-weight: 600; }
.header-links a:hover { opacity: 1; color: #ffd75b; text-decoration: none; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.14); color: var(--deep-text);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { border-color: #ffd75b; color: #ffd75b; }

/* ---------- Layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- Home ---------- */
.hero {
  background: radial-gradient(1200px 400px at 20% -10%, rgba(59,140,255,.22), transparent 60%), var(--bg2);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 48px 40px; margin-bottom: 34px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.hero img { height: 96px; border-radius: 22px; box-shadow: 0 12px 40px rgba(18,87,214,.35); }
.hero h1 { font-size: 34px; letter-spacing: -1px; }
.hero h1 .blox { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 16px; line-height: 1.6; }
.hero .stats { display: flex; gap: 26px; margin-top: 18px; }
.hero .stat b { font-size: 22px; display: block; }
.hero .stat span { color: var(--muted); font-size: 13px; }

.section-title { font-size: 20px; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title .bar { width: 5px; height: 22px; border-radius: 3px; background: var(--grad); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.codes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 34px; }
.codes-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: transform .15s, border-color .15s;
}
.codes-card:hover { transform: translateY(-2px); border-color: var(--blue); text-decoration: none; }
.codes-card h3 { font-size: 15px; }
.codes-card .dev { font-size: 12px; color: var(--muted); }
.codes-card .g-emoji { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--border); }
.codes-card .g-emoji img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.game-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: block; color: var(--text);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 30px var(--shadow); text-decoration: none; }
.game-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.game-card .g-emoji {
  width: 52px; height: 52px; border-radius: 12px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel2); border: 1px solid var(--border);
}
.game-card h3 { font-size: 17px; }
.game-card .dev { font-size: 12.5px; color: var(--muted); }
.game-card .blurb { font-size: 13.5px; color: var(--muted); line-height: 1.5; min-height: 40px; }
.game-card .badges { margin-top: 12px; display: flex; gap: 8px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; }
.badge.live { background: rgba(59,140,255,.18); color: var(--blue); }
.badge.soon { background: rgba(154,163,181,.14); color: var(--muted); }
.badge.genre { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); }

/* ---------- Game banner ---------- */
.game-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
  background:
    radial-gradient(700px 220px at 15% -20%, color-mix(in srgb, var(--ga) 40%, transparent), transparent 65%),
    radial-gradient(700px 220px at 85% 120%, color-mix(in srgb, var(--gb) 30%, transparent), transparent 65%),
    var(--bg2);
  border: 1px solid color-mix(in srgb, var(--ga) 45%, var(--border));
  border-radius: 18px;
  padding: 26px 32px; margin-bottom: 22px;
}
.game-banner .gb-emoji {
  width: 76px; height: 76px; border-radius: 18px; font-size: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ga), var(--gb));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ga) 40%, transparent);
}
.game-banner .gb-kicker { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--ga); }
.game-banner h1 { font-size: 32px; letter-spacing: -.5px; margin: 2px 0; }
.game-banner .gb-tag { color: var(--muted); font-size: 14px; }
.game-banner .gb-deco {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 30px; letter-spacing: 8px; opacity: .25; pointer-events: none;
}

/* ---------- Screenshot slots ---------- */
.page-shot {
  display: block; width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border); margin: 4px 0 16px;
}
.ib-img {
  display: block; width: 100%; max-height: 180px; object-fit: cover;
  border-radius: 10px; margin-bottom: 8px;
}
.ib-head:has(.ib-img) .ib-emoji { display: none; }

/* ---------- Codes board ---------- */
.code-actions { display: flex; align-items: center; gap: 10px; }
.copy-btn {
  border: none; cursor: pointer; font-weight: 800; font-size: 12.5px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--grad); color: #fff;
}
.copy-btn:hover { filter: brightness(1.1); }
.copy-btn.copied { background: #2fa24f; }

.codes-empty {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px;
  font-weight: 600; text-align: center;
  padding: 18px; border-radius: 14px;
  background: var(--panel);
  border: 2px dashed var(--border);
  max-width: 420px; margin: 0 auto;
}
/* Text stacks under the icon whenever the codes column is too narrow for a row. */
.codes-empty p { margin: 0; flex: 1 1 210px; min-width: 0; }
.codes-empty-ico {
  width: 68px; height: 68px; flex: 0 0 68px;
  border-radius: 14px; object-fit: cover;
}
@media (max-width: 480px) {
  .codes-empty { flex-direction: column; }
}
.codes-board {
  position: relative; border-radius: 16px; padding: 26px; margin: 6px 0 22px;
  background: linear-gradient(180deg, rgba(245,166,35,.10), rgba(255,107,61,.05)), var(--panel);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px transparent;
}
@keyframes codes-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(245,166,35,.55), 0 0 24px rgba(245,166,35,.18); }
  50%      { box-shadow: 0 0 0 2px rgba(255,107,61,.85), 0 0 42px rgba(255,107,61,.35); }
}
.codes-glow {
  font-size: 26px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(90deg, #f5a623, #ff6b3d, #f5a623);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.codes-sub { color: var(--muted); margin: 6px 0 16px; }
.codes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* The empty state is a single item — drop the multi-column grid so it centers on the board. */
.codes-list:has(> .codes-empty) { grid-template-columns: 1fr; }
.code-card {
  background: var(--bg); border: 1px dashed rgba(245,166,35,.6); border-radius: 12px;
  padding: 14px 16px;
}
.code-card .code-value { font-family: Consolas, monospace; font-size: 18px; font-weight: 700; color: #ffd479; letter-spacing: 1px; }
.code-card .code-reward { font-size: 13px; color: var(--muted); margin: 6px 0; }
.code-card .code-status { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #6ee07a; }
.code-card.example .code-status { color: var(--muted); }

/* Codes link in sidebar stands out */
.wiki-nav a.nav-codes {
  background: linear-gradient(90deg, rgba(245,166,35,.18), rgba(255,107,61,.12));
  border: 1px dashed rgba(245,166,35,.55);
  font-weight: 700;
}
.wiki-nav a.nav-codes.active { background: linear-gradient(90deg, #f5a623, #ff6b3d); color: #1a1204; }

/* ---------- Wiki layout ---------- */
.wiki-layout { display: grid; grid-template-columns: 230px 1fr 290px; gap: 24px; align-items: start; }
.wiki-nav {
  position: sticky; top: 82px;
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.wiki-nav .nav-title { font-size: 11px; letter-spacing: 2px; color: var(--deep-text); opacity: .65; font-weight: 700; padding: 4px 10px 8px; text-transform: uppercase; }
.wiki-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin: 4px 0; border-radius: 10px;
  color: var(--deep-text); font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  transition: transform .12s, background .12s;
}
.wiki-nav a:hover { background: rgba(255,255,255,.18); transform: translateX(3px); text-decoration: none; }
.wiki-nav a.active { background: var(--grad); color: #fff; font-weight: 700; }

.article {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 34px; min-width: 0;
}
.article .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.article h1 { font-size: 30px; letter-spacing: -.5px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.article h3 { font-size: 19px; margin: 24px 0 10px; color: var(--text); }
.article p { line-height: 1.75; margin: 10px 0; color: var(--body-text); }
.article ul, .article ol { margin: 10px 0 10px 24px; line-height: 1.8; color: var(--body-text); }
.article table {
  width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.article th { background: var(--deep); color: var(--deep-text); text-align: left; padding: 10px 12px; font-size: 13px; letter-spacing: .3px; }
.article td { padding: 9px 12px; border-top: 1px solid var(--border); color: var(--body-text); }
.article tr:nth-child(even) td { background: rgba(255,255,255,.02); }
/* ---------- Readability: spacing, section structure ---------- */
.article h3 {
  margin: 40px 0 14px !important; padding-bottom: 8px;
  border-bottom: 2px solid var(--border); scroll-margin-top: 90px;
  display: flex; align-items: center; gap: 8px;
}
.article h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--grad); flex-shrink: 0; }
.article p { margin: 14px 0 !important; }
.article table { margin: 18px 0 26px !important; }
.article ul, .article ol { margin: 14px 0 14px 24px !important; }
.article td, .article th { padding: 10px 14px !important; }

/* Jump-to chip bar */
.toc-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 22px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
}
.toc-bar {
  background: var(--deep); border-color: var(--deep);
  box-shadow: 0 6px 18px var(--shadow);
}
.toc-bar .toc-chip {
  background: linear-gradient(135deg, #f5a623, #ff6b3d);
  color: #241300; font-weight: 800; letter-spacing: .3px;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 3px 10px rgba(245,166,35,.35);
  transition: transform .12s, box-shadow .12s;
}
.toc-bar .toc-chip:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(245,166,35,.55); color: #241300;
}
.toc-label { color: var(--deep-text) !important; opacity:.8; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-right: 4px; }
.toc-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(59,140,255,.12); color: var(--blue); cursor: pointer;
}
.toc-chip:hover { background: var(--grad); color: #fff; text-decoration: none; }

/* Nested sidebar entries + dropdown groups */
.wiki-nav a.nav-sub { margin-left: 16px; font-size: 13px; opacity: .95; padding: 6px 10px; background: rgba(255,255,255,.045); }
.wiki-nav a.nav-sub .nav-ico { width: 24px; height: 24px; }
.nav-parent { display: flex; align-items: center; }
.nav-parent a { flex: 1; }
.nav-caret {
  background: none; border: none; cursor: pointer;
  color: var(--deep-text); font-size: 13px; padding: 4px 8px;
  transition: transform .2s; transform: rotate(-90deg);
}
.nav-group.open .nav-caret { transform: rotate(0deg); }
.nav-children { display: none; }
.nav-group.open .nav-children { display: block; }

/* Big CODES button in the banner */
.codes-cta {
  margin-left: auto; align-self: center;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: linear-gradient(135deg, #f5a623, #ff6b3d);
  color: #1a1204 !important; text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(245,166,35,.4);
  animation: codes-pulse 2.2s ease-in-out infinite;
}
.codes-cta img { width: 34px; height: 34px; object-fit: contain; }
.codes-cta b { font-size: 18px; letter-spacing: 2px; display: block; }
.codes-cta small { font-size: 11px; font-weight: 600; opacity: .85; }
@keyframes codes-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@media (max-width: 800px) { .codes-cta small { display: none; } }

/* ---------- Parallax page background ---------- */
#page-bg {
  position: fixed; inset: -12vh -6vw; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .18; filter: blur(5px) saturate(1.15);
  transform: scale(1.12); will-change: transform;
  pointer-events: none;
}
body { background: var(--bg); }

/* ---------- Wiki links (auto-linked article names) ---------- */
.wiki-link {
  color: var(--blue) !important; font-weight: 600;
  background: rgba(59,140,255,.12);
  padding: 1px 6px 1px 3px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none !important; line-height: 1.45;
}
.wiki-link:hover { background: rgba(59,140,255,.25); }
.inline-ico { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.tbl-ico { width: 26px; height: 26px; object-fit: contain; vertical-align: -7px; margin-right: 6px; }
.list-ico { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; margin-right: 7px; vertical-align: -5px; }
.art-list a { display: flex; align-items: center; }

/* ---------- Image icons (replacing emoji) ---------- */
.nav-ico { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.h1-ico { width: 34px; height: 34px; object-fit: contain; vertical-align: -6px; }
.r-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.gb-img { height: 92px; width: 92px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.game-banner.has-bg { border: 1px solid var(--border); }
.g-emoji img { width: 40px; height: 40px; object-fit: contain; }
.ib-img { width: 100%; max-height: 170px; object-fit: contain; padding: 10px 10px 0; }

/* ---------- Article pages (full wiki dump) ---------- */
.wiki-layout.no-infobox { grid-template-columns: 230px 1fr; }
.subs-title { margin-top: 34px !important; padding-top: 18px; border-top: 1px solid var(--border); }
.art-count { font-size: 18px; color: var(--muted); font-weight: 600; }
.art-filter {
  width: 100%; padding: 11px 16px; margin: 6px 0 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: 15px; outline: none;
}
.art-filter:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,140,255,.15); }
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.art-list a {
  padding: 7px 12px; border-radius: 8px; color: var(--blue); font-weight: 600; font-size: 14px;
  background: rgba(59,140,255,.08);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-list a:hover { background: rgba(59,140,255,.22); text-decoration: none; }
.art-more { grid-column: 1/-1; padding: 12px; color: var(--muted); font-size: 13px; }
.art-loading { color: var(--muted); }
.art-source { margin-top: 26px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.fandom-article { line-height: 1.7; color: var(--body-text); }
/* Fandom styles rarity names as gradient text (background-clip + transparent
   fill); without their exact stack the text renders invisible. Force it solid. */
.fandom-article [style*="-webkit-text-fill-color"] {
  -webkit-text-fill-color: currentColor !important;
  background: none !important; color: var(--text) !important;
}
.fandom-article h2 { font-size: 23px; margin: 26px 0 10px; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.fandom-article img { max-width: 100%; height: auto; border-radius: 8px; }
.fandom-article a { color: var(--blue); }
.fandom-article table { max-width: 100%; display: block; overflow-x: auto; }
.fandom-article [style*="background"] { background: var(--panel) !important; color: var(--body-text) !important; }
.fandom-article [style*="color"] { color: var(--body-text) !important; }
.fandom-article th[style], .fandom-article td[style] { border-color: var(--border) !important; }
.fandom-article .infobox, .fandom-article aside { float: right; max-width: 300px; margin: 0 0 14px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }

.attribution { margin-top: 28px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Infobox ---------- */
.infobox {
  position: sticky; top: 82px;
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  color: var(--deep-text);
}
 .infobox .ib-head { background: var(--grad); padding: 16px; text-align: center; }
.infobox .ib-head .ib-emoji { font-size: 44px; display: block; }
.infobox .ib-head h2 { font-size: 18px; margin-top: 6px; color: #fff; }
.infobox table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.infobox td { padding: 8px 14px; border-top: 1px solid rgba(255,255,255,.15); vertical-align: top; }
.infobox td:first-child { color: var(--deep-text); opacity: .7; font-weight: 600; white-space: nowrap; width: 40%; }

/* ---------- Coming soon ---------- */
.coming-soon { text-align: center; padding: 90px 20px; }
.coming-soon .big { font-size: 72px; }
.coming-soon h1 { margin: 14px 0 8px; }
.coming-soon p { color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }
.btn {
  display: inline-block; margin-top: 22px; padding: 11px 26px;
  background: var(--grad); color: #fff; font-weight: 700; border-radius: 999px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

footer { background: var(--deep); color: var(--deep-text); opacity: .95; border-top: 1px solid var(--border); padding: 26px 20px; text-align: center; font-size: 13px; line-height: 1.8; }

@media (max-width: 1000px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-nav, .infobox { position: static; max-height: none; }
  .infobox { order: -1; }
  .header-links { display: none; }
}


/* ---------- Blox Fruits per-game theme (logo gold/orange) ---------- */
body[data-game="blox-fruits"] {
  --bg: #f3e3b8;
  --bg2: #fdf7e8;
  --panel: #f8eecf;
  --panel2: #f1e2b4;
  --border: #dcc07c;
  --text: #3a2a08;
  --muted: #7c6633;
  --body-text: #4a3a14;
  --blue: #c46a00;
  --blue2: #e8590c;
  --grad: linear-gradient(135deg, #f0b429, #e8590c);
  --deep: #4a3204;
  --deep-text: #ffe9b8;
  --header-bg: var(--deep);
  --shadow: rgba(232,89,12,.2);
  --bov1: rgba(253,247,232,.94);
  --bov2: rgba(253,247,232,.62);
  --bov3: rgba(253,247,232,.42);
}
html[data-theme="dark"] body[data-game="blox-fruits"] {
  --bg: #14100a;
  --bg2: #1c160c;
  --panel: #241c0e;
  --panel2: #2c2210;
  --border: #453714;
  --text: #f2e6c8;
  --muted: #b3a06e;
  --body-text: #ddceA5;
  --blue: #f0b429;
  --grad: linear-gradient(135deg, #f0b429, #e8590c);
  --deep: #2c2210;
  --deep-text: #f2e6c8;
  --shadow: rgba(0,0,0,.5);
  --bov1: rgba(20,16,10,.95);
  --bov2: rgba(20,16,10,.55);
  --bov3: rgba(20,16,10,.35);
}
body[data-game="blox-fruits"] .wiki-link { background: rgba(240,180,41,.16); }
body[data-game="blox-fruits"] .wiki-link:hover { background: rgba(240,180,41,.3); }
body[data-game="blox-fruits"] .art-list a { background: rgba(240,180,41,.12); }
body[data-game="blox-fruits"] .art-list a:hover { background: rgba(240,180,41,.28); }


/* ---------- Header Codes dropdown ---------- */
.codes-menu { position: relative; }
.codes-menu-list {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px var(--shadow); padding: 6px; z-index: 60;
}
.codes-menu-list.open { display: block; }
.codes-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--text) !important;
  font-weight: 600; font-size: 14px; opacity: 1 !important;
}
.codes-menu-list a:hover { background: rgba(240,180,41,.18); text-decoration: none; }
.codes-menu-list img { width: 26px; height: 26px; object-fit: contain; }
.codes-menu-list .menu-all { font-weight: 700; border-bottom: 1px solid var(--border); }
.codes-menu-list .menu-note { padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 260px; }

/* horizontal-scroll wrapper for baked codes tables */
/* ---- login ---- */
.login-box { max-width: 520px; margin: 0 auto; }
.login-options { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.login-options .muted { margin: -2px 0 6px; }
.btn-google { display: inline-block; background: #fff; color: #1a1a1a !important; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 1px solid #ccc; text-align: center; }
.btn-google:hover { text-decoration: none; filter: brightness(.97); }
.login-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 10px 0; }
.login-sep::before, .login-sep::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.login-form label { display: block; font-weight: 600; margin: 10px 0 4px; }
.login-form input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 15px; }
.login-actions { display: flex; gap: 8px; margin-top: 12px; }
.login-err { color: #ef4444; font-weight: 600; }
.badge-rbx { font-size: 11px; font-weight: 700; color: #22c55e; border: 1px solid #22c55e; border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
/* ---- trading hub ---- */
.account-btn { display: inline-flex; align-items: center; gap: 6px; }
.account-btn img { width: 22px; height: 22px; border-radius: 50%; }
.account-btn.login { background: #ffd75b; color: #1a1a1a !important; padding: 6px 12px; border-radius: 999px; opacity: 1; }
.unread { background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
.btn-roblox { display: inline-block; background: var(--blue); color: #fff !important; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; font-size: 14px; }
.btn-roblox:hover { filter: brightness(1.1); text-decoration: none; }
.btn-plain { background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.tpost { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 14px 0; }
.tpost h2 { margin-top: 0; }
.tpost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .tpost-grid { grid-template-columns: 1fr; } }
.tpick { position: relative; }
.tpick-list { position: absolute; z-index: 5; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; width: 100%; max-height: 260px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tpick-list:empty { display: none; }
.tpick-list button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; cursor: pointer; }
.tpick-list button:hover { background: rgba(59,140,255,.12); }
.tpick-list img, .tchip img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.tpick-list .muted { margin-left: auto; }
.tpick-chosen { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-bottom: 6px; }
.tpick-any { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; background: rgba(59,140,255,.12); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 13px; font-weight: 600; }
.tchip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 2px; }
.tad { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.tad-head, .tad-note, .tad-foot { grid-column: 1 / -1; }
.tad-head { display: flex; align-items: center; gap: 8px; }
.tad-head img { width: 28px; height: 28px; border-radius: 50%; }
.tad-lab { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tad-side { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.tad-side .tad-lab { width: 100%; }
.tad-note { color: var(--body-text); font-size: 14px; }
.tad-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 8px; }
.tad-foot button { background: none; border: 1px solid var(--border); color: var(--text); padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.tad-rate button[data-v="W"] { color: #22c55e; } .tad-rate button[data-v="L"] { color: #ef4444; } .tad-rate button[data-v="F"] { color: #eab308; }
.wfl { margin-left: auto; font-weight: 900; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.wfl.w { background: rgba(34,197,94,.18); color: #22c55e; } .wfl.f { background: rgba(234,179,8,.18); color: #eab308; } .wfl.l { background: rgba(239,68,68,.18); color: #ef4444; }
.muted { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .tad { grid-template-columns: 1fr; } }
.convo { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin: 8px 0; color: var(--text); }
.convo img { width: 36px; height: 36px; border-radius: 50%; }
.thread { max-height: 55vh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--panel); }
.msg { max-width: 80%; margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: rgba(59,140,255,.12); }
.msg.mine { margin-left: auto; background: rgba(34,197,94,.14); }
.msg .muted { display: block; font-size: 11px; margin-top: 2px; }
.msg-send { display: flex; gap: 8px; margin-top: 10px; }
.msg-send .art-filter { flex: 1; margin: 0; }
/* ---- value lists ---- */
.values-tools { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.values-tools .art-filter { flex: 1; min-width: 200px; margin: 0; }
.values-select { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 14px; }
.values-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.values-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--panel); }
.values-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.values-table tr:hover td { background: rgba(59,140,255,.06); }
.val-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.val-ico { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: rgba(0,0,0,.15); flex: none; }
.val-value { white-space: nowrap; }
.val-cur, .val-alt { font-size: 12px; color: var(--muted); }
.val-tbd { color: var(--muted); }
.val-rarity { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(59,140,255,.14); }
.dem { font-size: 12px; font-weight: 700; }
.dem-very-high { color: #22c55e; } .dem-high { color: #84cc16; } .dem-medium { color: #eab308; } .dem-low { color: #f97316; } .dem-very-low { color: #ef4444; }
.values-sub { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 320px; }

.codes-checked {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(47,162,79,.14); color: #2fa24f;
}

/* ---- Game Hub (codes-page right sidebar) ---- */
.game-hub h3 {
  margin: 16px 12px 8px; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; opacity: .75;
}
.hub-links { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.hub-links a {
  display: block; padding: 8px 12px; border-radius: 10px; font-weight: 600;
  background: color-mix(in srgb, var(--accent, #3b8cff) 12%, transparent);
  transition: filter .15s;
}
.hub-links a:hover { filter: brightness(1.15); }
.hub-event {
  margin: 0 12px 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
}
.hub-event-when { font-size: 12.5px; font-weight: 700; color: #2fa24f; }
.hub-event-title { font-weight: 700; margin-top: 2px; }
.hub-event-desc { font-size: 13px; opacity: .8; margin-top: 2px; }
.hub-note { font-size: 11.5px; opacity: .55; margin: 4px 12px 12px; }

.hub-event-img { width: 100%; border-radius: 10px; margin-bottom: 8px; display: block; }
.hub-event-int { font-size: 12.5px; font-weight: 700; margin-top: 4px; color: var(--blue); }

/* ---- Rolimons-style Game Info page ---- */
.about-banner { width: 100%; border-radius: 14px; display: block; margin-bottom: 14px; }
.play-btn {
  display: inline-block; padding: 10px 26px; border-radius: 10px; font-weight: 800;
  background: #2fa24f; color: #fff; margin-bottom: 8px;
}
.play-btn:hover { filter: brightness(1.1); text-decoration: none; }
.stat-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-box {
  background: var(--panel); border: 1px solid var(--border);
  border-top: 3px solid var(--blue); border-radius: 10px; padding: 10px 14px;
}
.sb-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.sb-value { font-size: 19px; font-weight: 800; margin-top: 2px; }
.game-desc {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; line-height: 1.7;
}

/* ---- Left-nav Info section ---- */
/* CODES gets the gold codes-brand gradient (matches the LIVE CODES board),
   distinct from the blue .active state used by the selected page. */
.nav-codes {
  background: linear-gradient(90deg, #f5a623, #ff6b3d) !important;
  color: #1a1204 !important; font-weight: 900 !important;
  letter-spacing: .04em;
  box-shadow: 0 3px 16px rgba(245,140,35,.4);
}
.nav-codes:hover { filter: brightness(1.1); }
.nav-codes.active { outline: 2px solid #fff3; }
.nav-empty { padding: 8px 14px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---- All Games directory (Rolimons-style) ---- */
.dir-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.dir-bar select, .dir-bar input {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600;
}
.dir-bar input { flex: 1; min-width: 180px; }
.dir-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.dir-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; color: var(--text); display: block;
  transition: transform .12s, border-color .12s;
}
.dir-card:hover { transform: translateY(-3px); border-color: var(--blue); text-decoration: none; }
.dir-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.dir-name {
  padding: 7px 10px 5px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--panel2);
}
.dir-stat { display: flex; justify-content: space-between; padding: 3px 10px; font-size: 12.5px; }
.dir-stat span { color: var(--muted); }
.dir-stat b { font-weight: 700; }
.dir-card .dir-stat:last-child { padding-bottom: 8px; }

/* ---- Live players badge in game banner ---- */
.gb-players {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  background: rgba(47,162,79,.16); color: #2fa24f; font-weight: 800; font-size: 13.5px;
}

.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #2fa24f; box-shadow: 0 0 6px #2fa24f;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.section-count {
  font-size: 13px; font-weight: 800; color: var(--blue);
  background: rgba(59,140,255,.14); padding: 2px 10px; border-radius: 999px;
}

.dir-pager { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; justify-content: center; }
.pg-btn {
  min-width: 36px; padding: 7px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--panel); color: var(--text); font-weight: 700;
}
.pg-btn:hover { border-color: var(--blue); }
.pg-btn.on { background: var(--grad); color: #fff; border-color: transparent; }
.pg-dots { padding: 7px 4px; color: var(--muted); }

.pg-jump {
  width: 58px; padding: 7px 6px; border-radius: 8px; text-align: center;
  border: 1px solid var(--border); background: var(--panel); color: var(--text); font-weight: 700;
}
.pg-arrow { font-size: 12px; }
.pg-btn[disabled] { opacity: .35; cursor: default; }

/* ---- Homepage top strip (top playing right now) ---- */
.top-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px;
  scrollbar-width: thin;
}
.strip-card {
  flex: 0 0 220px; display: flex; gap: 8px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; color: var(--text);
}
.strip-card:hover { border-color: var(--blue); text-decoration: none; }
.strip-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.strip-body { min-width: 0; flex: 1; }
.strip-name { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-stat { display: flex; justify-content: space-between; font-size: 11.5px; }
.strip-stat span { color: var(--muted); }

/* Hub sidebar scrolls independently */
.game-hub { position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow-y: auto; scrollbar-width: thin; }
/* Mobile: live codes (article) first, then hub, then wiki nav */
@media (max-width: 900px) {
  .wiki-layout .article { order: 1; }
  .wiki-layout .game-hub, .wiki-layout .infobox { order: 2; position: static; max-height: none; }
  .wiki-layout .wiki-nav { order: 3; }
}

/* Mobile banner: stack vertically so the CODES button stops cropping */
@media (max-width: 640px) {
  .game-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 20px 16px; }
  .game-banner .gb-img, .game-banner .gb-emoji { margin: 0 auto; }
  .game-banner h1 { font-size: 24px; }
  .game-banner .gb-deco { display: none; }
  .codes-cta { margin-left: 0 !important; justify-content: center; width: 100%; }
  .codes-cta small { display: inline; }
  .gb-players { align-self: center; }
}

/* ---- Category listing pages (full wikis) ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 8px; color: var(--text); text-align: center; font-weight: 600; font-size: 13px;
}
.cat-card:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.cat-card img { width: 64px; height: 64px; object-fit: contain; }
/* listed on the wiki's roster but with no article of its own — not clickable */
.cat-card small { font-weight: 500; font-size: 12px; color: var(--muted); }
.cat-card-flat { opacity: .72; cursor: default; }
.cat-card-flat:hover { border-color: var(--border); transform: none; }

/* Mobile directory: two cards per row */
@media (max-width: 640px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dir-name { font-size: 12px; }
  .dir-stat { font-size: 11px; }
}

/* ---- profile ---- */
.profile-wrap { max-width: 1100px; margin: 0 auto; }
.profile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.profile-top .muted { font-size: 14px; }
.profile-top-btns { display: flex; gap: 8px; }
.profile-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; position: relative; }
.profile-share { position: absolute; right: 18px; top: 18px; }
.profile-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.pavatar { width: 200px; height: 200px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 300; color: #fff; background: #ff7a00; border: 4px solid #4a8dff; box-shadow: 0 0 24px rgba(74,141,255,.45); position: relative; overflow: hidden; }
.pavatar img { width: 100%; height: 100%; object-fit: cover; }
.pavatar-wrap { position: relative; }
.pdot { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #6b7280; border: 3px solid var(--panel); box-shadow: 0 0 10px rgba(0,0,0,.3); }
.pdot.on { background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.pstatus { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 15px; }
.pstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.pstatus.on::before { background: #22c55e; }
.pname { font-size: 26px; font-weight: 800; margin: 0; }
.pjoined { color: var(--muted); font-size: 14px; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.pstat { border-radius: 14px; padding: 22px 16px; text-align: center; border: 1px solid; }
.pstat-ico { width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pstat-val { font-size: 34px; font-weight: 800; line-height: 1.1; }
.pstat-lab { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; font-weight: 700; }
.pstat.gold { border-color: rgba(234,179,8,.45); background: rgba(234,179,8,.07); } .pstat.gold .pstat-ico { background: rgba(234,179,8,.18); } .pstat.gold .pstat-lab { color: #eab308; }
.pstat.purple { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.08); } .pstat.purple .pstat-ico { background: rgba(139,92,246,.2); } .pstat.purple .pstat-lab { color: #a78bfa; }
.pstat.green { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.07); } .pstat.green .pstat-ico { background: rgba(34,197,94,.18); } .pstat.green .pstat-lab { color: #22c55e; }
.pstat.cyan { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.07); } .pstat.cyan .pstat-ico { background: rgba(34,211,238,.18); } .pstat.cyan .pstat-lab { color: #22d3ee; }
.pactions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.stars button { background: none; border: 0; font-size: 22px; cursor: pointer; color: #6b7280; padding: 0 2px; }
.stars button.on { color: #eab308; }
@media (max-width: 800px) { .profile-card { grid-template-columns: 1fr; } .pavatar { width: 150px; height: 150px; font-size: 70px; } }

/* ---- trade composer (Gamersberg-style) ---- */
.composer { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 14px 0; }
.composer-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 14px; }
.composer-tabs button { border: 0; background: rgba(255,255,255,.06); color: var(--text); padding: 8px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.composer-tabs button.on { background: var(--blue); color: #fff; }
.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .composer-grid { grid-template-columns: 1fr; } }
.cside { border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.cside-title { text-align: center; font-weight: 700; margin: -26px auto 10px; width: fit-content; background: var(--panel); padding: 4px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
.cslots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cslot { aspect-ratio: 1.6; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; position: relative; font-size: 13px; font-weight: 600; text-align: center; padding: 6px; }
.cslot.empty::before { content: "+"; font-size: 30px; color: #22d3ee; border: 2px solid #22d3ee; border-radius: 50%; width: 36px; height: 36px; line-height: 32px; }
.cslot.next { border-color: #22d3ee; box-shadow: 0 0 12px rgba(34,211,238,.35); }
.cslot img { width: 42px; height: 42px; object-fit: contain; }
.cslot .cval { color: var(--muted); font-size: 12px; font-weight: 500; }
.cslot .cx { position: absolute; top: 4px; right: 6px; color: var(--muted); font-size: 14px; }
.cslot.special { background: rgba(59,140,255,.15); }
.ctotal { text-align: center; margin-top: 10px; font-size: 14px; color: var(--muted); }
.ctotal b { color: var(--text); font-size: 16px; }
.cfoot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.cdiff { font-weight: 700; }
.cdiff.w { color: #22c55e; } .cdiff.l { color: #ef4444; } .cdiff.f { color: #eab308; }
.cnote { width: 100%; max-width: 520px; margin: 8px auto 0; display: block; }
/* picker modal */
.pick-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pick { background: #12151c; color: #fff; border: 1px solid #2a2f3a; border-radius: 16px; width: 100%; max-width: 900px; max-height: 88vh; display: flex; flex-direction: column; padding: 18px; position: relative; }
.pick h2 { text-align: center; margin: 0 0 12px; }
.pick-close { position: absolute; right: 14px; top: 12px; background: #1f2430; border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.pick-search { width: 300px; max-width: 100%; margin: 0 auto 12px; display: block; padding: 10px 14px; border-radius: 10px; border: 1px solid #2a2f3a; background: #1a1e27; color: #fff; }
.pick-tabs { display: flex; justify-content: center; gap: 4px; background: #0d1016; border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto 14px; }
.pick-tabs button { border: 0; background: none; color: #cbd5e1; padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.pick-tabs button.on { background: #fff; color: #1a1a1a; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; overflow: auto; padding: 4px; }
.pick-item { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg,#232a38,#1a1f2b); border: 1px solid #2f3646; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-weight: 700; font-size: 13px; text-align: center; padding: 6px; }
.pick-item:hover { border-color: #22d3ee; }
.pick-item img { width: 48px; height: 48px; object-fit: contain; }
.pick-item small { color: #22c55e; font-weight: 500; }
.pick-item.special { background: linear-gradient(180deg,#2b3550,#1d2438); }
.games-soon .cat-card { opacity: .5; pointer-events: none; }

/* ---- chat: header, ad context, offer cards ---- */
.chat-head { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.chat-head img, .convo-initial { width: 44px; height: 44px; border-radius: 50%; }
.convo-initial { display: inline-flex; align-items: center; justify-content: center; background: #ff7a00; color: #fff; font-weight: 700; font-size: 20px; flex: none; }
.chat-head-btns { margin-left: auto; display: flex; gap: 8px; }
.pdot-inline { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b7280; margin-left: 4px; }
.pdot-inline.on { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.chat-ad { background: var(--panel); border: 1px dashed var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.ocard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; background: rgba(0,0,0,.12); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 280px; }
.ocard-side { display: flex; flex-wrap: wrap; gap: 6px; }
.ocard-side .tad-lab { width: 100%; }
.ocard-mid { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 20px; color: var(--muted); }
.ocard-mid .wfl { margin: 0; }
.ocard-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 8px; }
.ocard.accepted { border-color: #22c55e; } .ocard.declined { opacity: .6; }
.ostat { font-weight: 700; color: var(--muted); } .ostat.ok { color: #22c55e; } .ostat.no { color: #ef4444; }
.msg-offer { max-width: 95%; background: none; padding: 0; }
.msg-offer .muted { display: block; margin-top: 4px; }
@media (max-width: 640px) { .ocard { grid-template-columns: 1fr; } .ocard-mid { flex-direction: row; } }

/* trade board: full width, no wiki nav */
.trade-layout { max-width: 1100px; margin: 0 auto; }
.trade-layout .article { width: 100%; }

.wfl.nt { background: rgba(239,68,68,.18); color: #ef4444; }
.cdiff .nt { color: #ef4444; font-weight: 900; }
.cdiff.nt-wrap { font-weight: 500; color: var(--muted); max-width: 560px; text-align: center; }
.ctotal b { font-weight: 700; }
