/* PogIsland's website (design preview, 2026-12-03): the channel's own look. Night navy like the
   panels, Twitch purple for what you click, gold for headings, Lilita One and Nunito. */
:root {
  --bg: #0b1020;
  --panel: #141b2e;
  --panel2: #1b2440;
  --line: #27324f;
  --text: #e8ecf4;
  --body: #c9d2e3;
  --muted: #8f9bb3;
  --purple: #9146ff;
  --purple2: #b794f4;
  --gold: #ffd54a;
  --green: #4cd38a;
  --red: #ff6b6b;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--gold); margin: 0 0 0.4em; line-height: 1.1; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 0.8em; }
code, .cmd {
  font: 800 0.92em 'Nunito', sans-serif;
  background: var(--purple);
  color: #fff;
  padding: 0.12em 0.5em;
  border-radius: 7px;
  white-space: nowrap;
}
.cmd.plain { background: #2c3550; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 400 26px 'Lilita One', sans-serif; text-decoration: none !important; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--body); font-weight: 800; font-size: 15px; padding: 7px 9px; border-radius: 9px; white-space: nowrap; text-decoration: none; }
.nav a:hover { background: var(--panel2); color: #fff; }
.nav a.on { background: var(--panel2); color: var(--gold); }
.search { position: relative; }
.search input {
  width: 170px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 15px; font-weight: 700;
}
.search input:focus { outline: 2px solid var(--purple); border-color: transparent; }
.suggest {
  position: absolute; right: 0; top: calc(100% + 6px); width: 260px; z-index: 30;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--text); font-weight: 800; }
.suggest a:hover, .suggest a.sel { background: var(--panel2); text-decoration: none; }
.suggest small { color: var(--muted); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px;
  font-weight: 900; color: #fff; background: var(--panel2); border: 1px solid var(--line); text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn.primary, .btn.live { background: var(--purple); border-color: var(--purple); }
.btn.live { padding: 9px 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25); }
.sample {
  background: #3a2c08; color: #ffe08a; text-align: center; font-weight: 800; font-size: 14px; padding: 6px 16px;
  border-bottom: 1px solid #5c4610;
}

/* ---------------------------------------------------------------- page */
main { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 60px; min-height: 70vh; }
.page-head { margin: 8px 0 26px; }
.page-head p { color: var(--body); max-width: 760px; font-size: 18px; }
section { margin: 0 0 44px; }
.lead { color: var(--body); font-size: 18px; max-width: 780px; }
.muted { color: var(--muted); }
.crumbs { font-weight: 800; margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; color: var(--text); text-decoration: none !important;
}
a.card:hover { border-color: var(--purple); transform: translateY(-2px); transition: transform 0.12s; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font: 400 22px 'Lilita One', sans-serif; color: #fff; line-height: 1.15; }
.card .what { color: var(--body); font-size: 15px; }
.card .meta { color: var(--muted); font-size: 14px; font-weight: 700; margin-top: auto; }
.card canvas.art, .card img.pic { width: 100%; aspect-ratio: 440 / 300; object-fit: cover; background: #3f7d4b; }
.tag { display: inline-block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: var(--body); }
.tag.gold { background: #4a3b0c; color: var(--gold); }

/* ---------------------------------------------------------------- home */
.hero { position: relative; border-radius: 20px; overflow: hidden; margin: 0 0 44px; border: 1px solid var(--line); }
.hero img { width: 100%; aspect-ratio: 1200 / 480; object-fit: cover; }
.hero .over {
  position: absolute; inset: auto 0 0 0; padding: 110px 34px 30px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0) 0%, rgba(11, 16, 32, 0.82) 45%, rgba(11, 16, 32, 0.96) 100%);
}
.hero h1 { text-shadow: 0 4px 0 #7a4a00, 0 8px 18px rgba(0, 0, 0, 0.5); margin-bottom: 6px; }
.hero .say { font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; color: #fff; max-width: 720px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px 62px; position: relative; color: var(--body); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #3a2200; font: 400 20px/34px 'Lilita One', sans-serif; text-align: center;
}
.step strong { color: #fff; display: block; font-size: 17px; margin-bottom: 2px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); text-decoration: none !important; }
.tile:hover { border-color: var(--purple); }
.tile .ic { font-size: 30px; }
.tile .name { font: 400 22px 'Lilita One', sans-serif; color: var(--gold); margin: 6px 0 2px; }
.tile .what { color: var(--body); font-size: 15px; }
.bigsearch { display: flex; gap: 10px; flex-wrap: wrap; }
.bigsearch input { flex: 1; min-width: 200px; padding: 14px 16px; font-size: 18px; font-weight: 800; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }

/* ---------------------------------------------------------------- lists and tables */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 14px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.row .k { min-width: 190px; }
.row .v { color: var(--body); }
table.board { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.board th, table.board td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.board th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--panel2); }
table.board td.n { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
table.board tr:last-child td { border-bottom: 0; }
table.board .rank { width: 54px; font-weight: 900; color: var(--muted); }
table.board tr.top1 .rank { color: var(--gold); }
table.board tr.top2 .rank { color: #d6dcea; }
table.board tr.top3 .rank { color: #e0975a; }
table.board .house { color: var(--muted); font-style: italic; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--body); font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.chip.on, .chip:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------------------------------------------------------------- achievements */
.ach { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ach canvas.art { width: 100%; height: auto; aspect-ratio: 440 / 300; }
.ach .body { padding: 14px 18px; }
.ach .name { font: 400 22px 'Lilita One', sans-serif; color: #fff; }
.ach .stat { color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tier { background: var(--panel2); border-radius: 10px; padding: 7px 9px; font-size: 13px; color: var(--body); border-top: 3px solid var(--c); }
.tier b { color: var(--c); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.tier .need { color: #fff; font-weight: 900; font-size: 15px; }
.hidden-ach { display: flex; gap: 12px; align-items: center; }
.hidden-ach.found { flex-direction: column; align-items: stretch; gap: 8px; }
.hidden-ach .hpic { border-radius: 10px; overflow: hidden; }
.hidden-ach .hpic canvas.art, .hidden-ach .hpic .artslot { width: 100%; aspect-ratio: 440 / 300; display: block; }
.lock { width: 46px; height: 46px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; font-size: 22px; flex: none; }
.swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.swatch { border-radius: 12px; padding: 34px 10px 8px; color: var(--ink, #fff); font-weight: 900; font-size: 14px; text-shadow: var(--shade, 0 1px 2px rgba(0, 0, 0, 0.7)); border: 1px solid rgba(255, 255, 255, 0.12); }
.swatch small { display: block; font-weight: 700; opacity: 0.85; font-size: 12px; }

/* ---------------------------------------------------------------- races */
.race { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.race canvas.art { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 440 / 300; }
.race .body { padding: 22px 24px; }
.race h3 { font-size: 30px; margin-bottom: 2px; }
.race .role { color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.power { background: var(--panel2); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; color: var(--body); }
.power b { color: #fff; }
.power .k { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple2); }

/* ---------------------------------------------------------------- player */
.player { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.figure { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: sticky; top: 84px; }
.figure canvas.art { width: 100%; aspect-ratio: 440 / 300; }
.figure .body { padding: 16px 18px 18px; }
.pname { font: 400 32px 'Lilita One', sans-serif; color: #fff; line-height: 1.05; word-break: break-word; }
.ptitle { font-size: 18px; }
.lv { display: inline-block; background: #0f1526; color: #dfe6f2; font-weight: 900; border-radius: 8px; padding: 1px 8px; margin-right: 6px; }
.lv.gold { background: linear-gradient(#fff2a8, #ffc31f 55%, #e08a00); color: #3a2200; }
.xpbar { height: 12px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple2)); border-radius: 999px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fact { background: var(--panel2); border-radius: 10px; padding: 8px 10px; }
.fact span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.fact b { font-size: 17px; }
.stats { display: grid; gap: 8px; }
.statrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-weight: 800; }
.statrow .bar { height: 10px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.statrow .bar i { display: block; height: 100%; background: var(--c); }
.prog { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.pa { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 10px 12px 10px 10px; color: inherit; text-decoration: none !important; }
a.pa:hover { border-color: var(--purple); border-left-color: var(--c); }
.pa-pic { border-radius: 9px; overflow: hidden; position: relative; }
.pa-pic canvas.art, .pa-pic .artslot { width: 100%; aspect-ratio: 440 / 300; display: block; }
.pa-pic.next::after { content: 'NEXT'; position: absolute; left: 5px; top: 5px; font: 900 10px/1 'Nunito', sans-serif; letter-spacing: 0.06em; background: rgba(11, 16, 32, 0.8); color: #fff; padding: 3px 5px; border-radius: 5px; }
.tpic { aspect-ratio: 440 / 300; display: grid; place-items: center; text-align: center; padding: 6px; background: radial-gradient(circle at 50% 40%, #2c3a66, #141b2e 75%); font-size: 15px; line-height: 1.15; }
.pa .top2 { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; color: #fff; }
.pa .medal { font-size: 12px; font-weight: 900; color: var(--c); text-transform: uppercase; white-space: nowrap; }
.pa-what { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; }
.pips { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.pips i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--p); opacity: 0.55; }
.pips i.on { background: var(--p); opacity: 1; }
.pips span { margin-left: auto; font-size: 13px; font-weight: 900; color: var(--body); }
.pa .bar { height: 7px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin: 5px 0 5px; }
.pa .bar i { display: block; height: 100%; background: var(--c); }
.pa-next { font-size: 14px; color: var(--body); line-height: 1.35; }
.ttl { color: var(--c); font-style: italic; font-weight: 900; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.gem { display: inline-block; width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); margin: 0 6px 1px 2px; border: 1px solid rgba(255, 255, 255, 0.5); }
.coin { display: inline-block; vertical-align: -3px; }
.emo-big { font: 400 18px/1 system-ui, sans-serif; vertical-align: -2px; margin-right: 2px; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.grid.mini .card .body { padding: 7px 10px 9px; gap: 1px; }
.grid.mini .card .name { font-size: 16px; }
.grid.mini .card .meta { font-size: 12px; }
.owned { display: flex; flex-wrap: wrap; gap: 6px; }
.owned span { background: var(--panel2); border-radius: 8px; padding: 4px 9px; font-weight: 800; font-size: 14px; color: var(--body); }

/* ---------------------------------------------------------------- bits the pages add */
.emo { margin-right: 0.3em; font-family: system-ui, sans-serif; }
.artslot { display: block; aspect-ratio: 440 / 300; background: #3f7d4b; }
.noimg { display: grid; place-items: center; font-size: 72px; aspect-ratio: 440 / 300; background: radial-gradient(circle at 50% 40%, #2c3a66, #141b2e 70%); }
.card .noimg { width: 100%; }
.split > .card { align-self: start; }
details.more { margin: -6px 0 4px; }
details.more summary { cursor: pointer; font-weight: 800; }
.owned span a { text-decoration: none; }

/* ---------------------------------------------------------------- footer and phones */
.foot { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 26px 16px 40px; font-size: 14px; }
.foot p { margin: 0 0 6px; }

@media (max-width: 900px) {
  .top .bar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .search { margin-left: auto; }
  .search input { width: 150px; }
  .player { grid-template-columns: 1fr; }
  .figure { position: static; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding-top: 18px; }
  .brand span { font-size: 22px; }
  .top { position: relative; }          /* three rows on a phone: not worth pinning */
  .btn.live { order: 1; margin-left: auto; }
  .search { order: 2; flex: 1 1 100%; margin-left: 0; }
  .search input { width: 100%; }
  .suggest { left: 0; right: 0; width: auto; }
  .hero .over { position: static; padding: 18px; background: var(--panel); }
  .ach { grid-template-columns: 1fr; align-items: stretch; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .race { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 2px; }
  .row .k { min-width: 0; }
  table.board th, table.board td { padding: 8px 9px; }
  .statrow { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .hide-s { display: none; }
  .prog { grid-template-columns: 1fr; }
  .pa { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .grid.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
