/* f393 Wave 1 (site audit): Team Rocket loses its red (accent = gold, links = mint; red stays on Battle / challenge buttons and pack medals),
   no dark text on bright yellow (dark tile + gold glow + light label), Pixelify headings instead of Press Start, calm notice box, calm toast,
   one-line footer, header switcher at 320, friend request buttons wrap, the shared error card. Linked BEFORE vibe.css, and every theme rule
   here skips html[data-vibe], so a player's own vibe colours always win. Battle buttons (.xa-battle / .xa-challenge, ID-strength selectors in
   actions.css) are never touched. */
:root{--w3-gold:#ffd75e;--w3-gold2:#f5c518;--w3-mint:#6ee7b7;--w3-tile:#2a2208;--w3-tile2:#1a1505;--w3-lab:#fff3c4}

/* ── Team Rocket: gold accent, mint links ── */
html[data-theme=team-rocket]:not([data-vibe]){--accent:#ffd75e;--mid:#ffd75e;--dark:#ffd75e;--teal:#ffd75e;--gold-d:#a16207;--on-surf-acc:#ffd75e;
  --tr-red:#6ee7b7;--tr-redbg:#3a2f0b;--btn-hi:#3a3110;--btn-lo:#1f1a07;--btn-ink:#fff3c4;--btn-shine:#6b5a1a}
html[data-theme=team-rocket]:not([data-vibe]) header{border-bottom-color:#f5c518;box-shadow:inset 0 -2px 0 #6b5200,0 1px 0 #000}
html[data-theme=team-rocket]:not([data-vibe]) .card{box-shadow:0 0 0 1px rgba(255,215,94,.22),0 8px 24px rgba(0,0,0,.5)}
html[data-theme=team-rocket]:not([data-vibe]) #theme-bar .tb-select{border-color:#f5c518}
html[data-theme=team-rocket]:not([data-vibe]) a:not(.btn):not([class*=btn]):not(.xa),html[data-theme=team-rocket]:not([data-vibe]) .link,
html[data-theme=team-rocket]:not([data-vibe]) .src a,html[data-theme=team-rocket]:not([data-vibe]) footer a,html[data-theme=team-rocket]:not([data-vibe]) footer .ft-ab{color:var(--w3-mint)}
html[data-theme=team-rocket]:not([data-vibe]) button[data-pm]{text-decoration-color:var(--w3-mint)}
/* primary buttons: a dark tile with a gold edge + soft glow and a light label (no red slab, no text on yellow) */
html[data-theme=team-rocket]:not([data-vibe]) .btn:not(.alt):not(.xa){background:linear-gradient(180deg,#3a3110,#1f1a07);color:var(--w3-lab);border-color:var(--w3-gold2);
  box-shadow:inset 0 1px 0 #6b5a1a,0 0 0 1px rgba(245,197,24,.35),0 0 14px rgba(245,197,24,.28),0 3px 0 #000}
html[data-theme=team-rocket]:not([data-vibe]) .btn:not(.alt):not(.xa):active{box-shadow:inset 0 1px 0 #6b5a1a,0 0 10px rgba(245,197,24,.3)}
html[data-theme=team-rocket]:not([data-vibe]) .tabs button[aria-selected=true]{background:var(--w3-tile)!important;color:var(--w3-gold)!important;box-shadow:inset 0 0 0 2px var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .tag.live,html[data-theme=team-rocket]:not([data-vibe]) .ev-tile .tag.live{background:var(--w3-tile)!important;color:var(--w3-gold)!important;box-shadow:inset 0 0 0 1px var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .act.now{border-color:#6ee7b7;color:#d1fae5;background:#0b2a1f}
html[data-theme=team-rocket]:not([data-vibe]) .rel.good{border-color:var(--w3-mint);color:var(--w3-mint)}
html[data-theme=team-rocket]:not([data-vibe]) .free,html[data-theme=team-rocket]:not([data-vibe]) .t3 .tt-lab,html[data-theme=team-rocket]:not([data-vibe]) .tl-give .tt-lab,
html[data-theme=team-rocket]:not([data-vibe]) .ta-item .ta-lbl,html[data-theme=team-rocket]:not([data-vibe]) .tl-cols span:first-child,html[data-theme=team-rocket]:not([data-vibe]) .tt-sheet .ts-head .tt-lab{color:#fde68a}
html[data-theme=team-rocket]:not([data-vibe]) .ta-item.unread{border-color:var(--w3-gold2);box-shadow:0 0 0 2px rgba(245,197,24,.22)}
html[data-theme=team-rocket]:not([data-vibe]) .home-kicker{color:#fde68a;background:linear-gradient(90deg,#2a2208,#1a1a1a);border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .savebox{border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) header .navlist{border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) header .navlist button:hover,html[data-theme=team-rocket]:not([data-vibe]) header .navlist button:focus-visible{background:rgba(245,197,24,.18)}
html[data-theme=team-rocket]:not([data-vibe]) .tt-title{box-shadow:inset 0 0 0 1px var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .t3-sw{background:#3a2f0b}
html[data-theme=team-rocket]:not([data-vibe]) :is(.t3-panel,.dl-panel){border-top-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .dl-r.on{border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) :is(.dl-plus,.dl-pi){background:var(--w3-tile);color:var(--w3-gold);border-color:#6b5200}
html[data-theme=team-rocket]:not([data-vibe]) .tdone-box{border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .qa-toast{box-shadow:4px 4px 0 #6b5200,0 12px 30px rgba(0,0,0,.6)}
html[data-theme=team-rocket]:not([data-vibe]) .qa-steps li::before{background:var(--w3-tile);color:var(--w3-gold);border-color:var(--w3-gold2);box-shadow:2px 2px 0 #000}
html[data-theme=team-rocket]:not([data-vibe]) details.cl>summary .cl-chev{background:var(--w3-tile);border-color:var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .cl-sb.on{box-shadow:0 0 0 2px var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .pmenu .pm-av{box-shadow:inset 0 0 0 2px var(--w3-gold2)}
html[data-theme=team-rocket]:not([data-vibe]) .err{color:#fde68a}

/* ── Headings: Pixelify (with the fixed 2) instead of Press Start, in both looks ── */
html[data-theme=team-rocket]:not([data-vibe]) :is(h1,h2),html[data-theme=pikachu]:not([data-vibe]) :is(h1,h2){font-family:var(--px);font-weight:700;letter-spacing:.01em}
html[data-theme=team-rocket]:not([data-vibe]) h1,html[data-theme=pikachu]:not([data-vibe]) h1{font-size:26px;line-height:1.2}
html[data-theme=team-rocket]:not([data-vibe]) h2,html[data-theme=pikachu]:not([data-vibe]) h2{font-size:20px;line-height:1.25}

/* ── Pikachu: no dark text on bright yellow ── */
html[data-theme=pikachu]:not([data-vibe]) .btn:not(.alt):not(.xa){background:linear-gradient(180deg,#4a3517,#2b1d0a);color:var(--w3-lab);border-color:var(--w3-gold2);
  box-shadow:inset 0 1px 0 #7a5a26,0 0 0 1px rgba(245,197,24,.45),0 0 14px rgba(245,197,24,.45),0 3px 0 #1a1206}
html[data-theme=pikachu]:not([data-vibe]) .btn:not(.alt):not(.xa):active{box-shadow:inset 0 1px 0 #7a5a26,0 0 10px rgba(245,197,24,.4)}
html[data-theme=pikachu]:not([data-vibe]) .tabs button[aria-selected=true],html[data-theme=pikachu]:not([data-vibe]) .seg label:has(input:checked),
html[data-theme=pikachu]:not([data-vibe]) .rchip[aria-pressed=true]{background:#3d2a14;color:var(--w3-lab);box-shadow:0 0 0 2px var(--w3-gold2),0 0 10px rgba(245,197,24,.4)}
html[data-theme=pikachu]:not([data-vibe]) .tag.upcoming{background:#3d2a14;color:var(--w3-gold)}
/* the dark collection cards keep light headings in the light look too ('Get it now' was dark ink on a dark card) */
html[data-theme=pikachu]:not([data-vibe]) :is(.hc-h,.tdp-h){color:#f2f2f6}
/* the gold pills of the collection Home (count, rarity chip, language tab, 'ready' pill) and the alert badges, in every look */
html:not([data-vibe]) :is(.hc-hn,.hc-chip.on,.hc-pill.g){background:var(--w3-tile);color:var(--w3-gold);border-color:var(--w3-gold2);box-shadow:inset 0 0 0 1.5px var(--w3-gold2),0 0 10px rgba(245,197,24,.35)}
html:not([data-vibe]) .lt-tab.on{background:var(--w3-tile)!important;color:var(--w3-gold)!important;box-shadow:inset 0 0 0 2px var(--w3-gold2),0 0 10px rgba(245,197,24,.35)!important}
html:not([data-vibe]) .lt-tab.on :is(em,b,span){color:inherit}
html:not([data-vibe]) .navmenu summary .nbadge,html:not([data-vibe]) header .navbell .nbadge{background:var(--w3-tile)!important;color:var(--w3-gold)!important;box-shadow:0 0 0 2px var(--w3-gold2),0 0 8px rgba(245,197,24,.5)}

/* ── Calm notice box ('We'll never share your email...'): a soft mint note, no yellow stripe ── */
.email-safe{border-left:0!important;border-radius:10px!important;background:color-mix(in srgb,#6ee7b7 13%,transparent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,#6ee7b7 40%,transparent)}

/* ── The shared toast: no salmon / red border ── */
html:not([data-vibe]) #toast{border:1px solid rgba(255,255,255,.18);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.45)}
html[data-theme=team-rocket]:not([data-vibe]) #toast{border-color:#3a3a3e}

/* ── Footer: one calm line, legal text behind About ── */
footer{padding:22px 10px 28px;font-size:12.5px}
footer #langlink{white-space:nowrap}
footer .ft-line{margin:0;line-height:2}
footer .ft-ab{font:inherit;color:inherit;text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}
html[data-theme=pikachu]:not([data-vibe]) footer .ft-ab{color:#8a3c00}
footer .ft-about{margin-top:6px;font-size:12px;opacity:.9}
footer .ft-about p{margin:6px 0}

/* ── Header at narrow phones: the switcher is a clean avatar button, not 'M▾' ── */
@media (max-width:440px){header .hrider{padding-right:12px;padding-left:6px}}
@media (max-width:360px){html header .acct summary{max-width:none;padding:0 8px}
  html header .acct summary .acct-nm{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  header .acct summary :is(img,canvas).av{margin-right:2px}header .hrider{padding:6px 4px 8px 2px}}

/* ── Friends: Accept / Decline stay inside the card ── */
.frow{flex-wrap:wrap}.frow .frow-main{flex:1 1 170px;min-width:0}
.frow .frow-acts{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.frow .fid{overflow:hidden;text-overflow:ellipsis}

/* ── The shared error card ── */
.errcard{text-align:center;padding:28px 20px;max-width:440px;margin:24px auto}
.errcard .ec-ico{display:block;margin:0 auto 10px;color:var(--w3-gold);image-rendering:pixelated;filter:drop-shadow(0 0 10px rgba(245,197,24,.35))}
html[data-theme=pikachu]:not([data-vibe]) .errcard .ec-ico{color:#b45309}
.errcard .ec-h{margin:4px 0 8px}.errcard .ec-p{margin:0 0 18px;opacity:.85}
.errcard .ec-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* follow-ups from the in-page colour check */
html[data-theme=team-rocket]:not([data-vibe]) header .acct-menu>a{color:#1b1f3b}
html[data-theme=pikachu]:not([data-vibe]) #theme-bar .tb-look{background:#3d2a14;color:var(--w3-lab);border-color:var(--w3-gold2);box-shadow:0 0 8px rgba(245,197,24,.4)}
html[data-theme=pikachu]:not([data-vibe]) #theme-bar .tb-look *{color:inherit}
html[data-theme=pikachu]:not([data-vibe]) :is(.tag.live,.ev-tile .tag.live){background:#3d2a14!important;color:var(--w3-gold)!important;box-shadow:inset 0 0 0 1px var(--w3-gold2)}
html:not([data-vibe]) .avp-tabs4 button.on{background:var(--w3-tile);color:var(--w3-gold);box-shadow:inset 0 0 0 2px var(--w3-gold2)}
html[data-theme=pikachu]:not([data-vibe]) .sx-tab.on{color:#8a3c00!important}
html[data-theme=team-rocket]:not([data-vibe]) body:has(.home){background:radial-gradient(circle at 20% 25%,rgba(255,215,94,.16) 0 2px,transparent 3px),radial-gradient(circle at 75% 15%,rgba(255,255,255,.12) 0 1.5px,transparent 3px),
  repeating-linear-gradient(135deg,transparent 0 18px,rgba(255,215,94,.035) 18px 19px),linear-gradient(165deg,#14110a 0%,#0a0a0a 50%,#12100a 100%)}
html[data-theme=team-rocket]:not([data-vibe]) body:has(.home)::before{background:radial-gradient(ellipse 160px 100px at 50% 20%,rgba(255,215,94,.1),transparent)}
html[data-theme=team-rocket]:not([data-vibe]) body:has(.home) header{border-bottom-color:#f5c518}
.errcard .ec-acts .btn{margin:0}
