/* itboji.com Wii skin over site.css (site rewrite 2026-10-09; from redesign/plaza-final lobby.css + wii.css).
   Load order on a content page: site.css -> chrome.css -> skin.css -> the page's own CSS.
   site.css's Look A cards/buttons pick up the soft variables below (no black outlines); the rest restyles
   what site.css draws in ink. Shared pieces for home / me / chatmons: capsule buttons (.cb), the hero blob
   on the plaza (.hb + its stream-style nametag), content cards. */
:root {
  --ink: #2b3a4c; --soft: #627386; --chip: #eef5fb; --card: #fff;
  --line: #c9dcec;                /* site.css borders pick this up: soft blue-grey instead of black */
  --border: 0px; --radius: 22px;
  --ring: 0 0 0 1.5px #c3d8ea; --lift: 0 8px 20px rgba(24, 92, 150, .18);
  --shadow: var(--ring), var(--lift);
  --wii: #1ea4f2; --wii-l: #6fd0ff; --wii-d: #0a7fd2; --wii-ink: #1f67ad;
  --navy: #1d4f86;
  --yellow: #ffd400; --yellow-d: #e0a800; --red: #ff4438; --green: #3fc25a; --blue: #2f86d8;
  --ui: 'M PLUS Rounded 1c', Nunito, system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.7, .5, 1);
  --stage: linear-gradient(#d8ecfa 0 62%, #e9f3e2 62% 100%);
}
body { background: none; font: 800 16px/1.4 var(--ui); color: var(--ink); }
a { color: var(--wii-ink); }
canvas.px, img.px { image-rendering: pixelated; display: block; }
.wrap, .page, .home { position: relative; z-index: 1; }
.wrap { padding-top: 6px; padding-bottom: 40px; }
.btn, .pix { font-family: var(--ui); }
:focus-visible { outline: 3px solid var(--wii); outline-offset: 2px; }

/* ---------- page titles: rounded, navy, flat (no stroke, no drop) ---------- */
.wrap > header { margin: 4px 0 16px; }
.wrap header > h1, .page .title h1 { display: block; margin: 0; padding: 0; font: 800 clamp(30px, 8.4vw, 46px)/1.08 var(--ui); letter-spacing: 0;
  color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; text-transform: none; }
.tagline { margin-top: 10px; padding: 7px 14px 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-weight: 700; box-shadow: var(--ring), 0 4px 12px rgba(24, 92, 150, .12); }

