/* pokemonl.org: colours from pokem.onl itself: the dark pine of its route trees for the bar, the yellow of its logo, a light grassy page. */
:root {
  --ink: #1d2433;
  --soft: #4d5566;
  --navy: #203a2b;
  --bg: #f4f6f1;
  --card: #fff;
  --line: #dbe1d4;
  --yellow: #ffcb2f;
  --yellow-d: #d9a300;
  --link: #1f5fa8;
  --win: #2f7d46;
  --close: #b06a0a;
  --lose: #b3372b;
  --r: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 "M PLUS Rounded 1c", system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: .4em 0 .3em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
img { max-width: 100%; height: auto; }
.spr { image-rendering: pixelated; flex: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.lede { font-size: 1.08rem; color: var(--soft); max-width: 70ch; }

/* header / footer */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.brand img { image-rendering: pixelated; }
.brand i { color: var(--yellow); font-style: normal; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #d7e6da; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: .95rem; }
.top nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.top nav a[aria-current] { color: var(--navy); background: var(--yellow); }
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: #eef1ea; color: var(--soft); font-size: .9rem; }
.foot .wrap { padding-top: 24px; padding-bottom: 32px; max-width: 820px; }
.crumbs { font-size: .9rem; color: var(--soft); margin-top: 20px; }

/* buttons */
.btn { display: inline-block; background: var(--yellow); color: var(--ink); border: 0; border-bottom: 3px solid var(--yellow-d); border-radius: var(--r); padding: 11px 20px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .08s, border-width .08s; }
.btn:hover { background: #ffd54f; color: var(--ink); }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn:disabled { opacity: .7; cursor: wait; }

/* hero + planner */
.hero { padding: 20px 0 32px; border-bottom: 1px solid var(--line); background: #eaf0e3; }
.hero-t { max-width: 760px; }
.hero-t p { color: var(--soft); margin: 0 0 18px; }
.planner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.planner form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 12px; }
.fld { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.fld select { display: block; width: 100%; margin-top: 4px; }
select, input { font: inherit; font-size: .95rem; padding: 7px 8px; border: 1px solid #7d8876; border-radius: 6px; background: #fff; color: var(--ink); min-width: 0; }
select:focus-visible, input:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.top a:focus-visible { outline-color: var(--yellow); }
h1, h2 { text-wrap: balance; }
.cta .btn { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.hint { font-size: .85rem; color: var(--soft); margin: -4px 0 10px; }
fieldset { border: 0; padding: 0; margin: 8px 0 14px; }
legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.party { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.party li { min-width: 0; display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: #fbfcf9; }
.pm { flex: 1; min-width: 0; }
.pm-top { display: flex; gap: 6px; align-items: center; }
.pm-top input[data-sp] { flex: 1; min-width: 0; font-weight: 700; }
.pm-top label { font-size: .85rem; color: var(--soft); white-space: nowrap; }
.pm-top input[data-lv] { width: 58px; }
.pm-moves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; margin-top: 6px; }
.pm-moves select { font-size: .8rem; padding: 4px; width: 100%; }
.x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--soft); cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.x:hover { background: #eee; color: var(--lose); }
.add { margin-top: 8px; background: none; border: 1px dashed #b7bfae; border-radius: var(--r); padding: 7px 12px; font: inherit; font-weight: 700; color: var(--soft); cursor: pointer; width: 100%; }
.add:hover { border-color: var(--navy); color: var(--navy); }
.planner .btn { width: 100%; }
.quota { font-size: .85rem; color: var(--soft); margin: 8px 0 0; text-align: center; }
.out { min-width: 0; }
.ex-note, .start p { margin: 0 0 10px; color: var(--soft); font-size: .92rem; }
.err { color: var(--lose); font-weight: 700; }

/* plan result */
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan-h { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plan-h h3 { margin: 0 0 4px; }
.plan-h p { margin: 0; color: var(--soft); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.v-win { border-left-color: var(--win); }
.row.v-close { border-left-color: var(--close); }
.row.v-lose { border-left-color: var(--lose); }
.foe { display: flex; gap: 8px; align-items: flex-start; grid-row: span 2; }
.foe .lv { color: var(--soft); font-size: .9rem; }
.foe small { display: block; color: var(--soft); font-size: .8rem; margin-top: 4px; }
.verdict { font-weight: 800; font-size: .95rem; }
.v-win .verdict { color: var(--win); }
.v-close .verdict { color: var(--close); }
.v-lose .verdict { color: var(--lose); }
.pick .who { display: flex; align-items: center; gap: 8px; }
.pick .who .lv { display: block; font-size: .85rem; color: var(--soft); }
.nums { display: flex; gap: 18px; margin: 6px 0; flex-wrap: wrap; }
.nums div { min-width: 80px; }
.nums dt { font-size: .78rem; color: var(--soft); }
.nums dd { margin: 0; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rot, .dodge, .alt { margin: 4px 0; font-size: .92rem; }
.alt { color: var(--soft); }
.hits { margin: 4px 0; padding-left: 0; list-style: none; font-size: .9rem; }
.hits li { margin: 2px 0; }
.hits em { font-style: normal; font-weight: 800; color: var(--win); }
.phases { padding: 12px 16px; border-top: 1px solid var(--line); background: #fbfcf9; }
.phases h4 { margin: 0 0 6px; }
.phases ul { margin: 0; padding-left: 20px; }

/* paywall */
.wall { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px 24px; background: var(--card); border: 2px solid var(--yellow-d); border-radius: var(--r); padding: 18px; }
.wall h3 { margin-top: 0; }
.locked { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.locked li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #f3f5ef; font-weight: 700; border-left: 4px solid var(--line); }
.locked li.v-win { border-left-color: var(--win); }
.locked li.v-close { border-left-color: var(--close); }
.locked li.v-lose { border-left-color: var(--lose); }
.locked span { margin-left: auto; font-weight: 500; font-size: .8rem; color: transparent; text-shadow: 0 0 7px rgba(29, 36, 51, .55); user-select: none; }
.buy { text-align: center; display: flex; flex-direction: column; gap: 6px; align-self: center; }
.price { font-size: 2rem; font-weight: 800; }
.buy small { color: var(--soft); font-size: .8rem; }
.wall details { grid-column: 1 / -1; font-size: .9rem; }
.wall details input { width: 220px; margin-right: 6px; }
.wall details button { font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid #c5ccbd; background: #fff; cursor: pointer; }

/* type tags */
.ty { display: inline-block; padding: 0 7px; border-radius: 4px; color: #fff; font-size: .75rem; font-weight: 800; line-height: 1.6; vertical-align: 1px; }
.t-normal { background: #6c6c48; } .t-fighting { background: #b02a22; } .t-flying { background: #4f73b8; } .t-poison { background: #93357a; }
.t-ground { background: #9a5f22; } .t-rock { background: #6e6638; } .t-bug { background: #6b7a10; } .t-ghost { background: #555c7a; }
.t-steel { background: #5f6878; } .t-fire { background: #b3500e; } .t-water { background: #2a6fc4; } .t-grass { background: #3c7f2a; }
.t-electric { background: #8a6d00; } .t-psychic { background: #c42d5f; } .t-ice { background: #237575; } .t-dragon { background: #3a57a8; }
.t-dark { background: #5a4536; } .t-fairy { background: #b4486e; } .t- { background: #4f7c6e; }

/* page parts */
.ph { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ph .spr { width: 96px; height: 96px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff8dc; border: 1px solid #f0d98a; border-radius: var(--r); padding: 14px 16px; margin: 20px 0; }
.cta p { margin: 0; }
.cta .btn { flex: none; }
.facts { padding-left: 20px; }
.facts li { margin: 6px 0; }
blockquote { margin: 10px 0; padding: 10px 14px; background: var(--card); border-left: 4px solid var(--yellow-d); border-radius: 0 var(--r) var(--r) 0; color: var(--soft); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.tier h3 { margin: 0 0 6px; font-size: 1rem; }
.tier h3 span { color: var(--soft); font-weight: 700; font-size: .9rem; margin-left: 6px; }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid #eef0ea; }
.tier li:first-child { border-top: 0; }
.tier li .lv { color: var(--soft); font-size: .85rem; }
.tier small { display: block; color: var(--soft); font-size: .82rem; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; text-decoration: none; color: var(--ink); transition: border-color .12s, transform .12s; }
.card:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-1px); }
.card .sub { display: block; font-size: .85rem; color: var(--soft); }
.card small { display: block; font-size: .8rem; color: var(--soft); }
table { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: .93rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e8ece3; vertical-align: top; }
thead th { background: #eef1ea; font-size: .85rem; }
.kv th { width: 34%; color: var(--soft); font-weight: 700; }
.list td a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.list .spr { width: 40px; height: 40px; }
.loot td:first-child { font-weight: 800; width: 80px; font-variant-numeric: tabular-nums; }
.moves td small { display: block; color: var(--soft); font-size: .8rem; max-width: 60ch; }
.filter input { width: 100%; max-width: 420px; margin-bottom: 12px; }
.req { color: var(--lose); font-weight: 800; } .opt { color: var(--soft); font-weight: 700; }
.steps li { margin: 6px 0; }
.qlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; }
.qlist li a { font-weight: 700; }
.qlist li .sub { display: block; font-size: .85rem; color: var(--soft); }
.foes { list-style: none; padding: 0; }
.foes li { padding: 6px 0; border-top: 1px solid var(--line); }
.foes li .sprs { display: block; }
.foes small { color: var(--soft); }
.events { list-style: none; padding: 0; display: grid; gap: 8px; }
.events li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.events li .sub { display: block; font-size: .85rem; color: var(--soft); }
.events li p { margin: 4px 0 0; }
.strip { margin-top: 28px; }
.strip .events { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
figure { margin: 16px 0; }
figure img { border-radius: var(--r); display: block; }
figcaption { font-size: .82rem; color: var(--soft); margin-top: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; }
.raid { margin-top: 12px; }

@media (max-width: 900px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner form { position: static; }
  .two, .tiers { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .top .wrap { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .top nav { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .foe { grid-row: auto; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
  .ph .spr { width: 72px; height: 72px; }
  .list { display: block; overflow-x: auto; }
}

/* rewrite 11-26: planner notes, boss table, mechanics */
.plan-h .how { color: var(--ink); font-weight: 700; }
.plan-h blockquote { margin: 8px 0; font-size: .92rem; }
.plan-h p + p { margin-top: 4px; }
.note { background: #fff7d6; border-radius: 6px; padding: 6px 10px; margin-top: 8px !important; color: var(--ink) !important; font-size: .9rem; }
.foe small.ctr { color: var(--lose); font-weight: 700; }
.foe mark { background: #ffe9a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.fld-s select { font-size: .95rem; }
.boss-share { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.boss-share h4, .plan h4 { margin: 0 0 8px; }
.share { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.share li { display: grid; grid-template-columns: 40px 110px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: .92rem; }
.share .bar { height: 10px; background: #eef1ea; border-radius: 5px; overflow: hidden; }
.share .bar i { display: block; height: 100%; background: var(--win); border-radius: 5px; transition: width .4s ease; }
.share b { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.bars { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bars th, .bars td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #eef0ea; white-space: nowrap; }
.bars th { font-size: .8rem; color: var(--soft); background: #fbfcf9; }
.plan .tips { margin: 10px 16px; padding-left: 18px; font-size: .92rem; }
.plan .tips li { margin: 4px 0; }
.plan > .dodge, .plan > .hits, .plan > h4 { margin-left: 16px; margin-right: 16px; }
.plan > .hits { margin-bottom: 14px; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.qa section h3 { margin: .6em 0 .3em; font-size: 1.02rem; }
.qa section p { margin: 0; color: var(--soft); font-size: .95rem; }
.qa1 h2 { font-size: 1.15rem; }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); } .share li { grid-template-columns: 40px 90px minmax(0, 1fr) 40px; } }
.chk { display: flex; gap: 8px; align-items: center; font-size: .92rem; margin: 2px 0 6px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.pass-note { margin: 2px 0 0; font-size: .88rem; color: var(--soft); text-align: center; }
.quota { font-size: .92rem !important; color: var(--ink) !important; }
.tag-ex { display: inline-block; background: var(--navy); color: #fff; font-size: .78rem; padding: 1px 8px; border-radius: 4px; margin-right: 6px; }