/* ---------- content cards ---------- */
.card, .panelcard { border: 0; border-radius: 26px; background: var(--card); box-shadow: var(--ring), var(--lift); }
.panelcard { margin-top: 14px; padding: 16px; }
.card h2, .panelcard h2, h2.pix { font: 800 19px/1.2 var(--ui); letter-spacing: .2px; color: var(--wii-ink); }
.card h2.pix, .panelcard h2.pix { text-transform: none; }
h2 .n, .panelcard h2 .n { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 99px; background: var(--chip); color: var(--soft); font: 800 14px var(--ui); vertical-align: 2px; }
h3, h3.pix { font: 800 16px/1.25 var(--ui); color: var(--wii-ink); }
.card p, .panelcard p, .section p { font-weight: 600; }
.note { color: var(--soft); }
code, .kbd { background: #e4eff9; color: var(--navy); }
.chip, .chips span { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--ui); }
.fx { border: 0; border-radius: 18px; background: var(--chip); }
.fx .tag { background: #3b4f66; }
.fx.gold { background: #fff6cc; box-shadow: inset 0 0 0 2px #f0c64a; }
.steps li, .two > div, .cast figure { border: 0; border-radius: 18px; }
.steps li::before { border: 0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); font-family: var(--ui); font-weight: 800; }
table.pity th, table.pity td { border: 1.5px solid var(--line); }
table.pity th { background: var(--navy); }
.example { border-color: #b9cfe2; border-radius: 18px; }
.cta { border-radius: 26px; background: #fff6cc; }
.cta a { border: 0; border-radius: 99px; background: linear-gradient(var(--itb-gl-a) 0 40%, var(--itb-gl-b)); color: var(--wii-ink); box-shadow: inset 0 -3px 0 rgba(40, 100, 160, .12), 0 0 0 2px var(--itb-halo-s), 0 0 0 3.5px var(--itb-ring); }
.btn, .cmd button { border: 0; border-radius: 99px; background: linear-gradient(var(--itb-gl-a) 0 40%, var(--itb-gl-b)); color: var(--wii-ink); font: 800 14px/1.1 var(--ui);
  box-shadow: inset 0 -3px 0 rgba(40, 100, 160, .12), 0 0 0 1.5px var(--line), 0 3px 8px rgba(24, 92, 150, .14); cursor: pointer; }
.cmd { border-radius: 16px; }
.playbtn { border: 0; background: linear-gradient(#6fd0ff, #1798ec); color: #fff; box-shadow: 0 2px 6px rgba(20, 110, 200, .3); }
.playbtn.playing { background: linear-gradient(#ff8a72, #f0453a); }
.voicecount button { color: var(--wii-ink); }

/* gallery: its sort/view switches and count pill */
.seg { border: 0; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { height: 44px; border-left-color: var(--line); background: var(--card); font-family: var(--ui); }
.wrap .seg button.on, .wrap .proto .seg button.on { background: linear-gradient(#6fd0ff, #1798ec); color: #fff; }
.wrap > header .sub { border: 0; border-radius: 16px; box-shadow: var(--ring), 0 4px 12px rgba(24, 92, 150, .12); font-weight: 700; }

/* ---------- hats + voices (Fit Check, /me) ---------- */
.hat { border: 0; border-radius: 20px; background: var(--card); font: 800 12px/1.2 var(--ui); color: var(--ink); overflow-wrap: normal; word-break: normal;
  box-shadow: inset 0 -3px 0 rgba(40, 100, 160, .1), 0 0 0 1.5px var(--line), 0 4px 10px rgba(24, 92, 150, .12); transition: transform .38s var(--spring); }
.hat:hover { transform: none; box-shadow: inset 0 -3px 0 rgba(40, 100, 160, .1), 0 0 0 1.5px var(--line), 0 4px 10px rgba(24, 92, 150, .12); }
.hat:active { transform: translateY(2px) scale(.95); box-shadow: 0 0 0 1.5px var(--line); transition-duration: .06s; }
.hat canvas { border-radius: 14px; background: linear-gradient(#d8ecfa 0 58%, #e9f3e2 58%); }
.hat.on { background: #e3f4ff; color: var(--ink); box-shadow: inset 0 -3px 0 rgba(20, 110, 200, .15), 0 0 0 3px var(--wii), 0 4px 12px rgba(20, 110, 200, .28); }
.voicebar select, .voicebar input { border: 0; border-radius: 99px; background-color: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--ui); }
.voicebar select.set { background-color: #e3f4ff; box-shadow: inset 0 0 0 2px var(--wii); }
.voice { border: 0; border-radius: 18px; }
.voice.on { border: 0; background: #e3f4ff; color: var(--ink); box-shadow: 0 0 0 3px var(--wii); }
.voice .play { border: 0; background: linear-gradient(#6fd0ff, #1798ec); color: #fff; box-shadow: 0 2px 6px rgba(20, 110, 200, .35); }
.voice .play.ready { background: linear-gradient(#6fd0ff, #1798ec); color: #fff; }
.voice .play.playing { background: linear-gradient(#ff8a72, #f0453a); color: #fff; }
.stage { border: 0; border-radius: 18px; background: var(--stage); box-shadow: inset 0 0 0 1.5px var(--line); }
.swatches button, .swatches label { border: 0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.swatches button.on { outline: 3px solid var(--wii); }

/* ---------- capsule buttons: white or Wii blue, gloss on top, soft ring, springy press ---------- */
.cb { --c: var(--itb-gl-a); --c2: var(--itb-gl-b); --d: rgba(40, 100, 160, .12); --t: var(--wii-ink);
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px 13px; overflow: hidden;
  border: 0; border-radius: 24px; background: linear-gradient(var(--c) 0 40%, var(--c2)); color: var(--t);
  font: 800 19px/1.1 var(--ui); text-decoration: none; text-align: left; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 -4px 0 var(--d), 0 0 0 2px var(--itb-halo), 0 0 0 3.5px var(--itb-ring), var(--lift);
  transition: transform .38s var(--spring), box-shadow .38s var(--spring); }
.cb::before { content: ""; position: absolute; left: 14px; right: 14px; top: 3px; height: 44%; border-radius: 99px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .15)); }
.cb > * { position: relative; }
.cb.down { transform: translateY(2px) scale(.96); transition-duration: .06s;
  box-shadow: inset 0 -2px 0 var(--d), 0 0 0 2px var(--itb-halo), 0 0 0 3.5px var(--itb-ring), 0 3px 8px rgba(24, 92, 150, .2); }
.cb.pop { animation: pop .42s var(--spring); }
@keyframes pop { 0% { transform: translateY(2px) scale(.96); } 45% { transform: translateY(-3px) scale(1.035); } 100% { transform: none; } }
.cb .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.cb .ic svg { width: 32px; height: 32px; }
.cb small { display: block; margin-top: 3px; font: 700 13px/1.2 var(--ui); opacity: .82; }
.cb .go { margin-left: auto; font-size: 26px; line-height: 1; color: #9bbad6; }
.cb.primary, .cb.blue { --c: #5ccbff; --c2: #0f8fe6; --d: rgba(0, 60, 130, .25); --t: #fff; text-shadow: 0 1px 1px rgba(0, 60, 120, .35); }
.cb.green { --c: #7ddf6e; --c2: #2fae45; --d: rgba(0, 80, 30, .25); --t: #fff; text-shadow: 0 1px 1px rgba(0, 70, 20, .35); }
.cb.red { --c: #ff8a72; --c2: #f0453a; --d: rgba(120, 0, 0, .22); --t: #fff; text-shadow: 0 1px 1px rgba(110, 10, 0, .35); }
.cb.primary small, .cb.blue small, .cb.green small, .cb.red small { opacity: .92; }
.cb.sm { min-height: 44px; padding: 4px 16px 7px; border-radius: 99px; font-size: 15px;
  box-shadow: inset 0 -3px 0 var(--d), 0 0 0 2px var(--itb-halo), 0 0 0 3.5px var(--itb-ring), 0 4px 10px rgba(24, 92, 150, .2); }
.cb.sm::before { left: 10px; right: 10px; }
/* capsule = a pill with centred label (home, logged-out /me) */
.cb.cap { justify-content: center; gap: 10px; min-height: 56px; padding: 6px 22px 9px; border-radius: 99px; font-size: 20px; }
.cb.cap .ic { width: 34px; height: 34px; }
.cb.cap .ic svg { width: 28px; height: 28px; }
.cb.cap .ic:has(canvas) { width: 46px; margin-right: 2px; }
.cb.cap .ic canvas { width: 46px; height: 46px; margin-top: -8px; }
.cb.cap > span:not(.ic) { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; column-gap: 7px; }
.cb.cap small { display: inline; margin: 0; font-size: 14px; }
.cb.cap.primary { min-height: 62px; font-size: 23px; }
.cb.cap.primary .ic svg { width: 32px; height: 32px; }
/* tile = icon over label */
.cb.tile { flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 10px 8px 14px; text-align: center; border-radius: 26px; font-size: 18px; }
.cb.tile .ic { width: 46px; height: 46px; }
.cb.tile .ic svg { width: 40px; height: 40px; }

/* ---------- the hero blob on the plaza (home, /me, ChatterMons) ---------- */
.hb { position: relative; width: 208px; height: 208px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hb canvas.blob { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; transform-origin: 50% 100%; }
.hb::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: -5px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 70, 80, .3), rgba(60, 70, 80, 0)); }
.hb.boing canvas.blob { animation: boing .55s var(--spring); }
@keyframes boing { 0% { transform: scale(1.15, .8); } 40% { transform: scale(.9, 1.14) translateY(-18px); } 75% { transform: scale(1.04, .97); } 100% { transform: none; } }
/* the nametag, as the stream plaza draws it: bold white letters with a dark outline, no pill */
.hb .tag { position: absolute; z-index: 2; left: 50%; top: var(--tagtop, 6px); max-width: 92vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: translateX(-50%); padding: 2px 6px 4px; color: #fff; font: 900 20px/1.15 Nunito, var(--ui);
  text-shadow: 2px 0 0 #22344b, -2px 0 0 #22344b, 0 2px 0 #22344b, 0 -2px 0 #22344b, 1.5px 1.5px 0 #22344b, -1.5px -1.5px 0 #22344b, 1.5px -1.5px 0 #22344b, -1.5px 1.5px 0 #22344b, 0 3px 0 #22344b, 0 4px 6px rgba(20, 40, 70, .25); }
.hb .tag:empty { display: none; }
.fol { position: absolute; bottom: 4px; left: calc(50% - 170px); width: 96px; height: 96px; display: grid; place-items: end center; pointer-events: none; }
.fol img { max-width: 96px; max-height: 96px; image-rendering: pixelated; }
.fol::after { content: ""; position: absolute; z-index: -1; left: 22%; right: 22%; bottom: -4px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 70, 80, .26), rgba(60, 70, 80, 0)); }
.fol:empty::after { display: none; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .wrap { padding-top: 18px; }
  .wrap > header { margin-bottom: 22px; }
  @media (hover: hover) { .cb:hover { box-shadow: inset 0 -4px 0 var(--d), 0 0 0 2px var(--itb-halo-s), 0 0 0 5px var(--wii-l), var(--lift); } }
}
@media (prefers-reduced-motion: reduce) { .cb, .hat { transition: none !important; } .cb.pop, .hb.boing canvas.blob { animation: none !important; } }

/* the gallery's own 3D card overlay sits above the tab bar */
#scrim.open { z-index: 50; }

/* ======================= dark mode (10-10) =======================
   chrome.js sets html[data-theme] from the system (prefers-color-scheme) or the moon/sun toggle (localStorage itb.theme);
   each page head sets it before first paint. Light = the tokens above, untouched. Dark = the same Wii plaza at night:
   deep navy surfaces, the same Wii blue, type colours and ball colours unchanged. The rules after the tokens cover the
   light surfaces hard-coded in site.css / home.css / me.css / raids.css / the gallery + ChatterMons pages (prefixed, so
   they win over the page CSS that loads after this file). New page CSS: use var(--card) / var(--chip) / var(--sel). */
:root { --sel: #e3f4ff; --glass: rgba(255, 255, 255, .94); --cream: #fff6cc; --cream-ink: inherit; }
:root[data-theme="dark"] {
  --ink: #e4edf6; --soft: #9cb1c6; --chip: #1c3047; --card: #15263a; --line: #2c4866;
  --ring: 0 0 0 1.5px #2c4866; --lift: 0 8px 22px rgba(0, 0, 0, .38);
  --wii-ink: #8fd0ff; --navy: #d4e9ff;
  --stage: linear-gradient(#1d3a57 0 62%, #1f3a2c 62% 100%);
  --sel: #113a5e; --glass: rgba(21, 38, 58, .94); --cream: #36301a; --cream-ink: #ffe9a8;
}
[data-theme="dark"] body { color: var(--ink); }
[data-theme="dark"] .tagline, [data-theme="dark"] .wrap > header .sub { background: var(--glass); }
[data-theme="dark"] code, [data-theme="dark"] .kbd { background: #1f3a57; color: #cfe6ff; }
[data-theme="dark"] .fx .tag, [data-theme="dark"] table.pity th { background: #2e4c69; }
[data-theme="dark"] .fx.gold, [data-theme="dark"] .cta, [data-theme="dark"] .example, [data-theme="dark"] table.pity tr:last-child td,
[data-theme="dark"] .steps li.free, [data-theme="dark"] .notice, [data-theme="dark"] .tipbox { background: var(--cream); color: var(--cream-ink); }
[data-theme="dark"] .fx.gold { box-shadow: inset 0 0 0 2px #8a6d1c; }
[data-theme="dark"] .example .t { background: #5a2a26; } [data-theme="dark"] .example .v { background: #173d63; }
[data-theme="dark"] .steps li::before { color: #1b2430; }
[data-theme="dark"] .hat.on, [data-theme="dark"] .voice.on, [data-theme="dark"] .voicebar select.set, [data-theme="dark"] .vfil select.set { background-color: var(--sel); color: var(--ink); }
[data-theme="dark"] .hat canvas { background: var(--stage); }
[data-theme="dark"] .voicebar select, [data-theme="dark"] .vfil select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h14v2h-2v2h-2v2H8v2H6V6H4V4H2V2H0z' fill='%23e4edf6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .voice .play:not(.ready):not(.playing) { background: var(--card); }
/* capsules: the white ones go navy and their top gloss dims; blue / green / red keep their colour */
[data-theme="dark"] .cb:not(.primary):not(.blue):not(.green):not(.red)::before { background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
[data-theme="dark"] .cb:not(.primary):not(.blue):not(.green):not(.red) { --d: rgba(0, 0, 0, .3); }
[data-theme="dark"] .cb .go, [data-theme="dark"] .rmon .chev, [data-theme="dark"] .rl-go { color: #5f7e9c; }

/* home (home.css): the channel tiles and their little screens */
[data-theme="dark"] .ch { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 0 0 2px var(--itb-halo), 0 0 0 3.5px var(--itb-ring), var(--lift); }
[data-theme="dark"] .ch .scr { background: #1a3047; box-shadow: inset 0 0 0 1.5px #2c4866; }
[data-theme="dark"] .ch .scr::after { background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); }
[data-theme="dark"] .ch .sc-guide { background: var(--card); }
[data-theme="dark"] .ch .sc-discord { background: linear-gradient(#173a55, #12304a); color: #7cc8f2; }
[data-theme="dark"] .ch .sc-yt, [data-theme="dark"] .ch .sc-tt { background: linear-gradient(#1f3349, #172a3e); }
[data-theme="dark"] .ch .sc-tt { color: #eef3f8; }

/* /me (me.css; T3 owns me.js, this is colour only) */
[data-theme="dark"] .mebar, [data-theme="dark"] .rmon, [data-theme="dark"] .move, [data-theme="dark"] .boss, [data-theme="dark"] .rpick, [data-theme="dark"] .sty,
[data-theme="dark"] .mv, [data-theme="dark"] .stl, [data-theme="dark"] .rsearch, [data-theme="dark"] .rmore, [data-theme="dark"] .msort, [data-theme="dark"] .bossinfo .ab,
[data-theme="dark"] .m3d-x, [data-theme="dark"] .find:focus, [data-theme="dark"] .bcard .ab { background: var(--card); color: var(--ink); }
[data-theme="dark"] .metabs, [data-theme="dark"] .savebar, [data-theme="dark"] .privacy { background: var(--glass); }
[data-theme="dark"] .rmon .spr, [data-theme="dark"] .rp .spr, [data-theme="dark"] .boss .bspr, [data-theme="dark"] .savebar canvas { background: var(--stage); }
[data-theme="dark"] .rmon.on, [data-theme="dark"] .move.on, [data-theme="dark"] .boss.on { background: var(--sel); }
[data-theme="dark"] .seg3 button { color: var(--soft); }
[data-theme="dark"] .seg3 button.on, [data-theme="dark"] .msort button.on { color: #fff; }
[data-theme="dark"] .sty.on { background: linear-gradient(#6fd0ff, #1798ec); color: #fff; }
[data-theme="dark"] .msort button.on { background: var(--wii); }
[data-theme="dark"] .pickauto:not(.on), [data-theme="dark"] .follow:not(.on), [data-theme="dark"] .use:not(.on), [data-theme="dark"] .savebar .btn.ghost, [data-theme="dark"] .rl-back {
  background: linear-gradient(var(--itb-gl-a) 0 40%, var(--itb-gl-b)); }
[data-theme="dark"] .bossinfo .live, [data-theme="dark"] .rl-out.win, [data-theme="dark"] .e-super { background: #163a26; color: #8fe0a2; box-shadow: inset 0 0 0 1.5px #2f6a43; }
[data-theme="dark"] .e-normal, [data-theme="dark"] .e-status { background: #1f3045; color: #b4c4d4; box-shadow: inset 0 0 0 1.5px #34506c; }
[data-theme="dark"] .e-weak { background: #3d2a12; color: #ffc27a; box-shadow: inset 0 0 0 1.5px #7a5320; }
[data-theme="dark"] .e-none, [data-theme="dark"] .rl-out.loss { background: #421d1b; color: #ff9d92; box-shadow: inset 0 0 0 1.5px #7d3530; }
[data-theme="dark"] .hat small, [data-theme="dark"] .s-rejected, [data-theme="dark"] .savebar .what .st.s-rejected, [data-theme="dark"] .rl-hint { color: #ff8a80; }

/* raid log + raid cards (raids.css: /raids, /me, /raid) */
[data-theme="dark"] .rl-find { background: var(--glass); }
[data-theme="dark"] .rl-input:focus, [data-theme="dark"] .rl-clear, [data-theme="dark"] .rl-tally, [data-theme="dark"] .rl-card,
[data-theme="dark"] .rl-pull, [data-theme="dark"] .rl-row .mv, [data-theme="dark"] .rl-row .bar { background: var(--card); }
[data-theme="dark"] .rl-you .sp, [data-theme="dark"] .rl-row .sp, [data-theme="dark"] .panelcard .rl-you { background: var(--chip); }
[data-theme="dark"] .rl-skel .rl-bspr, [data-theme="dark"] .rl-skel i { background: #22384f; }
[data-theme="dark"] .rl-mvp { background: #3d3214; color: #ffd76a; }
[data-theme="dark"] .rl-row.mvp { background: #2c2714; box-shadow: inset 0 0 0 2px #8a6d1c; }
[data-theme="dark"] .rl-row.mvp .rk { color: #f0c64a; }
[data-theme="dark"] .rl-row .why, [data-theme="dark"] .rl-mvpline .why { color: #9fdc8a; }

/* gallery + ChatterMons (their own inline styles) */
[data-theme="dark"] .detail3d .who, [data-theme="dark"] .detail3d .close { background: var(--card); color: var(--ink); }
[data-theme="dark"] .pockets { background: repeating-linear-gradient(90deg, #20354c 0 2px, #172a3e 2px 26px); }
[data-theme="dark"] .pocket { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .finep { background: var(--glass); }
[data-theme="dark"] .plazabox { background: #13243a; }
