:root{
  --bg:#070a14;
  --bg-2:#0b1020;
  --panel:rgba(16,23,43,.78);
  --panel-strong:rgba(20,29,55,.94);
  --text:#f7f8ff;
  --muted:#aab4d1;
  --line:rgba(255,255,255,.12);
  --accent:#ffd34d;
  --accent-2:#ff5c5c;
  --accent-3:#5de1ff;
  --shadow:0 24px 80px rgba(0,0,0,.38);
  --radius:28px;
  --card-width:minmax(180px,1fr);
}
[data-theme="aqua"]{--accent:#5de1ff;--accent-2:#71ffb8;--accent-3:#fff16b;}
[data-theme="plasma"]{--accent:#c77dff;--accent-2:#ff5ccf;--accent-3:#82ffef;}
[data-density="compact"]{--card-width:minmax(145px,1fr);}
[data-density="showcase"]{--card-width:minmax(240px,1fr);}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,211,77,.18),transparent 25rem),
    radial-gradient(circle at 84% 18%,rgba(93,225,255,.15),transparent 28rem),
    linear-gradient(135deg,#050711 0%,#0b1020 52%,#120b1b 100%);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 85%);
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.site-shell{position:relative;z-index:1;width:min(1180px,calc(100% - 36px));margin:auto}
.site-header{
  position:sticky;top:14px;z-index:20;
  margin:14px 0 34px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(7,10,20,.76);
  backdrop-filter:blur(18px);
  box-shadow:0 10px 40px rgba(0,0,0,.22);
}
.brand{display:flex;align-items:center;gap:12px;min-width:max-content}
.brand-mark{width:42px;height:42px;filter:drop-shadow(0 0 12px rgba(255,211,77,.35))}
.brand-copy{display:grid;line-height:1.02}
.brand-copy strong{font-size:1rem;letter-spacing:.02em}
.brand-copy em{font-size:.72rem;color:var(--muted);font-style:normal;text-transform:uppercase;letter-spacing:.12em}
.site-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.nav-link{
  border:1px solid transparent;
  color:var(--muted);
  background:transparent;
  border-radius:999px;
  padding:10px 13px;
  cursor:pointer;
}
.nav-link:hover,.nav-link.is-active{color:var(--text);border-color:var(--line);background:rgba(255,255,255,.07)}
.settings-link{color:var(--accent)}
.mobile-menu-button{display:none;background:transparent;border:0;padding:8px;cursor:pointer}
.mobile-menu-button span{display:block;width:24px;height:2px;background:var(--text);margin:5px;border-radius:2px}
.hero{min-height:620px;display:grid;align-items:center;padding:48px 0 78px}
.hero-grid{grid-template-columns:1.05fr .95fr;gap:48px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:.77rem;text-transform:uppercase;letter-spacing:.17em;font-weight:800}
.eyebrow::before{content:"";width:28px;height:3px;border-radius:8px;background:var(--accent)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.4rem,7vw,5.8rem);line-height:.92;letter-spacing:-.07em;margin-bottom:22px}
h2{font-size:clamp(1.5rem,3vw,2.5rem);line-height:1.02;letter-spacing:-.045em;margin-bottom:16px}
h3{font-size:1.2rem;margin-bottom:10px}
p{color:var(--muted);line-height:1.7;font-size:1.02rem}
code{background:rgba(255,255,255,.08);border:1px solid var(--line);padding:.15em .4em;border-radius:8px;color:#fff}
.hero-copy p{max-width:680px;font-size:1.12rem}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0 28px}
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;padding:0 19px;border-radius:999px;border:1px solid var(--line);
  background:rgba(255,255,255,.06);color:var(--text);font-weight:800;cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.button:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.1)}
.button-primary{background:linear-gradient(135deg,var(--accent),#fff3ad);color:#171200;border-color:transparent;box-shadow:0 14px 36px rgba(255,211,77,.2)}
.button-ghost{background:rgba(255,255,255,.05)}
.button-small{min-height:38px;padding:0 14px;font-size:.9rem}
.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:610px}
.hero-stats div,.dex-summary{
  border:1px solid var(--line);border-radius:22px;padding:16px;background:rgba(255,255,255,.055);
}
.hero-stats strong,.dex-summary strong{display:block;font-size:1.75rem;color:var(--accent);line-height:1}
.hero-stats span,.dex-summary span{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.hero-card-stack{position:relative;min-height:520px;display:grid;place-items:center}
.floating-card{
  position:absolute;width:min(290px,46vw);aspect-ratio:2.5/3.5;border-radius:24px;
  border:1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(135deg,rgba(255,255,255,.25),transparent 30%),
    radial-gradient(circle at 50% 35%,rgba(255,211,77,.5),transparent 22%),
    linear-gradient(160deg,#121a36,#101728 48%,#33215c);
  box-shadow:var(--shadow), inset 0 0 0 8px rgba(255,255,255,.045);
}
.floating-card::before{content:"";position:absolute;inset:15px;border-radius:18px;border:1px solid rgba(255,255,255,.13);background:linear-gradient(180deg,transparent,rgba(255,255,255,.06))}
.card-a{transform:rotate(-10deg) translate(-80px,12px)}
.card-b{transform:rotate(8deg) translate(60px,-25px);background:linear-gradient(135deg,rgba(255,255,255,.2),transparent 30%),radial-gradient(circle at 50% 30%,rgba(93,225,255,.48),transparent 22%),linear-gradient(160deg,#111a33,#0f1d2c 48%,#17385d)}
.card-c{transform:rotate(0deg) translateY(46px);z-index:2;background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 30%),radial-gradient(circle at 50% 32%,rgba(255,92,92,.45),transparent 22%),linear-gradient(160deg,#151d33,#1a1424 48%,#4d202d)}
.scan-ring{width:430px;aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,211,77,.18);box-shadow:0 0 80px rgba(255,211,77,.08), inset 0 0 80px rgba(93,225,255,.08);animation:pulse 5s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.07);opacity:.6}}
.section-panel,.info-card,.feature-card,.download-card,.rule-block{
  border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);backdrop-filter:blur(16px);box-shadow:0 18px 60px rgba(0,0,0,.22)
}
.section-panel{padding:28px;margin-bottom:26px}
.split-panel{display:grid;grid-template-columns:.95fr 1.05fr;gap:30px;align-items:center}
.feature-list{display:grid;gap:12px}
.feature-list article{padding:18px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.055)}
.feature-list strong{display:block;margin-bottom:6px;color:var(--text)}
.feature-list span{color:var(--muted);line-height:1.55}
.section-grid{display:grid;gap:18px;margin:26px 0 46px}
.three-up{grid-template-columns:repeat(3,1fr)}
.two-up{grid-template-columns:repeat(2,1fr)}
.feature-card,.info-card{padding:26px;min-height:220px;transition:transform .18s ease,border-color .18s ease}
.feature-card:hover{transform:translateY(-4px);border-color:rgba(255,211,77,.42)}
.feature-card span,.rule-block span,.panel-number{color:var(--accent);font-size:.82rem;font-weight:900;letter-spacing:.16em}
.page-hero{padding:42px 0 34px}
.compact-hero h1{max-width:980px;font-size:clamp(2.2rem,5vw,4.7rem)}
.compact-hero p{max-width:820px}
.lore-panel{display:grid;grid-template-columns:180px 1fr;gap:28px;align-items:center}
.panel-number{font-size:1.2rem;display:grid;place-items:center;height:180px;border-radius:50%;border:1px solid rgba(255,211,77,.35);background:radial-gradient(circle,rgba(255,211,77,.18),transparent 62%)}
.rules-layout{display:grid;grid-template-columns:220px 1fr;gap:22px;margin-bottom:50px;align-items:start}
.rules-toc{position:sticky;top:110px;border:1px solid var(--line);border-radius:24px;background:rgba(7,10,20,.68);padding:12px;display:grid;gap:6px}
.rules-toc a{padding:12px 14px;border-radius:16px;color:var(--muted)}
.rules-toc a:hover{background:rgba(255,255,255,.08);color:var(--text)}
.rules-content{display:grid;gap:16px}
.rule-block{padding:24px;scroll-margin-top:120px}
.download-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:52px}
.download-card{padding:26px;min-height:230px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.primary-download{grid-column:1/-1;min-height:260px;background:linear-gradient(135deg,rgba(255,211,77,.18),rgba(93,225,255,.08)),var(--panel)}
.pill{display:inline-flex;border:1px solid rgba(255,211,77,.45);border-radius:999px;padding:7px 10px;font-size:.73rem;text-transform:uppercase;letter-spacing:.13em;color:var(--accent);margin-bottom:18px}
.carddex-hero{display:grid;grid-template-columns:1fr 220px;gap:24px;align-items:end}
.carddex-hero h1{font-size:clamp(2.2rem,5vw,4.9rem);max-width:880px}
.dex-summary{text-align:center;padding:28px}
.dex-summary strong{font-size:3.2rem}
.dex-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px;align-items:end}
.dex-toolbar label,.search-box{display:grid;gap:8px;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
input,select{
  width:100%;height:46px;border-radius:16px;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--text);padding:0 14px;outline:none;
}
input:focus,select:focus{border-color:rgba(255,211,77,.5);box-shadow:0 0 0 4px rgba(255,211,77,.08)}
.dex-status{margin:18px 0;color:var(--muted)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));gap:18px;margin:18px 0 56px}
.dex-card{
  display:block;border:1px solid var(--line);border-radius:22px;padding:12px;background:rgba(12,17,32,.76);box-shadow:0 16px 44px rgba(0,0,0,.22);transition:transform .18s ease,border-color .18s ease;
}
.dex-card:hover{transform:translateY(-5px);border-color:rgba(255,211,77,.42)}
.card-crop{aspect-ratio:635/914;border-radius:16px;background-color:#101629;background-repeat:no-repeat;background-position:center;background-size:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);overflow:hidden;position:relative}
.card-crop::after{content:"";position:absolute;inset:0;background:linear-gradient(140deg,rgba(255,255,255,.18),transparent 28%,transparent 72%,rgba(0,0,0,.25));pointer-events:none}
.card-meta{padding:12px 4px 2px}
.card-meta strong{display:block;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-meta span{display:block;color:var(--muted);font-size:.82rem;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.card-tags em{font-style:normal;font-size:.68rem;color:var(--accent);border:1px solid rgba(255,211,77,.28);border-radius:999px;padding:4px 7px;background:rgba(255,211,77,.06)}
.card-detail-shell{margin:34px 0 58px}
.card-detail{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:32px;align-items:start}
.detail-image-wrap{position:sticky;top:118px;border:1px solid var(--line);border-radius:30px;padding:14px;background:rgba(7,10,20,.76);box-shadow:var(--shadow);display:flex;justify-content:center;align-items:flex-start}
.detail-image-wrap .card-crop{border-radius:22px;width:min(100%,calc((100vh - 170px) * .695),360px);max-width:360px;aspect-ratio:635/914}
.detail-panel{border:1px solid var(--line);border-radius:30px;background:var(--panel);padding:30px;box-shadow:var(--shadow)}
.detail-panel h1{font-size:clamp(2rem,4vw,4.4rem);margin-bottom:12px}
.detail-subtitle{color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:.82rem;margin-bottom:22px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}
.stat{border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.055);padding:13px}
.stat span{display:block;color:var(--muted);font-size:.73rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:5px}.stat strong{font-size:1.05rem}
.rules-text{border-left:4px solid var(--accent);padding:14px 0 14px 18px;margin:20px 0;background:linear-gradient(90deg,rgba(255,211,77,.08),transparent)}
.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.detail-actions .button{min-height:42px}
.edit-note{margin-top:22px;padding:16px;border:1px dashed rgba(255,255,255,.22);border-radius:18px;color:var(--muted)}
.site-footer{display:flex;justify-content:space-between;gap:22px;align-items:center;border-top:1px solid var(--line);padding:28px 0 42px;margin-top:20px;color:var(--muted)}
.site-footer p{font-size:.9rem;margin:5px 0 0}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer-links a,.footer-links button{color:var(--muted);background:transparent;border:0;cursor:pointer;padding:8px}.footer-links a:hover,.footer-links button:hover{color:var(--text)}
.settings-panel{position:fixed;inset:0;z-index:60;display:none}.settings-panel.is-open{display:block}.settings-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(6px)}
.settings-card{position:absolute;right:18px;top:18px;width:min(520px,calc(100% - 36px));border:1px solid var(--line);border-radius:30px;background:rgba(12,17,32,.96);box-shadow:var(--shadow);padding:24px}.settings-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:20px}.settings-head h2{margin:5px 0 0}.icon-button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--text);font-size:1.6rem;cursor:pointer}.setting-row{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;border-top:1px solid var(--line);padding:16px 0}.setting-row span{display:block;color:var(--muted);font-size:.9rem;margin-top:3px}.setting-row input{width:170px}.setting-row select{width:190px}.settings-note{font-size:.86rem;margin:10px 0 0}
@media (max-width:860px){
  .site-shell{width:min(100% - 24px,1180px)}.site-header{border-radius:26px;align-items:flex-start}.mobile-menu-button{display:block}.site-nav{display:none;position:absolute;top:68px;left:0;right:0;border:1px solid var(--line);border-radius:24px;background:rgba(7,10,20,.96);padding:10px}.site-nav.is-open{display:grid}.nav-link{text-align:left}.hero-grid,.split-panel,.lore-panel,.rules-layout,.carddex-hero,.card-detail{grid-template-columns:1fr}.hero{min-height:auto;padding-top:24px}.hero-card-stack{min-height:420px}.three-up,.two-up,.download-grid,.dex-toolbar{grid-template-columns:1fr}.hero-stats,.stat-grid{grid-template-columns:1fr}.rules-toc,.detail-image-wrap{position:static}.site-footer{display:grid}.setting-row{grid-template-columns:1fr}.setting-row input,.setting-row select{width:100%}
}

/* Imported card image support */
.card-crop{display:block;overflow:hidden}
.card-crop img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.detail-image-wrap .card-crop img{object-fit:contain;background:#070a14}
.card-crop-bg{width:100%;height:100%;background-repeat:no-repeat;background-color:#101629}
.sheet-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:18px 0 34px}
.sheet-source-card{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;border:1px solid var(--line);border-radius:20px;background:rgba(12,17,32,.72);padding:12px;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.sheet-preview{aspect-ratio:1/1;border-radius:16px;background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.sheet-source-card strong{display:block;color:var(--text);font-size:.98rem}.sheet-source-card span{display:block;color:var(--muted);font-size:.78rem;margin:4px 0 8px}.sheet-source-card a{font-size:.78rem;color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:.08em}.source-box{margin-top:22px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.045);padding:16px;display:grid;gap:5px}.source-box strong{color:var(--text)}.source-box span{color:var(--muted)}.source-box a{color:var(--accent);font-weight:800}
@media (max-width:560px){.sheet-source-card{grid-template-columns:1fr}.sheet-preview{aspect-ratio:16/9}}


/* Homepage featured starter cards */
.starter-stack{isolation:isolate}
.starter-card{
  position:absolute;
  display:block;
  width:min(235px,28vw);
  aspect-ratio:635/914;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(7,10,20,.72);
  box-shadow:var(--shadow),0 0 36px rgba(255,211,77,.08);
  overflow:hidden;
  transform-origin:center;
  transition:transform .22s ease,border-color .22s ease,filter .22s ease;
}
.starter-card img{width:100%;height:100%;display:block;object-fit:cover}
.starter-card span{
  position:absolute;left:12px;right:12px;bottom:12px;
  display:flex;justify-content:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(7,10,20,.76);
  color:var(--text);
  font-size:.78rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;
  backdrop-filter:blur(10px);
}
.starter-card:hover{border-color:rgba(255,211,77,.68);filter:brightness(1.08);z-index:5}
.starter-treecko{transform:rotate(-11deg) translate(-126px,4px);z-index:2}
.starter-torchic{transform:rotate(5deg) translate(8px,-24px);z-index:3}
.starter-mudkip{transform:rotate(13deg) translate(138px,20px);z-index:1}
.starter-treecko:hover{transform:rotate(-8deg) translate(-126px,-8px) scale(1.035)}
.starter-torchic:hover{transform:rotate(2deg) translate(8px,-42px) scale(1.035)}
.starter-mudkip:hover{transform:rotate(10deg) translate(138px,4px) scale(1.035)}



@media (max-width:860px){
  .starter-card{width:min(205px,36vw)}
  .starter-treecko{transform:rotate(-10deg) translate(-82px,6px)}
  .starter-torchic{transform:rotate(4deg) translate(0,-18px)}
  .starter-mudkip{transform:rotate(11deg) translate(86px,18px)}
}
@media (max-width:560px){
  .starter-card{width:min(170px,42vw)}
  .starter-treecko{transform:rotate(-10deg) translate(-58px,8px)}
  .starter-torchic{transform:rotate(3deg) translate(0,-14px)}
  .starter-mudkip{transform:rotate(10deg) translate(60px,18px)}
  .detail-image-wrap .card-crop{width:min(100%,310px)}
}

/* Homepage starter display fix: fill the original floating hero cards with actual card art. */
.hero-card-stack.starter-stack .floating-card.filled-card{
  display:block;
  padding:0;
  background:#101629;
  overflow:hidden;
  aspect-ratio:635/914;
  width:min(290px,42vw);
  border-radius:24px;
  text-indent:0;
  box-shadow:var(--shadow),0 0 44px rgba(255,211,77,.10),inset 0 0 0 1px rgba(255,255,255,.08);
}
.hero-card-stack.starter-stack .floating-card.filled-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.hero-card-stack.starter-stack .floating-card.filled-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg,rgba(255,255,255,.20),transparent 24%,transparent 74%,rgba(0,0,0,.22));
  pointer-events:none;
  z-index:2;
}
.hero-card-stack.starter-stack .floating-card.filled-card:hover{
  border-color:rgba(255,211,77,.65);
  filter:brightness(1.08);
  z-index:6;
}
.hero-card-stack.starter-stack .filled-card.card-a:hover{transform:rotate(-8deg) translate(-80px,0) scale(1.035)}
.hero-card-stack.starter-stack .filled-card.card-b:hover{transform:rotate(6deg) translate(60px,-38px) scale(1.035)}
.hero-card-stack.starter-stack .filled-card.card-c:hover{transform:rotate(0deg) translateY(32px) scale(1.035)}
@media (max-width:860px){
  .hero-card-stack.starter-stack .floating-card.filled-card{width:min(245px,44vw)}
}
@media (max-width:560px){
  .hero-card-stack.starter-stack .floating-card.filled-card{width:min(190px,50vw)}
}


/* Card detail preview fix: use one stable full-card frame instead of oversized crop behavior. */
.card-detail.detail-preview-fixed{grid-template-columns:minmax(240px,340px) 1fr;align-items:start}
.detail-preview-fixed .detail-image-wrap{
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.detail-card-frame{
  width:min(100%,320px,calc((100svh - 180px) * .695));
  max-width:320px;
  min-width:220px;
  aspect-ratio:635/914;
  border-radius:22px;
  overflow:hidden;
  position:relative;
  background:#101629;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 16px 42px rgba(0,0,0,.28);
}
.detail-card-frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(140deg,rgba(255,255,255,.13),transparent 24%,transparent 78%,rgba(0,0,0,.18));
}
.detail-card-image{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
}
img.detail-card-image{
  object-fit:contain;
  object-position:center;
  background:#070a14;
}
.detail-card-sheet-crop{
  background-repeat:no-repeat;
  background-color:#101629;
}
.detail-preview-tools{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.detail-preview-tools a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:var(--accent);
  background:rgba(255,255,255,.045);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.detail-preview-tools a:hover{border-color:rgba(255,211,77,.45);background:rgba(255,211,77,.08)}
@media (max-width:860px){
  .card-detail.detail-preview-fixed{grid-template-columns:1fr}
  .detail-card-frame{width:min(100%,310px);min-width:0}
}
@media (max-width:560px){
  .detail-card-frame{width:min(100%,285px)}
}


/* Nexus radio audio controls */
.audio-console{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:45;
  width:min(430px,calc(100% - 36px));
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(12,17,32,.88),rgba(7,10,20,.78));
  backdrop-filter:blur(18px);
  box-shadow:0 18px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.045);
}
.audio-console-orb{
  width:38px;
  height:38px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#fff8c8 0 8%,var(--accent) 9% 33%,rgba(255,211,77,.1) 34% 62%,rgba(93,225,255,.18));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 0 18px rgba(255,211,77,.22);
}
.audio-console-main{min-width:0;display:grid;gap:2px}
.audio-kicker{color:var(--accent);font-size:.63rem;text-transform:uppercase;letter-spacing:.18em;font-weight:900}
.audio-console-main strong{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.audio-console-main small{color:var(--muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.audio-console-controls{display:flex;align-items:center;gap:6px}
.audio-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.audio-btn:hover{transform:translateY(-2px);border-color:rgba(255,211,77,.52);background:rgba(255,211,77,.11)}
.audio-btn-primary{background:linear-gradient(135deg,var(--accent),#fff3ad);color:#171200;border:0;box-shadow:0 8px 22px rgba(255,211,77,.18)}
.setting-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.audio-now-row [data-track-status]{font-size:.78rem;color:var(--accent);margin-top:4px}
@media (max-width:700px){
  .audio-console{grid-template-columns:auto 1fr;bottom:12px;right:12px;width:calc(100% - 24px)}
  .audio-console-controls{grid-column:1/-1;justify-content:space-between}
  .audio-btn{width:38px;height:38px}
}


/* Nexus Battle Simulator */
.battle-site-shell{--battle-green:#82e887;--battle-red:#ff6b7a;--battle-blue:#79d9ff;}
.battle-main{display:grid;gap:1.35rem;}
.battle-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,340px);gap:1rem;align-items:center;overflow:hidden;position:relative;}
.battle-hero:after{content:"";position:absolute;inset:auto -12% -30% 48%;height:300px;background:radial-gradient(circle,rgba(255,224,107,.18),transparent 60%);pointer-events:none;}
.battle-hero h1{font-size:clamp(2.25rem,6vw,5.5rem);line-height:.9;margin:.25rem 0 1rem;letter-spacing:-.07em;}
.battle-hero p{max-width:760px;color:var(--muted);font-size:1.08rem;line-height:1.7;}
.battle-hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.1rem;}
.battle-hero-card{position:relative;border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:1.15rem;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.03));box-shadow:0 24px 70px rgba(0,0,0,.35);display:grid;gap:.4rem;z-index:1;}
.battle-hero-card span,.battle-hero-card em{color:var(--muted);font-style:normal;}
.battle-hero-card strong{font-size:1.45rem;color:var(--text);}
.battle-app{display:grid;gap:1rem;}
.battle-menu-panel,.draft-screen,.league-screen,.battle-screen,.result-screen{border:1px solid rgba(255,255,255,.13);border-radius:30px;background:linear-gradient(180deg,rgba(12,19,39,.9),rgba(8,12,25,.92));box-shadow:0 24px 80px rgba(0,0,0,.3);padding:clamp(1rem,2.5vw,1.5rem);}
.battle-menu-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,470px);gap:1.2rem;align-items:start;}
.battle-menu-copy h2,.draft-head h2,.league-head h2,.battle-topbar h2,.result-card h2{font-size:clamp(2rem,4vw,3.4rem);line-height:.95;margin:.2rem 0 .8rem;letter-spacing:-.05em;}
.battle-menu-copy p,.draft-head p,.league-head p{color:var(--muted);line-height:1.65;}
.trainer-form{border:1px solid rgba(255,255,255,.13);border-radius:24px;padding:1rem;background:rgba(255,255,255,.04);display:grid;gap:.55rem;}
.trainer-form label{font-weight:900;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;color:var(--accent);}
.trainer-form-row{display:flex;gap:.55rem;align-items:center;}
.trainer-form-row input{width:100%;min-width:0;background:rgba(255,255,255,.08);color:var(--text);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:.9rem 1rem;font-weight:800;outline:0;}
.trainer-form-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(255,220,93,.14);}
.battle-tips{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;}
.battle-tips article{border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:1rem;background:rgba(255,255,255,.04);display:grid;gap:.35rem;}
.battle-tips strong{font-size:1rem;}
.battle-tips span{color:var(--muted);font-size:.92rem;line-height:1.5;}
.is-hidden{display:none!important;}
.draft-head,.league-head,.battle-topbar{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem;}
.draft-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end;}
.draft-actions select{background:rgba(255,255,255,.08);color:var(--text);border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:.78rem 1rem;font-weight:900;}
.selected-team{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin-bottom:1rem;}
.selected-slot{min-height:94px;border:1px dashed rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.035);display:grid;place-items:center;text-align:center;color:var(--muted);font-weight:900;padding:.55rem;}
.selected-slot.filled{border-style:solid;border-color:rgba(255,224,102,.3);background:linear-gradient(180deg,rgba(255,224,102,.11),rgba(255,255,255,.035));}
.selected-slot img{image-rendering:pixelated;height:56px;width:76px;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(0,0,0,.35));}
.selected-slot span{font-size:.8rem;display:block;}
.draft-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem;max-height:680px;overflow:auto;padding-right:.35rem;}
.draft-mon{border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(255,255,255,.045);padding:.75rem;display:grid;gap:.4rem;text-align:left;color:var(--text);cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease;}
.draft-mon:hover{transform:translateY(-2px);border-color:rgba(255,224,102,.45);background:rgba(255,255,255,.07);}
.draft-mon.is-selected{border-color:rgba(130,232,135,.65);box-shadow:0 0 0 2px rgba(130,232,135,.12) inset;}
.draft-mon:disabled{opacity:.45;cursor:not-allowed;transform:none;}
.draft-mon img{image-rendering:pixelated;width:100%;height:82px;object-fit:contain;filter:drop-shadow(0 15px 14px rgba(0,0,0,.4));}
.draft-mon strong{font-size:1rem;}
.type-pills{display:flex;gap:.35rem;flex-wrap:wrap;}
.type-pill{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:.16rem .42rem;color:#fff;background:rgba(255,255,255,.09);font-weight:900;}
.leader-track{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.75rem;margin-bottom:1rem;}
.leader-card{border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(255,255,255,.04);padding:.85rem;display:grid;gap:.45rem;position:relative;overflow:hidden;}
.leader-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--accent);opacity:.7;}
.leader-card.is-complete{border-color:rgba(130,232,135,.35);}
.leader-card.is-current{box-shadow:0 0 0 2px rgba(255,224,102,.22) inset;background:rgba(255,224,102,.06);}
.leader-card span{color:var(--muted);font-size:.85rem;}
.leader-card strong{font-size:1.05rem;}
.party-inspector{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;}
.party-card{border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(255,255,255,.04);padding:.75rem;display:grid;gap:.45rem;}
.party-card img{image-rendering:pixelated;height:60px;width:100%;object-fit:contain;}
.mini-hp{height:8px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;}
.mini-hp i{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--battle-green),var(--accent));}
.battle-screen{padding:1rem;}
.battlefield{position:relative;min-height:520px;border:1px solid rgba(255,255,255,.12);border-radius:30px;background:radial-gradient(circle at 72% 25%,rgba(255,224,102,.14),transparent 22%),radial-gradient(circle at 20% 80%,rgba(93,210,255,.12),transparent 24%),linear-gradient(180deg,rgba(15,28,52,.95),rgba(7,10,20,.96));overflow:hidden;display:grid;grid-template-rows:1fr 1fr;}
.battlefield:after{content:"";position:absolute;left:10%;right:10%;top:52%;height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);}
.combatant{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:1rem;z-index:1;}
.enemy-side{align-items:start;}
.player-side{align-items:end;}
.enemy-stage{justify-self:center;align-self:end;}
.player-stage{justify-self:center;align-self:start;}
.sprite-stage{position:relative;width:min(34vw,260px);height:190px;display:grid;place-items:center;}
.sprite-stage:before{content:"";position:absolute;left:12%;right:12%;bottom:22px;height:28px;border-radius:50%;background:rgba(0,0,0,.35);filter:blur(6px);}
.sprite-stage img{position:relative;image-rendering:pixelated;max-width:100%;max-height:160px;width:auto;height:auto;transform:scale(2);transform-origin:center bottom;filter:drop-shadow(0 20px 18px rgba(0,0,0,.38));transition:transform .18s ease,filter .18s ease,opacity .18s ease;}
.sprite-stage span{position:absolute;inset:auto 1rem 1rem;text-align:center;color:var(--muted);font-weight:900;}
.combat-card{border:1px solid rgba(255,255,255,.15);border-radius:22px;background:rgba(7,12,24,.82);box-shadow:0 20px 60px rgba(0,0,0,.3);padding:1rem;display:grid;gap:.65rem;max-width:380px;backdrop-filter:blur(12px);}
.enemy-info{justify-self:start;align-self:start;}
.player-info{justify-self:end;align-self:end;}
.combat-card strong{font-size:1.35rem;display:block;}
.combat-card span{color:var(--muted);font-size:.9rem;}
.hp-shell{display:grid;gap:.35rem;}
.hp-bar{height:14px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;border:1px solid rgba(255,255,255,.1);}
.hp-bar i{display:block;width:100%;height:100%;background:linear-gradient(90deg,var(--battle-green),#eaff92);transition:width .45s ease,background .25s ease;}
.hp-bar.low i{background:linear-gradient(90deg,#ff6b7a,#ffd166);}
.battle-console{display:grid;grid-template-columns:minmax(280px,1.1fr) minmax(230px,.85fr) minmax(260px,1fr);gap:.8rem;margin-top:.8rem;}
.move-grid,.switch-grid{display:grid;gap:.55rem;align-content:start;}
.move-button,.switch-button{border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.055);color:var(--text);padding:.75rem;text-align:left;cursor:pointer;font-weight:900;display:grid;gap:.25rem;transition:.16s ease;}
.move-button:hover,.switch-button:hover{transform:translateY(-1px);border-color:rgba(255,224,102,.45);background:rgba(255,255,255,.08);}
.move-button:disabled,.switch-button:disabled{opacity:.45;cursor:not-allowed;transform:none;}
.move-button span,.switch-button span{font-size:.78rem;color:var(--muted);font-weight:700;}
.switch-button.active{border-color:rgba(130,232,135,.55);}
.battle-log{min-height:210px;max-height:270px;overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(0,0,0,.22);padding:.75rem;color:var(--muted);line-height:1.55;font-size:.95rem;}
.battle-log p{margin:0 0 .45rem;}
.battle-log strong{color:var(--text);}
.sprite-hit img{animation:battleHit .34s ease;}
.sprite-attack img{animation:battleAttack .32s ease;}
.sprite-faint img{opacity:.25;transform:scale(1.65) translateY(22px);filter:grayscale(1) drop-shadow(0 20px 18px rgba(0,0,0,.38));}
@keyframes battleHit{0%,100%{transform:scale(2) translateX(0)}25%{transform:scale(2) translateX(-8px)}60%{transform:scale(2) translateX(7px)}}
@keyframes battleAttack{0%,100%{transform:scale(2) translateX(0)}50%{transform:scale(2.08) translateX(18px)}}
.result-screen{min-height:360px;display:grid;place-items:center;text-align:center;}
.result-card{max-width:620px;display:grid;gap:.75rem;}
.result-card p{color:var(--muted);line-height:1.65;font-size:1.05rem;}
.result-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;}
.battle-notes p{color:var(--muted);line-height:1.7;}
@media (max-width: 920px){.battle-hero,.battle-menu-panel{grid-template-columns:1fr}.battle-tips{grid-template-columns:1fr}.selected-team{grid-template-columns:repeat(3,1fr)}.battle-console{grid-template-columns:1fr}.battlefield{min-height:620px}.combatant{grid-template-columns:1fr}.enemy-info,.player-info{justify-self:stretch}.player-side{display:flex;flex-direction:column-reverse}.sprite-stage{width:100%;}.sprite-stage img{transform:scale(1.65)}@keyframes battleHit{0%,100%{transform:scale(1.65) translateX(0)}25%{transform:scale(1.65) translateX(-8px)}60%{transform:scale(1.65) translateX(7px)}}@keyframes battleAttack{0%,100%{transform:scale(1.65) translateX(0)}50%{transform:scale(1.72) translateX(18px)}}}
@media (max-width: 620px){.trainer-form-row,.draft-head,.league-head,.battle-topbar{flex-direction:column}.draft-actions{justify-content:flex-start}.selected-team{grid-template-columns:repeat(2,1fr)}.battlefield{min-height:680px}.battle-hero h1{font-size:3rem}}

/* Battle Arcade 0.2 additions */
.nexus-arcade-menu{align-items:start;}
.trainer-picker-wrap{display:grid;gap:1rem;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:1rem;}
.trainer-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;}
.trainer-choice{min-height:96px;border:1px solid rgba(255,255,255,.13);background:rgba(7,12,28,.72);border-radius:18px;color:var(--text);display:grid;place-items:center;gap:.25rem;padding:.65rem;cursor:pointer;transition:.18s ease;}
.trainer-choice:hover,.trainer-choice.is-selected{transform:translateY(-2px);border-color:rgba(255,211,77,.62);box-shadow:0 14px 30px rgba(0,0,0,.22);}
.trainer-choice img{image-rendering:pixelated;max-height:46px;max-width:70px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.45));}
.trainer-choice strong{font-size:.75rem;line-height:1.1;text-align:center;}
.trainer-fallback{display:none;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,rgba(255,211,77,.9),rgba(89,195,255,.65));color:#10131d;font-weight:900;}
.mode-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:.5rem;}
.mode-card{border:1px solid rgba(255,255,255,.12);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));border-radius:24px;color:var(--text);padding:1.15rem;text-align:left;display:grid;gap:.45rem;cursor:pointer;transition:.2s ease;min-height:132px;}
.mode-card strong{font-size:1.05rem;}
.mode-card span,.mini-muted{color:var(--muted);line-height:1.5;}
.mode-card:hover{transform:translateY(-3px);border-color:rgba(255,211,77,.58);background:linear-gradient(145deg,rgba(255,211,77,.14),rgba(89,195,255,.055));}
.toggle-chip{display:inline-flex;align-items:center;gap:.4rem;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:.55rem .8rem;color:var(--muted);background:rgba(255,255,255,.04);font-size:.85rem;font-weight:800;}
.toggle-chip input{accent-color:var(--accent);}
.selected-slot small{font-size:.62rem;color:var(--muted);line-height:1.25;text-align:center;max-width:150px;}
.selected-slot.is-editing{border-color:rgba(255,211,77,.75);box-shadow:0 0 0 3px rgba(255,211,77,.12);}
.move-editor{margin:1rem 0 1.1rem;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(255,255,255,.04);padding:1rem;display:grid;gap:1rem;}
.move-editor h3{margin:0;font-size:1.2rem;}
.move-editor p{margin:.3rem 0 0;color:var(--muted);line-height:1.55;}
.move-editor-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;}
.learnset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;}
.learnset-move{border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(5,9,20,.68);padding:.7rem;display:grid;gap:.25rem;cursor:pointer;transition:.15s ease;}
.learnset-move input{position:absolute;opacity:0;pointer-events:none;}
.learnset-move strong{font-size:.9rem;}
.learnset-move span{font-size:.7rem;color:var(--muted);line-height:1.35;}
.learnset-move.is-chosen{border-color:rgba(255,211,77,.72);background:rgba(255,211,77,.11);}
.map-screen,.minigame-screen{display:grid;gap:1rem;}
.rogue-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;}
.rogue-status article{border:1px solid rgba(255,255,255,.11);border-radius:18px;background:rgba(255,255,255,.04);padding:.85rem;display:grid;gap:.2rem;}
.rogue-status span{color:var(--muted);font-size:.85rem;}
.rogue-map{display:grid;grid-template-columns:repeat(10,minmax(74px,1fr));grid-auto-rows:96px;gap:.8rem;overflow-x:auto;padding:1rem;border:1px solid rgba(255,255,255,.11);border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));}
.map-node{border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(7,12,28,.75);color:var(--text);display:grid;place-items:center;text-align:center;gap:.2rem;padding:.45rem;min-width:74px;cursor:pointer;transition:.18s ease;}
.map-node span{font-size:1.3rem;}.map-node strong{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;}.map-node:disabled{opacity:.42;cursor:not-allowed}.map-node.is-available:not(:disabled){border-color:rgba(255,211,77,.6);box-shadow:0 0 0 3px rgba(255,211,77,.08)}.map-node.is-complete{background:rgba(122,199,76,.12);border-color:rgba(122,199,76,.45)}
.map-node.heal{background:rgba(122,199,76,.09)}.map-node.relic{background:rgba(255,211,77,.09)}.map-node.rift{background:rgba(111,53,252,.16)}.map-node.champion{background:rgba(255,85,105,.12)}
.trainer-badge{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);border-radius:18px;padding:.5rem;display:grid;place-items:center;min-width:84px;min-height:84px;align-self:center;}
.trainer-badge img{image-rendering:pixelated;max-width:80px;max-height:72px;filter:drop-shadow(0 10px 12px rgba(0,0,0,.44));}
.trainer-badge span{display:none;width:46px;height:46px;border-radius:999px;background:rgba(255,211,77,.85);color:#111827;font-weight:900;place-items:center;}
.minigame-tabs{display:flex;flex-wrap:wrap;gap:.75rem;}
.minigame-stage{min-height:390px;border:1px solid rgba(255,255,255,.12);border-radius:28px;background:rgba(255,255,255,.04);padding:1rem;display:grid;gap:1rem;}
.mini-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;}.mini-head h3{margin:0;font-size:1.35rem}.mini-head p{margin:0;color:var(--muted)}
.catch-arena{position:relative;min-height:300px;border-radius:22px;background:radial-gradient(circle at 30% 20%,rgba(122,199,76,.14),transparent 28%),linear-gradient(135deg,rgba(89,195,255,.08),rgba(255,211,77,.05));overflow:hidden;border:1px solid rgba(255,255,255,.09);}
.catch-target{position:absolute;width:96px;height:96px;border:0;background:transparent;cursor:pointer;transition:left .22s ease,top .22s ease,transform .12s ease;}.catch-target:hover{transform:scale(1.08)}.catch-target img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 12px 12px rgba(0,0,0,.42));}
.match-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;}.match-card{min-height:76px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(7,12,28,.75);color:var(--text);font-weight:900;cursor:pointer;}.match-card.matched{background:rgba(122,199,76,.13);border-color:rgba(122,199,76,.5);}
.type-target{display:grid;place-items:center;gap:.5rem;padding:1rem;border-radius:22px;background:rgba(7,12,28,.6);border:1px solid rgba(255,255,255,.08);}.type-target img{height:106px;image-rendering:pixelated;}.type-target h4{margin:0;font-size:1.25rem}.type-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;}
.leader-card img{image-rendering:pixelated;max-width:58px;max-height:58px;object-fit:contain;justify-self:center;filter:drop-shadow(0 8px 10px rgba(0,0,0,.42));}
@media (max-width: 980px){.mode-grid{grid-template-columns:1fr}.trainer-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.learnset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rogue-status{grid-template-columns:1fr}.rogue-map{grid-template-columns:repeat(10,84px)}.type-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 620px){.learnset-grid,.match-grid{grid-template-columns:1fr}.move-editor-head,.mini-head{align-items:flex-start;flex-direction:column}.trainer-picker{grid-template-columns:1fr}}


/* Battle Arcade 0.3 polish: tighter UI, corrected battle staging, real board token */
.battle-menu-panel,.draft-screen,.league-screen,.battle-screen,.result-screen,.map-screen,.minigame-screen{
  border-radius:24px;
  background:linear-gradient(180deg,rgba(12,18,36,.94),rgba(6,10,22,.96));
}
.battle-topbar{align-items:center;margin-bottom:.75rem;}
.battle-topbar h2{font-size:clamp(2.1rem,4.5vw,3.2rem);}
.battle-screen{padding:clamp(.75rem,1.6vw,1.05rem);}
.battlefield{
  display:block;
  min-height:500px;
  border-radius:26px;
  background:
    radial-gradient(ellipse at 72% 25%,rgba(255,231,117,.18),transparent 27%),
    radial-gradient(ellipse at 23% 78%,rgba(93,210,255,.16),transparent 30%),
    linear-gradient(180deg,rgba(13,27,53,.97),rgba(5,9,21,.98));
}
.battlefield:before{
  content:"";
  position:absolute;
  inset:36px 7% 36px;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,255,255,.07),transparent 64%);
  transform:skewX(-9deg);
  pointer-events:none;
}
.battlefield:after{top:50%;opacity:.65;}
.combatant{position:absolute;display:block;padding:0;z-index:1;}
.enemy-side{top:34px;right:5%;left:auto;width:min(56%,610px);height:205px;}
.player-side{left:5%;bottom:36px;width:min(58%,650px);height:230px;}
.enemy-info{position:absolute;left:0;top:0;width:min(330px,46vw);justify-self:auto;align-self:auto;z-index:4;}
.player-info{position:absolute;right:0;bottom:0;width:min(330px,46vw);justify-self:auto;align-self:auto;z-index:4;}
.enemy-stage{position:absolute;right:72px;top:56px;width:250px;height:150px;justify-self:auto;align-self:auto;z-index:3;}
.player-stage{position:absolute;left:96px;bottom:62px;width:280px;height:170px;justify-self:auto;align-self:auto;z-index:3;}
.enemy-side .trainer-badge{position:absolute;right:0;top:0;min-width:92px;min-height:78px;z-index:2;opacity:.9;}
.player-side .trainer-badge{position:absolute;left:0;bottom:0;min-width:92px;min-height:78px;z-index:2;opacity:.9;}
.sprite-stage{--sprite-scale:2.05;}
.player-stage{--sprite-scale:2.12;}
.sprite-stage:before{bottom:10px;left:17%;right:17%;height:22px;opacity:.85;}
.sprite-stage img{transform:scale(var(--sprite-scale));max-height:118px;}
.player-stage img{max-height:122px;}
.sprite-faint img{opacity:.25;transform:scale(calc(var(--sprite-scale) * .83)) translateY(22px);filter:grayscale(1) drop-shadow(0 20px 18px rgba(0,0,0,.38));}
@keyframes battleHit{0%,100%{transform:scale(var(--sprite-scale)) translateX(0)}25%{transform:scale(var(--sprite-scale)) translateX(-8px)}60%{transform:scale(var(--sprite-scale)) translateX(7px)}}
@keyframes battleAttack{0%,100%{transform:scale(var(--sprite-scale)) translateX(0)}50%{transform:scale(calc(var(--sprite-scale) + .08)) translateX(18px)}}
.combat-card{border-radius:18px;padding:.85rem .95rem;max-width:none;background:rgba(5,10,23,.86);}
.combat-card strong{font-size:1.2rem;}
.battle-console{grid-template-columns:minmax(280px,1.1fr) minmax(230px,.75fr) minmax(260px,.95fr);gap:.65rem;}
.move-button,.switch-button{border-radius:14px;padding:.65rem .72rem;}
.battle-log{border-radius:14px;min-height:190px;max-height:245px;}
.rogue-map{
  position:relative;
  grid-template-columns:repeat(10,86px);
  grid-template-rows:repeat(3,96px);
  grid-auto-rows:96px;
  justify-content:start;
  gap:.65rem;
  min-height:330px;
  min-width:1040px;
  overflow:hidden;
  padding:1rem 1.1rem;
  border-radius:26px;
  background:
    radial-gradient(circle at 11% 18%,rgba(122,199,76,.13),transparent 16%),
    radial-gradient(circle at 73% 52%,rgba(111,53,252,.16),transparent 19%),
    radial-gradient(circle at 95% 18%,rgba(255,85,105,.14),transparent 17%),
    linear-gradient(135deg,rgba(14,31,50,.92),rgba(8,12,26,.96));
}
.map-path-lines{position:absolute;inset:1rem 1.1rem;z-index:0;width:1000px;height:318px;pointer-events:none;opacity:.6;}
.map-path-lines line{stroke:rgba(255,224,102,.24);stroke-width:5;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(255,224,102,.15));}
.map-node{position:relative;z-index:2;border-radius:18px;background:rgba(6,12,26,.83);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 14px 34px rgba(0,0,0,.24);}
.map-node span{font-size:1.45rem;line-height:1;}
.map-node strong{font-size:.68rem;}
.map-node.has-token{border-color:rgba(255,255,255,.5);}
.map-token{z-index:5;align-self:start;justify-self:center;width:52px;height:52px;margin-top:-18px;border-radius:999px;background:linear-gradient(135deg,rgba(255,224,102,.95),rgba(93,210,255,.82));border:2px solid rgba(255,255,255,.85);box-shadow:0 12px 25px rgba(0,0,0,.45),0 0 0 6px rgba(255,224,102,.12);display:grid;place-items:center;pointer-events:none;animation:tokenArrive .42s ease both;}
.map-token img{image-rendering:pixelated;max-width:44px;max-height:46px;filter:drop-shadow(0 7px 8px rgba(0,0,0,.4));}
.map-token span{display:none;width:100%;height:100%;place-items:center;color:#111827;font-weight:1000;font-size:1.15rem;}
@keyframes tokenArrive{from{transform:translateY(-12px) scale(.88);opacity:.35}to{transform:translateY(0) scale(1);opacity:1}}
.rogue-status article,.party-card,.leader-card,.trainer-form,.move-editor,.minigame-stage{border-radius:16px;}
.draft-mon{border-radius:18px;}
.selected-slot{border-radius:18px;}
@media (max-width: 920px){
  .battlefield{min-height:600px;}
  .enemy-side,.player-side{left:1rem;right:1rem;width:auto;}
  .enemy-stage{right:1.5rem;top:86px;}
  .player-stage{left:2rem;bottom:90px;}
  .enemy-info,.player-info{width:min(340px,70vw);}
  .player-info{right:0;}
  .battle-console{grid-template-columns:1fr;}
}
@media (max-width: 620px){
  .battlefield{min-height:660px;}
  .enemy-side{top:20px;}
  .player-side{bottom:22px;}
  .enemy-stage,.player-stage{position:absolute;left:50%;right:auto;transform:translateX(-50%);}
  .enemy-stage{top:120px;}
  .player-stage{bottom:120px;}
  .enemy-info,.player-info{left:0;right:0;width:auto;}
  .enemy-side .trainer-badge,.player-side .trainer-badge{display:none;}
  .sprite-stage{--sprite-scale:1.72;}
}


/* Arcade 0.4: Gen 5 animated sprites, expanded mini-games, tighter Card Dex */
.dex-toolbar + .dex-status{margin-top:.4rem;}
.draft-mon img,.selected-slot img,.party-card img,.type-target img,.catch-target img,.safari-cell img,.dodge-player,.dodge-hazard{image-rendering:auto;}
.draft-mon img{height:96px;}
.selected-slot img{height:66px;width:92px;}
.party-card img{height:72px;}
.sprite-stage{--sprite-scale:1.55;}
.player-stage{--sprite-scale:1.62;}
.sprite-stage img{image-rendering:auto;max-height:142px;}
.player-stage img{max-height:146px;}
.enemy-stage{right:82px;top:50px;height:170px;}
.player-stage{left:106px;bottom:58px;height:190px;}
.minigame-tabs .button{padding:.72rem .95rem;}
.dodge-arena,.timing-arena{position:relative;min-height:320px;border-radius:22px;border:1px solid rgba(255,255,255,.1);overflow:hidden;background:radial-gradient(circle at 20% 20%,rgba(93,210,255,.13),transparent 28%),linear-gradient(135deg,rgba(7,12,28,.74),rgba(15,28,52,.72));}
.dodge-lanes{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);opacity:.4;}
.dodge-lanes span{border-left:1px solid rgba(255,255,255,.12);border-right:1px solid rgba(255,255,255,.07);}
.dodge-control{position:relative;z-index:5;margin:.75rem .25rem 0 .75rem;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.08);color:var(--text);font-weight:900;padding:.55rem .8rem;cursor:pointer;}
.dodge-player{position:absolute;bottom:18px;width:86px;height:86px;object-fit:contain;filter:drop-shadow(0 16px 12px rgba(0,0,0,.45));transition:left .16s ease;z-index:4;}
.dodge-hazard{position:absolute;top:-70px;width:68px;height:68px;object-fit:contain;animation:hazardDrop 1.05s linear forwards;filter:drop-shadow(0 14px 10px rgba(0,0,0,.45));z-index:3;}
@keyframes hazardDrop{to{top:245px;transform:rotate(260deg)}}
.mini-failed{box-shadow:0 0 0 3px rgba(255,90,110,.2) inset;}
.timing-arena{display:grid;place-items:center;gap:1rem;padding:1rem;}
.timing-track{position:relative;width:min(720px,94%);height:44px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);}
.timing-zone{position:absolute;left:42%;width:16%;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,rgba(255,224,102,.2),rgba(130,232,135,.24));border-left:2px solid rgba(255,224,102,.7);border-right:2px solid rgba(255,224,102,.7);}
.timing-cursor{position:absolute;top:-7px;width:12px;height:58px;border-radius:999px;background:#fff;box-shadow:0 0 18px rgba(255,224,102,.55);transform:translateX(-50%);}
.safari-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;}
.safari-cell{min-height:120px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(7,12,28,.7);color:var(--text);font-weight:900;display:grid;place-items:center;gap:.25rem;cursor:pointer;transition:.16s ease;}
.safari-cell:hover{transform:translateY(-2px);border-color:rgba(255,224,102,.45);}
.safari-cell img{height:72px;max-width:120px;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(0,0,0,.35));}
.safari-cell.is-correct{background:rgba(130,232,135,.16);border-color:rgba(130,232,135,.55);}
.safari-cell.is-wrong{background:rgba(255,90,110,.14);border-color:rgba(255,90,110,.5);}
@media (max-width: 620px){.safari-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dodge-control{padding:.45rem .6rem}.sprite-stage{--sprite-scale:1.28}.player-stage{--sprite-scale:1.34}}

/* === Nexus Battle Frontier 0.5 polish === */
.battle-boot{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,#eef5ff 0 5%,#111827 7%,#050711 58%,#02030a 100%);transition:opacity .36s ease,transform .36s ease;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.battle-boot.is-done{opacity:0;transform:scale(1.02);pointer-events:none}.boot-screen{width:min(720px,86vw);min-height:380px;border-radius:28px;border:1px solid rgba(255,255,255,.18);box-shadow:0 36px 120px rgba(0,0,0,.65),inset 0 0 0 1px rgba(255,255,255,.06);background:linear-gradient(160deg,rgba(8,15,33,.96),rgba(13,26,55,.88));display:grid;place-items:center;text-align:center;padding:42px;position:relative;overflow:hidden}.boot-screen:before{content:"";position:absolute;inset:24px;border-radius:22px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 5px);opacity:.28;pointer-events:none}.boot-screen span{font-size:clamp(2.4rem,8vw,5.8rem);font-weight:950;letter-spacing:.08em;color:#f6f9ff;text-shadow:0 0 22px rgba(255,222,90,.45)}.boot-screen strong{font-size:clamp(1.1rem,3vw,2rem);letter-spacing:.16em;color:#ffe66b}.boot-screen em{font-style:normal;color:#b8c5e2;letter-spacing:.12em}.boot-screen i{width:min(420px,70vw);height:8px;border-radius:999px;background:linear-gradient(90deg,#ffe66b,#4fe2ff,#ffe66b);animation:bootLoad 2.3s ease both}.boot-screen button{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:10px 18px;font-weight:800}@keyframes bootLoad{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
.nexus-boot-card{display:grid;gap:24px;padding:28px;border:1px solid rgba(120,160,255,.18);border-radius:30px;background:linear-gradient(145deg,rgba(12,21,43,.96),rgba(6,10,23,.92));box-shadow:0 28px 70px rgba(0,0,0,.32)}.main-mode-grid{grid-template-columns:1.25fr 1fr 1fr}.mode-card-xl{min-height:180px}.trainer-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px}.trainer-choice{min-height:112px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.055);display:grid;place-items:center;padding:10px;color:#fff;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.trainer-choice:hover,.trainer-choice.is-selected{transform:translateY(-2px);border-color:rgba(255,220,90,.9);background:rgba(255,220,90,.09)}.trainer-choice img{height:58px;image-rendering:pixelated}.trainer-fallback{display:none;width:48px;height:48px;border-radius:14px;place-items:center;background:#20304d;color:#ffe66b;font-weight:950}.builder-layout{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(360px,1.35fr);gap:22px}.import-panel{margin:16px 0;padding:16px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045)}.import-panel textarea{width:100%;min-height:170px;resize:vertical;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:rgba(3,7,18,.78);color:#eef3ff;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.import-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.set-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.set-controls label{display:grid;gap:6px;color:#b8c5e2;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.set-controls select,.set-controls input{border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#10192d;color:#fff;padding:10px}.draft-mon span{font-size:.78rem;color:#aebbd6}.learnset-grid{max-height:420px;overflow:auto;padding-right:4px}.learnset-move{cursor:pointer}.selected-slot small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggle-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:9px 12px;background:rgba(255,255,255,.06);color:#fff;font-weight:800}
.rogue-board-shell{border-radius:34px;padding:18px;background:linear-gradient(145deg,rgba(19,32,58,.92),rgba(5,9,19,.94));border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 32px 80px rgba(0,0,0,.28)}.rogue-board{position:relative;height:min(560px,62vw);min-height:420px;border-radius:28px;overflow:hidden;background:radial-gradient(circle at 20% 75%,rgba(72,190,255,.18),transparent 24%),radial-gradient(circle at 78% 30%,rgba(255,220,100,.13),transparent 28%),linear-gradient(150deg,#0b1730,#101b2d 45%,#07101d);}.rogue-board:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:52px 52px;mask-image:radial-gradient(circle at 50% 50%,#000,transparent 78%)}.board-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1}.board-lines line{stroke:rgba(255,224,91,.5);stroke-width:.7;stroke-dasharray:2 2}.board-node{position:absolute;z-index:3;transform:translate(-50%,-50%);width:84px;height:84px;border-radius:24px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.045));color:#fff;font-weight:900;box-shadow:0 16px 36px rgba(0,0,0,.35);cursor:pointer;transition:transform .18s ease,filter .18s ease,opacity .18s ease}.board-node:hover{transform:translate(-50%,-50%) scale(1.06)}.board-node.is-locked{opacity:.35;filter:grayscale(1);cursor:not-allowed}.board-node.is-done{border-color:rgba(143,255,166,.65);background:rgba(91,255,129,.1)}.node-gym,.node-champion{border-color:rgba(255,220,91,.82);box-shadow:0 0 32px rgba(255,220,91,.12),0 16px 36px rgba(0,0,0,.35)}.node-heal{border-color:rgba(108,230,255,.7)}.node-legend{border-color:rgba(201,142,255,.8)}.board-token{position:absolute;z-index:5;width:64px;image-rendering:pixelated;transform:translate(-50%,-110%);transition:left .42s cubic-bezier(.2,.8,.2,1),top .42s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 14px 14px rgba(0,0,0,.5))}.board-status,.board-toast{position:absolute;z-index:6;left:20px;bottom:20px;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:rgba(4,8,18,.78);backdrop-filter:blur(12px);padding:12px 16px;display:grid;gap:3px}.board-status span,.board-toast span{color:#b8c5e2}.board-toast{left:auto;right:20px;bottom:20px;animation:toastIn .25s ease both}@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.battlefield.stadium-arena{position:relative;height:min(620px,64vw);min-height:520px;overflow:hidden;border-radius:30px;border:1px solid rgba(255,255,255,.13);background:#071224;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}.arena-sky,.arena-floor,.arena-line{position:absolute;inset:0}.arena-sky{background:radial-gradient(circle at 72% 24%,rgba(255,235,160,.24),transparent 18%),linear-gradient(180deg,rgba(23,42,79,.9),rgba(6,13,27,.95) 58%)}.arena-floor{top:46%;background:radial-gradient(ellipse at 72% 46%,rgba(255,255,255,.14),transparent 16%),radial-gradient(ellipse at 26% 72%,rgba(255,255,255,.1),transparent 18%),linear-gradient(180deg,transparent,rgba(6,10,19,.96) 18%)}.arena-line{top:49%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent)}.arena-forest .arena-sky{background:radial-gradient(circle at 22% 20%,rgba(110,255,132,.2),transparent 22%),linear-gradient(180deg,#0f3224,#07152a 62%)}.arena-volcano .arena-sky{background:radial-gradient(circle at 72% 20%,rgba(255,86,34,.34),transparent 20%),linear-gradient(180deg,#311118,#090914 62%)}.arena-waterfall .arena-sky{background:radial-gradient(circle at 72% 28%,rgba(89,214,255,.28),transparent 22%),linear-gradient(180deg,#0b3550,#071222 62%)}.arena-neon .arena-sky{background:radial-gradient(circle at 78% 26%,rgba(255,236,90,.3),transparent 18%),radial-gradient(circle at 25% 18%,rgba(58,219,255,.23),transparent 20%),linear-gradient(180deg,#141033,#071225 64%)}.arena-canyon .arena-sky{background:linear-gradient(180deg,#3d2416,#0b1325 62%)}.arena-sky .arena-floor,.arena-sky{} .arena-ice .arena-sky{background:linear-gradient(180deg,#d4f5ff22,#071225 64%),radial-gradient(circle at 72% 22%,rgba(175,245,255,.28),transparent 22%)}.arena-dragon .arena-sky{background:radial-gradient(circle at 74% 20%,rgba(138,92,255,.32),transparent 22%),linear-gradient(180deg,#1b163c,#071225 62%)}.arena-club .arena-sky{background:radial-gradient(circle at 80% 18%,rgba(255,76,191,.28),transparent 18%),linear-gradient(180deg,#281233,#071225 64%)}.arena-dojo .arena-sky{background:linear-gradient(180deg,#2b2114,#071225 62%)}.arena-haunted .arena-sky{background:radial-gradient(circle at 72% 20%,rgba(167,101,255,.22),transparent 22%),linear-gradient(180deg,#15172b,#050812 64%)}.arena-museum .arena-sky{background:linear-gradient(180deg,#21253a,#071225 63%)}.arena-champion .arena-sky{background:radial-gradient(circle at 50% 8%,rgba(255,226,91,.28),transparent 24%),radial-gradient(circle at 80% 30%,rgba(94,218,255,.22),transparent 20%),linear-gradient(180deg,#151d42,#070b16 62%)}.trainer-badge{position:absolute;z-index:4;display:grid;place-items:center;text-align:center;gap:4px;border:1px solid rgba(255,255,255,.14);background:rgba(8,14,27,.7);backdrop-filter:blur(10px);border-radius:18px;padding:10px;min-width:90px}.trainer-badge img{height:54px;image-rendering:pixelated}.trainer-badge span{font-size:.75rem;color:#b8c5e2;font-weight:800}.enemy-trainer{right:6%;top:8%}.player-trainer{left:5%;bottom:7%}.pokemon-stage{position:absolute;z-index:4;display:grid;place-items:center;filter:drop-shadow(0 22px 18px rgba(0,0,0,.42))}.pokemon-stage img{image-rendering:pixelated;max-width:220px;max-height:220px;transition:filter .25s ease,opacity .25s ease,transform .25s ease}.enemy-stage{right:23%;top:26%;transform:translate(50%,-50%)}.player-stage{left:27%;bottom:23%;transform:translate(-50%,50%)}.player-stage img{max-width:240px;max-height:240px}.combat-card{position:absolute;z-index:5;min-width:280px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(3,7,17,.82);backdrop-filter:blur(10px);padding:14px 16px;box-shadow:0 18px 42px rgba(0,0,0,.34)}.enemy-info{left:44%;top:7%}.player-info{right:7%;bottom:8%}.combat-card strong{font-size:1.24rem;color:#fff}.hp-shell{display:grid;gap:7px;margin-top:8px;color:#c5d0e8}.hp-bar{height:12px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}.hp-bar i{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#6fe58d,#f3ff8a);transition:width .25s ease}.sprite-lunge{animation:lunge .28s ease}.sprite-faint{filter:grayscale(1) brightness(.55)!important;opacity:.46!important;transform:translateY(20px) scale(.96)!important}@keyframes lunge{50%{transform:translateX(18px) scale(1.08)}}.refined-console{grid-template-columns:1fr .85fr 1.15fr}.move-button,.switch-button{border-radius:16px}.switch-button img{height:36px;image-rendering:pixelated}.battle-log{max-height:210px;overflow:auto}
.stadium-mini{border-radius:28px;border:1px solid rgba(255,255,255,.13);background:linear-gradient(145deg,rgba(14,25,48,.94),rgba(5,9,20,.94));min-height:460px;padding:20px;position:relative;overflow:hidden}.mini-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.mini-head h3{font-size:1.55rem;margin:0}.mini-head p{color:#b8c5e2;margin:.2rem 0 0}.mini-head strong{color:#ffe66b}.mini-sprite-row{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:center}.mini-sprite-row img{width:130px;image-rendering:pixelated;filter:drop-shadow(0 18px 16px rgba(0,0,0,.45))}.command-board{min-height:150px;border-radius:24px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.24);display:grid;place-items:center;font-size:5rem;font-weight:950;color:#fff}.command-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.command-pad button{font-size:2rem}.lane-arena,.egg-arena,.feast-table,.splash-pool{position:relative;min-height:340px;border-radius:24px;border:1px solid rgba(255,255,255,.12);background:radial-gradient(circle at 50% 20%,rgba(255,255,255,.12),transparent 24%),rgba(0,0,0,.18);overflow:hidden}.lane-player,.egg-player{position:absolute;bottom:42px;width:86px;image-rendering:pixelated;transition:left .18s ease;filter:drop-shadow(0 15px 10px rgba(0,0,0,.4));z-index:3}.lane-controls{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:flex;gap:8px;z-index:6}.lane-controls button{border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;padding:8px 12px;font-weight:800}.falling-item,.egg-drop{position:absolute;top:-50px;width:58px;image-rendering:pixelated;animation:fallItem 1s linear forwards;z-index:2}.egg-drop{font-size:2rem;text-align:center;color:#ffe66b}@keyframes fallItem{to{top:78%}}.splash-pool{display:grid;place-items:center;gap:16px}.splash-pool img{width:120px;image-rendering:pixelated;filter:drop-shadow(0 18px 16px rgba(0,0,0,.45))}.karp-jump{animation:karpJump .55s ease}@keyframes karpJump{50%{transform:translateY(-115px) scale(1.12)}}.timing-track{position:relative;width:min(520px,80%);height:18px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}.timing-zone{position:absolute;left:41%;width:18%;height:100%;background:#ffe66b}.timing-track i{position:absolute;top:-8px;width:7px;height:34px;border-radius:999px;background:#fff;box-shadow:0 0 16px #fff}.feast-table img{position:absolute;left:50%;bottom:10px;width:112px;transform:translateX(-50%);image-rendering:pixelated}.food{position:absolute;border:0;border-radius:999px;width:58px;height:58px;background:rgba(255,255,255,.9);font-size:1.8rem;box-shadow:0 14px 24px rgba(0,0,0,.25);cursor:pointer}.shadow-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.shadow-hole{height:110px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:radial-gradient(ellipse at 50% 70%,rgba(0,0,0,.8),rgba(0,0,0,.2) 58%,transparent 60%);display:grid;place-items:center}.shadow-hole img{width:82px;image-rendering:pixelated;animation:popUp .18s ease both}.shadow-hole.is-up{background:radial-gradient(ellipse at 50% 70%,rgba(255,255,255,.18),rgba(0,0,0,.25) 58%,transparent 60%)}@keyframes popUp{from{transform:translateY(22px) scale(.75);opacity:0}to{transform:none;opacity:1}}.mini-end{min-height:360px;display:grid;place-items:center;text-align:center;border-radius:24px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}
@media (max-width:900px){.builder-layout,.main-mode-grid{grid-template-columns:1fr}.battlefield.stadium-arena{height:540px}.enemy-stage{right:22%;top:32%}.player-stage{left:28%;bottom:28%}.enemy-info{left:6%;top:7%;min-width:220px}.player-info{right:6%;bottom:4%;min-width:220px}.refined-console{grid-template-columns:1fr}.rogue-board{height:560px}.board-node{width:70px;height:70px}.mini-sprite-row{grid-template-columns:1fr}.command-pad{grid-template-columns:repeat(2,1fr)}}

/* === Nexus Battle Frontier 0.6: stadium journey, animated trainers, expanded arcade === */
:root{
  --arena-stadium:url('/assets/img/battle-bg/stadium.svg');
  --arena-stadium-grass:url('/assets/img/battle-bg/stadium-grass.svg');
  --arena-stadium-fire:url('/assets/img/battle-bg/stadium-fire.svg');
  --arena-stadium-water:url('/assets/img/battle-bg/stadium-water.svg');
  --arena-stadium-electric:url('/assets/img/battle-bg/stadium-electric.svg');
  --arena-forest:url('/assets/img/battle-bg/forest.svg');
  --arena-volcano:url('/assets/img/battle-bg/volcano.svg');
  --arena-waterfall:url('/assets/img/battle-bg/waterfall.svg');
  --arena-canyon:url('/assets/img/battle-bg/canyon.svg');
  --arena-sky:url('/assets/img/battle-bg/sky.svg');
  --arena-ice:url('/assets/img/battle-bg/ice.svg');
  --arena-dragon:url('/assets/img/battle-bg/dragon.svg');
  --arena-haunted:url('/assets/img/battle-bg/haunted.svg');
  --arena-dojo:url('/assets/img/battle-bg/dojo.svg');
  --arena-club:url('/assets/img/battle-bg/club.svg');
  --arena-champion:url('/assets/img/battle-bg/champion.svg');
}
.gameboy-boot-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.08),transparent 18%),linear-gradient(180deg,#040611,#0b1225 58%,#02030a);transition:opacity .42s ease,transform .42s ease;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}
.gameboy-boot-overlay.is-ending{opacity:0;transform:scale(1.03);pointer-events:none;}
.boot-device{width:min(720px,88vw);min-height:390px;border-radius:34px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(145deg,rgba(12,20,40,.96),rgba(2,5,14,.98));box-shadow:0 45px 150px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,255,255,.06);display:grid;place-items:center;text-align:center;gap:14px;padding:42px;position:relative;overflow:hidden;}
.boot-device:before{content:"";position:absolute;inset:24px;border-radius:24px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 5px);opacity:.28;pointer-events:none;}
.boot-device span{font-size:.9rem;letter-spacing:.28em;color:#ffe66b;font-weight:950;z-index:1;}
.boot-device strong{font-size:clamp(2.2rem,8vw,5.3rem);line-height:.9;letter-spacing:.05em;color:#f8fbff;text-shadow:0 0 22px rgba(255,230,107,.35);z-index:1;}
.boot-device em{font-style:normal;letter-spacing:.18em;text-transform:uppercase;color:#b9c8e9;font-weight:800;z-index:1;}
.boot-device .button{z-index:1;margin-top:16px;}
.battle-hero-card strong{font-size:1.18rem;}
.battle-app{position:relative;}
.nexus-boot-card{border-radius:32px;background:radial-gradient(circle at 82% 20%,rgba(93,210,255,.14),transparent 28%),linear-gradient(145deg,rgba(12,21,43,.96),rgba(5,8,18,.96));}
.trainer-picker{max-height:360px;overflow:auto;padding-right:4px;}
.trainer-choice img{height:68px;image-rendering:pixelated;animation:trainerIdle 1.7s ease-in-out infinite;}
@keyframes trainerIdle{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.battlefield.stadium-arena{height:min(680px,64vw);min-height:560px;border-radius:34px;overflow:hidden;position:relative;background-image:var(--arena-stadium),linear-gradient(180deg,#0b1430,#02040d);background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 28px 85px rgba(0,0,0,.42);}
.battlefield.stadium-arena:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 34%,rgba(255,255,255,.12),transparent 16%),linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.38));pointer-events:none;z-index:1;}
.battlefield.stadium-arena:after{content:"";position:absolute;left:12%;right:12%;bottom:20%;height:11%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.48),transparent 68%);filter:blur(8px);z-index:2;opacity:.55;}
.arena-stadium{background-image:var(--arena-stadium),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-stadium-grass{background-image:var(--arena-stadium-grass),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-stadium-fire{background-image:var(--arena-stadium-fire),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-stadium-water{background-image:var(--arena-stadium-water),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-stadium-electric{background-image:var(--arena-stadium-electric),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-forest{background-image:var(--arena-forest),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-volcano{background-image:var(--arena-volcano),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-waterfall{background-image:var(--arena-waterfall),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-canyon{background-image:var(--arena-canyon),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-sky{background-image:var(--arena-sky),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-ice{background-image:var(--arena-ice),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-dragon{background-image:var(--arena-dragon),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-haunted{background-image:var(--arena-haunted),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-dojo{background-image:var(--arena-dojo),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-club{background-image:var(--arena-club),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-champion{background-image:var(--arena-champion),linear-gradient(180deg,#0b1430,#02040d)!important;}
.arena-light{position:absolute;inset:0;background:radial-gradient(circle at 72% 26%,rgba(255,255,255,.18),transparent 16%),radial-gradient(circle at 29% 58%,rgba(255,255,255,.12),transparent 18%);z-index:2;pointer-events:none;}
.arena-line{position:absolute;z-index:2;left:8%;right:8%;top:53%;height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);}
.trainer-full{position:absolute;z-index:5;display:grid;justify-items:center;gap:4px;color:#f8fbff;text-shadow:0 2px 10px rgba(0,0,0,.7);font-weight:950;letter-spacing:.02em;}
.trainer-full img{height:118px;image-rendering:pixelated;filter:drop-shadow(0 18px 14px rgba(0,0,0,.55));animation:trainerIdle 1.6s ease-in-out infinite;}
.trainer-full span{font-size:.8rem;color:#dbe6ff;background:rgba(3,7,18,.58);border:1px solid rgba(255,255,255,.13);border-radius:999px;padding:4px 10px;backdrop-filter:blur(8px);}
.enemy-trainer-full{right:7.5%;top:10%;}
.player-trainer-full{left:7%;bottom:8%;}
.pokemon-stage{position:absolute!important;z-index:6!important;display:grid;place-items:center;filter:drop-shadow(0 24px 18px rgba(0,0,0,.48));}
.pokemon-stage img{image-rendering:pixelated!important;max-width:260px!important;max-height:245px!important;transition:filter .25s ease,opacity .25s ease,transform .25s ease;}
.enemy-stage{right:24%!important;top:32%!important;transform:translate(50%,-50%)!important;height:auto!important;}
.player-stage{left:28%!important;bottom:23%!important;transform:translate(-50%,50%)!important;height:auto!important;}
.player-stage img{max-width:285px!important;max-height:260px!important;}
.enemy-info{left:39%!important;top:7%!important;right:auto!important;}
.player-info{right:6%!important;bottom:6%!important;left:auto!important;}
.combat-card{z-index:8!important;border-radius:20px!important;border:1px solid rgba(255,255,255,.16)!important;background:linear-gradient(145deg,rgba(3,7,18,.86),rgba(10,18,34,.78))!important;backdrop-filter:blur(12px);box-shadow:0 22px 50px rgba(0,0,0,.38)!important;}
.sprite-lunge{animation:nexusLunge .28s ease;}
@keyframes nexusLunge{50%{transform:translateX(18px) scale(1.08)}}
.sprite-faint{filter:grayscale(1) brightness(.55)!important;opacity:.42!important;}
.refined-console{border-radius:28px;border:1px solid rgba(255,255,255,.11);background:linear-gradient(145deg,rgba(8,14,28,.8),rgba(4,8,18,.9));padding:16px;}
.move-button{background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.13);}
.move-button:hover{transform:translateY(-2px);border-color:rgba(255,230,107,.5);}
.minigame-tabs{max-height:220px;overflow:auto;align-items:flex-start;}
.minigame-tabs .button{white-space:nowrap;}
.stadium-mini{background:radial-gradient(circle at 88% 15%,rgba(93,210,255,.15),transparent 22%),radial-gradient(circle at 18% 75%,rgba(255,230,107,.1),transparent 24%),linear-gradient(145deg,rgba(14,25,48,.96),rgba(4,8,18,.98));}
.runner .lane-player{bottom:auto!important;}
.runner-hazard,.runner-flag{position:absolute;right:-40px;font-size:2rem;animation:runnerSlide 1.05s linear forwards;z-index:3;filter:drop-shadow(0 12px 10px rgba(0,0,0,.45));}
.runner-flag{color:#ffe66b;}
.runner-hazard{color:#ff657c;}
@keyframes runnerSlide{to{right:calc(100% - 80px)}}
.charge-core,.target-field{position:relative;min-height:340px;border-radius:24px;border:1px solid rgba(255,255,255,.12);background:radial-gradient(circle at 50% 24%,rgba(255,255,255,.12),transparent 20%),rgba(0,0,0,.18);display:grid;place-items:center;gap:14px;overflow:hidden;}
.charge-core img,.target-field img{width:118px;image-rendering:pixelated;filter:drop-shadow(0 18px 14px rgba(0,0,0,.44));}
.charge-meter{width:min(560px,78%);height:18px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;border:1px solid rgba(255,255,255,.14);}
.charge-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#55d8ff,#ffe66b,#8bff95);transition:width .12s ease;}
.target-button{position:absolute;min-width:72px;height:72px;border-radius:999px;border:2px solid rgba(255,255,255,.75);background:linear-gradient(145deg,#ffe66b,#ff766b);box-shadow:0 15px 28px rgba(0,0,0,.34);font-weight:950;color:#101827;cursor:pointer;}
.quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px;}
.nexus-toast{position:fixed;right:20px;bottom:20px;z-index:9999;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(3,7,18,.86);backdrop-filter:blur(12px);box-shadow:0 16px 40px rgba(0,0,0,.4);padding:14px 18px;display:grid;gap:4px;color:#fff;transform:translateY(16px);opacity:0;transition:.25s ease;}
.nexus-toast.is-visible{transform:none;opacity:1;}
.nexus-toast span{color:#b8c5e2;}
@media (max-width: 900px){
  .battlefield.stadium-arena{height:600px;min-height:600px;}
  .trainer-full img{height:82px;}
  .enemy-trainer-full{right:5%;top:8%;}.player-trainer-full{left:5%;bottom:7%;}
  .enemy-stage{right:30%!important;top:34%!important;}.player-stage{left:34%!important;bottom:28%!important;}
  .enemy-info{left:5%!important;top:4%!important;min-width:220px!important;}.player-info{right:5%!important;bottom:3%!important;min-width:220px!important;}
  .pokemon-stage img{max-width:185px!important;max-height:185px!important;}.player-stage img{max-width:205px!important;max-height:205px!important;}
  .quiz-options{grid-template-columns:1fr;}
}
@media (max-width: 620px){
  .battlefield.stadium-arena{height:650px;}
  .enemy-trainer-full,.player-trainer-full{display:none;}
  .enemy-stage{right:50%!important;top:35%!important;}.player-stage{left:50%!important;bottom:26%!important;}
  .enemy-info,.player-info{left:5%!important;right:5%!important;width:auto!important;}
}


/* === Nexus Battle Frontier 0.7: artist backgrounds, better boot, card categories/landscape === */
:root{
  --arena-stadium:url('/assets/img/battle-bg/stadium.webp');
  --arena-stadium-grass:url('/assets/img/battle-bg/stadium-grass.webp');
  --arena-stadium-fire:url('/assets/img/battle-bg/stadium-fire.webp');
  --arena-stadium-water:url('/assets/img/battle-bg/stadium-water.webp');
  --arena-stadium-electric:url('/assets/img/battle-bg/stadium-electric.webp');
  --arena-forest:url('/assets/img/battle-bg/forest.webp');
  --arena-route:url('/assets/img/battle-bg/route.webp');
  --arena-meadow:url('/assets/img/battle-bg/meadow.webp');
  --arena-city:url('/assets/img/battle-bg/city.webp');
  --arena-beach:url('/assets/img/battle-bg/beach.webp');
  --arena-cave:url('/assets/img/battle-bg/cave.webp');
  --arena-coast:url('/assets/img/battle-bg/coast.webp');
  --arena-canyon:url('/assets/img/battle-bg/canyon.webp');
  --arena-jungle:url('/assets/img/battle-bg/jungle.webp');
  --arena-deep-cave:url('/assets/img/battle-bg/deep-cave.webp');
  --arena-tropical:url('/assets/img/battle-bg/tropical.webp');
  --arena-volcano:url('/assets/img/battle-bg/volcano.webp');
  --arena-desert:url('/assets/img/battle-bg/desert.webp');
  --arena-ice:url('/assets/img/battle-bg/ice.webp');
  --arena-savanna:url('/assets/img/battle-bg/savanna.webp');
  --arena-dragon:url('/assets/img/battle-bg/dragon.webp');
  --arena-haunted:url('/assets/img/battle-bg/haunted.webp');
  --arena-dojo:url('/assets/img/battle-bg/dojo.webp');
  --arena-club:url('/assets/img/battle-bg/club.webp');
  --arena-champion:url('/assets/img/battle-bg/champion.webp');
}
.dex-card{position:relative;}
.orientation-chip{position:absolute;top:10px;right:10px;z-index:3;border-radius:999px;background:rgba(255,211,77,.92);color:#101827;font-size:.62rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase;padding:5px 7px;box-shadow:0 8px 18px rgba(0,0,0,.25)}
.dex-card.is-landscape{grid-column:span 2;}
.dex-card.is-landscape .card-crop{aspect-ratio:914/635;}
.dex-card.is-landscape .card-crop img{object-fit:contain;background:#070a14;}
.card-detail.is-landscape-detail{grid-template-columns:minmax(360px,540px) 1fr;}
.detail-card-frame.is-landscape{aspect-ratio:914/635;width:min(100%,520px,calc((100svh - 180px) * 1.44));max-width:520px;}
.detail-card-frame.is-landscape img.detail-card-image{object-fit:contain;}
@media (max-width:700px){.dex-card.is-landscape{grid-column:span 1}.card-detail.is-landscape-detail{grid-template-columns:1fr}.detail-card-frame.is-landscape{width:min(100%,340px)}}

/* Real battle environment tiles */
.battlefield.stadium-arena{background-size:cover!important;background-position:center!important;}
.battlefield.stadium-arena:before{background:linear-gradient(180deg,rgba(4,8,18,.05),rgba(4,8,18,.36))!important;}
.battlefield.stadium-arena:after{display:none!important;}
.arena-stadium{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.26)),var(--arena-stadium)!important;}
.arena-stadium-grass{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),var(--arena-stadium-grass)!important;}
.arena-stadium-fire{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),var(--arena-stadium-fire)!important;}
.arena-stadium-water{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.25)),var(--arena-stadium-water)!important;}
.arena-stadium-electric{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.25)),var(--arena-stadium-electric)!important;}
.arena-forest{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-forest)!important;}
.arena-route{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-route)!important;}
.arena-meadow{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-meadow)!important;}
.arena-city{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.32)),var(--arena-city)!important;}
.arena-beach{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-beach)!important;}
.arena-cave{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.38)),var(--arena-cave)!important;}
.arena-coast{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-coast)!important;}
.arena-canyon{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.35)),var(--arena-canyon)!important;}
.arena-jungle{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-jungle)!important;}
.arena-deep-cave{background-image:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.42)),var(--arena-deep-cave)!important;}
.arena-tropical{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-tropical)!important;}
.arena-volcano{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-volcano)!important;}
.arena-desert{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-desert)!important;}
.arena-ice{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-ice)!important;}
.arena-savanna{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),var(--arena-savanna)!important;}
.arena-dragon{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),var(--arena-dragon)!important;}
.arena-haunted{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.3)),var(--arena-haunted)!important;}
.arena-dojo{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),var(--arena-dojo)!important;}
.arena-club{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),var(--arena-club)!important;}
.arena-champion{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),var(--arena-champion)!important;}
.arena-light{background:radial-gradient(circle at 72% 23%,rgba(255,255,255,.28),transparent 13%),radial-gradient(circle at 29% 63%,rgba(255,255,255,.18),transparent 16%)!important;mix-blend-mode:screen;}
.pokemon-stage img{filter:drop-shadow(0 18px 13px rgba(0,0,0,.58));}
.trainer-full img{height:150px!important;}
.enemy-trainer-full{right:5.5%!important;top:8%!important}.player-trainer-full{left:5.5%!important;bottom:6%!important}
.enemy-stage{right:27%!important;top:39%!important}.player-stage{left:27%!important;bottom:29%!important}
.enemy-info{left:37%!important;top:6%!important}.player-info{right:5%!important;bottom:5%!important}

/* Enhanced Game Boy boot */
.boot-v7{background:radial-gradient(circle at 50% 35%,rgba(255,230,107,.15),transparent 18%),linear-gradient(180deg,#05070d,#101724 58%,#020309)!important;}
.boot-shell{width:min(820px,92vw);border-radius:44px;background:linear-gradient(155deg,#d4d8df,#788391 52%,#343b4a);padding:28px 34px 30px;border:1px solid rgba(255,255,255,.45);box-shadow:0 52px 140px rgba(0,0,0,.7),inset 0 0 0 2px rgba(255,255,255,.18);display:grid;gap:18px;}
.boot-topbar,.boot-button-row{display:flex;justify-content:space-between;align-items:center;color:#182033;font-weight:950;letter-spacing:.18em;text-transform:uppercase;font-size:.78rem;}
.boot-topbar i{width:34%;height:3px;background:linear-gradient(90deg,transparent,#182033,transparent);border-radius:999px;opacity:.55}
.boot-screen-v7{position:relative;min-height:430px;border-radius:30px;background:radial-gradient(circle at 50% 45%,#ecfff4 0 14%,#b2d7b7 15% 24%,#26352c 25%,#07120f 100%);border:16px solid #202634;box-shadow:inset 0 0 38px rgba(0,0,0,.65),0 12px 24px rgba(0,0,0,.28);display:grid;place-items:center;text-align:center;overflow:hidden;padding:34px;}
.boot-scanlines{position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.18) 0 1px,transparent 1px 4px);opacity:.38;pointer-events:none;z-index:3}.boot-logo-lockup{position:relative;z-index:4;display:grid;gap:8px;animation:bootLogoPop .65s ease both}.boot-small{color:#15331e!important;font-size:.8rem!important;letter-spacing:.28em!important;font-weight:950!important}.boot-logo-lockup strong{font-size:clamp(2.8rem,8vw,6.4rem)!important;line-height:.82!important;color:#172e1b!important;text-shadow:2px 2px 0 #f1ffd8,0 0 22px rgba(255,255,255,.6)!important;letter-spacing:.03em!important}.boot-logo-lockup em{font-style:normal!important;color:#ffe66b!important;background:#172e1b;border-radius:999px;padding:7px 14px;letter-spacing:.22em;font-weight:950!important;box-shadow:0 6px 0 rgba(0,0,0,.16)}.boot-cartridge{position:absolute;left:28px;bottom:26px;z-index:4;display:flex;align-items:center;gap:8px;color:#182033;font-weight:950}.boot-cartridge span{width:26px;height:36px;border-radius:5px;background:linear-gradient(180deg,#ffe66b,#ffb84d);box-shadow:inset 0 0 0 2px rgba(0,0,0,.22)}.boot-progress{position:absolute;right:28px;bottom:36px;width:min(290px,38vw);height:10px;border-radius:999px;background:rgba(7,18,15,.28);overflow:hidden;z-index:4}.boot-progress i{display:block;height:100%;background:linear-gradient(90deg,#172e1b,#ffe66b,#172e1b);animation:bootLoadBar 3.2s ease both}.boot-status{position:absolute;bottom:58px;right:28px;color:#172e1b!important;font-weight:950!important;letter-spacing:.08em;z-index:4}.boot-start{position:absolute;z-index:5;bottom:92px;right:28px;animation:pulseStart 1s ease-in-out infinite}.boot-button-row span{width:58px;height:28px;border-radius:999px;background:#2a3141;color:#e8ecf2;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}@keyframes bootLoadBar{from{width:0}to{width:100%}}@keyframes bootLogoPop{from{opacity:0;transform:translateY(18px) scale(.92)}to{opacity:1;transform:none}}@keyframes pulseStart{50%{transform:translateY(-2px);box-shadow:0 0 22px rgba(255,230,107,.35)}}
@media (max-width:700px){.boot-shell{padding:18px;border-radius:30px}.boot-screen-v7{min-height:390px;border-width:10px}.boot-progress,.boot-status,.boot-start{right:18px}.trainer-full img{height:95px!important}.enemy-stage{right:50%!important;top:38%!important}.player-stage{left:50%!important;bottom:28%!important}}


/* Frontier 0.8 - BW2/PWT trainer gallery + unique Stadium mini-games */
.battle-hero-card strong::after{content:""}.trainer-picker{max-height:360px;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));padding-right:6px}.trainer-choice{min-height:134px}.trainer-choice img{height:64px;image-rendering:pixelated;filter:drop-shadow(0 10px 10px rgba(0,0,0,.45))}.trainer-choice strong{font-size:.78rem}.minigame-tabs{max-height:190px;overflow:auto;align-items:start}.minigame-tabs .button{white-space:nowrap}.stadium-unique{position:relative;overflow:hidden;min-height:520px;background:radial-gradient(circle at 50% 40%,rgba(255,230,107,.08),transparent 28%),linear-gradient(180deg,rgba(15,28,54,.94),rgba(7,12,24,.98));border:1px solid rgba(255,255,255,.12);border-radius:28px;padding:18px}.stadium-unique:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(0deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:34px 34px;pointer-events:none}.stadium-unique .mini-head{position:relative;z-index:2}.snore-bed,.sushi-belt,.hoop-field,.harden-field,.dig-pit,.forest-grid,.furret-holes,.barrier-field,.balance-field,.egg-sort,.stone-row{position:relative;z-index:2;border-radius:24px;border:1px solid rgba(255,255,255,.12);background:rgba(6,13,27,.62);min-height:300px;padding:22px;box-shadow:inset 0 0 36px rgba(0,0,0,.25)}.mini-sprite-row img,.snore-bed img,.sushi-belt>img,.harden-field img,.dig-pit img,.balance-field img{image-rendering:pixelated;transform:scale(1.65);margin:35px;filter:drop-shadow(0 16px 12px rgba(0,0,0,.5))}.snore-bed [data-alert]{display:inline-block;margin-left:26px;border-radius:999px;background:rgba(137,255,183,.15);border:1px solid rgba(137,255,183,.35);padding:10px 14px;font-weight:900}.snore-bed [data-alert].danger{background:rgba(255,83,83,.18);border-color:rgba(255,83,83,.45);color:#ffb4b4}.sushi-belt{overflow:hidden}.sushi-belt:after{content:"";position:absolute;left:0;right:0;bottom:34px;height:62px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 30px,rgba(255,255,255,.14) 30px 60px);border-top:2px solid rgba(255,255,255,.12);border-bottom:2px solid rgba(255,255,255,.12)}.sushi-plate{position:absolute;z-index:5;left:-60px;top:50%;font-size:2rem;width:56px;height:56px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:#f5f1dd;animation:sushiSlide 3.6s linear forwards;cursor:pointer}@keyframes sushiSlide{to{left:105%}}.hoop-field,.harden-field{text-align:center}.diglett-target{position:absolute;bottom:66px;width:54px;height:34px;border-radius:50% 50% 14px 14px;background:#9a6b42;box-shadow:0 0 0 5px rgba(255,230,107,.14)}.hoop-ekans{image-rendering:pixelated;position:absolute;left:22px;bottom:44px;transform:scale(1.35);filter:drop-shadow(0 12px 10px rgba(0,0,0,.5))}.harden-zone{left:38%!important;width:24%!important}.dig-pit{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:end}.dig-depth{position:relative;grid-row:1/3;width:44px;height:220px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;align-self:center}.dig-depth i{display:block;width:100%;height:0;background:linear-gradient(0deg,#b9803d,#ffe66b);position:absolute;bottom:0}.forest-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.forest-grid p{grid-column:1/-1}.tree-tile{min-height:56px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);font-size:1.8rem;cursor:pointer}.furret-holes{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;min-height:auto}.furret-holes button{height:90px;border-radius:50%;background:radial-gradient(circle,#5d3d26,#1a1110);color:#ffe66b;font-weight:950;border:1px solid rgba(255,230,107,.24);font-size:1.3rem}.barrier-field,.lane-arena{overflow:hidden}.barrier-field [data-ball]{position:absolute;width:24px;height:24px;border-radius:50%;background:#ffe66b;box-shadow:0 0 22px rgba(255,230,107,.55);left:50%;top:50%}.barrier-field [data-paddle]{position:absolute;bottom:26px;width:20%;height:12px;border-radius:999px;background:linear-gradient(90deg,#77d8ff,#ffe66b)}.barrier-field img{position:absolute;left:24px;bottom:28px;image-rendering:pixelated;transform:scale(1.35)}.charge-meter.heat i{background:linear-gradient(90deg,#ff6b6b,#ffbd4a)!important}.delivery-door{position:absolute;bottom:16px;width:44px;height:54px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#ffe66b,#ef9c39);box-shadow:0 0 20px rgba(255,230,107,.38)}.egg-sort{overflow:hidden}.egg-token{position:absolute;font-size:1.8rem;border-radius:50%;width:54px;height:54px;border:1px solid rgba(255,255,255,.16);background:#fff7d5;cursor:pointer}.stone-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;min-height:auto}.stone{border-radius:20px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;padding:18px;font-size:2rem;cursor:pointer}.stone span{display:block;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.lane-arena.is-inverted{box-shadow:inset 0 0 0 2px rgba(255,91,91,.45)}.cave-spike{color:#ff6b6b!important}.cave-gem{color:#77d8ff!important}.flight .lane-player{left:45px!important}.egg-game .mini-head,.eevee-game .mini-head{margin-bottom:16px}@media (max-width:760px){.stadium-unique{min-height:460px}.trainer-picker{grid-template-columns:repeat(auto-fill,minmax(95px,1fr))}.forest-grid{grid-template-columns:repeat(3,1fr)}}


/* === Nexus Battle Journey 0.9: regional board, centered boot start, uploaded battle backgrounds === */
.boot-start{left:50%!important;right:auto!important;bottom:84px!important;transform:translateX(-50%)!important;min-width:170px;justify-content:center;text-align:center;}
@keyframes pulseStart{50%{transform:translateX(-50%) translateY(-3px);box-shadow:0 0 26px rgba(255,230,107,.55)}}
.boot-screen-v7{background:radial-gradient(circle at 50% 45%,#f5fff7 0 12%,#c2eac9 13% 23%,#365642 24%,#07120f 100%)!important;}
.boot-screen-v7:after{content:"";position:absolute;inset:28px;border-radius:18px;border:2px solid rgba(17,46,27,.28);box-shadow:inset 0 0 0 4px rgba(255,255,255,.12);pointer-events:none;z-index:2;}
.boot-logo-lockup{margin-top:-36px}.boot-status{left:50%!important;right:auto!important;bottom:136px!important;transform:translateX(-50%);white-space:nowrap;text-align:center}.boot-progress{left:50%!important;right:auto!important;bottom:120px!important;transform:translateX(-50%);width:min(340px,55vw)!important}.boot-cartridge{left:50%!important;right:auto!important;bottom:28px!important;transform:translateX(-50%)}
.starter-screen{border-radius:32px;border:1px solid rgba(255,255,255,.11);background:radial-gradient(circle at 82% 20%,rgba(255,230,107,.12),transparent 28%),linear-gradient(145deg,rgba(12,21,43,.96),rgba(5,8,18,.96));padding:24px;}
.starter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin-top:20px;}
.starter-card{border:1px solid rgba(255,255,255,.13);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));padding:16px;display:grid;gap:8px;text-align:left;color:#f8fbff;cursor:pointer;transition:.18s ease;min-height:210px;}
.starter-card:hover,.starter-card.is-selected{transform:translateY(-3px);border-color:rgba(255,230,107,.62);box-shadow:0 20px 44px rgba(0,0,0,.32)}
.starter-card img{height:86px;justify-self:center;image-rendering:pixelated;filter:drop-shadow(0 14px 12px rgba(0,0,0,.48));}
.starter-card strong{font-size:1.05rem}.starter-card span:last-child{font-size:.78rem;color:#b9c8e9;font-weight:800;}
.rogue-board-shell{background:linear-gradient(145deg,rgba(14,26,52,.85),rgba(4,8,18,.92));border-radius:34px;padding:18px;border:1px solid rgba(255,255,255,.11);}
.rogue-board{height:min(740px,72vw);min-height:620px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#183d62,#102344 45%,#15102e);position:relative;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 28px 70px rgba(0,0,0,.36)}
.journey-map-bg{position:absolute;inset:0;background:radial-gradient(circle at 9% 55%,rgba(108,214,132,.34),transparent 10%),radial-gradient(circle at 34% 40%,rgba(118,190,255,.24),transparent 14%),radial-gradient(circle at 54% 78%,rgba(255,190,100,.23),transparent 12%),radial-gradient(circle at 72% 41%,rgba(212,232,255,.27),transparent 15%),radial-gradient(circle at 91% 52%,rgba(94,230,255,.26),transparent 12%),linear-gradient(90deg,rgba(83,184,107,.14) 0 17%,rgba(80,150,70,.08) 17% 31%,rgba(67,143,200,.12) 31% 50%,rgba(204,154,85,.11) 50% 64%,rgba(134,177,222,.12) 64% 82%,rgba(92,190,210,.1) 82% 100%);}
.journey-map-bg:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(circle at center,#000,transparent 86%)}
.region-label{position:absolute;z-index:2;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(4,8,18,.5);backdrop-filter:blur(8px);padding:6px 10px;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:950;color:#ffe66b;}
.region-kanto{left:5%;top:12%}.region-sevii{left:25%;top:88%}.region-johto{left:32%;top:12%}.region-hoenn{left:52%;top:12%}.region-orre{left:54%;top:93%}.region-sinnoh{left:70%;top:12%}.region-unova{left:86%;top:12%}
.board-lines{position:absolute;inset:0;z-index:3;overflow:visible}.board-lines line{stroke:rgba(255,230,107,.55);stroke-width:.9;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(255,230,107,.45));}
.board-node{z-index:5;width:88px;height:88px;margin:-44px 0 0 -44px;border-radius:22px;display:grid;place-items:center;text-align:center;padding:7px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(145deg,rgba(14,25,49,.96),rgba(4,8,18,.88));color:#f8fbff;box-shadow:0 16px 34px rgba(0,0,0,.36);}
.board-node small{font-size:.55rem;color:#88a4c8;text-transform:uppercase;letter-spacing:.08em;font-weight:950}.board-node span{font-size:.72rem;font-weight:950;line-height:1.05}.board-node.is-open{border-color:rgba(255,230,107,.72);box-shadow:0 0 0 3px rgba(255,230,107,.08),0 18px 40px rgba(0,0,0,.42)}.board-node.is-locked{opacity:.42;filter:grayscale(.6)}.board-node.is-done{background:linear-gradient(145deg,rgba(52,95,68,.9),rgba(4,8,18,.86));}
.node-start{background:linear-gradient(145deg,rgba(86,190,114,.95),rgba(10,32,28,.9))}.node-gym{background:linear-gradient(145deg,rgba(255,230,107,.22),rgba(8,14,28,.92))}.node-ferry{background:linear-gradient(145deg,rgba(80,188,255,.24),rgba(8,14,28,.92))}.node-shadow{background:linear-gradient(145deg,rgba(156,80,255,.24),rgba(8,14,28,.92))}.node-champion{background:linear-gradient(145deg,rgba(255,93,127,.28),rgba(8,14,28,.92));}
.board-token{z-index:7;width:64px;height:64px;object-fit:contain;image-rendering:pixelated;transform:translate(-50%,-94%);filter:drop-shadow(0 15px 12px rgba(0,0,0,.65));transition:left .45s ease,top .45s ease;}
.board-status{z-index:8;left:18px;right:18px;bottom:16px;border-radius:20px;background:rgba(3,7,18,.68);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(10px);padding:12px 16px;}
.board-status strong{color:#fff}.board-status span{color:#c5d1eb;}
/* Use the newly supplied background tiles, not the generated text stadiums. */
:root{--arena-stadium:url('/assets/img/battle-bg/stadium.webp');--arena-stadium-grass:url('/assets/img/battle-bg/stadium-grass.webp');--arena-stadium-fire:url('/assets/img/battle-bg/stadium-fire.webp');--arena-stadium-water:url('/assets/img/battle-bg/stadium-water.webp');--arena-stadium-electric:url('/assets/img/battle-bg/stadium-electric.webp');--arena-forest:url('/assets/img/battle-bg/forest.webp');--arena-route:url('/assets/img/battle-bg/route.webp');--arena-meadow:url('/assets/img/battle-bg/meadow.webp');--arena-city:url('/assets/img/battle-bg/city.webp');--arena-beach:url('/assets/img/battle-bg/beach.webp');--arena-cave:url('/assets/img/battle-bg/cave.webp');--arena-coast:url('/assets/img/battle-bg/coast.webp');--arena-canyon:url('/assets/img/battle-bg/canyon.webp');--arena-jungle:url('/assets/img/battle-bg/jungle.webp');--arena-deep-cave:url('/assets/img/battle-bg/deep-cave.webp');--arena-tropical:url('/assets/img/battle-bg/tropical.webp');--arena-volcano:url('/assets/img/battle-bg/volcano.webp');--arena-desert:url('/assets/img/battle-bg/desert.webp');--arena-ice:url('/assets/img/battle-bg/ice.webp');--arena-savanna:url('/assets/img/battle-bg/savanna.webp');--arena-dragon:url('/assets/img/battle-bg/dragon.webp');--arena-haunted:url('/assets/img/battle-bg/haunted.webp');--arena-dojo:url('/assets/img/battle-bg/dojo.webp');--arena-club:url('/assets/img/battle-bg/club.webp');--arena-champion:url('/assets/img/battle-bg/champion.webp');}
@media (max-width:700px){.rogue-board{height:760px}.board-node{width:74px;height:74px;margin:-37px 0 0 -37px}.board-token{width:52px}.starter-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.boot-status{font-size:.72rem!important;white-space:normal;width:80%;}.boot-progress{width:70vw!important}}


/* --- Journey / Competitive overhaul --- */
.nexus-menu-shell{position:relative;overflow:hidden;background:
  radial-gradient(circle at 16% 18%,rgba(255,211,77,.14),transparent 24%),
  radial-gradient(circle at 82% 12%,rgba(98,180,255,.18),transparent 26%),
  linear-gradient(150deg,rgba(6,13,27,.98),rgba(9,18,39,.94));}
.nexus-menu-shell::before{content:"";position:absolute;inset:-20% auto auto -10%;width:440px;height:440px;background:radial-gradient(circle,rgba(79,131,255,.18),transparent 60%);pointer-events:none;filter:blur(8px)}
.menu-hero{position:relative;z-index:1}
.mode-card{position:relative;overflow:hidden}
.mode-card::before{content:"";position:absolute;inset:0;opacity:.55;pointer-events:none;background:linear-gradient(135deg,transparent,rgba(255,255,255,.06));}
.mode-card.mode-journey{background:linear-gradient(145deg,rgba(58,112,74,.36),rgba(20,45,30,.24));}
.mode-card.mode-competitive{background:linear-gradient(145deg,rgba(54,74,132,.34),rgba(20,28,48,.2));}
.mode-card.mode-arcade{background:linear-gradient(145deg,rgba(123,77,34,.32),rgba(46,27,8,.2));}
.mode-card strong{position:relative;z-index:1}
.mode-card span{position:relative;z-index:1}
.main-mode-grid{align-items:stretch}
.starter-screen{overflow:hidden}
.starter-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:22px;margin-top:18px;align-items:start}
.starter-lab-card{border:1px solid rgba(255,255,255,.14);border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));padding:20px;display:grid;gap:16px;position:sticky;top:18px}
.starter-lab-figures{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:12px;min-height:220px;border-radius:22px;padding:18px;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.18),transparent 28%),linear-gradient(180deg,rgba(20,33,57,.9),rgba(10,16,29,.96))}
.oak-figure,.mime-figure{justify-self:center;image-rendering:pixelated;filter:drop-shadow(0 16px 18px rgba(0,0,0,.4))}
.oak-figure{height:180px}.mime-figure{height:140px;align-self:end}
.starter-lab-copy h3{margin:.2rem 0 .5rem;font-size:1.35rem}
.starter-lab-copy p{color:#bfd0f0;line-height:1.6}
.starter-grid-wrap{border:1px solid rgba(255,255,255,.1);border-radius:28px;background:rgba(255,255,255,.03);padding:18px}
.starter-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:0}
.starter-card{min-height:198px;padding:14px 14px 12px;background:linear-gradient(165deg,rgba(255,255,255,.085),rgba(255,255,255,.03));}
.starter-card span:last-child{line-height:1.4}
.draft-screen{border-radius:32px;border:1px solid rgba(255,255,255,.11);background:radial-gradient(circle at 82% 20%,rgba(89,195,255,.09),transparent 28%),linear-gradient(145deg,rgba(12,21,43,.96),rgba(5,8,18,.96));padding:24px;}
.draft-head p[data-draft-copy]{max-width:860px;color:#bfd0f0}
.battlefield.stadium-arena{background-repeat:no-repeat,no-repeat}
.battlefield.stadium-arena.arena-stadium,.battlefield.stadium-arena.arena-route,.battlefield.stadium-arena.arena-meadow,.battlefield.stadium-arena.arena-forest,.battlefield.stadium-arena.arena-city,.battlefield.stadium-arena.arena-beach,.battlefield.stadium-arena.arena-cave,.battlefield.stadium-arena.arena-coast,.battlefield.stadium-arena.arena-canyon,.battlefield.stadium-arena.arena-jungle,.battlefield.stadium-arena.arena-deep-cave,.battlefield.stadium-arena.arena-tropical,.battlefield.stadium-arena.arena-volcano,.battlefield.stadium-arena.arena-desert,.battlefield.stadium-arena.arena-ice,.battlefield.stadium-arena.arena-savanna,.battlefield.stadium-arena.arena-dragon,.battlefield.stadium-arena.arena-haunted,.battlefield.stadium-arena.arena-dojo,.battlefield.stadium-arena.arena-club,.battlefield.stadium-arena.arena-champion,.battlefield.stadium-arena.arena-stadium-grass,.battlefield.stadium-arena.arena-stadium-fire,.battlefield.stadium-arena.arena-stadium-water,.battlefield.stadium-arena.arena-stadium-electric{background-image:linear-gradient(180deg,rgba(6,12,24,.1),rgba(6,12,24,.44)),url('/assets/img/battle-bg/bw_background_sheet.png') !important;background-size:cover,1200% 800% !important;}
.battlefield.stadium-arena.arena-stadium{background-position:center,45% 48% !important}
.battlefield.stadium-arena.arena-route{background-position:center,36% 19% !important}
.battlefield.stadium-arena.arena-meadow{background-position:center,45% 6% !important}
.battlefield.stadium-arena.arena-forest{background-position:center,18% 19% !important}
.battlefield.stadium-arena.arena-city{background-position:center,81% 54% !important}
.battlefield.stadium-arena.arena-beach{background-position:center,63% 7% !important}
.battlefield.stadium-arena.arena-cave{background-position:center,45% 81% !important}
.battlefield.stadium-arena.arena-coast{background-position:center,90% 81% !important}
.battlefield.stadium-arena.arena-canyon{background-position:center,18% 69% !important}
.battlefield.stadium-arena.arena-jungle{background-position:center,54% 69% !important}
.battlefield.stadium-arena.arena-deep-cave{background-position:center,99% 31% !important}
.battlefield.stadium-arena.arena-tropical{background-position:center,72% 56% !important}
.battlefield.stadium-arena.arena-volcano{background-position:center,27% 81% !important}
.battlefield.stadium-arena.arena-desert{background-position:center,81% 69% !important}
.battlefield.stadium-arena.arena-ice{background-position:center,36% 44% !important}
.battlefield.stadium-arena.arena-savanna{background-position:center,72% 81% !important}
.battlefield.stadium-arena.arena-dragon{background-position:center,72% 94% !important}
.battlefield.stadium-arena.arena-haunted{background-position:center,9% 94% !important}
.battlefield.stadium-arena.arena-dojo{background-position:center,27% 56% !important}
.battlefield.stadium-arena.arena-club{background-position:center,54% 56% !important}
.battlefield.stadium-arena.arena-champion{background-position:center,45% 81% !important}
.battlefield.stadium-arena.arena-stadium-grass{background-position:center,63% 6% !important}
.battlefield.stadium-arena.arena-stadium-fire{background-position:center,27% 81% !important}
.battlefield.stadium-arena.arena-stadium-water{background-position:center,90% 44% !important}
.battlefield.stadium-arena.arena-stadium-electric{background-position:center,72% 6% !important}
@media (max-width:980px){.starter-layout{grid-template-columns:1fr}.starter-lab-card{position:relative;top:auto}.starter-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}}


/* Pokemon Nexus Battle Journey 1.0 visual overhaul */
.battle-hero.section-panel{
  background:
    radial-gradient(circle at 82% 24%, rgba(255,230,107,.20), transparent 22%),
    radial-gradient(circle at 18% 72%, rgba(86,194,255,.16), transparent 24%),
    linear-gradient(145deg, rgba(8,16,34,.98), rgba(3,8,18,.96));
}
.nexus-boot-card{
  border-radius:34px;
  border:1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(135deg, rgba(255,230,107,.08), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(94,218,255,.15), transparent 24%),
    rgba(6,14,30,.88);
  padding:28px;
  box-shadow:0 32px 90px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
}
.main-mode-grid{grid-template-columns:1.15fr 1.15fr .85fr;align-items:stretch}
.mode-card{
  position:relative;
  overflow:hidden;
  min-height:170px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    radial-gradient(circle at 90% 12%, rgba(255,230,107,.18), transparent 28%);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mode-card:before{
  content:"";
  position:absolute;inset:auto -18% -48% auto;
  width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle, rgba(255,230,107,.22), transparent 62%);
}
.mode-card:hover{transform:translateY(-3px);border-color:rgba(255,230,107,.42);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.mode-card strong{font-size:1.35rem}
.oak-lab-head{align-items:center}
.oak-lab-stage{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:18px;
  align-items:stretch;
  margin:18px 0;
}
.oak-lab-prof,.oak-lab-mime{
  border:1px solid rgba(255,255,255,.14);
  border-radius:30px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,230,107,.12), transparent 32%),
    linear-gradient(145deg, rgba(16,30,56,.92), rgba(6,11,24,.92));
  padding:20px;
  display:flex;
  gap:18px;
  align-items:center;
  min-height:160px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.oak-lab-prof img{
  height:118px;
  image-rendering:pixelated;
  filter:drop-shadow(0 18px 18px rgba(0,0,0,.45));
}
.oak-lab-mime{
  display:grid;
  place-items:center;
  text-align:center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,91,191,.15), transparent 36%),
    rgba(6,11,24,.9);
}
.oak-lab-mime img{
  height:110px;
  image-rendering:pixelated;
  filter:drop-shadow(0 16px 16px rgba(0,0,0,.45));
}
.oak-lab-prof strong{
  display:block;
  font-size:1.45rem;
  color:#fff;
}
.oak-lab-prof span,.oak-lab-mime span{color:#c6d3ef;line-height:1.55}
.starter-screen{
  border-radius:34px;
  padding:26px;
  background:
    radial-gradient(circle at 15% 15%, rgba(86,194,255,.14), transparent 24%),
    radial-gradient(circle at 90% 30%, rgba(255,230,107,.13), transparent 26%),
    rgba(5,12,27,.92);
  border:1px solid rgba(255,255,255,.12);
}
.starter-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:14px;
}
.starter-card{
  border-radius:26px;
  min-height:230px;
  padding:16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)),
    radial-gradient(circle at 50% 25%, rgba(255,230,107,.14), transparent 38%);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
  display:grid;
  align-content:start;
  gap:9px;
  text-align:left;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.starter-card:hover,.starter-card.is-selected{
  transform:translateY(-4px);
  border-color:rgba(255,230,107,.55);
  box-shadow:0 24px 54px rgba(0,0,0,.32);
}
.starter-card img{
  height:88px;
  justify-self:center;
  image-rendering:pixelated;
  filter:drop-shadow(0 18px 14px rgba(0,0,0,.45));
}
.starter-card strong{font-size:1.1rem}
.starter-card span{color:#c6d3ef;font-size:.86rem}
.rogue-board-shell{
  padding:16px;
  border-radius:34px;
  background:
    linear-gradient(145deg, rgba(255,230,107,.12), rgba(94,218,255,.08)),
    rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.12);
}
.rogue-board{
  position:relative;
  min-height:760px;
  border-radius:32px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 18% 26%, rgba(91,185,115,.32), transparent 16%),
    radial-gradient(circle at 48% 42%, rgba(103,178,255,.22), transparent 18%),
    radial-gradient(circle at 72% 25%, rgba(251,206,92,.22), transparent 16%),
    radial-gradient(circle at 62% 78%, rgba(202,132,255,.20), transparent 18%),
    linear-gradient(180deg, #102a47 0%, #0b1830 45%, #071021 100%);
  box-shadow:inset 0 0 80px rgba(0,0,0,.35);
}
.journey-map-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 16% 42%, rgba(65,181,103,.38) 0 13%, transparent 14%),
    radial-gradient(ellipse at 34% 33%, rgba(97,204,122,.34) 0 11%, transparent 12%),
    radial-gradient(ellipse at 52% 52%, rgba(245,196,86,.32) 0 12%, transparent 13%),
    radial-gradient(ellipse at 67% 34%, rgba(136,210,255,.28) 0 11%, transparent 12%),
    radial-gradient(ellipse at 84% 52%, rgba(105,211,139,.31) 0 12%, transparent 13%),
    radial-gradient(ellipse at 55% 82%, rgba(206,126,80,.32) 0 10%, transparent 11%),
    radial-gradient(ellipse at 30% 80%, rgba(91,199,226,.28) 0 9%, transparent 10%);
  opacity:.95;
}
.region-label{
  z-index:3;
  background:rgba(2,8,18,.62);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  backdrop-filter:blur(8px);
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 12px 26px rgba(0,0,0,.25);
}
.board-lines{
  position:absolute;inset:0;z-index:2;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.board-lines line{stroke:rgba(255,230,107,.55);stroke-width:.65;stroke-dasharray:1.5 1.2}
.board-node{
  z-index:4;
  width:96px;
  height:82px;
  transform:translate(-50%,-50%);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(180deg, rgba(15,31,59,.96), rgba(5,10,22,.96));
  box-shadow:0 20px 38px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.04);
}
.board-node small{
  display:block;
  font-size:.58rem;
  opacity:.72;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.board-node span{font-size:.72rem;line-height:1.05}
.board-node.is-open{border-color:rgba(255,230,107,.62)}
.board-node.is-done{opacity:.68;filter:saturate(.7)}
.node-gym{background:linear-gradient(180deg, rgba(255,214,84,.28), rgba(5,10,22,.96))}
.node-mini{background:linear-gradient(180deg, rgba(255,91,191,.22), rgba(5,10,22,.96))}
.node-legend{background:linear-gradient(180deg, rgba(147,114,255,.26), rgba(5,10,22,.96))}
.node-heal{background:linear-gradient(180deg, rgba(91,255,167,.22), rgba(5,10,22,.96))}
.node-champion{background:linear-gradient(180deg, rgba(255,230,107,.38), rgba(45,22,5,.96));border-color:rgba(255,230,107,.85)}
.board-token{
  z-index:6;
  width:64px;
  transform:translate(-50%,-88%);
  image-rendering:pixelated;
  filter:drop-shadow(0 18px 14px rgba(0,0,0,.5));
  transition:left .45s ease,top .45s ease;
}
.board-status{
  position:absolute;z-index:6;left:18px;right:18px;bottom:18px;
  border-radius:22px;
  padding:14px 16px;
  background:rgba(2,8,18,.72);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
}
.board-status strong{color:#fff}
.board-status span{display:block;color:#c6d3ef;margin-top:4px}
.battlefield.stadium-arena{
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center!important;
}
.trainer-full img{
  min-height:104px;
  max-height:150px;
}
@media(max-width:980px){
  .main-mode-grid,.oak-lab-stage{grid-template-columns:1fr}
  .rogue-board{min-height:620px}
  .board-node{width:78px;height:70px}
  .starter-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}
}

/* Starter picker compact layout fix */
.starter-screen .league-head p{max-width:900px}
.starter-layout{grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr);align-items:start}
.starter-grid-wrap{max-height:620px;overflow:auto;padding:16px 16px 18px}
.starter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.starter-card{
  min-height:0;
  padding:12px;
  border-radius:20px;
  gap:8px;
}
.starter-thumb{
  display:grid;
  place-items:center;
  height:76px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.starter-card img{
  width:84px;
  height:84px;
  object-fit:contain;
  image-rendering:pixelated;
}
.starter-card strong{font-size:1rem;line-height:1.1}
.starter-card .type-pill-row{gap:5px}
.starter-card .type-pill{font-size:.67rem;padding:3px 8px}
.starter-card span:last-child{font-size:.75rem;line-height:1.3;color:#baccf4}
.starter-lab-card{padding:18px}
.starter-lab-figures{min-height:200px}
.oak-figure{height:148px}
.mime-figure{height:118px}
@media (max-width:1200px){
  .starter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
  .starter-layout{grid-template-columns:1fr}
  .starter-grid-wrap{max-height:none}
}
@media (max-width:720px){
  .starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .starter-thumb{height:68px}
  .starter-card img{width:72px;height:72px}
}


/* Starter picker hard override: prevent homepage hero card stacking from affecting lab starter buttons */
.starter-screen .starter-layout{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.starter-screen .starter-grid-wrap{
  max-height:620px;
  overflow:auto;
  padding:14px;
}
.starter-screen .starter-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;
  gap:10px!important;
  margin:0!important;
  align-items:stretch!important;
}
.starter-screen .starter-card{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  width:auto!important;
  max-width:none!important;
  aspect-ratio:auto!important;
  min-height:150px!important;
  height:auto!important;
  overflow:visible!important;
  transform:none!important;
  transform-origin:center!important;
  z-index:auto!important;
  padding:10px!important;
  border-radius:18px!important;
  gap:7px!important;
  align-content:start!important;
  text-align:left!important;
  background:linear-gradient(160deg,rgba(255,255,255,.095),rgba(255,255,255,.035))!important;
  box-shadow:0 12px 26px rgba(0,0,0,.22)!important;
}
.starter-screen .starter-card:hover,
.starter-screen .starter-card.is-selected{
  transform:translateY(-2px)!important;
  z-index:2!important;
}
.starter-screen .starter-card .starter-thumb{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  height:66px!important;
  width:100%!important;
  border-radius:14px!important;
  padding:4px!important;
  background:radial-gradient(circle at 50% 45%,rgba(255,230,107,.18),rgba(255,255,255,.045) 58%,rgba(255,255,255,.02))!important;
  border:1px solid rgba(255,255,255,.08)!important;
  overflow:hidden!important;
}
.starter-screen .starter-card img{
  position:relative!important;
  display:block!important;
  width:64px!important;
  height:64px!important;
  max-width:64px!important;
  max-height:64px!important;
  object-fit:contain!important;
  image-rendering:pixelated!important;
  filter:drop-shadow(0 10px 9px rgba(0,0,0,.48))!important;
}
.starter-screen .starter-card strong{
  font-size:.92rem!important;
  line-height:1.08!important;
  color:#fff!important;
}
.starter-screen .starter-card .type-pill-row{gap:4px!important;flex-wrap:wrap!important}
.starter-screen .starter-card .type-pill{font-size:.58rem!important;padding:3px 6px!important}
.starter-screen .starter-card span:last-child{
  position:static!important;
  display:block!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  background:transparent!important;
  color:#bac9eb!important;
  font-size:.68rem!important;
  line-height:1.25!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font-weight:800!important;
  backdrop-filter:none!important;
}
@media(max-width:980px){
  .starter-screen .starter-layout{grid-template-columns:1fr!important}
  .starter-screen .starter-grid-wrap{max-height:none!important}
}
@media(max-width:560px){
  .starter-screen .starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .starter-screen .starter-card{min-height:140px!important}
}

/* Battle Journey 1.1 progression pass */
.mode-card.mode-leaderboard{background:linear-gradient(145deg,rgba(255,230,107,.16),rgba(59,130,246,.12));}
.leaderboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}.leaderboard-card{border:1px solid rgba(255,255,255,.13);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));padding:18px}.leaderboard-card h3{margin:0 0 12px;color:#fff}.lb-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.08)}.lb-row:first-of-type{border-top:0}.lb-row strong{color:#fff}.lb-row span{color:#ffe66b;font-weight:900}.lb-row em{grid-column:1/-1;color:#aebee0;font-style:normal;font-size:.86rem}.journey-hud{width:min(520px,calc(100% - 28px));display:grid;gap:8px}.bag-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.bag-chip{border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;padding:7px 10px;font-size:.78rem;font-weight:900;cursor:pointer}.bag-chip:hover{border-color:rgba(255,230,107,.6);transform:translateY(-1px)}.journey-shop{position:absolute;right:18px;top:112px;z-index:9;width:min(320px,calc(100% - 36px));border:1px solid rgba(255,230,107,.28);border-radius:22px;background:rgba(4,9,19,.88);backdrop-filter:blur(14px);padding:14px;box-shadow:0 24px 60px rgba(0,0,0,.42);display:grid;gap:9px}.journey-shop strong{color:#ffe66b;text-transform:uppercase;letter-spacing:.08em}.journey-shop button{display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.07);color:#fff;padding:10px 12px;font-weight:900;cursor:pointer}.journey-shop button:hover{background:rgba(255,230,107,.14);border-color:rgba(255,230,107,.5)}.node-wild{background:linear-gradient(145deg,rgba(87,197,105,.42),rgba(7,21,11,.78))!important}.node-trainer{background:linear-gradient(145deg,rgba(91,151,255,.4),rgba(7,12,32,.78))!important}.node-mart{background:linear-gradient(145deg,rgba(255,190,74,.45),rgba(43,21,5,.78))!important}.node-heal{background:linear-gradient(145deg,rgba(255,95,118,.45),rgba(34,7,14,.78))!important}.node-event{background:linear-gradient(145deg,rgba(176,111,255,.45),rgba(23,7,40,.78))!important}.node-ferry{background:linear-gradient(145deg,rgba(94,218,255,.42),rgba(6,24,37,.78))!important}.party-inspector article small{display:block;grid-column:2/-1;color:#91a6ca;font-size:.72rem;line-height:1.35;margin-top:3px}.party-inspector article{align-items:start}.board-node small{font-size:.55rem;line-height:1.1;opacity:.78}.board-node span{line-height:1.05}.starter-card{max-width:160px}.starter-grid{justify-content:start}.starter-grid-wrap{max-height:560px;overflow:auto}.starter-layout{grid-template-columns:minmax(280px,.55fr) minmax(0,1.45fr)!important}.starter-lab-card{max-width:390px}.starter-lab-figures{min-height:160px!important}.oak-figure{height:138px!important}.mime-figure{height:108px!important}
@media(max-width:900px){.journey-shop{position:relative;top:auto;right:auto;margin:12px}.journey-hud{left:10px;right:10px}.starter-card{max-width:none}.starter-layout{grid-template-columns:1fr!important}.starter-lab-card{max-width:none}.starter-grid-wrap{max-height:none}}

/* Adventure 1.2 journey overhaul */
.rogue-board-shell{overflow:auto;max-height:82vh;}
.rogue-board{min-height:980px;min-width:1380px;background:
  radial-gradient(circle at 14% 24%,rgba(92,210,255,.13),transparent 18%),
  radial-gradient(circle at 68% 78%,rgba(255,230,107,.12),transparent 22%),
  linear-gradient(135deg,rgba(10,20,44,.94),rgba(4,8,18,.98));}
.board-node{width:86px;height:64px;margin:-32px 0 0 -43px;border-radius:18px;padding:7px 8px;box-shadow:0 12px 28px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,255,255,.045)}
.board-node small{font-size:.52rem;letter-spacing:.05em;line-height:1.1}.board-node span{font-size:.67rem;line-height:1.05;font-weight:950}.node-gym{background:linear-gradient(145deg,rgba(255,104,104,.35),rgba(82,20,20,.58))!important}.node-wild{background:linear-gradient(145deg,rgba(83,213,120,.3),rgba(14,67,42,.55))!important}.node-trainer{background:linear-gradient(145deg,rgba(105,162,255,.3),rgba(17,42,92,.55))!important}.node-mart{background:linear-gradient(145deg,rgba(255,214,74,.3),rgba(106,75,13,.57))!important}.node-heal{background:linear-gradient(145deg,rgba(255,104,170,.3),rgba(88,25,58,.55))!important}.node-legend{background:linear-gradient(145deg,rgba(183,122,255,.36),rgba(50,24,88,.64))!important}.node-transport,.node-ferry{background:linear-gradient(145deg,rgba(73,232,255,.32),rgba(12,77,97,.58))!important}.node-tournament,.node-shadow{background:linear-gradient(145deg,rgba(255,134,64,.34),rgba(92,39,12,.62))!important}.node-event,.node-mini{background:linear-gradient(145deg,rgba(177,255,117,.23),rgba(31,76,25,.56))!important}.node-champion{background:linear-gradient(145deg,rgba(255,230,107,.5),rgba(92,60,12,.72))!important;box-shadow:0 0 26px rgba(255,230,107,.28),0 18px 36px rgba(0,0,0,.38)!important}
.journey-hud{width:min(780px,calc(100% - 40px));left:20px;right:auto;bottom:18px;display:grid;gap:8px}.bag-row{display:flex;gap:6px;flex-wrap:wrap}.bag-chip{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:7px 10px;font-weight:850;font-size:.74rem;cursor:pointer}.bag-chip:hover{background:rgba(255,230,107,.16);border-color:rgba(255,230,107,.42)}
.journey-shop,.journey-transport,.trainer-progression{position:absolute;z-index:12;right:20px;bottom:18px;width:min(420px,calc(100% - 40px));border-radius:24px;border:1px solid rgba(255,255,255,.15);background:rgba(5,10,22,.88);backdrop-filter:blur(14px);box-shadow:0 24px 60px rgba(0,0,0,.45);padding:16px;display:grid;gap:10px;color:#eef5ff}.journey-transport{bottom:210px}.trainer-progression{left:20px;right:auto;bottom:142px;width:min(580px,calc(100% - 40px))}.journey-shop strong,.journey-transport strong,.trainer-progression strong{font-size:1.05rem;color:#ffe66b}.journey-shop button,.journey-transport button,.perk-row button{border:1px solid rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.075);color:#fff;padding:10px 12px;text-align:left;font-weight:900;display:flex;justify-content:space-between;gap:10px;cursor:pointer}.journey-shop button:hover,.journey-transport button:hover,.perk-row button:hover{border-color:rgba(255,230,107,.45);background:rgba(255,230,107,.12)}.journey-transport p{margin:0;color:#b8c5e2}.perk-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.perk-row button{display:grid;gap:2px}.perk-row button:disabled{opacity:.45;cursor:not-allowed}.perk-row small{color:#bac8e4;font-weight:700;line-height:1.25}.trainer-progression>span,.trainer-progression>em{color:#b9c8e5;font-size:.84rem}.board-party article small{display:block;color:#92a8ce;font-size:.72rem;margin-top:3px;line-height:1.25}.board-party{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:16px}.board-party article{min-height:92px}
.journey-battle-menu{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:6px}.journey-battle-menu button{border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.08);color:#f8fbff;padding:11px 12px;font-weight:950;cursor:pointer}.journey-battle-menu button.is-active,.journey-battle-menu button:hover{background:rgba(255,230,107,.16);border-color:rgba(255,230,107,.45);color:#fff}.battle-bag-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.battle-bag-panel button{border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.08);color:#fff;padding:12px;text-align:left;font-weight:950;display:flex;justify-content:space-between;gap:8px}.battle-bag-panel button:disabled{opacity:.45}.battle-bag-panel small{grid-column:1/-1;color:#b9c8e5}.move-button:disabled,.switch-button:disabled{opacity:.5}.battle-console.refined-console{grid-template-columns:1.05fr .86fr 1.08fr}.battle-log{min-height:180px}
.pokemon-stage img{image-rendering:pixelated}.combat-card .type-pill{font-size:.62rem}.battlefield.stadium-arena{image-rendering:auto}.arena-line{opacity:.22}.region-label{font-size:.58rem;opacity:.78}
@media(max-width:900px){.rogue-board{min-width:1120px;min-height:980px}.journey-shop,.journey-transport,.trainer-progression{position:sticky;left:16px;right:auto;bottom:auto;margin:12px;width:calc(100% - 32px)}.journey-battle-menu{grid-template-columns:repeat(2,1fr)}.battle-console.refined-console{grid-template-columns:1fr}.perk-row{grid-template-columns:1fr}}

/* Adventure 1.3 real journey patch */
.journey-hud strong::after{content:' · Adventure 1.3';color:#ffe66b;font-size:.78rem;margin-left:.35rem;}
.journey-battle-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px;grid-column:1/-1;}
.journey-battle-menu button{border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.075);color:#fff;font-weight:900;padding:10px 12px;cursor:pointer;}
.journey-battle-menu button.is-active{background:linear-gradient(135deg,#ffe66b,#ffbf54);color:#101520;}
.battle-bag-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-column:1/-1;}
.battle-bag-panel button{border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-weight:900;padding:10px 12px;display:flex;justify-content:space-between;}
.battle-bag-panel small{grid-column:1/-1;color:#bfd0f0;}

/* Adventure 1.4 map readability patch */
.map-screen .league-head{align-items:flex-start;gap:18px}
.journey-map-toolbar{position:sticky;top:72px;z-index:30;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin:14px 0 12px;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(5,10,22,.86);backdrop-filter:blur(14px);box-shadow:0 18px 42px rgba(0,0,0,.24)}
.map-region-tabs,.map-view-controls{display:flex;gap:8px;flex-wrap:wrap}.map-region-tabs .button,.map-view-controls .button{font-size:.78rem;padding:8px 11px;min-height:34px}.journey-map-hud{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,.9fr);gap:14px;margin:0 0 14px}.journey-hud-card,.journey-map-hud .trainer-progression{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;width:auto!important;max-width:none!important;border-radius:22px;border:1px solid rgba(255,255,255,.13);background:linear-gradient(145deg,rgba(7,14,28,.92),rgba(4,8,18,.88));backdrop-filter:blur(14px);padding:14px 16px;box-shadow:0 18px 48px rgba(0,0,0,.28)}
.journey-hud-card{display:grid;gap:7px}.journey-hud-card strong{font-size:1.05rem;color:#ffe66b}.journey-hud-card span{color:#c4d1ee}.bag-row{display:flex;flex-wrap:wrap;gap:8px}.bag-chip{border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;padding:7px 10px;font-weight:850;font-size:.78rem}.rogue-board-shell{position:relative!important;overflow:auto!important;max-height:74vh!important;min-height:640px!important;border-radius:34px!important;padding:0!important;background:linear-gradient(145deg,rgba(255,230,107,.12),rgba(94,218,255,.08)),rgba(5,10,22,.92)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 34px 85px rgba(0,0,0,.38)!important;cursor:grab;scrollbar-width:auto}.rogue-board-shell.is-dragging{cursor:grabbing;user-select:none}.rogue-board-shell:before{content:'Drag empty space to pan · scroll to move around · use filters above';position:sticky;left:14px;top:14px;z-index:40;display:inline-block;margin:14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(4,8,18,.78);backdrop-filter:blur(12px);color:#d7e4ff;font-size:.78rem;font-weight:900;letter-spacing:.02em;padding:8px 12px;pointer-events:none}.rogue-board{--map-zoom:.72;width:calc(2600px * var(--map-zoom))!important;height:calc(1650px * var(--map-zoom))!important;min-width:calc(2600px * var(--map-zoom))!important;min-height:calc(1650px * var(--map-zoom))!important;max-width:none!important;max-height:none!important;border-radius:0!important;overflow:visible!important;background:radial-gradient(circle at 13% 54%,rgba(50,212,138,.22),transparent 18%),radial-gradient(circle at 42% 54%,rgba(135,225,105,.18),transparent 18%),radial-gradient(circle at 60% 82%,rgba(255,191,80,.2),transparent 16%),radial-gradient(circle at 80% 38%,rgba(113,183,255,.22),transparent 18%),radial-gradient(circle at 90% 62%,rgba(72,220,142,.18),transparent 16%),linear-gradient(145deg,#071427,#0a1024 50%,#071020)!important;position:relative!important;transform:none!important}.journey-map-bg{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:70px 70px;opacity:.9;pointer-events:none}.region-label{position:absolute;z-index:2;padding:8px 14px;border-radius:999px;background:rgba(5,10,22,.72);border:1px solid rgba(255,255,255,.14);color:#e9f2ff;font-weight:950;text-transform:uppercase;letter-spacing:.12em;font-size:.76rem;box-shadow:0 14px 34px rgba(0,0,0,.28)}.region-kanto{left:8%;top:42%}.region-johto{left:17%;top:70%}.region-hoenn{left:11%;top:12%}.region-sinnoh{left:74%;top:3%}.region-unova{left:10%;top:31%}.region-sevii{left:83%;top:76%}.region-orre{left:49%;top:89%}.board-lines{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1!important;pointer-events:none}.board-lines line{stroke:rgba(255,224,91,.55)!important;stroke-width:.45!important;stroke-dasharray:1.3 1.8!important;stroke-linecap:round}.board-node{width:82px!important;min-height:54px!important;height:auto!important;border-radius:15px!important;padding:7px 7px!important;display:grid!important;place-items:center!important;gap:2px!important;text-align:center!important;transform:translate(-50%,-50%)!important;background:linear-gradient(155deg,rgba(24,42,72,.94),rgba(10,16,33,.92))!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 10px 24px rgba(0,0,0,.34)!important;color:#f6fbff!important;line-height:1.05!important}.board-node:hover{transform:translate(-50%,-50%) scale(1.12)!important;z-index:20!important}.board-node small{font-size:.52rem!important;text-transform:uppercase;letter-spacing:.06em;color:#95a9cc!important;line-height:1.1!important}.board-node span{font-size:.68rem!important;font-weight:950!important;line-height:1.05!important}.board-node em{font-style:normal;font-size:.5rem;color:#7f93b8}.board-node.is-dimmed{opacity:.15!important;filter:grayscale(.9)!important}.board-node.is-locked{opacity:.24!important}.board-node.is-current{border-color:#ffe66b!important;box-shadow:0 0 0 2px rgba(255,230,107,.18),0 0 32px rgba(255,230,107,.22),0 12px 28px rgba(0,0,0,.4)!important;z-index:16!important}.node-wild{border-color:rgba(103,230,126,.45)!important}.node-trainer{border-color:rgba(91,190,255,.45)!important}.node-gym{border-color:rgba(255,210,91,.62)!important;background:linear-gradient(155deg,rgba(55,36,84,.95),rgba(20,15,38,.94))!important}.node-legend{border-color:rgba(202,146,255,.7)!important;background:linear-gradient(155deg,rgba(51,35,80,.95),rgba(15,13,30,.94))!important}.node-transport{border-color:rgba(91,214,255,.6)!important}.node-mart{border-color:rgba(120,255,170,.55)!important}.node-heal{border-color:rgba(120,224,255,.65)!important}.node-tournament,.node-shadow{border-color:rgba(255,150,91,.62)!important}.board-token{width:48px!important;z-index:25!important;filter:drop-shadow(0 12px 12px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(255,230,107,.42))!important}.journey-shop,.journey-transport{position:absolute!important;z-index:50!important;right:24px!important;top:24px!important;bottom:auto!important;left:auto!important;width:min(360px,calc(100% - 48px))!important}.journey-shop button,.journey-transport button{border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;margin-top:8px;padding:10px 12px;display:flex;justify-content:space-between;width:100%;font-weight:850}.board-party{margin-top:18px}.board-party article small{display:block;color:#95a9cc;margin-top:3px;line-height:1.35}.map-screen .party-inspector{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
@media(max-width:900px){.journey-map-toolbar{position:relative;top:auto;display:grid}.journey-map-hud{grid-template-columns:1fr}.rogue-board-shell{max-height:70vh!important;min-height:540px!important}.rogue-board{--map-zoom:.66;width:calc(2350px * var(--map-zoom))!important;height:calc(1600px * var(--map-zoom))!important;min-width:calc(2350px * var(--map-zoom))!important;min-height:calc(1600px * var(--map-zoom))!important}.board-node{width:78px!important}.journey-shop,.journey-transport{position:sticky!important;left:16px!important;right:auto!important;top:56px!important}}


/* Adventure 1.5 RPG Journey polish */
.nexus-menu-shell .menu-hero .eyebrow::after{content:" · Adventure 1.5 RPG JOURNEY LOADED";color:#9be7ff;margin-left:.25rem}
.journey-map-hud{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,.75fr);gap:14px;align-items:start;margin:14px 0}
.rpg-hud .lead-xp-row{display:grid;grid-template-columns:38px auto 1fr;gap:10px;align-items:center;margin:12px 0;padding:10px;border-radius:16px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1)}
.rpg-hud .lead-xp-row img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}
.rpg-xp{position:relative;height:18px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.rpg-xp span{position:absolute;inset:0;z-index:2;display:grid;place-items:center;font-size:.72rem;font-weight:900;color:#f8fbff;text-shadow:0 1px 3px #000}
.rpg-xp i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6fe58d,#8bd7ff,#ffe66b);box-shadow:0 0 18px rgba(139,215,255,.42);transition:width .35s ease}
.inventory-screen{border-radius:34px;padding:24px;background:radial-gradient(circle at 15% 10%,rgba(92,204,255,.13),transparent 26%),linear-gradient(145deg,rgba(9,18,39,.96),rgba(4,7,16,.98));border:1px solid rgba(255,255,255,.12)}
.rpg-inventory-layout{display:grid;grid-template-columns:1.05fr .8fr;gap:16px;align-items:start}
.rpg-character-card,.rpg-lead-card,.rpg-panel{border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(255,255,255,.055);padding:18px;box-shadow:0 22px 48px rgba(0,0,0,.25)}
.rpg-character-card{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center}
.trainer-portrait{height:140px;border-radius:20px;display:grid;place-items:center;background:radial-gradient(circle,rgba(255,230,107,.16),transparent 58%),rgba(5,12,27,.7)}
.trainer-portrait img{height:105px;image-rendering:pixelated;filter:drop-shadow(0 14px 12px rgba(0,0,0,.5))}
.rpg-lead-card{text-align:center}.rpg-lead-card img{height:126px;image-rendering:pixelated;filter:drop-shadow(0 18px 14px rgba(0,0,0,.48))}
.rpg-party-list{display:grid;gap:10px}.rpg-party-card{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(0,0,0,.16);padding:10px}.rpg-party-card.is-lead{border-color:rgba(255,230,107,.5)}
.rpg-party-card img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated}.rpg-party-card small{display:block;color:#b9c8e9;margin-top:4px}
.rpg-item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.rpg-item{border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.06);color:#fff;padding:12px;text-align:left;cursor:pointer}.rpg-item span{float:right;color:#ffe66b;font-weight:900}
.rpg-skill-tree .trainer-progression{margin-top:0;background:transparent;border:0;padding:0}.rpg-skill-tree .perk-row{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.party-inspector article .rpg-xp{margin-top:6px}
.battlefield.stadium-arena{background-size:cover!important;background-position:center!important}
.arena-nexus-route{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-route.svg')!important}
.arena-nexus-meadow{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-meadow.svg')!important}
.arena-nexus-forest{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),url('/assets/img/battle-bg/nexus-forest.svg')!important}
.arena-nexus-lake{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.26)),url('/assets/img/battle-bg/nexus-lake.svg')!important}
.arena-nexus-beach{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-beach.svg')!important}
.arena-nexus-canyon{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),url('/assets/img/battle-bg/nexus-canyon.svg')!important}
.arena-nexus-mountain{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.26)),url('/assets/img/battle-bg/nexus-mountain.svg')!important}
.arena-nexus-volcano{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.34)),url('/assets/img/battle-bg/nexus-volcano.svg')!important}
.arena-nexus-ice{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-ice.svg')!important}
.arena-nexus-desert{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-desert.svg')!important}
.arena-nexus-swamp{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.31)),url('/assets/img/battle-bg/nexus-swamp.svg')!important}
.arena-nexus-rainforest{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.3)),url('/assets/img/battle-bg/nexus-rainforest.svg')!important}
.arena-nexus-summit{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),url('/assets/img/battle-bg/nexus-summit.svg')!important}
.arena-nexus-ruins{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),url('/assets/img/battle-bg/nexus-ruins.svg')!important}
.arena-nexus-sakura{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-sakura.svg')!important}
.arena-nexus-night-woods{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.35)),url('/assets/img/battle-bg/nexus-night-woods.svg')!important}
.arena-nexus-gym,.arena-stadium{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-gym.svg')!important}
.arena-nexus-gym-water,.arena-stadium-water{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-gym-water.svg')!important}
.arena-nexus-gym-fire,.arena-stadium-fire{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-gym-fire.svg')!important}
.arena-nexus-colosseum,.arena-champion{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url('/assets/img/battle-bg/nexus-colosseum.svg')!important}
@media (max-width:900px){.journey-map-hud,.rpg-inventory-layout{grid-template-columns:1fr}.rpg-character-card{grid-template-columns:1fr}.rpg-hud .lead-xp-row{grid-template-columns:38px 1fr}.rpg-hud .lead-xp-row .rpg-xp{grid-column:1/-1}}

/* Adventure 1.6 map + RPG inventory cleanup */
.battle-main{max-width:1680px;margin-inline:auto}
.battle-app{max-width:none}
.map-screen{border-radius:34px;padding:22px;background:linear-gradient(145deg,rgba(6,14,30,.96),rgba(3,7,18,.98));border:1px solid rgba(255,255,255,.12)}
.map-screen .league-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:10px}.map-screen .league-head p{max-width:980px}.journey-map-toolbar{position:relative!important;top:auto!important;z-index:20!important;margin:12px 0!important}.journey-map-hud{grid-template-columns:1fr!important;margin:12px 0!important}.journey-map-hud .trainer-progression{display:none!important}.compact-journey-status{max-width:none!important}.rogue-board-shell{height:78vh!important;min-height:760px!important;max-height:none!important;overflow:auto!important;touch-action:none!important;cursor:grab!important;resize:vertical}.rogue-board-shell.is-dragging{cursor:grabbing!important}.rogue-board-shell:before{content:'Click + drag empty space to move the map · click nodes to travel · filter regions above';position:sticky;left:14px;top:14px;z-index:60;display:inline-block;margin:12px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(3,7,18,.82);color:#eaf3ff;font-size:.78rem;font-weight:900;padding:8px 12px;pointer-events:none}.rogue-board{--map-zoom:1;width:2500px!important;height:1550px!important;min-width:2500px!important;min-height:1550px!important;background:radial-gradient(circle at 10% 50%,rgba(87,220,135,.18),transparent 18%),radial-gradient(circle at 35% 50%,rgba(88,180,255,.16),transparent 17%),radial-gradient(circle at 56% 74%,rgba(255,190,100,.17),transparent 16%),radial-gradient(circle at 75% 24%,rgba(160,200,255,.17),transparent 18%),radial-gradient(circle at 88% 55%,rgba(100,240,170,.15),transparent 16%),linear-gradient(145deg,#071427,#091228 48%,#060b18)!important}.board-lines line{stroke-width:.28!important;stroke:rgba(255,224,91,.36)!important;stroke-dasharray:1.2 2.8!important}.board-node{width:76px!important;min-height:46px!important;max-height:54px!important;padding:6px!important;border-radius:13px!important;opacity:.95}.board-node small{font-size:.48rem!important}.board-node span{font-size:.61rem!important}.board-node em{display:none!important}.board-node.is-hidden-region{display:none!important}.board-node:hover{z-index:100!important}.board-token{width:44px!important}.region-label{font-size:.66rem!important;padding:7px 12px!important;opacity:.7}.journey-controls-panel{margin:14px 0;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.055);padding:13px 15px;display:grid;gap:5px}.journey-controls-panel strong{color:#ffe66b;text-transform:uppercase;letter-spacing:.08em}.journey-controls-panel span{color:#c7d6f1;line-height:1.55}.rpg-inventory-panel{margin-top:14px;border:1px solid rgba(255,255,255,.13);border-radius:28px;background:radial-gradient(circle at 14% 10%,rgba(93,216,255,.1),transparent 24%),linear-gradient(145deg,rgba(9,18,39,.94),rgba(4,8,18,.96));padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.rpg-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.rpg-panel-head h3{font-size:1.5rem;margin:.1rem 0 0}.rpg-inventory-layout{grid-template-columns:minmax(320px,.8fr) minmax(260px,.55fr) minmax(360px,1.1fr)!important}.rpg-inventory-layout .rpg-panel:nth-last-child(1){grid-column:1/-1}.rpg-character-card,.rpg-lead-card,.rpg-panel{background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.028))!important}.rpg-lead-card h3{margin:.5rem 0}.rpg-item{min-height:58px}.rpg-skill-tree .trainer-progression{display:grid!important;position:relative!important;inset:auto!important;width:auto!important;box-shadow:none!important;backdrop-filter:none!important}.rpg-skill-tree .perk-row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}.compact-party{display:none!important}.journey-shop,.journey-transport{position:sticky!important;left:calc(100% - 390px)!important;top:54px!important;right:auto!important;margin:16px!important}@media(max-width:900px){.rogue-board-shell{height:68vh!important;min-height:560px!important}.rogue-board{width:1900px!important;height:1320px!important;min-width:1900px!important;min-height:1320px!important}.rpg-inventory-layout{grid-template-columns:1fr!important}.journey-map-toolbar{display:grid!important}.map-region-tabs,.map-view-controls{justify-content:flex-start}.board-node{width:72px!important}.rpg-character-card{grid-template-columns:1fr!important}}


/* Adventure 1.7 compact command map */
.rogue-board-shell{position:relative!important}
.journey-overlay-layer{position:absolute;top:18px;right:18px;z-index:90;display:flex;gap:12px;align-items:flex-start;pointer-events:none}
.journey-map-dock,.journey-map-window{pointer-events:auto}
.journey-map-dock{display:grid;gap:10px}
.journey-map-dock button{width:48px;height:48px;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(145deg,rgba(11,22,46,.95),rgba(6,11,24,.95));box-shadow:0 12px 28px rgba(0,0,0,.28);display:grid;place-items:center;color:#f7fbff;font-size:1.15rem;font-weight:900;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.journey-map-dock button:hover,.journey-map-dock button.is-active{transform:translateY(-2px);border-color:rgba(255,230,107,.64);box-shadow:0 0 0 1px rgba(255,230,107,.18),0 18px 34px rgba(0,0,0,.34)}
.journey-map-window{width:min(380px,calc(100vw - 180px));max-height:min(calc(78vh - 36px),680px);overflow:auto;border-radius:24px;padding:16px;background:linear-gradient(145deg,rgba(7,14,30,.97),rgba(4,8,18,.98));border:1px solid rgba(255,255,255,.14);box-shadow:0 28px 70px rgba(0,0,0,.38);backdrop-filter:blur(14px)}
.journey-map-window-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.journey-map-window-head h3{margin:.15rem 0 0;font-size:1.35rem}
.journey-map-window-body{display:grid;gap:14px}
.map-character-card{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center}
.trainer-portrait.small{width:96px;height:96px;border-radius:22px;padding:8px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.03));display:grid;place-items:center;border:1px solid rgba(255,255,255,.12)}
.trainer-portrait.small img{max-width:100%;max-height:100%}
.map-section{display:grid;gap:10px;padding:14px;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.028));border:1px solid rgba(255,255,255,.09)}
.map-section strong{color:#ffe66b;letter-spacing:.04em;text-transform:uppercase;font-size:.82rem}
.map-meta-list{display:flex;flex-wrap:wrap;gap:8px}
.map-meta-list span,.map-cash{display:inline-flex;align-items:center;min-height:34px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#dce8fb;font-size:.88rem}
.map-party-list{display:grid;gap:10px}
.map-party-row{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}
.map-party-row img{width:42px;height:42px;object-fit:contain}
.map-party-row strong{display:block;color:#f9fbff;font-size:.96rem;text-transform:none;letter-spacing:0}
.map-party-row span{display:block;color:#b6c8e6;font-size:.84rem;margin-top:2px}
.map-party-row .rpg-xp{margin-top:8px}
.map-empty-copy{color:#b7c8e5;margin:0}
.rpg-item-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.rpg-item.compact{min-height:54px;padding:10px 12px}
.journey-help-list{margin:0;padding-left:18px;display:grid;gap:8px;color:#d5e2f7;line-height:1.5}
.map-hud-note{display:block;color:#b7c7e2;font-style:normal;margin-top:10px;line-height:1.45}
.compact-note{margin-top:12px}
.compact-note span{font-size:.96rem}
@media (max-width: 1100px){.journey-map-window{width:min(340px,calc(100vw - 140px))}}
@media (max-width: 900px){.journey-overlay-layer{top:12px;right:12px;left:12px;justify-content:space-between}.journey-map-window{width:min(100%,360px);max-height:58vh}.journey-map-dock{gap:8px}.journey-map-dock button{width:44px;height:44px}.map-character-card{grid-template-columns:1fr}}

.battle-site-shell{width:min(1720px,calc(100% - 24px))}


/* Adventure 1.8 choice events and companions */
.choice-list{display:grid;gap:10px}
.choice-button{border:1px solid rgba(255,255,255,.12);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.03));color:#f8fbff;padding:12px 14px;text-align:left;cursor:pointer;display:grid;gap:4px}
.choice-button:hover{border-color:rgba(255,230,107,.55);transform:translateY(-1px)}
.choice-button b{font-size:.98rem}
.choice-button span{font-size:.84rem;color:#b9c8e9;line-height:1.45}
.story-choice p{color:#d5e3f8;line-height:1.55;margin:0}
.map-party-row img{image-rendering:pixelated}


/* Adventure 1.9 in-window map/menu/clickability refinement */
.battle-site-shell{width:min(1760px,calc(100% - 18px))!important}
.map-screen .league-head{margin-bottom:8px!important}
.map-screen .league-head p{max-width:1200px!important}
.journey-map-hud{display:none!important}
.compact-note,.inventory-screen .rpg-inventory-layout,.rpg-inventory-panel{display:none!important}
.rogue-board-shell{position:relative!important;height:82vh!important;min-height:780px!important;border-radius:30px!important;overflow:auto!important;touch-action:none!important;user-select:none!important;background:linear-gradient(145deg,rgba(5,14,28,.96),rgba(2,6,14,.98))!important}
.rogue-board-shell:before{content:'Drag empty map space to pan · click route nodes repeatedly · open menus with icons'!important;z-index:80!important;pointer-events:none!important}
.rogue-board{position:relative!important;width:2600px!important;height:1650px!important;min-width:2600px!important;min-height:1650px!important;background:radial-gradient(ellipse at 17% 48%,rgba(71,201,122,.30),transparent 18%),radial-gradient(ellipse at 32% 70%,rgba(95,165,245,.22),transparent 16%),radial-gradient(ellipse at 51% 82%,rgba(255,182,89,.22),transparent 15%),radial-gradient(ellipse at 73% 25%,rgba(141,178,255,.25),transparent 16%),radial-gradient(ellipse at 88% 60%,rgba(75,221,142,.24),transparent 16%),linear-gradient(145deg,#07182e,#081329 48%,#050915)!important}
.journey-map-bg{pointer-events:none!important;background-image:radial-gradient(circle at 18% 50%,rgba(60,255,135,.13),transparent 21%),radial-gradient(circle at 74% 24%,rgba(110,160,255,.12),transparent 20%),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;background-size:auto,auto,70px 70px,70px 70px!important}
.region-label,.board-lines,.journey-map-bg{pointer-events:none!important}.board-lines{z-index:1!important}.board-lines line{stroke:rgba(255,224,91,.42)!important;stroke-width:.36!important;stroke-dasharray:1.3 2.4!important}
.board-node{position:absolute!important;pointer-events:auto!important;z-index:35!important;cursor:pointer!important;touch-action:manipulation!important;width:88px!important;min-height:50px!important;max-height:none!important;opacity:1!important}
.board-node:hover,.board-node:focus-visible{z-index:120!important;outline:none!important;transform:translate(-50%,-50%) scale(1.13)!important;border-color:rgba(255,230,107,.72)!important;box-shadow:0 0 0 2px rgba(255,230,107,.18),0 20px 40px rgba(0,0,0,.4)!important}
.board-node.is-hidden-region{display:none!important}.board-node.is-open{filter:brightness(1.05)!important}.board-node.is-current{z-index:130!important}
.journey-overlay-layer{position:absolute!important;inset:18px!important;z-index:200!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;pointer-events:none!important}
.journey-map-status-card,.journey-map-menu-stack,.journey-map-window,.journey-map-dock{pointer-events:auto!important}
.journey-map-status-card{width:min(430px,42vw);border:1px solid rgba(255,255,255,.14);border-radius:22px;background:linear-gradient(145deg,rgba(5,12,26,.92),rgba(2,6,15,.88));box-shadow:0 20px 46px rgba(0,0,0,.32);backdrop-filter:blur(12px);padding:14px 16px;color:#eef5ff;display:grid;gap:8px}
.journey-map-status-card strong{color:#ffe66b;font-size:1rem}.journey-map-status-card span{color:#c1d1ef;font-size:.88rem}.journey-map-status-card .lead-xp-row{display:grid;grid-template-columns:40px 1fr;gap:8px;align-items:center}.journey-map-status-card img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}.journey-map-status-card .rpg-xp{grid-column:1/-1}
.journey-map-menu-stack{display:flex!important;align-items:flex-start!important;gap:12px!important;max-width:min(620px,52vw)!important}.journey-map-dock{flex:0 0 auto!important}.journey-map-window{flex:0 1 430px!important;width:min(430px,44vw)!important;max-height:calc(82vh - 52px)!important}
.journey-shop,.journey-transport{position:absolute!important;z-index:210!important;right:22px!important;top:92px!important;left:auto!important;bottom:auto!important;width:min(380px,calc(100% - 44px))!important;pointer-events:auto!important}
.trainer-progression{position:relative!important;inset:auto!important;width:auto!important}.rpg-skill-tree .trainer-progression,.journey-map-window .trainer-progression{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;padding:0!important}
.journey-map-toolbar{margin-bottom:10px!important}.map-region-tabs,.map-view-controls{gap:7px!important;flex-wrap:wrap!important}.map-region-tabs .button,.map-view-controls .button{padding:8px 11px!important;font-size:.78rem!important}
@media (max-width: 900px){.journey-overlay-layer{inset:12px!important}.journey-map-status-card{display:none!important}.journey-map-menu-stack{max-width:calc(100vw - 48px)!important}.journey-map-window{width:min(360px,calc(100vw - 100px))!important;max-height:62vh!important}.rogue-board-shell{height:72vh!important;min-height:620px!important}.rogue-board{width:2100px!important;height:1450px!important;min-width:2100px!important;min-height:1450px!important}}


/* Adventure 2.0 fixed in-window map: no visible scrollbars, no page scrolling during map */
body[data-battle-screen="map"]{overflow:hidden!important;}
body[data-battle-screen="map"] .battle-site-shell{height:100vh!important;width:min(1880px,calc(100% - 16px))!important;display:flex!important;flex-direction:column!important;}
body[data-battle-screen="map"] .site-header{flex:0 0 auto!important;margin-top:8px!important;margin-bottom:8px!important;}
body[data-battle-screen="map"] .battle-main{flex:1 1 auto!important;min-height:0!important;display:block!important;overflow:hidden!important;max-width:none!important;}
body[data-battle-screen="map"] .battle-hero,
body[data-battle-screen="map"] .battle-notes,
body[data-battle-screen="map"] .site-footer{display:none!important;}
body[data-battle-screen="map"] .battle-app{height:100%!important;min-height:0!important;display:block!important;overflow:hidden!important;}
body[data-battle-screen="map"] .map-screen{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto 1fr!important;gap:8px!important;padding:14px!important;overflow:hidden!important;}
body[data-battle-screen="map"] .map-screen .league-head{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;margin:0!important;gap:12px!important;}
body[data-battle-screen="map"] .map-screen .league-head h2{font-size:clamp(1.35rem,2.1vw,2.35rem)!important;margin:.05rem 0!important;}
body[data-battle-screen="map"] .map-screen .league-head p{display:none!important;}
body[data-battle-screen="map"] .journey-map-toolbar{margin:0!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;min-height:0!important;}
body[data-battle-screen="map"] .journey-map-toolbar .button{padding:6px 9px!important;font-size:.72rem!important;}
body[data-battle-screen="map"] .rogue-board-shell{height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;resize:none!important;border-radius:26px!important;position:relative!important;scrollbar-width:none!important;-ms-overflow-style:none!important;}
body[data-battle-screen="map"] .rogue-board-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
body[data-battle-screen="map"] .rogue-board-shell:before{content:'Drag empty space to pan the map · click nodes to travel · icons open menus'!important;position:absolute!important;top:12px!important;left:12px!important;z-index:230!important;margin:0!important;}
body[data-battle-screen="map"] .journey-overlay-layer{position:absolute!important;top:12px!important;right:12px!important;bottom:12px!important;left:12px!important;z-index:240!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;pointer-events:none!important;}
body[data-battle-screen="map"] .journey-map-status-card{width:min(380px,34vw)!important;padding:12px 14px!important;}
body[data-battle-screen="map"] .journey-map-menu-stack{margin-left:auto!important;max-width:min(560px,46vw)!important;display:flex!important;align-items:flex-start!important;gap:10px!important;}
body[data-battle-screen="map"] .journey-map-dock{display:grid!important;gap:8px!important;}
body[data-battle-screen="map"] .journey-map-dock button{width:44px!important;height:44px!important;border-radius:15px!important;font-size:1rem!important;}
body[data-battle-screen="map"] .journey-map-window{width:min(410px,38vw)!important;max-height:calc(100vh - 178px)!important;}
body[data-battle-screen="map"] .compact-note,
body[data-battle-screen="map"] .board-party,
body[data-battle-screen="map"] .rpg-inventory-panel{display:none!important;}
body[data-battle-screen="map"] .board-node{z-index:90!important;pointer-events:auto!important;}
body[data-battle-screen="map"] .board-lines,
body[data-battle-screen="map"] .journey-map-bg,
body[data-battle-screen="map"] .region-label{pointer-events:none!important;}
@media(max-width:1000px){body[data-battle-screen="map"] .journey-map-status-card{display:none!important}body[data-battle-screen="map"] .journey-map-menu-stack{max-width:calc(100vw - 64px)!important}body[data-battle-screen="map"] .journey-map-window{width:min(360px,calc(100vw - 96px))!important;max-height:calc(100vh - 164px)!important}}


/* Adventure 2.2 map interaction + lore layout patch */
body[data-battle-screen="map"] .battle-site-shell{width:min(1920px,calc(100% - 12px))!important}
body[data-battle-screen="map"] .rogue-board-shell{overflow:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important;cursor:grab!important;}
body[data-battle-screen="map"] .rogue-board-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
body[data-battle-screen="map"] .rogue-board-shell.is-dragging{cursor:grabbing!important;}
body[data-battle-screen="map"] .journey-overlay-layer{pointer-events:none!important;}
body[data-battle-screen="map"] .journey-map-status-card{pointer-events:none!important;}
body[data-battle-screen="map"] .journey-map-menu-stack,
body[data-battle-screen="map"] .journey-map-dock,
body[data-battle-screen="map"] .journey-map-dock button,
body[data-battle-screen="map"] .journey-map-window,
body[data-battle-screen="map"] .journey-map-window *,
body[data-battle-screen="map"] .choice-button,
body[data-battle-screen="map"] .rpg-item,
body[data-battle-screen="map"] .perk-row button{pointer-events:auto!important;}
body[data-battle-screen="map"] .journey-map-window{z-index:310!important;position:relative!important;}
body[data-battle-screen="map"] .journey-map-dock{z-index:320!important;position:relative!important;}
body[data-battle-screen="map"] .choice-button{position:relative!important;z-index:330!important;}
body[data-battle-screen="map"] .board-node{z-index:150!important;pointer-events:auto!important;will-change:transform!important;}
body[data-battle-screen="map"] .board-node:active{transform:translate(-50%,-50%) scale(1.07)!important;filter:brightness(1.22)!important;}
body[data-battle-screen="map"] .board-lines,
body[data-battle-screen="map"] .board-lines *,
body[data-battle-screen="map"] .journey-map-bg,
body[data-battle-screen="map"] .region-label,
body[data-battle-screen="map"] .board-token{pointer-events:none!important;}
/* Lore-inspired relative region placement: Japan-region cluster west/center, Unova far across the sea */
body[data-battle-screen="map"] .region-kanto{left:34%!important;top:48%!important;}
body[data-battle-screen="map"] .region-johto{left:24%!important;top:52%!important;}
body[data-battle-screen="map"] .region-sinnoh{left:39%!important;top:25%!important;}
body[data-battle-screen="map"] .region-hoenn{left:31%!important;top:72%!important;}
body[data-battle-screen="map"] .region-sevii{left:39%!important;top:64%!important;}
body[data-battle-screen="map"] .region-orre{left:10%!important;top:75%!important;}
body[data-battle-screen="map"] .region-unova{left:80%!important;top:46%!important;}
body[data-battle-screen="map"] .rogue-board{background:
  radial-gradient(ellipse at 30% 48%,rgba(73,210,133,.27),transparent 19%),
  radial-gradient(ellipse at 24% 54%,rgba(126,180,255,.16),transparent 16%),
  radial-gradient(ellipse at 39% 25%,rgba(180,215,255,.18),transparent 17%),
  radial-gradient(ellipse at 31% 72%,rgba(70,190,255,.18),transparent 14%),
  radial-gradient(ellipse at 10% 75%,rgba(255,183,92,.20),transparent 15%),
  radial-gradient(ellipse at 80% 46%,rgba(87,225,150,.25),transparent 17%),
  linear-gradient(145deg,#07182e,#081329 48%,#050915)!important;}
body[data-battle-screen="map"] .journey-map-bg{background-image:
  radial-gradient(ellipse at 50% 55%,rgba(64,120,190,.14),transparent 28%),
  linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;
  background-size:auto,70px 70px,70px 70px!important;}


/* Adventure 2.2 locked map size + click-safe HUD */
body[data-battle-screen="map"]{overflow:hidden!important;height:100vh!important;max-height:100vh!important;}
body[data-battle-screen="map"] .battle-site-shell{height:100vh!important;max-height:100vh!important;width:min(1900px,calc(100% - 12px))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
body[data-battle-screen="map"] .battle-main,body[data-battle-screen="map"] .battle-app{height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;}
body[data-battle-screen="map"] .map-screen{height:100%!important;max-height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;overflow:hidden!important;}
body[data-battle-screen="map"] .rogue-board-shell{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;resize:none!important;box-sizing:border-box!important;position:relative!important;touch-action:none!important;overscroll-behavior:none!important;}
body[data-battle-screen="map"] .rogue-board-shell:before{position:absolute!important;top:12px!important;left:12px!important;margin:0!important;z-index:250!important;pointer-events:none!important;}
body[data-battle-screen="map"] .rogue-board{position:relative!important;width:2600px!important;height:1650px!important;min-width:2600px!important;min-height:1650px!important;max-width:none!important;max-height:none!important;}
body[data-battle-screen="map"] .journey-overlay-layer{position:absolute!important;inset:14px!important;z-index:260!important;pointer-events:none!important;}
body[data-battle-screen="map"] .journey-map-status-card,body[data-battle-screen="map"] .journey-map-menu-stack,body[data-battle-screen="map"] .journey-map-dock,body[data-battle-screen="map"] .journey-map-window{pointer-events:auto!important;}
body[data-battle-screen="map"] .journey-map-window{max-height:calc(100vh - 185px)!important;overflow:auto!important;}
body[data-battle-screen="map"] .board-node{z-index:120!important;pointer-events:auto!important;}
body[data-battle-screen="map"] .board-lines,body[data-battle-screen="map"] .board-lines *,body[data-battle-screen="map"] .journey-map-bg,body[data-battle-screen="map"] .region-label,body[data-battle-screen="map"] .board-token{pointer-events:none!important;}
body[data-battle-screen="map"] .map-screen .league-head{flex:0 0 auto!important;}
body[data-battle-screen="map"] .journey-map-toolbar{flex:0 0 auto!important;}
@media (max-height: 820px){body[data-battle-screen="map"] .site-header{display:none!important;}body[data-battle-screen="map"] .map-screen{padding:10px!important;grid-template-rows:auto auto minmax(0,1fr)!important;}body[data-battle-screen="map"] .map-screen .league-head h2{font-size:1.45rem!important;}body[data-battle-screen="map"] .journey-map-window{max-height:calc(100vh - 150px)!important;}}


/* Adventure 2.3 region start + map image polish */
.region-screen{border-radius:34px;padding:24px;background:linear-gradient(145deg,rgba(6,14,30,.96),rgba(3,7,18,.98));border:1px solid rgba(255,255,255,.12)}
.region-start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:18px}
.region-start-card{border:1px solid rgba(255,255,255,.13);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));padding:14px;text-align:left;color:#f7fbff;display:grid;gap:10px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.region-start-card:hover,.region-start-card.is-selected{transform:translateY(-3px);border-color:rgba(255,230,107,.62);box-shadow:0 22px 46px rgba(0,0,0,.32)}
.region-start-card strong{font-size:1.1rem}.region-start-card em{font-style:normal;color:#b9c9e8;line-height:1.35}.region-mini-map{display:block;min-height:130px;border-radius:18px;background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.region-card-kanto .region-mini-map{background-image:url('/assets/img/region-maps/kanto.svg')}.region-card-johto .region-mini-map{background-image:url('/assets/img/region-maps/johto.svg')}.region-card-hoenn .region-mini-map{background-image:url('/assets/img/region-maps/hoenn.svg')}.region-card-sinnoh .region-mini-map{background-image:url('/assets/img/region-maps/sinnoh.svg')}.region-card-unova .region-mini-map{background-image:url('/assets/img/region-maps/unova.svg')}.region-card-sevii .region-mini-map{background-image:url('/assets/img/region-maps/sevii.svg')}.region-card-orre .region-mini-map{background-image:url('/assets/img/region-maps/orre.svg')}
.region-map-image{position:absolute;inset:7% 9%;z-index:0;opacity:.18;background-size:contain;background-repeat:no-repeat;background-position:center;filter:saturate(1.15) contrast(1.05);pointer-events:none}
.map-kanto{background-image:url('/assets/img/region-maps/kanto.svg')}.map-johto{background-image:url('/assets/img/region-maps/johto.svg')}.map-hoenn{background-image:url('/assets/img/region-maps/hoenn.svg')}.map-sinnoh{background-image:url('/assets/img/region-maps/sinnoh.svg')}.map-unova{background-image:url('/assets/img/region-maps/unova.svg')}.map-sevii{background-image:url('/assets/img/region-maps/sevii.svg')}.map-orre{background-image:url('/assets/img/region-maps/orre.svg')}
.region-label:not(.active-region-label){display:none!important}.active-region-label{left:50%!important;top:4%!important;transform:translateX(-50%);z-index:8!important;opacity:.92!important;font-size:.82rem!important;background:rgba(4,10,22,.78)!important}
.choice-button,.journey-map-window button,.journey-map-dock button,.region-start-card{pointer-events:auto!important}.story-choice{position:relative;z-index:150}.choice-list{display:grid;gap:10px}.choice-button{width:100%;text-align:left;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));color:#f7fbff;padding:12px 14px;display:grid;gap:4px;cursor:pointer}.choice-button:hover{border-color:rgba(255,230,107,.55);transform:translateY(-1px)}.choice-button b{font-size:.98rem}.choice-button span{font-size:.86rem;color:#c6d5ef;line-height:1.35}
.board-node.node-trainer small::after{content:' Battle';}.board-node.node-wild small::after{content:' Loop';}


/* Adventure 2.4 fixed in-window command dock + two-stage boot */
body[data-battle-screen="map"] .journey-window-frame{
  position:relative!important;
  height:calc(100vh - 230px)!important;
  min-height:640px!important;
  max-height:840px!important;
  overflow:hidden!important;
  border-radius:30px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  background:linear-gradient(145deg,rgba(5,14,28,.96),rgba(2,6,14,.98))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045),0 22px 80px rgba(0,0,0,.32)!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  resize:none!important;
  border-radius:inherit!important;
  cursor:grab!important;
  touch-action:none!important;
  overscroll-behavior:none!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging{cursor:grabbing!important;}
body[data-battle-screen="map"] .journey-window-frame .journey-overlay-layer{
  position:absolute!important;
  inset:14px!important;
  z-index:500!important;
  display:block!important;
  pointer-events:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-status-card{
  position:absolute!important;
  top:0!important;
  left:0!important;
  width:min(340px,35vw)!important;
  pointer-events:auto!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-menu-stack{
  position:absolute!important;
  top:0!important;
  right:0!important;
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:flex-start!important;
  gap:12px!important;
  max-width:min(620px,55vw)!important;
  pointer-events:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  display:grid!important;
  gap:8px!important;
  pointer-events:auto!important;
  z-index:520!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button{
  width:44px!important;
  height:44px!important;
  border-radius:15px!important;
  pointer-events:auto!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  width:min(430px,42vw)!important;
  max-height:calc(100vh - 280px)!important;
  overflow:auto!important;
  pointer-events:auto!important;
  z-index:515!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node{
  z-index:120!important;
  pointer-events:auto!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines,
body[data-battle-screen="map"] .journey-window-frame .board-lines *,
body[data-battle-screen="map"] .journey-window-frame .journey-map-bg,
body[data-battle-screen="map"] .journey-window-frame .region-label,
body[data-battle-screen="map"] .journey-window-frame .board-token{
  pointer-events:none!important;
}
@media(max-width:900px){
  body[data-battle-screen="map"] .journey-window-frame{height:72vh!important;min-height:560px!important;}
  body[data-battle-screen="map"] .journey-window-frame .journey-map-status-card{display:none!important;}
  body[data-battle-screen="map"] .journey-window-frame .journey-map-menu-stack{max-width:calc(100vw - 42px)!important;}
  body[data-battle-screen="map"] .journey-window-frame .journey-map-window{width:min(360px,calc(100vw - 100px))!important;max-height:58vh!important;}
}

.gameboy-boot-overlay.boot-v8{background:radial-gradient(circle at 50% 40%,rgba(130,232,135,.18),transparent 22%),linear-gradient(180deg,#03060d,#0d1625 60%,#020309)!important;}
.boot-shell-v8{width:min(880px,94vw)!important;border-radius:42px!important;padding:26px 32px 28px!important;}
.boot-screen-v8{min-height:470px!important;padding:28px!important;display:block!important;}
.boot-screen-v8:after{content:"";position:absolute;inset:28px;border-radius:18px;border:2px solid rgba(216,255,216,.22);box-shadow:inset 0 0 0 4px rgba(255,255,255,.08);pointer-events:none;z-index:2;}
.boot-phase{position:absolute;inset:38px;z-index:5;display:grid;place-items:center;text-align:center;opacity:0;transform:translateY(14px);transition:opacity .42s ease,transform .42s ease;pointer-events:none;}
.boot-v8.is-hardware .boot-phase-hardware,.boot-v8.is-title .boot-phase-title{opacity:1;transform:none;pointer-events:auto;}
.gb-wordmark{font-size:clamp(2.3rem,7vw,5.2rem);line-height:.88;font-weight:950;letter-spacing:.02em;color:#132b1b;text-shadow:2px 2px 0 #eaffd9,0 0 28px rgba(255,255,255,.5);}
.gb-color-badges{display:flex;gap:10px;margin-top:18px;justify-content:center}.gb-color-badges span{width:18px;height:18px;border-radius:999px;background:#ffe66b;box-shadow:0 0 18px rgba(255,230,107,.45)}.gb-color-badges span:nth-child(2){background:#79d9ff}.gb-color-badges span:nth-child(3){background:#ff6b7a}.gb-color-badges span:nth-child(4){background:#82e887}.gb-subcopy{font-size:1rem;font-weight:950;letter-spacing:.34em;color:#112719}.gb-startup-light{width:220px;height:10px;border-radius:999px;background:linear-gradient(90deg,transparent,#f4ffd5,transparent);animation:gbSweep 1.2s ease infinite;opacity:.8}.boot-title-card{display:grid;gap:6px;justify-items:center;transform:translateY(-18px)}.boot-title-card strong{font-size:clamp(2.5rem,7.2vw,5.8rem)!important;line-height:.84!important;color:#172e1b!important;text-shadow:2px 2px 0 #f1ffd8,0 0 22px rgba(255,255,255,.6)!important;letter-spacing:.03em!important}.boot-title-card em{font-style:normal!important;color:#ffe66b!important;background:#172e1b;border-radius:999px;padding:7px 14px;letter-spacing:.22em;font-weight:950!important;box-shadow:0 6px 0 rgba(0,0,0,.16)}.boot-v8 .boot-progress{left:50%!important;right:auto!important;bottom:78px!important;transform:translateX(-50%)!important;width:min(340px,54vw)!important}.boot-v8 .boot-status{left:50%!important;right:auto!important;bottom:98px!important;transform:translateX(-50%)!important;white-space:nowrap!important;text-align:center!important}.boot-v8 .boot-start{left:50%!important;right:auto!important;bottom:28px!important;transform:translateX(-50%)!important;min-width:180px!important}.boot-v8 .boot-cartridge{left:32px!important;right:auto!important;bottom:30px!important;transform:none!important}.boot-v8.is-hardware .boot-cartridge{display:none!important}.boot-v8.is-hardware .boot-start,.boot-v8.is-hardware .boot-progress,.boot-v8.is-hardware .boot-status{display:none!important}@keyframes gbSweep{50%{filter:brightness(1.8);transform:scaleX(1.08)}}

/* Adventure 3.0 world systems polish */
.node-pc { box-shadow: 0 0 0 2px rgba(130,190,255,.65), 0 0 22px rgba(90,160,255,.32); }
.node-daycare { box-shadow: 0 0 0 2px rgba(255,214,120,.75), 0 0 22px rgba(255,210,90,.28); }
.node-fishing { box-shadow: 0 0 0 2px rgba(80,220,255,.7), 0 0 22px rgba(40,170,255,.28); }
.node-farm { box-shadow: 0 0 0 2px rgba(120,255,150,.7), 0 0 22px rgba(80,220,120,.24); }
.node-mine,.node-dive { box-shadow: 0 0 0 2px rgba(190,150,100,.75), 0 0 22px rgba(190,125,70,.25); }
.node-raid { box-shadow: 0 0 0 2px rgba(255,80,110,.85), 0 0 32px rgba(255,30,90,.45); animation: raidPulse 1.35s ease-in-out infinite; }
@keyframes raidPulse { 0%,100% { transform: translate(-50%,-50%) scale(var(--node-scale,1)); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
.journey-map-window-wide { min-width: min(760px, 88vw); }
.world-action-row { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:.6rem; }
.companion-detail small { display:block; opacity:.82; margin-top:.25rem; }
.egg-icon { width:42px; height:42px; display:grid; place-items:center; font-size:1.6rem; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); }
.map-party-row > .button, .map-party-row button { margin-left:auto; white-space:nowrap; }
.rpg-item.compact[disabled], .choice-button[disabled], .world-action-row button[disabled] { opacity:.45; cursor:not-allowed; }
.node-raid small { color:#ffd3dc; }
.node-pc small,.node-daycare small,.node-fishing small,.node-farm small,.node-mine small,.node-dive small { color:#eaf6ff; }


/* Adventure 3.1 battle-field scale pass: bigger Pokémon, better field anchoring */
.battlefield.stadium-arena .pokemon-stage{
  pointer-events:none;
  overflow:visible;
}
.battlefield.stadium-arena .pokemon-stage img{
  image-rendering:pixelated;
  transform-origin:center bottom;
  transform:scale(1.34);
  max-width:260px;
  max-height:260px;
  width:auto;
  height:auto;
}
.battlefield.stadium-arena .player-stage{
  left:27%;
  bottom:24%;
  transform:translate(-50%,50%);
}
.battlefield.stadium-arena .player-stage img{
  transform:scale(1.42);
  max-width:286px;
  max-height:286px;
}
.battlefield.stadium-arena .enemy-stage{
  right:27%;
  top:41%;
  transform:translate(50%,-50%);
}
.battlefield.stadium-arena .enemy-stage img{
  transform:scale(1.34);
  max-width:266px;
  max-height:266px;
}
.battlefield.stadium-arena .enemy-trainer-full{
  right:6%;
  top:8%;
}
.battlefield.stadium-arena .player-trainer-full{
  left:7%;
  bottom:7%;
}
.battlefield.stadium-arena .enemy-info{
  left:38%;
  top:6%;
}
.battlefield.stadium-arena .player-info{
  right:4%;
  bottom:6%;
}
.battlefield.stadium-arena .sprite-lunge{animation:lungeAdventure31 .28s ease;}
.battlefield.stadium-arena .sprite-faint{filter:grayscale(1) brightness(.55)!important;opacity:.46!important;transform:translateY(28px) scale(1.14)!important;}
@keyframes lungeAdventure31{50%{transform:translateX(18px) scale(1.52)}}
@media (max-width:900px){
  .battlefield.stadium-arena .enemy-stage{right:26%;top:43%;}
  .battlefield.stadium-arena .player-stage{left:29%;bottom:27%;}
  .battlefield.stadium-arena .pokemon-stage img{transform:scale(1.18);}
  .battlefield.stadium-arena .player-stage img{transform:scale(1.24);}
}

/* Adventure 3.2 story event polish */
.story-choice-32 { border:1px solid rgba(255,230,107,.22); background:linear-gradient(145deg,rgba(255,230,107,.08),rgba(80,145,255,.06)); border-radius:18px; padding:14px; }
.story-choice-32 .story-impact { color:#f4e8aa; margin-top:.35rem; }
.story-meter-row { display:flex; flex-wrap:wrap; gap:.45rem; margin:.55rem 0 .7rem; }
.story-meter-row span { border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); border-radius:999px; padding:.28rem .55rem; font-size:.78rem; font-weight:800; color:#dce9ff; }
.story-choice-button { min-height:64px; }
.node-event.story-critical, .node-event.story-node { box-shadow:0 0 0 2px rgba(255,230,107,.75),0 0 24px rgba(255,193,80,.35); }


/* Adventure 3.3 Journey polish: Pokémon-like map paths, larger map viewport, focused battle space, companion battle UI */
body[data-battle-screen="map"] .journey-window-frame{
  height:calc(100vh - 138px)!important;
  min-height:660px!important;
  max-height:none!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#9bd577 0%,#6fb65c 48%,#4d914a 100%)!important;
  box-shadow:0 18px 60px rgba(0,0,0,.34), inset 0 0 0 3px rgba(255,255,255,.16)!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board{
  background:
    radial-gradient(circle at 18% 26%,rgba(255,244,174,.55) 0 2.5%,transparent 2.7%),
    radial-gradient(circle at 74% 24%,rgba(120,190,255,.35),transparent 18%),
    radial-gradient(circle at 31% 74%,rgba(88,151,69,.62),transparent 22%),
    linear-gradient(180deg,#8ed06f 0%,#78bc5f 42%,#5c9d55 100%)!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board:before,
body[data-battle-screen="map"] .journey-window-frame .journey-map-bg{
  background-image:
    radial-gradient(circle at 20% 72%,rgba(64,121,63,.35),transparent 13%),
    radial-gradient(circle at 48% 60%,rgba(244,226,154,.30),transparent 10%),
    radial-gradient(circle at 83% 72%,rgba(79,147,78,.36),transparent 14%)!important;
  mask-image:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines line{
  stroke:#d9bd73!important;
  stroke-width:1.55!important;
  stroke-linecap:round!important;
  stroke-dasharray:none!important;
  filter:drop-shadow(0 2px 0 rgba(96,67,28,.28)) drop-shadow(0 0 7px rgba(255,244,170,.32))!important;
  opacity:.95!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node{
  width:92px!important;
  height:74px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#fff7d6,#e7c878 52%,#b98543)!important;
  color:#2d2517!important;
  border:3px solid rgba(80,55,23,.55)!important;
  box-shadow:0 10px 0 rgba(75,49,24,.28),0 22px 35px rgba(0,0,0,.28)!important;
  text-shadow:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node span{font-size:.76rem!important;line-height:1.05!important;color:#2d2517!important;max-width:80px!important;display:block!important;margin:auto!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node small{color:#375c26!important;background:rgba(255,255,255,.55)!important;border-radius:999px!important;padding:1px 6px!important;}
body[data-battle-screen="map"] .journey-window-frame .node-wild{background:linear-gradient(180deg,#f9ffe1,#9ed36b 55%,#5d9d4b)!important;}
body[data-battle-screen="map"] .journey-window-frame .node-trainer{background:linear-gradient(180deg,#fff6d7,#f2b469 55%,#c66d44)!important;}
body[data-battle-screen="map"] .journey-window-frame .node-event{background:linear-gradient(180deg,#fff9cf,#ffd86b 55%,#d89a34)!important;}
body[data-battle-screen="map"] .journey-window-frame .node-fishing{background:linear-gradient(180deg,#dff8ff,#77d0ef 55%,#3f8bc1)!important;}
body[data-battle-screen="map"] .journey-window-frame .node-mine,
body[data-battle-screen="map"] .journey-window-frame .node-dive{background:linear-gradient(180deg,#efe0c2,#b4895a 55%,#6f4f36)!important;color:#fff!important;}
body[data-battle-screen="map"] .journey-window-frame .node-raid{background:linear-gradient(180deg,#ffe1e7,#ff6b81 55%,#942941)!important;color:#fff!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.is-cooling{filter:saturate(.55) brightness(.85)!important;opacity:.72!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.is-cooling small{color:#7d4b00!important;background:#fff0bc!important;}
body[data-battle-screen="map"] .journey-window-frame .story-route-test{box-shadow:0 10px 0 rgba(75,49,24,.28),0 0 0 4px rgba(255,235,120,.45),0 22px 35px rgba(0,0,0,.28)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-token{width:76px!important;filter:drop-shadow(0 12px 10px rgba(0,0,0,.45))!important;}

body[data-battle-screen="battle"]{
  height:100vh!important;
  overflow:hidden!important;
}
body[data-battle-screen="battle"] .battle-site-shell{
  width:min(1920px,calc(100% - 12px))!important;
  height:100vh!important;
  max-height:100vh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body[data-battle-screen="battle"] .battle-hero,
body[data-battle-screen="battle"] .battle-notes,
body[data-battle-screen="battle"] .site-footer{display:none!important;}
body[data-battle-screen="battle"] .site-header{margin-top:6px!important;margin-bottom:6px!important;flex:0 0 auto!important;}
body[data-battle-screen="battle"] .battle-main,
body[data-battle-screen="battle"] .battle-app{height:100%!important;min-height:0!important;overflow:hidden!important;display:block!important;}
body[data-battle-screen="battle"] .battle-screen{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:12px!important;
}
body[data-battle-screen="battle"] .battle-topbar{margin:0!important;}
body[data-battle-screen="battle"] .battle-topbar h2{font-size:clamp(1.6rem,3vw,2.7rem)!important;margin:.1rem 0!important;}
body[data-battle-screen="battle"] .battlefield.stadium-arena{
  height:100%!important;
  min-height:600px!important;
  max-height:none!important;
}
body[data-battle-screen="battle"] .battle-console{max-height:260px!important;overflow:hidden!important;}
.battlefield.stadium-arena .battle-trainer-main{display:grid;justify-items:center;gap:4px;}
.battlefield.stadium-arena .battle-trainer-main img{height:96px!important;image-rendering:pixelated;filter:drop-shadow(0 14px 12px rgba(0,0,0,.45));}
.battlefield.stadium-arena .battle-companion-line{display:flex;gap:3px;justify-content:center;align-items:flex-end;margin-top:-8px;max-width:240px;flex-wrap:wrap;}
.battlefield.stadium-arena .battle-companion-line img{height:54px!important;width:auto!important;image-rendering:pixelated;filter:drop-shadow(0 9px 8px rgba(0,0,0,.45));}
.battlefield.stadium-arena .enemy-trainer-full img{transform:scaleX(-1);transform-origin:center bottom;}
.battlefield.stadium-arena .player-trainer-full{left:4.5%!important;bottom:8%!important;max-width:260px!important;}
.battlefield.stadium-arena .enemy-trainer-full{right:5%!important;top:7%!important;max-width:210px!important;}
.battlefield.stadium-arena .player-stage{left:29%!important;bottom:24%!important;}
.battlefield.stadium-arena .enemy-stage{right:29%!important;top:43%!important;}
.battlefield.stadium-arena .pokemon-stage img{transform:scale(1.44)!important;}
.battlefield.stadium-arena .player-stage img{transform:scale(1.52)!important;}
@keyframes lungeAdventure31{50%{transform:translateX(18px) scale(1.62)}}
@media(max-width:900px){
  body[data-battle-screen="map"] .journey-window-frame{height:76vh!important;min-height:560px!important;}
  body[data-battle-screen="battle"] .site-header{display:none!important;}
  body[data-battle-screen="battle"] .battlefield.stadium-arena{min-height:560px!important;}
  .battlefield.stadium-arena .battle-companion-line img{height:42px!important;}
}


/* Adventure 3.4 movement-range map, bag categories, and battle clipping fixes */
body[data-battle-screen="map"] .battle-site-shell,
body[data-battle-screen="battle"] .battle-site-shell{width:min(1920px,calc(100% - 8px))!important;}
body[data-battle-screen="map"] .map-screen{grid-template-rows:auto auto minmax(0,1fr)!important;gap:8px!important;padding:10px!important;}
body[data-battle-screen="map"] .journey-window-frame{height:100%!important;min-height:0!important;max-height:none!important;width:100%!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board{width:3200px!important;height:2050px!important;min-width:3200px!important;min-height:2050px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node{width:86px!important;height:66px!important;max-height:none!important;overflow:visible!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node span{font-size:.7rem!important;max-width:76px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.is-out-of-range{filter:grayscale(.55) brightness(.66)!important;opacity:.58!important;box-shadow:0 7px 0 rgba(35,35,35,.3),0 16px 24px rgba(0,0,0,.24)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.is-out-of-range small{color:#5a5a5a!important;background:rgba(255,255,255,.62)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);width:max-content;max-width:300px;padding:9px 11px;border-radius:13px;background:rgba(4,8,18,.94);color:#f8fbff;border:1px solid rgba(255,230,107,.42);font-size:.72rem;line-height:1.35;font-weight:850;text-align:left;white-space:normal;text-shadow:none;box-shadow:0 16px 36px rgba(0,0,0,.42);z-index:2000;pointer-events:none;}
body[data-battle-screen="map"] .journey-window-frame .board-node[data-tooltip]:hover::before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);border:6px solid transparent;border-top-color:rgba(255,230,107,.42);z-index:2001;pointer-events:none;}
body[data-battle-screen="map"] .journey-window-frame .map-orre{transform:translateY(-7%)!important;background-position:center 38%!important;}
body[data-battle-screen="map"] .journey-window-frame .region-orre{top:62%!important;}
.movement-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,230,107,.24);background:linear-gradient(145deg,rgba(255,230,107,.12),rgba(90,160,255,.08));border-radius:16px;padding:11px 13px;margin-bottom:12px;}
.movement-summary strong{color:#ffe66b;}.movement-summary span{color:#d9e7ff;font-size:.86rem;font-weight:800;}
.bag-categories-panel{display:grid;gap:12px;}.bag-category-section{border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.045);padding:12px;}.bag-category-section h4{margin:0 0 9px;color:#ffe66b;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;}.bag-category-card{position:relative;}.bag-category-card small{display:block;color:#93a8ca;font-size:.7rem;margin-top:2px;}.categorized-battle-bag{max-height:32vh;overflow:auto;padding-right:4px;}.categorized-battle-bag .bag-categories-panel{gap:9px;}.categorized-battle-bag .bag-category-section{padding:9px;}.categorized-battle-bag .movement-summary{display:none;}
body[data-battle-screen="battle"] .battle-screen{grid-template-rows:auto minmax(0,1fr) minmax(220px,34vh)!important;}
body[data-battle-screen="battle"] .battle-console{max-height:34vh!important;min-height:220px!important;overflow:auto!important;padding-bottom:12px!important;scrollbar-width:thin!important;}
body[data-battle-screen="battle"] .move-grid{max-height:none!important;overflow:visible!important;padding-bottom:16px!important;}
body[data-battle-screen="battle"] .switch-grid{max-height:32vh!important;overflow:auto!important;padding-bottom:10px!important;}
body[data-battle-screen="battle"] .move-button{min-height:64px!important;}
@media(max-height:820px){body[data-battle-screen="battle"] .battle-screen{grid-template-rows:auto minmax(0,1fr) minmax(210px,38vh)!important;}body[data-battle-screen="battle"] .battle-console{max-height:38vh!important;min-height:210px!important;}body[data-battle-screen="map"] .map-screen .league-head{display:none!important;}body[data-battle-screen="map"] .journey-window-frame{height:100%!important;}}

/* Adventure 3.5 character creator, quest log, and wild-habitat polish */
.menu-save-panel35{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid rgba(255,230,107,.24);border-radius:24px;background:linear-gradient(145deg,rgba(255,230,107,.10),rgba(80,145,255,.08));padding:15px 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.menu-save-panel35 strong{display:block;color:#fff;font-size:1.05rem}.menu-save-panel35 p{margin:.25rem 0 0;color:#c7d6f3;display:grid;gap:2px}.menu-save-panel35 small{color:#91a6c8}.menu-save-actions35{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.trainer-picker-wrap{max-height:none!important}.trainer-cc35{display:grid;grid-template-columns:minmax(210px,.42fr) minmax(0,1fr);gap:16px;align-items:stretch}.trainer-cc-preview35,.trainer-cc-options35{border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(255,255,255,.045);padding:14px}.trainer-cc-stage35{min-height:210px;display:grid;place-items:center;gap:8px;border-radius:20px;background:radial-gradient(circle at 50% 34%,rgba(255,230,107,.18),transparent 36%),linear-gradient(180deg,rgba(6,14,31,.92),rgba(3,7,16,.96));box-shadow:inset 0 0 28px rgba(0,0,0,.25)}.trainer-cc-stage35 img{height:122px;image-rendering:pixelated;filter:drop-shadow(0 18px 14px rgba(0,0,0,.55));transform:scale(1.28)}.trainer-cc-stage35 b{color:#ffe66b}.trainer-cc-controls35{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}.trainer-cc-options35 label{display:grid;gap:7px;color:#ffe66b;font-weight:950;text-transform:uppercase;letter-spacing:.08em;font-size:.76rem}.trainer-cc-options35 select{width:100%;border-radius:15px;border:1px solid rgba(255,255,255,.16);background:#111b31;color:#fff;padding:12px;font-weight:850}.trainer-cc-strip35{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;max-height:188px;overflow:auto;margin-top:12px;padding-right:4px}.trainer-choice.mini{min-height:86px!important;border-radius:16px!important;padding:7px!important}.trainer-choice.mini img{height:44px!important}.trainer-choice.mini strong{font-size:.66rem!important;line-height:1.05}.trainer-cc-note35{margin:12px 0 0;color:#9fb0d0;font-size:.83rem;line-height:1.45}.quest-log35{display:grid;gap:14px}.quest-log35 section{display:grid;gap:9px}.quest-log35 h4{margin:0;color:#ffe66b;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}.quest-list35{display:grid;gap:10px}.quest-card35{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.052);padding:12px;overflow:hidden}.quest-card35 h4{font-size:.98rem;text-transform:none;letter-spacing:0;color:#fff;margin:2px 0}.quest-card35 p{margin:0;color:#c6d5f1;font-size:.84rem;line-height:1.38}.quest-card35 small,.quest-card35 em{display:block;color:#91a5c9;font-size:.76rem;font-style:normal;margin-top:5px}.quest-card35 i{display:block;height:6px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden;margin-top:8px}.quest-card35 i:before{content:"";display:block;width:var(--quest-pct);height:100%;border-radius:999px;background:linear-gradient(90deg,#7ee59b,#ffe66b)}.quest-card35.completed{opacity:.75;grid-template-columns:1fr}.quest-actions35{display:flex;flex-direction:column;gap:6px;align-self:center}.quest-actions35 .button{white-space:nowrap}.node-wildnest{background:linear-gradient(180deg,#ecffe1,#77d96c 52%,#287f43)!important;box-shadow:0 10px 0 rgba(37,91,44,.34),0 0 0 4px rgba(126,229,155,.35),0 22px 35px rgba(0,0,0,.28)!important}.node-wildnest small{color:#24572d!important;background:rgba(255,255,255,.72)!important}.node-wildnest span{color:#1f321d!important}body[data-battle-screen="map"] .journey-window-frame{height:100%!important;min-height:0!important;width:100%!important}body[data-battle-screen="map"] .map-screen{grid-template-rows:auto auto minmax(0,1fr)!important}.journey-map-dock button[data-map-menu="quests"]{background:linear-gradient(145deg,rgba(255,230,107,.18),rgba(106,179,255,.10))!important;border-color:rgba(255,230,107,.34)!important}@media(max-width:900px){.trainer-cc35{grid-template-columns:1fr}.menu-save-panel35{align-items:flex-start;flex-direction:column}.menu-save-actions35{justify-content:flex-start}.quest-card35{grid-template-columns:1fr}.quest-actions35{flex-direction:row;flex-wrap:wrap}}

/* Adventure 3.6 rival builder + widescreen Journey viewport */
body[data-battle-screen="menu"] .trainer-picker,
.trainer-picker{
  max-height:none!important;
  overflow:visible!important;
  padding-right:0!important;
}
.trainer-picker-wrap{
  overflow:visible!important;
}
.trainer-cc35,
.trainer-cc-options35,
.trainer-cc-strip35{
  max-height:none!important;
  overflow:visible!important;
}
.trainer-cc36{
  display:grid;
  grid-template-columns:minmax(240px,300px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.trainer-hero36,.trainer-main36,.rival-builder36{
  border:1px solid rgba(255,255,255,.13);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.026));
  padding:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.trainer-stage36{
  min-height:240px;
  display:grid;
  place-items:center;
  gap:8px;
  border-radius:22px;
  background:radial-gradient(circle at 50% 36%,rgba(255,230,107,.19),transparent 34%),linear-gradient(180deg,rgba(5,13,30,.95),rgba(2,6,15,.98));
  box-shadow:inset 0 0 32px rgba(0,0,0,.35);
}
.trainer-stage36 img{height:138px;image-rendering:pixelated;filter:drop-shadow(0 20px 15px rgba(0,0,0,.58));transform:scale(1.32)}
.trainer-stage36 b{color:#ffe66b;font-size:1.05rem}
.trainer-main36{display:grid;gap:14px;min-height:0;overflow:visible!important;}
.trainer-select-row36{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:14px;align-items:end;}
.trainer-select-row36 label{display:grid;gap:7px;color:#ffe66b;font-weight:950;text-transform:uppercase;letter-spacing:.08em;font-size:.76rem}
.trainer-select-row36 select,.rival-edit-grid36 select,.rival-edit-grid36 input{width:100%;border-radius:15px;border:1px solid rgba(255,255,255,.16);background:#111b31;color:#fff;padding:11px;font-weight:850;box-sizing:border-box}
.trainer-select-row36 p{color:#aebfdf;margin:0;line-height:1.4}
.trainer-strip36{display:grid;grid-template-columns:repeat(7,minmax(72px,1fr));gap:8px;overflow:visible!important;}
.trainer-strip36 .trainer-choice.mini{min-height:88px!important;max-height:none!important;}
.rival-builder36{display:grid;gap:14px;background:linear-gradient(145deg,rgba(255,230,107,.08),rgba(94,218,255,.05));}
.rival-builder-head36{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.rival-builder-head36 h3{margin:.1rem 0;font-size:1.2rem}.rival-builder-head36 p{margin:0;color:#c4d3ee;line-height:1.42;max-width:880px}
.rival-edit-list36{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;overflow:visible;}
.rival-edit-card36{border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(5,12,27,.62);padding:12px;display:grid;gap:10px;}
.rival-edit-head36{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;}
.rival-edit-head36 img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 10px 8px rgba(0,0,0,.45));}
.rival-edit-head36 strong{color:#fff;display:block}.rival-edit-head36 span{color:#b8c8e7;font-size:.82rem}
.rival-edit-grid36{display:grid;grid-template-columns:1fr;gap:9px}.rival-edit-grid36 label{display:grid;gap:5px;color:#ffe66b;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em}
.rival-edit-card36 small{color:#b9cae9;line-height:1.4}.rival-edit-card36 em{font-style:normal;color:#ffe7a0;font-size:.78rem;line-height:1.35}
.rival-card36 small{display:block;color:#90a4c8;margin-top:4px}.rival-card36 .button{margin-left:auto;white-space:nowrap;}
.journey-map-dock button[data-map-menu="rivals"]{background:linear-gradient(145deg,rgba(255,105,105,.2),rgba(255,230,107,.10))!important;border-color:rgba(255,150,105,.4)!important;}

body[data-battle-screen="map"] .battle-site-shell,
body[data-battle-screen="battle"] .battle-site-shell{
  width:min(1920px,calc(100vw - 8px))!important;
  max-width:none!important;
  margin-inline:auto!important;
}
body[data-battle-screen="map"] .battle-main,
body[data-battle-screen="map"] .battle-app,
body[data-battle-screen="map"] .map-screen{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  justify-self:stretch!important;
}
body[data-battle-screen="map"] .map-screen{
  padding:10px!important;
  margin:0!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
body[data-battle-screen="map"] .journey-window-frame{
  width:100%!important;
  min-width:0!important;
  height:calc(100vh - 126px)!important;
  min-height:640px!important;
  max-height:none!important;
  aspect-ratio:auto!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board{
  width:3650px!important;
  height:2060px!important;
  min-width:3650px!important;
  min-height:2060px!important;
}
body[data-battle-screen="map"] .journey-window-frame:after{
  content:'Widescreen Journey View';
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:520;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(4,8,18,.72);
  color:#eaf3ff;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:7px 10px;
}
body[data-battle-screen="map"] .journey-window-frame .board-node[data-tooltip]:hover::after{z-index:4000!important;}
@media(max-width:1100px){
  .trainer-cc36{grid-template-columns:1fr;}
  .trainer-select-row36{grid-template-columns:1fr;}
  .trainer-strip36{grid-template-columns:repeat(auto-fit,minmax(76px,1fr));}
  body[data-battle-screen="map"] .journey-window-frame{height:76vh!important;min-height:560px!important;}
}
@media(max-height:820px){
  body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 70px)!important;min-height:0!important;}
}

/* Adventure 3.7 clean cartography + route alignment */
body[data-battle-screen="map"] .battle-site-shell{width:min(1920px,calc(100vw - 8px))!important;max-width:none!important;}
body[data-battle-screen="map"] .map-screen{grid-template-rows:auto auto minmax(0,1fr)!important;gap:8px!important;padding:10px!important;}
body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 126px)!important;min-height:640px!important;width:100%!important;overflow:hidden!important;border-radius:28px!important;background:linear-gradient(145deg,rgba(4,8,18,.96),rgba(16,31,52,.9))!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;padding:0!important;border-radius:28px!important;background:rgba(4,8,18,.94)!important;cursor:default!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell:before{display:none!important;content:none!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board{position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;overflow:hidden!important;border-radius:28px!important;background:#73b761!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.14),inset 0 0 90px rgba(10,52,32,.22)!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board:before{display:none!important;content:none!important;}
.journey-map-bg37{position:absolute;inset:0;z-index:0;overflow:hidden;background:#79bd67;}
.journey-map-bg37:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 12px 18px,rgba(255,255,255,.14) 0 2px,transparent 2.5px),radial-gradient(circle at 42px 55px,rgba(49,122,43,.16) 0 2px,transparent 2.7px);background-size:58px 58px,74px 74px;opacity:.58;}
.journey-map-bg37:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,104,62,.16) 0 34%,transparent 34% 66%,rgba(255,255,255,.08) 66% 100%),radial-gradient(circle at 8% 10%,rgba(255,234,117,.35),transparent 8%),radial-gradient(circle at 92% 88%,rgba(69,158,216,.22),transparent 18%);mix-blend-mode:multiply;opacity:.7;}
.journey-map-bg37.map-kanto{background:linear-gradient(135deg,#79bd67,#69b35e 55%,#6eaa58);}
.journey-map-bg37.map-johto{background:linear-gradient(135deg,#78b764,#8bb75f 58%,#5c9e62);}
.journey-map-bg37.map-hoenn,.journey-map-bg37.map-sevii{background:linear-gradient(135deg,#78c36c 0 45%,#6cc0cc 45% 57%,#78c36c 57% 100%);}
.journey-map-bg37.map-sinnoh{background:linear-gradient(135deg,#91bd78,#aec8a4 58%,#d9ebf2);}
.journey-map-bg37.map-unova{background:linear-gradient(135deg,#73b96d,#6dab72 50%,#7084a8);}
.journey-map-bg37.map-orre{background:linear-gradient(135deg,#d8b56b,#c98f55 56%,#8c674f);}
.journey-map-bg37.map-world{background:linear-gradient(135deg,#6faa61,#71bc7e 50%,#5ea1bd);}
.region-title37{position:absolute;left:22px;top:18px;z-index:8;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:rgba(8,16,26,.64);backdrop-filter:blur(10px);padding:10px 14px;display:grid;gap:2px;box-shadow:0 14px 34px rgba(0,0,0,.24);pointer-events:none;}
.region-title37 strong{color:#fff;font-size:1.02rem;line-height:1;font-weight:950;}.region-title37 span{color:#ffe66b;text-transform:uppercase;letter-spacing:.1em;font-size:.67rem;font-weight:950;}
.board-lines37{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1!important;overflow:visible!important;}
.board-lines37 path{fill:none!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important;}
.board-lines37 .route-shadow37{stroke:rgba(75,51,23,.38)!important;stroke-width:18!important;transform:translate(1.1px,1.8px);filter:blur(.15px);}
.board-lines37 .route-road37{stroke:rgba(243,210,117,.86)!important;stroke-width:13!important;}
.board-lines37 .route-center37{stroke:rgba(255,245,166,.52)!important;stroke-width:2.25!important;stroke-dasharray:5 9!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37{z-index:5!important;position:absolute!important;width:104px!important;height:64px!important;min-width:104px!important;max-width:104px!important;margin:0!important;padding:7px 8px!important;transform:translate(-50%,-50%)!important;border-radius:22px!important;border:2px solid rgba(118,92,45,.55)!important;background:linear-gradient(180deg,#fff6cf 0%,#f5c468 57%,#b97937 100%)!important;color:#2c2114!important;text-shadow:none!important;box-shadow:0 9px 0 rgba(87,57,29,.42),0 20px 30px rgba(0,0,0,.25),inset 0 0 0 2px rgba(255,255,255,.2)!important;display:grid!important;align-content:center!important;justify-items:center!important;gap:1px!important;transition:transform .16s ease,filter .16s ease,opacity .16s ease!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37:hover{transform:translate(-50%,-50%) scale(1.075)!important;z-index:80!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 small{font-size:.58rem!important;line-height:1!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#486332!important;background:rgba(255,255,255,.66)!important;border-radius:999px!important;padding:2px 6px!important;max-width:88px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 span{font-size:.72rem!important;line-height:1.05!important;color:#2e2113!important;max-width:92px!important;display:block!important;margin:0!important;text-align:center!important;font-weight:950!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 em{display:none!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.is-current{border-color:#fff7a8!important;box-shadow:0 9px 0 rgba(87,57,29,.42),0 0 0 5px rgba(255,230,107,.45),0 24px 38px rgba(0,0,0,.3)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.is-out-of-range{filter:grayscale(.45) brightness(.72)!important;opacity:.66!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-wild,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-wildnest{background:linear-gradient(180deg,#f4ffe5,#95d869 58%,#4f9a48)!important;border-color:rgba(49,104,46,.65)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-fishing{background:linear-gradient(180deg,#e5fbff,#75d2ee 58%,#358bc6)!important;border-color:rgba(50,122,169,.65)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-mine,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-dive{background:linear-gradient(180deg,#efe1c7,#bc8f5d 58%,#70503a)!important;border-color:rgba(95,62,38,.7)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-heal{background:linear-gradient(180deg,#fff0f5,#ff9ab0 58%,#cf4d68)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-mart{background:linear-gradient(180deg,#fffbe0,#ffdc73 58%,#d49136)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-gym,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-tournament,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-shadow{background:linear-gradient(180deg,#fff0df,#ff9c67 58%,#c75a36)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-legend,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-raid,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-champion{background:linear-gradient(180deg,#fff1fb,#d18aff 58%,#7c3fc7)!important;color:#fff!important;border-color:rgba(255,255,255,.45)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-legend span,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-raid span,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37.node-champion span{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.45)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-token.map-token37{z-index:12!important;width:74px!important;max-width:74px!important;transform:translate(-50%,-100%)!important;margin:0!important;filter:drop-shadow(0 14px 10px rgba(0,0,0,.48))!important;image-rendering:pixelated!important;}
.world-atlas37{position:absolute;inset:0;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:18px;padding:72px 48px 44px;}
.atlas-card37{position:relative;border:2px solid rgba(255,255,255,.2);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.06));box-shadow:0 22px 52px rgba(0,0,0,.25),inset 0 0 0 2px rgba(255,255,255,.06);color:#fff;text-align:left;padding:22px;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;overflow:hidden;cursor:pointer;}
.atlas-card37:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 18%,rgba(255,230,107,.32),transparent 22%),radial-gradient(circle at 80% 80%,rgba(73,180,255,.22),transparent 24%);opacity:.9;}
.atlas-card37>*{position:relative;z-index:2}.atlas-card37 strong{font-size:clamp(1.15rem,2vw,2rem);line-height:1;font-weight:950}.atlas-card37 span{color:#d9e6ff;font-weight:850}.atlas-card37 em{font-style:normal;color:#ffe66b;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:950}.atlas-card37:hover{transform:translateY(-2px);border-color:rgba(255,230,107,.52);}
.atlas-card37.map-orre{background:linear-gradient(145deg,#d9a75c,#8a6246)!important}.atlas-card37.map-sevii,.atlas-card37.map-hoenn{background:linear-gradient(145deg,#74bf73,#539fbe)!important}.atlas-card37.map-sinnoh{background:linear-gradient(145deg,#91b985,#d5ecf6)!important}.atlas-card37.map-unova{background:linear-gradient(145deg,#6dad72,#6d7ca9)!important}
@media(max-width:1100px){.world-atlas37{grid-template-columns:repeat(2,minmax(0,1fr));padding:56px 24px 28px}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37{width:92px!important;min-width:92px!important;height:58px!important}.region-title37{top:12px;left:12px}}
@media(max-height:820px){body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 70px)!important;min-height:0!important}.world-atlas37{padding-top:44px;gap:12px}.atlas-card37{padding:16px}}


/* Adventure 3.8 spacious region maps */
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-shadow37{stroke-width:13!important;opacity:.72!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-road37{stroke-width:9!important;opacity:.9!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-center37{stroke-width:1.6!important;stroke-dasharray:4 10!important;opacity:.58!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37{width:96px!important;min-width:96px!important;max-width:96px!important;height:58px!important;border-radius:20px!important;padding:6px 7px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 small{font-size:.52rem!important;max-width:80px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 span{font-size:.66rem!important;max-width:84px!important;}
body[data-battle-screen="map"] .journey-window-frame:after{content:'Spacious Region View'!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title37 span{font-size:.62rem!important;}


/* Adventure 3.9 type-first starter lab */
.starter-type-lab39{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(360px,1fr);gap:18px;width:100%;}
.starter-type-grid39{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;align-content:start;}
.starter-type-card39{position:relative;min-height:92px;border-radius:18px;border:1px solid color-mix(in srgb,var(--type-color) 62%,rgba(255,255,255,.22));background:linear-gradient(145deg,color-mix(in srgb,var(--type-color) 26%,rgba(8,14,29,.96)),rgba(7,12,25,.92));box-shadow:inset 0 0 0 1px rgba(255,255,255,.045),0 16px 34px rgba(0,0,0,.23);padding:12px;color:#fff;text-align:left;cursor:pointer;display:grid;gap:5px;overflow:hidden;}
.starter-type-card39:before{content:"";position:absolute;right:-24px;top:-28px;width:84px;height:84px;border-radius:50%;background:var(--type-color);opacity:.18;}
.starter-type-card39:hover,.starter-type-card39.is-selected{transform:translateY(-2px);border-color:var(--type-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--type-color) 28%,transparent),0 20px 44px rgba(0,0,0,.32);}
.starter-type-card39 b{font-size:.98rem;text-transform:uppercase;letter-spacing:.08em;position:relative;z-index:1;}
.starter-type-card39 span{font-size:.72rem;color:#d7e4ff;line-height:1.25;position:relative;z-index:1;}
.starter-type-card39 em{font-style:normal;font-size:.68rem;color:#ffe66b;font-weight:900;position:relative;z-index:1;}
.starter-pool39{border:1px solid rgba(255,255,255,.12);border-radius:24px;background:radial-gradient(circle at 10% 0%,rgba(255,230,107,.12),transparent 28%),linear-gradient(145deg,rgba(10,19,38,.88),rgba(4,9,20,.96));padding:16px;display:grid;gap:14px;min-height:320px;}
.starter-pool-head39{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.starter-pool-head39 h3,.starter-empty39 h3{margin:.1rem 0 .3rem;color:#fff;font-size:1.4rem;}
.starter-pool-head39 p,.starter-empty39 p{margin:0;color:#c8d5ee;line-height:1.45;}
.starter-preview-strip39{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;}
.starter-preview-strip39 img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 5px rgba(0,0,0,.35));}
.starter-candidates-grid39{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;}
.starter-candidate39{min-height:164px!important;}
.starter-candidate39 .starter-thumb{min-height:74px;display:grid;place-items:center;}
.starter-candidate39 .starter-thumb img{max-height:78px;image-rendering:pixelated;transform:scale(1.18);filter:drop-shadow(0 12px 10px rgba(0,0,0,.45));}
.starter-empty39{place-content:center;text-align:center;}
@media(max-width:900px){.starter-type-lab39{grid-template-columns:1fr}.starter-pool-head39{display:grid}.starter-type-grid39{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));}}

/* Adventure 4.0 drag map + lore cartography */
body[data-battle-screen="map"] .map-screen{
  width:min(1500px,calc(100vw - 64px))!important;
  margin-inline:auto!important;
}
body[data-battle-screen="map"] .journey-window-frame{
  width:100%!important;
  height:min(78vh,840px)!important;
  min-height:660px!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  border-radius:30px!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell{
  overflow:auto!important;
  cursor:grab!important;
  touch-action:none!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging{cursor:grabbing!important;user-select:none!important;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board{
  width:max(1880px,150vw)!important;
  height:max(1060px,92vh)!important;
  min-width:max(1880px,150vw)!important;
  min-height:max(1060px,92vh)!important;
  border-radius:30px!important;
  overflow:hidden!important;
}
body[data-battle-screen="map"] .journey-window-frame:after{content:'Drag Empty Space To Pan · Lore Region Layout'!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-shadow37{stroke-width:11!important;opacity:.58!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-road37{stroke-width:7.5!important;opacity:.94!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines37 .route-center37{stroke-width:1.25!important;stroke-dasharray:3 9!important;opacity:.52!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37{width:92px!important;min-width:92px!important;max-width:92px!important;height:56px!important;border-radius:18px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 span{font-size:.63rem!important;max-width:80px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node37 small{font-size:.49rem!important;max-width:76px!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title37 strong{font-size:1.2rem!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title37 span{font-size:.68rem!important;}
@media(max-height:820px){
  body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 78px)!important;min-height:620px!important;}
}
@media(max-width:900px){
  body[data-battle-screen="map"] .map-screen{width:100%!important;}
  body[data-battle-screen="map"] .journey-window-frame{min-height:590px!important;height:72vh!important;}
  body[data-battle-screen="map"] .journey-window-frame .rogue-board{width:1500px!important;height:920px!important;min-width:1500px!important;min-height:920px!important;}
}

/* Adventure 4.2 strategy cartography: no scroll-board, true click-drag camera */
body[data-battle-screen="map"] .battle-site-shell{
  width:min(1780px,calc(100vw - 24px))!important;
  max-width:none!important;
}
body[data-battle-screen="map"] .map-screen{
  width:100%!important;
  max-width:none!important;
  padding:8px 10px 14px!important;
  gap:8px!important;
}
body[data-battle-screen="map"] .journey-map-toolbar{
  margin-bottom:0!important;
}
body[data-battle-screen="map"] .journey-window-frame{
  width:100%!important;
  height:min(82vh,900px)!important;
  min-height:700px!important;
  aspect-ratio:16/9!important;
  border-radius:32px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(3,7,16,.98),rgba(12,27,42,.94))!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 32px 90px rgba(0,0,0,.42),inset 0 0 0 1px rgba(255,255,255,.06)!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell{
  overflow:hidden!important;
  width:100%!important;
  height:100%!important;
  cursor:grab!important;
  touch-action:none!important;
  overscroll-behavior:none!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  background:rgba(4,8,18,.96)!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell::-webkit-scrollbar{
  display:none!important;width:0!important;height:0!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging42,
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging{
  cursor:grabbing!important;
  user-select:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board42{
  width:2920px!important;
  height:1640px!important;
  min-width:2920px!important;
  min-height:1640px!important;
  max-width:none!important;
  max-height:none!important;
  position:relative!important;
  overflow:hidden!important;
  border-radius:0!important;
  transform:translate3d(var(--pan-x42,0px),var(--pan-y42,0px),0)!important;
  transform-origin:0 0!important;
  will-change:transform!important;
  transition:none!important;
  box-shadow:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board42 *{
  -webkit-user-drag:none;
}
body[data-battle-screen="map"] .journey-window-frame:after{
  content:'Hold Left Click + Drag Empty Space To Pan'!important;
  left:18px!important;
  bottom:18px!important;
  background:rgba(4,8,18,.78)!important;
  border-color:rgba(255,230,107,.28)!important;
}
.strategy-bg42{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.strategy-bg42:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:
    radial-gradient(circle at 22px 22px,rgba(255,255,255,.12) 0 2px,transparent 2.6px),
    radial-gradient(circle at 61px 71px,rgba(38,114,47,.16) 0 2.2px,transparent 2.8px),
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px)!important;
  background-size:74px 74px,112px 112px,168px 168px,168px 168px!important;
  opacity:.55!important;
}
.strategy-bg42:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 10% 12%,rgba(255,231,113,.34),transparent 8%),
    radial-gradient(circle at 82% 18%,rgba(86,180,255,.18),transparent 14%),
    radial-gradient(circle at 18% 82%,rgba(67,145,239,.2),transparent 13%),
    radial-gradient(circle at 88% 82%,rgba(255,210,99,.18),transparent 15%),
    linear-gradient(90deg,rgba(255,255,255,.07) 0 33%,transparent 33% 66%,rgba(10,76,56,.09) 66% 100%)!important;
  opacity:.72!important;
  mix-blend-mode:multiply!important;
}
.strategy-bg42.map-kanto{background:linear-gradient(135deg,#7fc56b 0%,#6bb760 58%,#6eaa5b 100%)!important;}
.strategy-bg42.map-johto{background:linear-gradient(135deg,#77b85f 0%,#8bc162 55%,#5f9e64 100%)!important;}
.strategy-bg42.map-hoenn{background:linear-gradient(135deg,#78c76e 0 42%,#6bc2d2 42% 58%,#7dc16b 58% 100%)!important;}
.strategy-bg42.map-sinnoh{background:linear-gradient(135deg,#8ebb79 0%,#b8cba5 55%,#dceff5 100%)!important;}
.strategy-bg42.map-unova{background:linear-gradient(135deg,#75bc6d 0%,#67a970 48%,#7385aa 100%)!important;}
.strategy-bg42.map-sevii-islands{background:linear-gradient(135deg,#6cc5b1 0%,#73c572 44%,#5faacf 44% 62%,#79bf68 62% 100%)!important;}
.strategy-bg42.map-orre{background:linear-gradient(135deg,#d7b05f 0%,#c98f54 50%,#8c6249 100%)!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title42{
  left:30px!important;
  top:26px!important;
  padding:12px 16px!important;
  border-radius:20px!important;
  z-index:70!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42{
  z-index:1!important;
  pointer-events:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42 .route-shadow37{
  stroke:rgba(79,55,25,.36)!important;
  stroke-width:10!important;
  opacity:.48!important;
  filter:blur(.15px)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42 .route-road37{
  stroke:rgba(238,204,117,.88)!important;
  stroke-width:7!important;
  opacity:.9!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42 .route-center37{
  stroke:rgba(255,250,185,.55)!important;
  stroke-width:1.1!important;
  stroke-dasharray:3 9!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42 .route-side42.route-shadow37{
  stroke-width:5!important;
  opacity:.32!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines42 .route-side42.route-road37{
  stroke-width:3.5!important;
  opacity:.52!important;
  stroke-dasharray:2 8!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node42{
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  height:62px!important;
  border-radius:18px!important;
  padding:6px 8px!important;
  z-index:12!important;
  box-shadow:0 8px 0 rgba(82,56,28,.42),0 18px 26px rgba(0,0,0,.22),inset 0 0 0 2px rgba(255,255,255,.18)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node42:hover{
  z-index:120!important;
  transform:translate(-50%,-50%) scale(1.08)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node42 span{
  font-size:.67rem!important;
  max-width:92px!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node42 small{
  font-size:.5rem!important;
  max-width:88px!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node42[data-tooltip]:hover::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 12px);
  transform:translateX(-50%);
  width:max-content;
  max-width:260px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(5,10,20,.94);
  color:#f7fbff;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 16px 32px rgba(0,0,0,.3);
  font-size:.74rem;
  line-height:1.25;
  z-index:5000;
  pointer-events:none;
  white-space:normal;
}
body[data-battle-screen="map"] .journey-window-frame .board-token.map-token42{
  width:78px!important;
  max-width:78px!important;
  z-index:140!important;
  pointer-events:none!important;
}
body[data-battle-screen="map"] .journey-hud-card .map-hud-note{
  color:#d9e8ff!important;
}
@media(max-height:860px){
  body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 76px)!important;min-height:620px!important;}
}
@media(max-width:900px){
  body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board42{
    width:2300px!important;height:1320px!important;min-width:2300px!important;min-height:1320px!important;
  }
  body[data-battle-screen="map"] .journey-window-frame{height:72vh!important;min-height:560px!important;}
}


/* Adventure 4.3 pinned UI and painted widescreen strategy map */
body[data-battle-screen="map"] .battle-site-shell{width:min(1840px,calc(100vw - 22px))!important;max-width:none!important}
body[data-battle-screen="map"] .map-screen{width:100%!important;max-width:none!important;padding:8px 10px 16px!important;gap:10px!important}
body[data-battle-screen="map"] .journey-map-toolbar{position:sticky!important;top:76px!important;z-index:12000!important;margin:8px 0!important;border-radius:22px!important;background:rgba(5,10,22,.9)!important;backdrop-filter:blur(16px)!important;box-shadow:0 18px 40px rgba(0,0,0,.32)!important}
body[data-battle-screen="map"] .journey-map-hud{position:relative!important;z-index:60!important;margin-bottom:10px!important}
body[data-battle-screen="map"] .journey-window-frame{position:relative!important;width:100%!important;height:min(84vh,940px)!important;min-height:720px!important;aspect-ratio:16/9!important;overflow:hidden!important;border-radius:34px!important;background:linear-gradient(145deg,#050a14,#102033)!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 34px 92px rgba(0,0,0,.44),inset 0 0 0 1px rgba(255,255,255,.08)!important}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;padding:0!important;border-radius:34px!important;background:#07101d!important;cursor:grab!important;touch-action:none!important;overscroll-behavior:none!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging43,body[data-battle-screen="map"] .journey-window-frame .rogue-board-shell.is-dragging{cursor:grabbing!important;user-select:none!important}
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board43{position:absolute!important;left:0!important;top:0!important;width:3400px!important;height:1920px!important;min-width:3400px!important;min-height:1920px!important;max-width:none!important;max-height:none!important;overflow:hidden!important;border-radius:0!important;transform:translate3d(var(--pan-x43,0px),var(--pan-y43,0px),0)!important;transform-origin:0 0!important;will-change:transform!important;transition:none!important;box-shadow:none!important;background:#7ec66c!important}
body[data-battle-screen="map"] .journey-window-frame .journey-overlay-layer{position:absolute!important;inset:0!important;z-index:10000!important;pointer-events:none!important;transform:none!important;overflow:visible!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-status-card{position:absolute!important;left:18px!important;top:18px!important;right:auto!important;bottom:auto!important;z-index:10020!important;width:min(430px,calc(100% - 36px))!important;pointer-events:auto!important;border-radius:22px!important;background:rgba(4,8,18,.86)!important;border:1px solid rgba(255,255,255,.16)!important;backdrop-filter:blur(14px)!important;box-shadow:0 18px 44px rgba(0,0,0,.32)!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-menu-stack{position:absolute!important;right:18px!important;top:18px!important;left:auto!important;bottom:auto!important;z-index:10030!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:10px!important;width:min(620px,calc(100% - 36px))!important;pointer-events:none!important;transform:none!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock{pointer-events:auto!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;max-width:100%!important;padding:8px!important;border-radius:24px!important;background:rgba(4,8,18,.82)!important;border:1px solid rgba(255,255,255,.16)!important;backdrop-filter:blur(14px)!important;box-shadow:0 18px 44px rgba(0,0,0,.28)!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button{width:50px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.14)!important;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.04))!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button span{font-size:1.18rem!important;line-height:1!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button small{display:none!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button.is-active{border-color:rgba(255,230,107,.6)!important;background:linear-gradient(145deg,rgba(255,230,107,.24),rgba(106,179,255,.12))!important}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window{pointer-events:auto!important;position:relative!important;margin:0!important;width:min(560px,100%)!important;max-height:min(690px,calc(84vh - 130px))!important;overflow:auto!important;border-radius:26px!important;background:rgba(4,8,18,.9)!important;border:1px solid rgba(255,255,255,.17)!important;box-shadow:0 28px 70px rgba(0,0,0,.42)!important;backdrop-filter:blur(16px)!important}
body[data-battle-screen="map"] .journey-window-frame:after{content:'Pinned UI · Drag Empty Map Space To Pan'!important;position:absolute!important;left:18px!important;bottom:18px!important;z-index:10010!important;border:1px solid rgba(255,230,107,.28)!important;border-radius:999px!important;background:rgba(4,8,18,.78)!important;color:#f4f8ff!important;padding:8px 12px!important;font-size:.76rem!important;font-weight:950!important;letter-spacing:.03em!important;pointer-events:none!important;backdrop-filter:blur(12px)!important}
.strategy-bg43{position:absolute!important;inset:0!important;z-index:0!important;overflow:hidden!important;pointer-events:none!important;background:#7ec66c!important}.strategy-bg43:before{content:""!important;position:absolute!important;inset:0!important;background-image:radial-gradient(circle at 18px 18px,rgba(255,255,255,.18) 0 2px,transparent 2.8px),radial-gradient(circle at 54px 62px,rgba(39,107,50,.16) 0 2.4px,transparent 3px),linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px)!important;background-size:72px 72px,112px 112px,190px 190px,190px 190px!important;opacity:.56!important}.strategy-bg43:after{content:""!important;position:absolute!important;inset:0!important;background:radial-gradient(circle at 8% 12%,rgba(255,241,141,.30),transparent 9%),radial-gradient(circle at 90% 12%,rgba(255,255,255,.18),transparent 16%),radial-gradient(circle at 82% 86%,rgba(25,95,54,.16),transparent 18%),linear-gradient(135deg,rgba(255,255,255,.09),transparent 45%,rgba(0,0,0,.10))!important;mix-blend-mode:soft-light!important;opacity:.9!important}
.strategy-bg43.map-kanto{background:linear-gradient(140deg,#88cf69 0 42%,#75bf61 42% 70%,#6db75d 70% 100%)!important}.strategy-bg43.map-johto{background:linear-gradient(130deg,#88c45e 0%,#b5c566 48%,#6fa85c 100%)!important}.strategy-bg43.map-hoenn{background:linear-gradient(135deg,#63bcd0 0 30%,#84cc6a 30% 46%,#61bfcf 46% 61%,#7bc768 61% 100%)!important}.strategy-bg43.map-sinnoh{background:linear-gradient(150deg,#84c56f 0%,#91bd74 43%,#b9c9b2 61%,#e6f4fb 100%)!important}.strategy-bg43.map-unova{background:linear-gradient(145deg,#72bc70 0%,#75b26c 46%,#8591ae 72%,#5ca7c3 100%)!important}.strategy-bg43.map-sevii{background:linear-gradient(135deg,#58bbd1 0%,#5fbdd6 100%)!important}.strategy-bg43.map-orre{background:linear-gradient(135deg,#e0bd70 0%,#c88e52 52%,#946145 100%)!important}.strategy-bg43.map-world{background:linear-gradient(135deg,#5baed0 0%,#74bf70 46%,#e0bd70 100%)!important}
.terrain43{position:absolute!important;display:block!important;pointer-events:none!important;z-index:1!important;opacity:.82!important;filter:drop-shadow(0 10px 16px rgba(0,0,0,.12))}.terrain43.water{right:-8%;bottom:-10%;width:38%;height:35%;border-radius:50%;background:linear-gradient(135deg,rgba(71,174,222,.72),rgba(48,128,202,.72));box-shadow:inset 0 0 0 4px rgba(255,255,255,.08)}.strategy-bg43.map-hoenn .terrain43.water,.strategy-bg43.map-sevii .terrain43.water{left:-8%;top:-8%;right:auto;bottom:auto;width:116%;height:116%;border-radius:0;background:linear-gradient(135deg,rgba(70,181,219,.78),rgba(47,137,204,.78))}.strategy-bg43.map-orre .terrain43.water{left:47%;bottom:14%;width:13%;height:10%;border-radius:50%;background:radial-gradient(circle,#54b6d9 0 45%,#42a35b 46% 66%,transparent 67%)}.terrain43.forest{background:radial-gradient(circle at 18px 20px,#236f3e 0 10px,transparent 11px),radial-gradient(circle at 42px 40px,#2f8b4c 0 12px,transparent 13px),radial-gradient(circle at 70px 18px,#1f6a38 0 11px,transparent 12px);background-size:86px 66px;border-radius:36% 64% 44% 56%}.terrain43.forest.f1{left:14%;top:18%;width:23%;height:19%}.terrain43.forest.f2{left:53%;top:56%;width:22%;height:17%}.terrain43.mountain{background:linear-gradient(135deg,rgba(91,82,71,.82),rgba(171,146,95,.78));clip-path:polygon(0 100%,18% 48%,29% 66%,44% 28%,56% 61%,70% 35%,100% 100%)}.terrain43.mountain.m1{left:36%;top:6%;width:32%;height:18%}.terrain43.mountain.m2{right:8%;top:25%;width:20%;height:20%}.strategy-bg43.map-orre .terrain43.mountain{background:linear-gradient(135deg,#8c5940,#d08c51)!important}.terrain43.landmark{background:repeating-linear-gradient(45deg,rgba(215,219,218,.55) 0 8px,rgba(126,147,153,.45) 8px 16px);border-radius:18px}.terrain43.landmark.l1{left:48%;top:40%;width:15%;height:11%}.terrain43.landmark.l2{left:22%;bottom:18%;width:12%;height:9%}
body[data-battle-screen="map"] .journey-window-frame .board-lines43{z-index:3!important;pointer-events:none!important;filter:drop-shadow(0 4px 8px rgba(0,0,0,.18))!important}body[data-battle-screen="map"] .journey-window-frame .board-lines43 .route-shadow37{stroke:rgba(81,55,31,.34)!important;stroke-width:10!important;opacity:.46!important}body[data-battle-screen="map"] .journey-window-frame .board-lines43 .route-road37{stroke:rgba(238,205,123,.94)!important;stroke-width:7!important;opacity:.94!important;stroke-linecap:round!important;stroke-linejoin:round!important}body[data-battle-screen="map"] .journey-window-frame .board-lines43 .route-center37{stroke:rgba(255,252,190,.72)!important;stroke-width:1.2!important;stroke-dasharray:4 10!important;stroke-linecap:round!important}body[data-battle-screen="map"] .journey-window-frame .board-lines43 .route-side43.route-shadow37{stroke-width:5!important;opacity:.24!important}body[data-battle-screen="map"] .journey-window-frame .board-lines43 .route-side43.route-road37{stroke-width:3.5!important;opacity:.58!important;stroke-dasharray:2 8!important}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43{width:112px!important;min-width:112px!important;max-width:112px!important;min-height:64px!important;height:auto!important;border-radius:18px!important;padding:7px 8px!important;z-index:12!important;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(231,243,255,.86) 48%,rgba(159,202,235,.88) 49%,rgba(69,129,183,.92))!important;color:#10223a!important;border:2px solid rgba(42,86,136,.7)!important;box-shadow:0 8px 0 rgba(47,74,109,.42),0 18px 26px rgba(0,0,0,.23),inset 0 0 0 2px rgba(255,255,255,.35)!important;text-shadow:none!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43:hover{z-index:500!important;transform:translate(-50%,-50%) scale(1.08)!important;filter:brightness(1.05)!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.is-current{border-color:#ffe66b!important;box-shadow:0 0 0 5px rgba(255,230,107,.26),0 8px 0 rgba(119,91,32,.5),0 18px 26px rgba(0,0,0,.25)!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43 small{font-size:.5rem!important;color:#183658!important;background:rgba(255,255,255,.48)!important;border-radius:999px!important;padding:2px 6px!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43 span{font-size:.68rem!important;line-height:1.05!important;color:#0e2037!important;max-width:100px!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43 em{font-size:.48rem!important;color:#24486f!important;opacity:.8!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-gym,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-champion{background:linear-gradient(180deg,#fff7b7,#f7d653 52%,#b77a24 53%,#75451c)!important;color:#311f0d!important;border-color:#ffe66b!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-raid,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-legend{background:linear-gradient(180deg,#f7e7ff,#cb97ff 50%,#7045a7 51%,#3d215d)!important;border-color:#d8a7ff!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-wild,body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-wildnest{background:linear-gradient(180deg,#edffe5,#9ddd68 50%,#4b9d3f 51%,#245c37)!important;border-color:#a6ee80!important}body[data-battle-screen="map"] .journey-window-frame .board-node.map-node43.node-event{background:linear-gradient(180deg,#fff3d2,#ffbc71 50%,#be6c34 51%,#663517)!important;border-color:#ffd08e!important}body[data-battle-screen="map"] .journey-window-frame .board-token.map-token43{width:84px!important;max-width:84px!important;z-index:1000!important;pointer-events:none!important;filter:drop-shadow(0 18px 12px rgba(0,0,0,.46))!important}body[data-battle-screen="map"] .journey-window-frame .region-title43{z-index:70!important;left:32px!important;top:92px!important;background:rgba(4,8,18,.72)!important;border-color:rgba(255,255,255,.18)!important;backdrop-filter:blur(10px)!important}
@media(max-height:860px){body[data-battle-screen="map"] .journey-window-frame{height:calc(100vh - 76px)!important;min-height:620px!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-window{max-height:calc(100vh - 210px)!important}}@media(max-width:900px){body[data-battle-screen="map"] .journey-window-frame{height:74vh!important;min-height:560px!important}body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board43{width:2600px!important;height:1460px!important;min-width:2600px!important;min-height:1460px!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-status-card{display:none!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-menu-stack{left:12px!important;right:12px!important;top:12px!important;width:auto!important;align-items:stretch!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-dock{justify-content:center!important}body[data-battle-screen="map"] .journey-window-frame .journey-map-window{width:100%!important}}


/* Adventure 4.4 compact UI/menu polish */
body[data-page="battle"] .battle-app,
body[data-page="battle"] .battle-app button,
body[data-page="battle"] .battle-app input,
body[data-page="battle"] .battle-app select,
body[data-page="battle"] .battle-app textarea{
  font-size:0.96em;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-status-card{
  transform:scale(.96)!important;
  transform-origin:top left!important;
  padding:12px 14px!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock{
  padding:6px!important;
  gap:6px!important;
  border-radius:20px!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button{
  width:45px!important;
  height:43px!important;
  border-radius:14px!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-dock button span{
  font-size:1.04rem!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window{
  width:min(690px,calc(100% - 20px))!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window-head{
  padding:13px 16px 10px!important;
  gap:10px!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window-head h3{
  font-size:1.24rem!important;
  line-height:1.05!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window-head .eyebrow{
  font-size:.68rem!important;
  letter-spacing:.14em!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window-body{
  padding:0 14px 14px!important;
  overflow:visible!important;
  max-height:none!important;
}
body[data-battle-screen="map"] .journey-window-frame .journey-map-window .icon-button{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
}
body[data-battle-screen="map"] .story-choice-44{
  display:grid!important;
  gap:9px!important;
  padding:12px!important;
  border-radius:18px!important;
}
body[data-battle-screen="map"] .story-choice-44 .story-summary44{
  display:grid!important;
  gap:5px!important;
}
body[data-battle-screen="map"] .story-choice-44 strong{
  font-size:.88rem!important;
  letter-spacing:.02em!important;
}
body[data-battle-screen="map"] .story-choice-44 p{
  margin:0!important;
  font-size:.86rem!important;
  line-height:1.32!important;
}
body[data-battle-screen="map"] .story-choice-44 .story-impact{
  font-size:.82rem!important;
  color:#f1e9b7!important;
}
body[data-battle-screen="map"] .story-meter-row44{
  gap:6px!important;
  margin:0!important;
}
body[data-battle-screen="map"] .story-meter-row44 span{
  padding:5px 8px!important;
  font-size:.72rem!important;
  border-radius:999px!important;
}
body[data-battle-screen="map"] .choice-list44{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body[data-battle-screen="map"] .choice-list44 .choice-button{
  min-height:92px!important;
  padding:10px!important;
  border-radius:16px!important;
  align-content:start!important;
}
body[data-battle-screen="map"] .choice-list44 .choice-button b{
  font-size:.86rem!important;
  line-height:1.1!important;
}
body[data-battle-screen="map"] .choice-list44 .choice-button span{
  font-size:.75rem!important;
  line-height:1.22!important;
  margin-top:4px!important;
}
@media(max-width:1100px){
  body[data-battle-screen="map"] .choice-list44{grid-template-columns:1fr!important;}
  body[data-battle-screen="map"] .choice-list44 .choice-button{min-height:64px!important;}
  body[data-battle-screen="map"] .journey-window-frame .journey-map-window{width:min(520px,calc(100% - 20px))!important;}
}
@media(max-height:760px){
  body[data-battle-screen="map"] .journey-window-frame .journey-map-window{transform:scale(.92)!important;transform-origin:top right!important;}
  body[data-battle-screen="map"] .choice-list44 .choice-button{min-height:70px!important;}
  body[data-battle-screen="map"] .story-choice-44 p{font-size:.8rem!important;line-height:1.24!important;}
}

/* Adventure 4.5 lore progression map polish */
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board45{
  width:3800px!important;
  height:2140px!important;
  min-width:3800px!important;
  min-height:2140px!important;
  background:#75bd65!important;
}
body[data-battle-screen="map"] .strategy-bg45{
  position:absolute!important;
  inset:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
  z-index:0!important;
}
body[data-battle-screen="map"] .strategy-bg45:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:
    radial-gradient(circle at 18px 20px,rgba(255,255,255,.18) 0 2px,transparent 2.8px),
    radial-gradient(circle at 62px 66px,rgba(28,92,45,.14) 0 2.8px,transparent 3.6px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px)!important;
  background-size:70px 70px,128px 128px,240px 240px,240px 240px!important;
  opacity:.62!important;
}
body[data-battle-screen="map"] .strategy-bg45:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 12% 14%,rgba(255,240,135,.26),transparent 12%),
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.14),transparent 18%),
    radial-gradient(circle at 50% 52%,rgba(0,0,0,.07),transparent 32%),
    linear-gradient(135deg,rgba(255,255,255,.12),transparent 45%,rgba(0,0,0,.12))!important;
  mix-blend-mode:soft-light!important;
}
body[data-battle-screen="map"] .strategy-bg45.map-kanto{background:linear-gradient(145deg,#81c861 0 32%,#76bc5b 32% 62%,#66a950 62% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-johto{background:linear-gradient(135deg,#8bc55f 0%,#b8be63 44%,#76a457 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-hoenn{background:linear-gradient(135deg,#55b8d5 0 28%,#7fc76b 28% 49%,#54b8d5 49% 66%,#79c163 66% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-sinnoh{background:linear-gradient(150deg,#83c06c 0%,#95bd78 38%,#c5cdbc 58%,#e8f3fb 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-unova{background:linear-gradient(145deg,#77bd6c 0%,#72aa66 46%,#868fa9 70%,#5ba6c5 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-sevii{background:linear-gradient(135deg,#4bb8d2 0%,#5fc0db 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-orre{background:linear-gradient(135deg,#e6c67b 0%,#c99255 52%,#946449 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-world{background:linear-gradient(135deg,#5aaed0 0%,#76bf70 45%,#e3bf73 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45 .region-watermark45{
  position:absolute!important;
  right:90px!important;
  bottom:70px!important;
  font-size:8rem!important;
  line-height:1!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  color:rgba(255,255,255,.13)!important;
  font-weight:1000!important;
  filter:drop-shadow(0 4px 0 rgba(0,0,0,.08))!important;
}
body[data-battle-screen="map"] .map-compass45{
  position:absolute!important;
  left:76px!important;
  top:78px!important;
  width:118px!important;
  height:118px!important;
  border-radius:50%!important;
  border:7px solid rgba(255,244,151,.38)!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.15)!important;
  opacity:.58!important;
}
body[data-battle-screen="map"] .terrain45{position:absolute!important;display:block!important;z-index:1!important;pointer-events:none!important;opacity:.72!important;filter:drop-shadow(0 8px 14px rgba(0,0,0,.13))!important;}
body[data-battle-screen="map"] .terrain45.water{border-radius:50%!important;background:linear-gradient(135deg,rgba(58,172,218,.76),rgba(40,124,203,.72))!important;box-shadow:inset 0 0 0 5px rgba(255,255,255,.1)!important;}
body[data-battle-screen="map"] .terrain45.water.w1{right:-8%;bottom:-13%;width:38%;height:34%;}
body[data-battle-screen="map"] .strategy-bg45.map-hoenn .terrain45.water.w1,
body[data-battle-screen="map"] .strategy-bg45.map-sevii .terrain45.water.w1{left:-10%;top:-10%;right:auto;bottom:auto;width:120%;height:120%;border-radius:0!important;}
body[data-battle-screen="map"] .strategy-bg45.map-orre .terrain45.water.w1{left:31%;top:77%;right:auto;bottom:auto;width:13%;height:10%;border-radius:50%!important;background:radial-gradient(circle,#58b9d9 0 45%,#4a9c5d 46% 68%,transparent 69%)!important;}
body[data-battle-screen="map"] .terrain45.forest{background:radial-gradient(circle at 18px 20px,#236f3d 0 11px,transparent 12px),radial-gradient(circle at 44px 42px,#31944d 0 13px,transparent 14px),radial-gradient(circle at 74px 20px,#1f6538 0 12px,transparent 13px)!important;background-size:92px 70px!important;border-radius:38% 62% 44% 56%!important;}
body[data-battle-screen="map"] .terrain45.forest.f1{left:18%;top:21%;width:24%;height:18%;}
body[data-battle-screen="map"] .terrain45.forest.f2{left:55%;top:56%;width:22%;height:17%;}
body[data-battle-screen="map"] .strategy-bg45.map-orre .terrain45.forest.f1{left:50%;top:27%;width:16%;height:13%;}
body[data-battle-screen="map"] .terrain45.mountain{background:linear-gradient(135deg,rgba(89,82,74,.86),rgba(176,151,100,.8))!important;clip-path:polygon(0 100%,18% 48%,29% 66%,44% 25%,56% 61%,70% 35%,100% 100%)!important;}
body[data-battle-screen="map"] .terrain45.mountain.m1{left:36%;top:8%;width:31%;height:17%;}
body[data-battle-screen="map"] .terrain45.mountain.m2{right:8%;top:26%;width:20%;height:19%;}
body[data-battle-screen="map"] .strategy-bg45.map-orre .terrain45.mountain{background:linear-gradient(135deg,#8f5c41,#d59252)!important;}
body[data-battle-screen="map"] .terrain45.city{left:44%;top:43%;width:18%;height:13%;border-radius:18px!important;background:repeating-linear-gradient(45deg,rgba(222,226,222,.52) 0 9px,rgba(125,147,155,.45) 9px 18px)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45{z-index:3!important;pointer-events:none!important;filter:drop-shadow(0 5px 9px rgba(0,0,0,.2))!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-shadow45{stroke:rgba(70,46,23,.38)!important;stroke-width:11!important;opacity:.44!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-road45{stroke:rgba(239,207,126,.96)!important;stroke-width:7.5!important;opacity:.97!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-center45{stroke:rgba(255,253,197,.78)!important;stroke-width:1.25!important;stroke-dasharray:5 11!important;stroke-linecap:round!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-side45.route-shadow45{stroke-width:5.5!important;opacity:.22!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-side45.route-road45{stroke-width:3.8!important;opacity:.58!important;stroke-dasharray:2 8!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45{z-index:20!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.major-node45{
  width:122px!important;
  min-width:122px!important;
  max-width:122px!important;
  min-height:68px!important;
  border-width:2px!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45{
  width:98px!important;
  min-width:98px!important;
  max-width:98px!important;
  min-height:54px!important;
  opacity:.94!important;
  z-index:14!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.activity-node45{
  filter:saturate(.96) brightness(.98)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45 small{font-size:.46rem!important;padding:1px 5px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45 span{font-size:.58rem!important;max-width:86px!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45 em{font-size:.43rem!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-start,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-transport,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-ferry{background:linear-gradient(180deg,#eefcff,#8fdcf2 50%,#3a9abc 51%,#1a5368)!important;border-color:#a8f3ff!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-heal,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-pc{background:linear-gradient(180deg,#fff1f6,#ff9fbd 50%,#c75078 51%,#742846)!important;border-color:#ffc2d3!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-mart{background:linear-gradient(180deg,#fff3c4,#ffd95b 50%,#c08327 51%,#7a481c)!important;border-color:#ffe68b!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-trainer,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-tournament,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-shadow{background:linear-gradient(180deg,#edf3ff,#9fc6ff 50%,#477cc1 51%,#24476f)!important;border-color:#b7d2ff!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-farm,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-fishing,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-mine,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-dive,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-daycare,
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.node-tradehub{background:linear-gradient(180deg,#f5fff3,#b8e58c 50%,#669f47 51%,#315c2c)!important;border-color:#bff296!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title45{top:86px!important;left:30px!important;z-index:80!important;width:min(560px,calc(100% - 70px))!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title45 strong{font-size:1.05rem!important;line-height:1.05!important;}
body[data-battle-screen="map"] .journey-window-frame .region-title45 span{font-size:.72rem!important;}
body[data-battle-screen="map"] .journey-window-frame .board-token.map-token45{width:88px!important;max-width:88px!important;z-index:1000!important;}
body[data-battle-screen="map"] .world-atlas45{padding:112px 70px 70px!important;gap:24px!important;}
body[data-battle-screen="map"] .atlas-card45{min-height:170px!important;}
@media(max-width:900px){
  body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board45{width:2850px!important;height:1600px!important;min-width:2850px!important;min-height:1600px!important;}
  body[data-battle-screen="map"] .strategy-bg45 .region-watermark45{font-size:4rem!important;right:38px!important;bottom:38px!important;}
  body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.major-node45{width:108px!important;min-width:108px!important;max-width:108px!important;}
  body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45{width:88px!important;min-width:88px!important;max-width:88px!important;}
}

/* --- Adventure 4.7 Quest Dialogue + Pokémon UI Polish --- */
body.pokemon-ui47-active .battle-app,
body.pokemon-ui47-active .section-panel{
  --pkmn-red:#e84c4f;
  --pkmn-blue:#3778d8;
  --pkmn-cream:#fff7da;
}
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board45{
  background:#78be62!important;
}
body[data-battle-screen="map"] .journey-window-frame .tile-layer47{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  pointer-events:none!important;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    radial-gradient(circle at 18px 21px,rgba(255,255,255,.14) 0 2px,transparent 2.6px),
    radial-gradient(circle at 47px 49px,rgba(55,118,53,.16) 0 2px,transparent 2.8px)!important;
  background-size:96px 96px,96px 96px,74px 74px,112px 112px!important;
  opacity:.42!important;
  mix-blend-mode:soft-light!important;
}
body[data-battle-screen="map"] .strategy-bg45:before{
  background-image:
    radial-gradient(circle at 22px 24px,rgba(255,255,255,.18) 0 2px,transparent 3px),
    radial-gradient(circle at 64px 58px,rgba(40,108,48,.18) 0 2.2px,transparent 3px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px)!important;
  background-size:86px 86px,126px 126px,128px 128px,128px 128px!important;
  opacity:.48!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-road45{
  stroke:#f0d383!important;
  stroke-width:6.2!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-shadow45{
  stroke:rgba(70,45,22,.28)!important;
  stroke-width:9!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45{
  border-radius:18px!important;
  box-shadow:0 10px 0 rgba(84,62,31,.18),0 20px 34px rgba(0,0,0,.22),inset 0 0 0 2px rgba(255,255,255,.22)!important;
  text-shadow:0 1px 0 rgba(0,0,0,.24)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.major-node45{
  width:118px!important;
  min-width:118px!important;
  min-height:62px!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.side-node45{
  width:92px!important;
  min-width:92px!important;
  min-height:50px!important;
}
.npc-dialogue47{
  display:grid!important;
  grid-template-columns:128px 1fr!important;
  gap:14px!important;
  align-items:stretch!important;
}
.npc-portrait47{
  border-radius:22px!important;
  padding:12px!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  gap:6px!important;
  text-align:center!important;
  background:linear-gradient(180deg,#f6f7fb 0%,#d8e5fb 48%,#386fc7 49%,#173a74 100%)!important;
  border:3px solid #101622!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.5),0 12px 26px rgba(0,0,0,.28)!important;
  color:#fff!important;
}
.npc-portrait47 img{
  height:84px!important;
  image-rendering:pixelated!important;
  filter:drop-shadow(0 8px 8px rgba(0,0,0,.36))!important;
}
.npc-portrait47 strong{font-size:.82rem!important;line-height:1.05!important;color:#fff!important}.npc-portrait47 span{font-size:.68rem!important;color:#e6edff!important}
.npc-dialogue-box47{
  border-radius:24px!important;
  padding:16px!important;
  background:linear-gradient(180deg,#fffdf4,#eef4ff)!important;
  color:#1b2538!important;
  border:4px solid #101622!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.72),0 16px 30px rgba(0,0,0,.24)!important;
}
.npc-dialogue-box47 .eyebrow{color:#d7363e!important}.npc-dialogue-box47 p{color:#1d2c42!important;font-weight:800!important}.npc-dialogue-box47 em{display:block;color:#425673!important;margin:6px 0 10px!important;font-weight:700!important}
.npc-dialogue-box47 .choice-button{
  background:linear-gradient(180deg,#fefefe,#e8eef9)!important;
  color:#172033!important;
  border:2px solid #a7b4ca!important;
  border-radius:18px!important;
  box-shadow:0 5px 0 rgba(28,47,84,.18)!important;
}
.npc-dialogue-box47 .choice-button:hover{border-color:#3778d8!important;transform:translateY(-1px)!important}.npc-dialogue-box47 .choice-button span{color:#425673!important}
.quest-wheel47{display:grid!important;gap:12px!important;overscroll-behavior:contain!important}.quest-focus47{display:grid!important;gap:10px!important}.quest-wheel-help47{border-radius:999px!important;padding:7px 10px!important;background:rgba(255,230,107,.16)!important;border:1px solid rgba(255,230,107,.3)!important;color:#f5dc75!important;font-size:.72rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important;text-align:center!important}.quest-dots47{display:flex!important;justify-content:center!important;gap:8px!important}.quest-dot47{width:12px!important;height:12px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.4)!important;background:rgba(255,255,255,.18)!important;padding:0!important}.quest-dot47.is-active{background:#ffe66b!important;box-shadow:0 0 14px rgba(255,230,107,.5)!important}.quest-wheel47 .quest-card35{max-height:none!important}.quest-wheel47 .quest-list35{max-height:220px!important;overflow:auto!important}
.pokemon-stat-card47{
  display:grid!important;
  gap:12px!important;
  border-radius:22px!important;
  padding:14px!important;
  background:linear-gradient(180deg,#fffdf3,#edf5ff)!important;
  color:#172033!important;
  border:4px solid #101622!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.75),0 14px 28px rgba(0,0,0,.24)!important;
}
.pokemon-stat-head47{display:grid!important;grid-template-columns:96px 1fr!important;gap:12px!important;align-items:center!important}.pokemon-stat-head47 img{width:92px!important;height:92px!important;object-fit:contain!important;image-rendering:pixelated!important;filter:drop-shadow(0 9px 8px rgba(0,0,0,.25))!important}.pokemon-stat-head47 h3{color:#162033!important;margin:0!important}.pokemon-stat-head47 p{color:#4b5f7b!important;margin:4px 0!important;font-weight:800!important}.pokemon-stat-grid47{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.pokemon-stat-grid47 span{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:8px 10px!important;border-radius:12px!important;background:#dfe9fa!important;border:1px solid #b8c6da!important;color:#172033!important;font-weight:900!important}.pokemon-stat-grid47 i{font-style:normal!important;color:#d7363e!important}.pokemon-move-list47{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.pokemon-move-list47 span{display:grid!important;gap:2px!important;border-radius:14px!important;background:#20314f!important;color:#fff!important;padding:9px 10px!important;border:1px solid rgba(255,255,255,.15)!important}.pokemon-move-list47 small{color:#c8d5ef!important;font-weight:800!important}.pokemon-party-tabs47{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:10px 0!important}.pokemon-party-tabs47 button{display:flex!important;align-items:center!important;gap:6px!important}.pokemon-party-tabs47 img{width:26px!important;height:26px!important;object-fit:contain!important;image-rendering:pixelated!important}
.evolution-screen47{position:fixed!important;inset:0!important;z-index:99999!important;display:none!important;place-items:center!important;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.22),rgba(5,9,20,.92) 56%,rgba(2,4,10,.98))!important;backdrop-filter:blur(10px)!important}.evolution-screen47.is-visible{display:grid!important}.evolution-card47{width:min(720px,calc(100vw - 36px))!important;border-radius:34px!important;padding:28px!important;text-align:center!important;background:linear-gradient(180deg,#fffdf2,#e9f3ff)!important;border:5px solid #101622!important;box-shadow:inset 0 0 0 4px rgba(255,255,255,.7),0 36px 90px rgba(0,0,0,.5)!important;color:#162033!important}.evolution-card47 h2{color:#162033!important}.evolution-stage47{display:flex!important;align-items:center!important;justify-content:center!important;gap:28px!important;margin:18px 0!important}.evolution-stage47 img{width:160px!important;height:160px!important;object-fit:contain!important;image-rendering:pixelated!important;filter:drop-shadow(0 16px 16px rgba(0,0,0,.25))!important}.evolution-stage47 .old{animation:evoPulse47 1.6s ease infinite!important;opacity:.72!important}.evolution-stage47 .new{animation:evoGlow47 1.3s ease infinite!important}.evolution-stage47 b{font-size:2.4rem!important;color:#3778d8!important}@keyframes evoPulse47{50%{transform:scale(.88);filter:brightness(2) drop-shadow(0 0 24px rgba(255,255,255,.9))}}@keyframes evoGlow47{50%{transform:scale(1.12);filter:brightness(1.4) drop-shadow(0 0 28px rgba(80,160,255,.8))}}
.coop-token47{width:74px!important;max-width:74px!important;z-index:980!important;transform:translate(calc(-50% + var(--coop-offset,16px)),-106%)!important;filter:drop-shadow(0 12px 12px rgba(0,0,0,.48)) hue-rotate(35deg)!important}.multiplayer-panel47 .map-party-row img{height:44px!important;image-rendering:pixelated!important}.world-action-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.journey-map-window .quest-card35 .quest-actions35{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
@media(max-width:900px){.npc-dialogue47{grid-template-columns:1fr!important}.npc-portrait47{grid-template-columns:auto 1fr!important;text-align:left!important}.pokemon-stat-grid47,.pokemon-move-list47{grid-template-columns:1fr!important}.evolution-stage47 img{width:112px!important;height:112px!important}}


/* --- Adventure 4.8 Move Learning + Miniatures Strategy Map Polish --- */
body.adventure48-active{--pkmn-map-ink:#182235;--pkmn-map-cream:#fff3c4;--pkmn-map-road:#f0d58a;}
body[data-battle-screen="map"] .journey-window-frame .rogue-board.strategy-board48{
  background:#71b85f!important;
  box-shadow:inset 0 0 0 9px rgba(21,36,45,.72), inset 0 0 0 13px rgba(255,255,255,.18), 0 24px 60px rgba(0,0,0,.45)!important;
  border-radius:32px!important;
  overflow:hidden!important;
}
body[data-battle-screen="map"] .strategy-board48::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(circle at 16% 18%,rgba(255,255,255,.20),transparent 14%),
    radial-gradient(circle at 78% 28%,rgba(41,96,49,.20),transparent 16%),
    radial-gradient(circle at 58% 78%,rgba(26,70,44,.20),transparent 18%),
    linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:auto,auto,auto,144px 144px,144px 144px;
  opacity:.9;
}
body[data-battle-screen="map"] .strategy-board48::after{
  content:"";position:absolute;inset:22px;z-index:3;pointer-events:none;border-radius:24px;
  border:2px dashed rgba(255,250,216,.28);
  box-shadow:inset 0 0 60px rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.12);
}
body[data-battle-screen="map"] .strategy-bg45.map-kanto{background:linear-gradient(140deg,#7dca65 0 28%,#64b260 28% 51%,#7ec56f 51% 72%,#5ca565 72% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-johto{background:linear-gradient(140deg,#9cc867 0 26%,#d3be62 26% 45%,#76ad5d 45% 72%,#6fa55a 72% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-hoenn{background:radial-gradient(circle at 78% 64%,#6fc96d 0 15%,transparent 16%),linear-gradient(135deg,#49b5d4 0 28%,#80c56b 28% 47%,#4bb1cf 47% 61%,#76bf62 61% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-sinnoh{background:linear-gradient(150deg,#76b86b 0 28%,#95b46e 28% 47%,#b8c3b4 47% 67%,#e8f4fb 67% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-unova{background:linear-gradient(145deg,#72bc70 0 35%,#778a9e 35% 54%,#597baf 54% 67%,#5bb0c8 67% 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-sevii{background:radial-gradient(circle at 25% 36%,#7cc76c 0 9%,transparent 10%),radial-gradient(circle at 54% 58%,#78bf65 0 10%,transparent 11%),radial-gradient(circle at 72% 34%,#84cc70 0 8%,transparent 9%),linear-gradient(135deg,#49b8d5 0%,#61c9e2 100%)!important;}
body[data-battle-screen="map"] .strategy-bg45.map-orre{background:radial-gradient(circle at 36% 74%,#67b8ce 0 6%,transparent 7%),linear-gradient(135deg,#ecc979 0 33%,#cf9253 33% 67%,#9c6749 67% 100%)!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45{z-index:10!important;filter:drop-shadow(0 14px 10px rgba(64,43,18,.26))!important;}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-road45{
  stroke:#e9c66f!important;stroke-width:4.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-center45{
  stroke:rgba(255,255,255,.32)!important;stroke-width:.55!important;stroke-dasharray:1.5 2.2!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-lines45 .route-side45{opacity:.82!important;stroke-width:3.6!important;}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45{
  z-index:44!important;border-radius:999px!important;padding:7px 10px!important;
  border:3px solid rgba(31,45,34,.74)!important;
  box-shadow:0 7px 0 rgba(67,51,29,.28),0 20px 32px rgba(0,0,0,.25),inset 0 0 0 3px rgba(255,255,255,.36)!important;
  transform:translate(-50%,-50%) scale(.94)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45::after{
  content:"";position:absolute;left:50%;bottom:-12px;width:70%;height:16px;transform:translateX(-50%);z-index:-1;border-radius:50%;
  background:radial-gradient(ellipse,rgba(48,32,18,.32),transparent 70%);
}
body[data-battle-screen="map"] .journey-window-frame .board-node.map-node45.is-current{
  transform:translate(-50%,-50%) scale(1.04)!important;
  box-shadow:0 8px 0 rgba(71,50,25,.3),0 0 0 8px rgba(255,230,107,.25),0 24px 42px rgba(0,0,0,.34),inset 0 0 0 3px rgba(255,255,255,.48)!important;
}
body[data-battle-screen="map"] .journey-window-frame .board-token.map-token45{
  width:92px!important;max-width:92px!important;z-index:900!important;
  filter:drop-shadow(0 16px 6px rgba(0,0,0,.30)) drop-shadow(0 0 10px rgba(255,230,107,.36))!important;
}
.miniature-props48{position:absolute;inset:0;z-index:5;pointer-events:none;}
.prop48{position:absolute;width:78px;height:54px;transform:translate(-50%,-50%);opacity:.58;filter:drop-shadow(0 12px 8px rgba(0,0,0,.22));}
.prop48 i,.prop48::before,.prop48::after{content:"";position:absolute;display:block;}
.prop-forest i,.prop-forest::before,.prop-forest::after{width:26px;height:36px;border-radius:60% 60% 30% 30%;background:linear-gradient(180deg,#2f8e49,#176236);bottom:6px;}
.prop-forest i{left:24px}.prop-forest::before{left:7px;transform:scale(.8)}.prop-forest::after{right:8px;transform:scale(.92)}
.prop-mountain i,.prop-cave i,.prop-volcano i{left:10px;bottom:4px;width:58px;height:42px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(135deg,#826a55,#d5c2a0 55%,#715442);}
.prop-volcano i{background:linear-gradient(135deg,#713b2f,#d46e3c 55%,#f1c15a)}.prop-snow i{left:8px;bottom:5px;width:62px;height:38px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(135deg,#eef9ff,#b5c6cf 70%,#7890a4)}
.prop-water i,.prop-lake i{left:5px;top:13px;width:68px;height:32px;border-radius:50%;background:linear-gradient(180deg,#7ee3ff,#3a9cc7);box-shadow:inset 0 0 0 5px rgba(255,255,255,.2)}
.prop-city i,.prop-town i,.prop-lab i,.prop-tower i{left:14px;bottom:8px;width:50px;height:36px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#f7eec8,#bc8261);box-shadow:inset 0 0 0 4px rgba(255,255,255,.22)}
.prop-tower i{width:24px;height:58px;left:27px}.prop-lab i{background:linear-gradient(180deg,#e9f7ff,#6c94c9)}.prop-bridge i{left:4px;top:20px;width:70px;height:15px;border-radius:10px;background:#d6ad64;box-shadow:0 8px 0 rgba(91,63,31,.18)}
.prop-desert i{left:0;top:18px;width:78px;height:25px;border-radius:50%;background:linear-gradient(180deg,#efd181,#c88e52)}.prop-island i{left:8px;top:12px;width:62px;height:36px;border-radius:50%;background:linear-gradient(180deg,#83cd70,#5ea359);box-shadow:0 0 0 8px rgba(72,184,213,.42)}
.prop-grass i,.prop-farm i{left:8px;top:14px;width:62px;height:32px;border-radius:18px;background:repeating-linear-gradient(90deg,#66b94f 0 8px,#8fcb5c 8px 15px)}.prop-camp i,.prop-trainer i,.prop-dock i{left:24px;top:8px;width:30px;height:46px;border-radius:18px;background:linear-gradient(180deg,#fff0af,#dd8452 55%,#2e4264 56%)}
.move-learn-screen48{position:fixed!important;inset:0!important;z-index:100000!important;display:none!important;place-items:center!important;background:rgba(7,12,22,.72)!important;backdrop-filter:blur(9px)!important;}
.move-learn-screen48.is-visible{display:grid!important;}
.move-learn-card48{width:min(790px,calc(100vw - 34px))!important;border-radius:30px!important;padding:22px!important;background:linear-gradient(180deg,#fffdf3,#eaf3ff)!important;color:#142036!important;border:5px solid #101622!important;box-shadow:inset 0 0 0 4px rgba(255,255,255,.72),0 34px 90px rgba(0,0,0,.55)!important;display:grid!important;gap:14px!important;}
.move-learn-head48{display:grid!important;grid-template-columns:112px 1fr!important;gap:14px!important;align-items:center!important;}
.move-learn-head48 img{width:110px!important;height:110px!important;object-fit:contain!important;image-rendering:pixelated!important;filter:drop-shadow(0 14px 10px rgba(0,0,0,.25))!important;}
.move-learn-head48 h2{margin:0!important;color:#162033!important;line-height:1.05!important;}.move-learn-head48 p{margin:6px 0 0!important;color:#475b76!important;font-weight:900!important;}
.move-learn-dialogue48{border-radius:20px!important;background:#20304f!important;color:#fff!important;padding:14px 16px!important;border:3px solid #101622!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.12)!important;display:grid!important;gap:4px!important;}
.move-learn-dialogue48 span{color:#d9e6ff!important;font-weight:800!important;}.move-choice-grid48{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.move-replace48{border:3px solid #101622!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#e3ecfa)!important;color:#162033!important;padding:12px 14px!important;text-align:left!important;box-shadow:0 6px 0 rgba(27,42,68,.18)!important;cursor:pointer!important;}
.move-replace48:hover{transform:translateY(-1px)!important;border-color:#3778d8!important;}.move-replace48 strong,.move-replace48 span{display:block!important}.move-replace48 span{margin-top:3px!important;color:#51647f!important;font-size:.76rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;}
.move-learn-actions48{display:flex!important;justify-content:flex-end!important;gap:10px!important;}
@media(max-width:780px){.move-learn-head48{grid-template-columns:1fr!important;text-align:center!important}.move-learn-head48 img{margin:auto!important}.move-choice-grid48{grid-template-columns:1fr!important}}


/* --- Adventure 4.9 Trainer Perk Draft + Center Anti-Spam UI --- */
.trainer-perk-screen49{position:fixed;inset:0;z-index:99995;display:none;place-items:center;padding:24px;background:radial-gradient(circle at 50% 35%,rgba(255,228,98,.18),transparent 34%),rgba(1,8,18,.72);backdrop-filter:blur(12px)}
.trainer-perk-screen49.is-visible{display:grid;animation:perkFade49 .18s ease both}@keyframes perkFade49{from{opacity:0}to{opacity:1}}
.trainer-perk-card49{width:min(1060px,94vw);max-height:92vh;overflow:auto;border-radius:30px;border:4px solid #26345f;background:linear-gradient(180deg,#f8fbff 0,#e9f2ff 56%,#d6e5ff 100%);box-shadow:0 34px 110px rgba(0,0,0,.58),inset 0 0 0 4px rgba(255,255,255,.7);color:#18234a;padding:18px;display:grid;gap:14px;font-family:Inter,system-ui,sans-serif}
.trainer-perk-head49{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;border-radius:22px;background:linear-gradient(90deg,#3159b6,#5b7ee0);color:#fff;padding:14px 16px;box-shadow:inset 0 -5px rgba(0,0,0,.12)}
.trainer-perk-head49 h2{margin:0;font-size:clamp(1.35rem,2vw,2.05rem);letter-spacing:-.04em;color:#fff}.trainer-perk-head49 p{margin:4px 0 0;color:#e9f1ff}.trainer-perk-head49 .eyebrow{color:#ffe66b}.trainer-perk-head49 .trainer-portrait{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.35)}
.trainer-perk-meter49{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-radius:18px;background:#fff;border:2px solid #b8c8ec;padding:10px 14px;font-weight:950}.trainer-perk-meter49 span{color:#435177}
.perk-choice-grid49{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.perk-card49{border:2px solid #9fb3df;border-radius:20px;background:linear-gradient(180deg,#fff,#eaf2ff);color:#17234a;text-align:left;padding:12px;min-height:132px;display:grid;grid-template-rows:auto auto 1fr;gap:7px;cursor:pointer;box-shadow:0 10px 0 #c2d1f1,0 18px 34px rgba(25,50,100,.16);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.perk-card49:hover{transform:translateY(-3px);border-color:#3159b6;box-shadow:0 13px 0 #b5c7ee,0 24px 44px rgba(25,50,100,.22)}.perk-card49 span{justify-self:start;border-radius:999px;background:#3159b6;color:#fff;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;padding:4px 8px}.perk-card49 strong{font-size:1.02rem;color:#10204d}.perk-card49 small{font-size:.78rem;line-height:1.35;color:#39486b}.perk-card49.large{min-height:172px;padding:14px}.perk-card49.large strong{font-size:1.16rem}
.trainer-perk-footer49{border-radius:20px;background:#fff;border:2px solid #c1d0ef;padding:12px;display:grid;gap:9px}.trainer-perk-footer49>div,.active-perks49>div{display:flex;flex-wrap:wrap;gap:7px}.trainer-perk-footer49 span,.active-perks49 span{border-radius:999px;background:#e9f0ff;border:1px solid #bdc9e7;color:#253763;padding:5px 8px;font-size:.72rem;font-weight:900}.trainer-perk-footer49 em,.active-perks49 em{color:#687696}.trainer-progression49{display:grid;gap:10px}.trainer-progression-head49{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.perk-draft-note49{border-radius:14px;background:rgba(255,230,107,.12);border:1px solid rgba(255,230,107,.28);color:#ffeaa0;padding:8px 10px;font-size:.8rem}.perk-row49{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}.journey-map-window .perk-card49{box-shadow:none;min-height:128px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border-color:rgba(255,255,255,.16);color:#fff}.journey-map-window .perk-card49 strong{color:#fff}.journey-map-window .perk-card49 small{color:#c6d4ef}.journey-map-window .perk-card49 span{background:#ffe66b;color:#17203d}.active-perks49{display:grid;gap:8px}.active-perks49 strong{color:#ffe66b}
body.adventure49-active .node-heal.is-current:after,body.adventure49-active .node-heal:hover:after{content:'No XP if already healthy';position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);white-space:nowrap;border-radius:999px;background:rgba(4,8,18,.82);border:1px solid rgba(255,255,255,.18);color:#fff;padding:5px 8px;font-size:.68rem;pointer-events:none;box-shadow:0 10px 24px rgba(0,0,0,.25)}
@media(max-width:900px){.perk-choice-grid49{grid-template-columns:repeat(2,minmax(0,1fr))}.trainer-perk-head49{grid-template-columns:1fr auto}.trainer-perk-head49 .trainer-portrait{display:none}.perk-row49{grid-template-columns:1fr!important}}
@media(max-width:560px){.perk-choice-grid49{grid-template-columns:1fr}.trainer-perk-card49{padding:12px;border-radius:22px}.trainer-perk-head49{border-radius:18px}.trainer-perk-meter49{display:grid}}


/* Adventure 5.0 city actions, party care, and miniatures board polish */
body.adventure50-active .battle-app{--journey-scale:.965;}
.city-panel50{display:grid;gap:12px;max-height:none;overflow:visible;}
.city-portrait50{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;padding:12px;border:2px solid rgba(39,88,167,.35);background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(229,242,255,.92));border-radius:18px;color:#123;box-shadow:0 10px 24px rgba(0,0,0,.14)}
.city-portrait50 img{width:68px;height:78px;object-fit:contain;image-rendering:pixelated;background:linear-gradient(#fff,#d9ecff);border-radius:14px;border:1px solid rgba(39,88,167,.25)}
.city-portrait50 h4{margin:2px 0 5px;font-size:1.05rem;color:#102b4c}.city-portrait50 p{margin:0;color:#2c4560;line-height:1.35}.city-portrait50 small{display:block;margin-top:5px;color:#5a6b7d;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.city-actions-grid50{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.city-action50{border:2px solid rgba(39,88,167,.28);background:linear-gradient(180deg,#fff,#eef7ff);border-radius:14px;padding:10px;text-align:left;color:#123;box-shadow:0 6px 16px rgba(10,40,80,.12);cursor:pointer}.city-action50:hover{transform:translateY(-1px);border-color:#2f75d6}.city-action50 strong{display:block;color:#0c3d72}.city-action50 span{display:block;margin:3px 0;color:#334;line-height:1.25}.city-action50 em{display:inline-block;margin-top:4px;padding:2px 7px;border-radius:999px;background:#dfefff;color:#194a7b;font-style:normal;font-size:.7rem;font-weight:900;text-transform:uppercase}.city-action50.is-done{opacity:.62;filter:saturate(.7);cursor:not-allowed}.city-footer50{display:flex;gap:8px;flex-wrap:wrap}.city-footer50 button,.pokemon-actions50 button,.relearn-grid50 button{border:0;border-radius:999px;background:#245ca8;color:#fff;font-weight:900;padding:8px 12px;cursor:pointer}.city-footer50 button:hover,.pokemon-actions50 button:hover,.relearn-grid50 button:hover{filter:brightness(1.08)}
.party-tools50{display:grid;gap:10px}.party-tools50>p{margin:0;padding:9px 11px;border-radius:12px;background:rgba(255,255,255,.8);color:#234}.pokemon-party-card50{border:2px solid rgba(21,66,130,.25);border-radius:18px;background:linear-gradient(180deg,#fff,#f2f7ff);padding:10px;box-shadow:0 8px 20px rgba(0,0,0,.12);color:#123}.pokemon-party-head50{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center}.pokemon-party-head50 img{width:50px;height:50px;object-fit:contain;image-rendering:pixelated;background:#e8f4ff;border-radius:14px}.pokemon-party-head50 strong{display:block;color:#082a50}.pokemon-party-head50 span{color:#466}.pokemon-party-head50 small{font-weight:800;color:#64758a;margin-left:4px}.pokemon-stat-grid50{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:8px 0}.pokemon-stat-grid50 b{border-radius:9px;background:#e1efff;color:#164374;padding:5px;text-align:center;font-size:.72rem}.pokemon-move-list50{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pokemon-move-list50 span{border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.08);padding:7px;font-weight:900;color:#133}.pokemon-move-list50 small{display:block;color:#63758a;font-weight:700}.pokemon-actions50{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}.relearn-modal50{position:fixed;inset:0;z-index:9999;background:rgba(2,8,20,.72);display:grid;place-items:center;padding:24px}.relearn-card50{width:min(980px,92vw);max-height:88vh;overflow:auto;background:linear-gradient(180deg,#f9fcff,#e6f1ff);border:3px solid #2d68b3;border-radius:26px;padding:16px;box-shadow:0 24px 80px rgba(0,0,0,.4);color:#123}.relearn-head50{display:grid;grid-template-columns:96px 1fr 42px;gap:12px;align-items:center}.relearn-head50 img{width:90px;height:90px;object-fit:contain;image-rendering:pixelated;background:#fff;border-radius:18px}.relearn-head50 button{border:0;border-radius:50%;width:38px;height:38px;background:#d43b48;color:#fff;font-size:1.5rem;font-weight:900}.relearn-current50{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:10px;border-radius:14px;background:#fff}.relearn-current50 span{background:#e8f0fb;border-radius:999px;padding:5px 9px;font-weight:900}.relearn-grid50{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.relearn-grid50 button{text-align:left;border-radius:14px;background:linear-gradient(180deg,#2c6bbe,#154481)}.relearn-grid50 button span{display:block;color:#cfe3ff;font-size:.78rem}.strategy-board50{background-image:linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px)!important;background-size:42px 42px!important}.terrain-props50{position:absolute;inset:0;pointer-events:none;z-index:1}.terrain-props50 .prop{position:absolute;display:block;filter:drop-shadow(0 8px 6px rgba(0,0,0,.25));opacity:.9}.terrain-props50 .tree{width:22px;height:28px;border-radius:50% 50% 44% 44%;background:linear-gradient(#4fa75b,#1f6b35)}.terrain-props50 .hill{width:42px;height:24px;border-radius:50% 50% 30% 30%;background:linear-gradient(#9e8c67,#6e604a)}.terrain-props50 .water{width:56px;height:24px;border-radius:999px;background:linear-gradient(90deg,#5eb8df,#2f83bd)}.terrain-props50 .town{width:26px;height:22px;border-radius:6px;background:linear-gradient(#e8d28a,#c68946)}.terrain-props50 .cave{width:38px;height:24px;border-radius:50% 50% 8px 8px;background:linear-gradient(#5d5660,#2c2730)}.terrain-props50 .p1{left:12%;top:24%}.terrain-props50 .p2{left:78%;top:18%}.terrain-props50 .p3{left:42%;top:16%}.terrain-props50 .p4{left:70%;top:72%}.terrain-props50 .p5{left:19%;top:68%}.terrain-props50 .p6{left:54%;top:53%}.companion-token50{width:42px!important;height:42px!important;z-index:24!important;border:2px solid #fff!important;border-radius:50%!important;background:radial-gradient(circle,#fff,#dceaff)!important;box-shadow:0 0 0 3px rgba(64,125,200,.35),0 8px 16px rgba(0,0,0,.28)!important;object-fit:contain!important;image-rendering:pixelated}.map-token45{z-index:25!important;box-shadow:0 0 0 4px rgba(255,213,64,.45),0 9px 20px rgba(0,0,0,.36)!important}.battlefield [data-player-mon-name] small{font-size:.72em;color:rgba(255,255,255,.75);margin-left:4px}.switch-button small{display:block;font-size:.7em;opacity:.72}
@media(max-width:900px){.city-actions-grid50,.pokemon-move-list50{grid-template-columns:1fr}.pokemon-stat-grid50{grid-template-columns:repeat(3,1fr)}.city-portrait50{grid-template-columns:56px 1fr}.city-portrait50 img{width:54px;height:64px}}

/* Adventure 5.1 — full Pokémon base stat audit presentation */
.stat-audit51{display:grid;gap:3px;padding:9px 11px;border-radius:14px;background:linear-gradient(180deg,#fff8dc,#fff2ae);border:2px solid rgba(204,143,32,.35);color:#3a2b00;box-shadow:0 4px 12px rgba(120,80,20,.12)}
.stat-audit51 strong{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:#6c4700}.stat-audit51 span{font-weight:900}.stat-audit51 small{font-weight:800;color:#7d5c1a}.pokemon-base-grid51{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:2px 0 8px}.pokemon-base-grid51 b,.pokemon-base-grid51 em{border-radius:9px;background:#fff6cf;color:#684200;padding:5px;text-align:center;font-size:.68rem;font-style:normal;font-weight:900;border:1px solid rgba(150,112,20,.18)}.pokemon-base-grid51 em{background:#ffe08a;color:#4b3100}
@media(max-width:900px){.pokemon-base-grid51{grid-template-columns:repeat(3,1fr)}}


/* Adventure 5.2 world polish: cleaner tokens, readable nodes, discovery labels, battle anchoring, TCG UI */
body.adventure52-active .journey-window-frame .board-token.player-token52,
body.adventure52-active .journey-window-frame .board-token.map-token45,
body.adventure52-active .journey-window-frame .board-token.map-token43,
body.adventure52-active .journey-window-frame .board-token.map-token37{
  width:74px!important;max-width:74px!important;height:auto!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 16px 10px rgba(0,0,0,.5))!important;image-rendering:pixelated!important;
}
body.adventure52-active .journey-window-frame .board-token.map-token45:focus,
body.adventure52-active .journey-window-frame .board-token.map-token45:focus-visible{outline:0!important;box-shadow:none!important;}
body.adventure52-active .journey-window-frame .companion-token50,
body.adventure52-active .journey-window-frame .companion-token52{
  width:38px!important;max-width:38px!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;object-fit:contain!important;filter:drop-shadow(0 10px 7px rgba(0,0,0,.45))!important;image-rendering:pixelated!important;pointer-events:none!important;
}
body.adventure52-active .journey-window-frame .companion-token50-0{transform:translate(-50%,-50%) translate(30px,-28px)!important}
body.adventure52-active .journey-window-frame .companion-token50-1{transform:translate(-50%,-50%) translate(-32px,-24px)!important}
body.adventure52-active .journey-window-frame .companion-token50-2{transform:translate(-50%,-50%) translate(34px,24px)!important}
body.adventure52-active .journey-window-frame .companion-token50-3{transform:translate(-50%,-50%) translate(-34px,25px)!important}
body.adventure52-active .journey-window-frame .companion-token50-4{transform:translate(-50%,-50%) translate(0,38px)!important}
body.adventure52-active .journey-window-frame .board-node.map-node52{
  width:118px!important;min-width:118px!important;max-width:118px!important;min-height:72px!important;padding:8px 8px!important;border-radius:22px!important;font-size:.78rem!important;z-index:34!important;
}
body.adventure52-active .journey-window-frame .board-node.map-node52 span{font-size:.76rem!important;line-height:1.04!important;max-width:104px!important;letter-spacing:-.015em!important;}
body.adventure52-active .journey-window-frame .board-node.map-node52 small{font-size:.56rem!important;line-height:1!important;padding:2px 6px!important;}
body.adventure52-active .journey-window-frame .board-node.map-node52 em{font-size:.52rem!important;}
body.adventure52-active .journey-window-frame .board-node.map-node52.undiscovered52{
  width:88px!important;min-width:88px!important;max-width:88px!important;min-height:60px!important;opacity:.78!important;background:linear-gradient(180deg,rgba(238,241,219,.82),rgba(125,139,110,.72) 52%,rgba(80,91,73,.82) 53%,rgba(44,56,46,.9))!important;border-color:rgba(245,237,189,.38)!important;color:#192516!important;
}
body.adventure52-active .journey-window-frame .board-node.map-node52.undiscovered52 span{font-size:.62rem!important;color:#22301e!important;}
body.adventure52-active .journey-window-frame .board-node.map-node52.undiscovered52 em{display:none!important;}
body.adventure52-active .journey-window-frame .board-node.map-node52.node-tcg{background:linear-gradient(180deg,#fff8dc,#ffd869 50%,#c98923 51%,#6c4212)!important;border-color:#ffe68a!important;box-shadow:0 8px 0 rgba(0,0,0,.23),0 0 0 3px rgba(255,218,84,.24),0 20px 35px rgba(0,0,0,.28)!important;}
body.adventure52-active .strategy-board52 .strategy-bg45,
body.adventure52-active .strategy-board52 .strategy-bg43{
  background-image:radial-gradient(circle at 16% 18%,rgba(255,238,147,.22),transparent 10%),radial-gradient(circle at 86% 22%,rgba(88,170,255,.17),transparent 14%),radial-gradient(circle at 34% 78%,rgba(24,83,39,.34),transparent 17%),linear-gradient(135deg,rgba(255,255,255,.06) 0 2px,transparent 2px 48px),linear-gradient(180deg,rgba(126,190,105,.96),rgba(76,146,85,.95) 56%,rgba(53,116,78,.98))!important;
  filter:saturate(1.06) contrast(1.02)!important;
}
body.adventure52-active .strategy-board52 .route-road45{stroke-width:4.2!important;stroke:#efd584!important;filter:drop-shadow(0 6px 2px rgba(55,39,10,.32))!important;}
body.adventure52-active .strategy-board52 .route-center45{stroke-width:.7!important;stroke:rgba(255,255,255,.46)!important;stroke-dasharray:1.5 2.5!important;}
body.adventure52-active .strategy-board52 .route-side45{opacity:.56!important;stroke-width:2.4!important;}
body.adventure52-active .battlefield52{height:min(650px,62vw)!important;min-height:560px!important;}
body.adventure52-active .battlefield52 .player-stage{left:28.5%!important;bottom:26.5%!important;transform:translate(-50%,38%)!important;z-index:7!important;}
body.adventure52-active .battlefield52 .enemy-stage{right:27.5%!important;top:45.5%!important;transform:translate(50%,-38%)!important;z-index:7!important;}
body.adventure52-active .battlefield52 .pokemon-stage img{transform:scale(1.34)!important;max-width:250px!important;max-height:230px!important;object-fit:contain!important;transform-origin:center bottom!important;}
body.adventure52-active .battlefield52 .player-stage img{transform:scale(1.46)!important;max-width:286px!important;max-height:260px!important;}
body.adventure52-active .battlefield52 .enemy-trainer-full{right:5.5%!important;top:9%!important;}
body.adventure52-active .battlefield52 .player-trainer-full{left:5.5%!important;bottom:8%!important;}
body.adventure52-active .battlefield52 .enemy-info{left:38%!important;top:7%!important;}
body.adventure52-active .battlefield52 .player-info{right:6%!important;bottom:6.5%!important;}
.tcg-panel52{display:grid;gap:12px}.tcg-head52{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:18px;background:linear-gradient(135deg,#fff7db,#dcecff);border:2px solid rgba(26,80,146,.22);padding:12px;color:#102845}.tcg-head52 strong{font-size:1.05rem}.tcg-head52 span{font-weight:900;color:#4b607a}.tcg-stats52{display:flex;flex-wrap:wrap;gap:7px}.tcg-stats52 span{border-radius:999px;background:#e7f0ff;color:#173c6c;padding:6px 9px;font-weight:950;font-size:.78rem}.tcg-shop52,.tcg-singles52,.tcg-actions52{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.tcg-shop52 button,.tcg-singles52 button,.tcg-actions52 button,.pokemon-actions50 button{border:2px solid rgba(22,68,122,.2);border-radius:14px;background:linear-gradient(180deg,#ffffff,#e7f2ff);color:#143252;padding:9px;font-weight:950;text-align:left;cursor:pointer}.tcg-shop52 button span,.tcg-singles52 button span{display:block;color:#64758a;font-size:.72rem}.tcg-deck52,.tcg-collection52{display:flex;flex-wrap:wrap;gap:6px}.tcg-deck52 span,.tcg-card-chip52{border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.1);color:#123;padding:5px 8px;font-weight:900;font-size:.72rem}.tcg-card-chip52 small{display:block;font-size:.62rem;color:#657186}.rarity-rare{box-shadow:inset 0 0 0 2px rgba(80,140,255,.24)}.rarity-legend{box-shadow:inset 0 0 0 2px rgba(255,190,50,.45);background:#fff5cf!important}.tcg-hp-row52{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}.tcg-hp-row52 i{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,#69df80,#f3ff83)}.tcg-log52{max-height:160px;overflow:auto;border-radius:14px;background:rgba(255,255,255,.72);padding:8px;color:#19324f}.tcg-log52 p{margin:0 0 6px}.companion-row52 img{width:48px!important;height:48px!important;object-fit:contain;image-rendering:pixelated;background:linear-gradient(180deg,#eaf5ff,#d9e7ff);border-radius:14px;padding:4px}
@media (max-width:900px){body.adventure52-active .battlefield52 .player-stage{left:33%!important;bottom:30%!important}body.adventure52-active .battlefield52 .enemy-stage{right:31%!important;top:43%!important}body.adventure52-active .journey-window-frame .board-node.map-node52{width:96px!important;min-width:96px!important;max-width:96px!important}}

/* Adventure 5.3 — living strategy board, calendar, walking, battle intros, attack VFX */
body.adventure53-active .calendar-chip53{
  display:grid!important;gap:3px!important;margin:8px 0 6px!important;padding:8px 10px!important;border-radius:16px!important;
  background:linear-gradient(180deg,#fff7d2,#e7f2ff)!important;border:2px solid rgba(23,62,114,.22)!important;color:#172033!important;
  box-shadow:0 8px 18px rgba(0,0,0,.18)!important;font-weight:950!important;
}
body.adventure53-active .calendar-chip53 strong{font-size:.82rem!important;color:#12243b!important;letter-spacing:.02em!important;}
body.adventure53-active .calendar-chip53 span{font-size:.68rem!important;color:#53657d!important;font-weight:850!important;}
body.adventure53-active .board-node.cooling53{filter:saturate(.8) contrast(.95)!important;opacity:.74!important;}
body.adventure53-active .board-node.cooling53::after{content:"⏳";position:absolute;right:-7px;top:-7px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#172033;color:#ffe66b;border:2px solid rgba(255,255,255,.72);font-size:.75rem;box-shadow:0 6px 14px rgba(0,0,0,.3)}
body.adventure53-active .journey-window-frame .board-token.map-token45,
body.adventure53-active .journey-window-frame .board-token.map-token43,
body.adventure53-active .journey-window-frame .board-token.map-token37{transform:translate(-50%,-72%)!important;transform-origin:center bottom!important;}
body.adventure53-active .journey-window-frame .board-token.walking53{
  animation:walkBobble53 .72s cubic-bezier(.2,.75,.2,1) both!important;
}
body.adventure53-active .journey-window-frame .companion-token50.walking53,
body.adventure53-active .journey-window-frame .companion-token52.walking53{
  animation:companionWalkBobble53 .72s cubic-bezier(.2,.75,.2,1) both!important;
}
@keyframes walkBobble53{
  0%{transform:translate(calc(-50% + var(--walk-from-x,0px)),calc(-72% + var(--walk-from-y,0px))) scale(1)}
  28%{transform:translate(calc(-50% + var(--walk-mid-x,0px)),calc(-72% + var(--walk-mid-y,0px) - 9px)) scale(1.04,.96)}
  58%{transform:translate(calc(-50% + var(--walk-near-x,0px)),calc(-72% + var(--walk-near-y,0px) - 6px)) scale(1.03,.97)}
  100%{transform:translate(-50%,-72%) scale(1)}
}
@keyframes companionWalkBobble53{
  0%{margin-left:var(--walk-from-x,0px);margin-top:var(--walk-from-y,0px);filter:drop-shadow(0 10px 7px rgba(0,0,0,.42)) brightness(1)}
  35%{margin-left:var(--walk-mid-x,0px);margin-top:calc(var(--walk-mid-y,0px) - 7px);filter:drop-shadow(0 18px 9px rgba(0,0,0,.38)) brightness(1.08)}
  68%{margin-left:var(--walk-near-x,0px);margin-top:calc(var(--walk-near-y,0px) - 5px)}
  100%{margin-left:0;margin-top:0;filter:drop-shadow(0 10px 7px rgba(0,0,0,.45))}
}
body.adventure53-active .strategy-board52 .strategy-bg45,
body.adventure53-active .strategy-board52 .strategy-bg43{
  filter:saturate(1.12) contrast(1.04)!important;
}
body.adventure53-active .strategy-board52::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:
  radial-gradient(circle at 12% 18%,rgba(255,255,255,.22),transparent 9%),
  radial-gradient(circle at 78% 23%,rgba(255,235,123,.16),transparent 13%),
  radial-gradient(circle at 68% 72%,rgba(53,110,52,.16),transparent 18%),
  linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),
  linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:auto,auto,auto,96px 96px,96px 96px;mix-blend-mode:soft-light;}
body.adventure53-active .battlefield53,.battlefield.battle-enter53{overflow:hidden!important;}
.battle-splash53{position:absolute;z-index:40;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;gap:3px;text-align:center;min-width:260px;padding:16px 22px;border-radius:24px;border:4px solid #101622;background:linear-gradient(180deg,#fffef4,#e6f1ff);color:#132138;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8),0 24px 60px rgba(0,0,0,.45);animation:battleSplash53 1.05s ease both!important;}
.battle-splash53 strong{font-size:1.15rem!important;color:#132138!important}.battle-splash53 span{font-size:.8rem!important;text-transform:uppercase!important;letter-spacing:.16em!important;color:#d7373a!important;font-weight:950!important}
@keyframes battleSplash53{0%{opacity:0;transform:translate(-50%,-50%) scale(.72)}15%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.1)}}
.battlefield.battle-enter53::before{animation:battleWipe53 .95s ease both!important;z-index:32!important;}
.battlefield.battle-enter53 .player-trainer-full{animation:trainerSlidePlayer53 .75s ease both!important}.battlefield.battle-enter53 .enemy-trainer-full{animation:trainerSlideEnemy53 .75s ease both!important}.battlefield.battle-enter53 .pokemon-stage img{animation:pokemonPop53 .82s ease both!important;}
@keyframes battleWipe53{0%{clip-path:inset(0 0 0 0);background:linear-gradient(90deg,#071020,#ffe66b,#071020);opacity:1}55%{opacity:.92}100%{clip-path:inset(0 50% 0 50%);opacity:0}}
@keyframes trainerSlidePlayer53{0%{transform:translateX(-90px);opacity:0}100%{transform:translateX(0);opacity:1}}
@keyframes trainerSlideEnemy53{0%{transform:translateX(90px);opacity:0}100%{transform:translateX(0);opacity:1}}
@keyframes pokemonPop53{0%{opacity:0;filter:brightness(2) drop-shadow(0 0 26px rgba(255,255,255,.8));transform:scale(.4)}65%{opacity:1;transform:scale(1.56)}100%{opacity:1;transform:scale(1.34)}}
body.adventure53-active .battlefield52 .player-stage{left:27.5%!important;bottom:25.2%!important;transform:translate(-50%,38%)!important;}
body.adventure53-active .battlefield52 .enemy-stage{right:26.5%!important;top:43.4%!important;transform:translate(50%,-38%)!important;}
body.adventure53-active .battlefield52 .pokemon-stage img{transform-origin:center bottom!important;}
body.adventure53-active .battlefield52 .player-stage img{transform:scale(1.38)!important;}
body.adventure53-active .battlefield52 .enemy-stage img{transform:scale(1.28)!important;}
.move-vfx53{position:absolute;inset:0;z-index:22;pointer-events:none;overflow:hidden}.move-vfx53 b{position:absolute;left:50%;top:18%;transform:translateX(-50%);font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;background:rgba(4,8,18,.78);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:6px 10px;opacity:0;animation:vfxLabel53 .72s ease both}.move-vfx53 i{position:absolute;display:block;left:var(--sx,28%);top:var(--sy,60%);width:18px;height:18px;border-radius:50%;background:#fff;animation:vfxFly53 .78s ease-out both;animation-delay:calc(var(--i)*34ms)}.from-player53 i{--sx:28%;--sy:61%;--tx:70%;--ty:39%}.from-enemy53 i{--sx:70%;--sy:39%;--tx:30%;--ty:60%}@keyframes vfxLabel53{0%,100%{opacity:0;transform:translate(-50%,-6px)}18%,72%{opacity:1;transform:translate(-50%,0)}}@keyframes vfxFly53{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}12%{opacity:1}100%{opacity:0;left:calc(var(--tx) + (var(--i) - 3)*5px);top:calc(var(--ty) + ((var(--i)%3) - 1)*12px);transform:translate(-50%,-50%) scale(1.35)}}
.vfx-fire53 i{background:radial-gradient(circle,#fff7a5 0 18%,#ff7b26 42%,#e33221 72%,transparent 73%);box-shadow:0 0 18px rgba(255,98,26,.75);clip-path:polygon(50% 0,74% 36%,100% 56%,66% 100%,35% 80%,0 100%,25% 44%)}
.vfx-water53 i{background:radial-gradient(circle at 35% 30%,#fff,#6fe7ff 32%,#1688d7 72%);box-shadow:0 0 16px rgba(86,220,255,.65)}
.vfx-electric53 i{width:12px;height:38px;border-radius:0;background:#fff56a;clip-path:polygon(40% 0,100% 0,62% 42%,100% 42%,20% 100%,43% 55%,0 55%);box-shadow:0 0 18px rgba(255,238,82,.95)}
.vfx-grass53 i{background:#72ee7d;border-radius:80% 0 80% 0;transform:rotate(calc(var(--i)*24deg));box-shadow:0 0 12px rgba(82,230,90,.5)}
.vfx-ice53 i{background:linear-gradient(135deg,#fff,#7ee8ff);border-radius:2px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);box-shadow:0 0 18px rgba(145,237,255,.75)}
.vfx-rock53 i,.vfx-ground53 i{background:linear-gradient(135deg,#d1b177,#6f4b22);border-radius:4px;clip-path:polygon(20% 0,86% 14%,100% 76%,38% 100%,0 56%)}
.vfx-fighting53 i,.vfx-normal53 i{background:#fff;border:3px solid #ffde55;box-shadow:0 0 15px rgba(255,222,85,.8);clip-path:polygon(50% 0,61% 36%,100% 35%,68% 57%,79% 100%,50% 72%,21% 100%,32% 57%,0 35%,39% 36%)}
.vfx-psychic53 i{background:transparent;border:3px solid #ff73de;box-shadow:0 0 20px rgba(255,96,216,.75);animation-name:vfxRing53}.vfx-ghost53 i,.vfx-dark53 i{background:radial-gradient(circle,#c7a2ff,#5e32b6 70%,transparent 72%);box-shadow:0 0 20px rgba(132,84,255,.75)}
.vfx-bug53 i{width:10px;height:10px;background:#c9ff67;box-shadow:0 0 12px rgba(176,255,92,.75)}.vfx-poison53 i{background:radial-gradient(circle,#f8b1ff,#8a2fc3 62%,#3c115a);box-shadow:0 0 16px rgba(173,74,218,.72)}.vfx-flying53 i{background:rgba(255,255,255,.72);height:6px;width:54px;border-radius:999px;filter:blur(.5px)}.vfx-dragon53 i{background:linear-gradient(135deg,#78fff4,#764cff);border-radius:50%;box-shadow:0 0 22px rgba(102,82,255,.85)}.vfx-steel53 i{background:linear-gradient(135deg,#fff,#a9b9c7,#5d6d7e);border-radius:2px;clip-path:polygon(50% 0,100% 24%,82% 100%,18% 100%,0 24%)}.vfx-status53 i{background:transparent;border:3px solid #ffe66b;box-shadow:0 0 18px rgba(255,230,107,.7);animation-name:vfxRing53}@keyframes vfxRing53{0%{opacity:0;left:50%;top:50%;transform:translate(-50%,-50%) scale(.15)}18%{opacity:1}100%{opacity:0;left:50%;top:50%;transform:translate(-50%,-50%) scale(6)}}
.screen-shake53{animation:screenShake53 .45s ease both!important}@keyframes screenShake53{0%,100%{transform:translate(0)}20%{transform:translate(-5px,2px)}40%{transform:translate(4px,-3px)}60%{transform:translate(-3px,4px)}80%{transform:translate(2px,-2px)}}
@media(max-width:900px){body.adventure53-active .calendar-chip53 strong{font-size:.72rem!important}.battle-splash53{min-width:220px}.move-vfx53 b{top:10%}}

/* Adventure 5.4 - Multi-slot save manager */
.save-manager-host54{
  display:block;
  padding:14px;
}
.save-manager54{
  width:100%;
  display:grid;
  gap:12px;
}
.save-manager-head54{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:4px 2px 8px;
}
.save-manager-head54 strong{
  display:block;
  color:#fff7c7;
  font-size:1.05rem;
}
.save-manager-head54 p{
  margin:.25rem 0 0;
  color:#b9c7dc;
  font-size:.86rem;
}
.save-slots54{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}
.save-slot54{
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(12,20,31,.92),rgba(24,35,49,.86));
  box-shadow:0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
  padding:12px;
  min-height:154px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.save-slot54.is-active{
  border-color:rgba(255,225,91,.8);
  box-shadow:0 0 0 1px rgba(255,225,91,.24), 0 18px 32px rgba(0,0,0,.28);
}
.save-slot54.is-empty{
  opacity:.9;
  background:linear-gradient(145deg,rgba(14,22,34,.76),rgba(30,39,51,.62));
}
.save-slot-top54{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.save-slot-top54 strong{
  color:#ffe56c;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.75rem;
}
.save-slot-top54 span{
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,225,91,.18);
  color:#ffe56c;
  font-weight:900;
  font-size:.68rem;
  text-transform:uppercase;
}
.save-slot54 p{
  margin:0;
  color:#f3f6ff;
  font-weight:800;
  line-height:1.25;
}
.save-slot54 small,
.save-slot54 em{
  color:#aebbd1;
  font-style:normal;
  line-height:1.25;
}
.save-slot-actions54{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
}
.save-slot-actions54 .button-small{
  min-height:32px;
  padding:6px 10px;
  font-size:.76rem;
}
.save-note54{
  margin:4px 0 0;
  color:#b9c7dc;
  font-size:.86rem;
}
.journey-map-window-body .save-manager54{
  max-width:100%;
}
.journey-map-window-body .save-slots54{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
@media (max-width: 800px){
  .save-manager-head54{align-items:flex-start;flex-direction:column;}
  .save-slots54{grid-template-columns:1fr;}
}

/* Adventure 5.5 complete package + advanced Journey TCG */
.adventure55-active .journey-map-window-body{font-size:.94rem}
.tcg55-panel{display:grid;gap:14px;color:#14223a}
.tcg55-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:stretch;border:2px solid rgba(41,95,154,.22);border-radius:22px;background:linear-gradient(135deg,#fff8da 0%,#eaf5ff 48%,#dbeaff 100%);box-shadow:0 12px 26px rgba(17,39,77,.14);padding:16px;color:#10233d}
.tcg55-hero strong{display:block;font-size:1.35rem;line-height:1.05;margin:4px 0}.tcg55-hero p{margin:0;max-width:840px;color:#4c607a;font-weight:750}.tcg55-hero>div:last-child{display:grid;align-content:center;gap:4px;min-width:180px;border-radius:18px;background:rgba(255,255,255,.72);padding:12px;text-align:right}.tcg55-hero b{font-size:1.2rem}.tcg55-hero span,.tcg55-hero em{color:#536477;font-style:normal;font-weight:900}
.tcg55-tabs,.tcg55-filter-row,.tcg55-actions,.tcg55-shop-grid,.tcg55-singles{display:flex;flex-wrap:wrap;gap:8px}.tcg55-tabs button,.tcg55-filter-row button,.tcg55-actions button,.tcg55-shop-grid button,.tcg55-singles button,.tcg55-deck-list button,.tcg55-binder-card button,.tcg55-score button{border:2px solid rgba(22,45,84,.16);border-radius:999px;background:linear-gradient(180deg,#fff,#e8f1ff);color:#10243e;padding:9px 13px;font-weight:1000;cursor:pointer;box-shadow:0 6px 14px rgba(19,42,78,.08)}
.tcg55-tabs button.is-active,.tcg55-filter-row button.is-active{background:linear-gradient(180deg,#ffe984,#f4be3d);color:#111827;border-color:rgba(116,82,10,.22)}.tcg55-tabs button:disabled,.tcg55-filter-row button:disabled,.tcg55-actions button:disabled,.tcg55-card:disabled,.tcg55-binder-card button:disabled{opacity:.45;cursor:not-allowed}
.tcg55-play,.tcg55-deck-panel,.tcg55-shop,.tcg55-match{display:grid;gap:12px}.tcg55-deck-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(29,65,117,.16);padding:12px}.tcg55-deck-summary strong{font-size:1.05rem}.tcg55-deck-summary span{color:#4d607a;font-weight:850}.tcg55-deck-summary em{margin-left:auto;font-style:normal;font-weight:1000;color:#25426b}
.tcg55-deck-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.tcg55-deck-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;border-radius:16px;background:linear-gradient(180deg,#fff,#edf4ff);border:1px solid rgba(20,47,83,.12);padding:9px}.tcg55-deck-list article span{font-weight:1000}.tcg55-deck-list article small{color:#607086;font-weight:800}.tcg55-deck-list article button{grid-row:1/3;grid-column:2;padding:7px 10px;border-radius:12px}
.tcg55-collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;max-height:min(58vh,620px);overflow:auto;padding-right:3px}.tcg55-binder-card,.tcg55-card{position:relative;display:grid;gap:5px;border-radius:18px;background:linear-gradient(180deg,#fff,#eaf2ff);border:2px solid rgba(28,67,118,.16);padding:10px;color:#10233d;text-align:left;box-shadow:0 10px 18px rgba(18,42,75,.1)}.tcg55-binder-card img,.tcg55-card img,.tcg55-pokemon img,.tcg55-singles img{width:42px;height:42px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 5px rgba(0,0,0,.22))}.tcg55-binder-card strong,.tcg55-card strong{font-size:.96rem;line-height:1.1}.tcg55-binder-card span,.tcg55-card span,.tcg55-binder-card small,.tcg55-card small{color:#5b6d84;font-weight:800;font-size:.74rem;line-height:1.25}.tcg55-binder-card em{font-style:normal;color:#203d66;font-weight:950;font-size:.75rem}.tcg55-binder-card button{border-radius:12px;padding:8px 10px;margin-top:2px}.tcg55-binder-card.rarity-legend,.tcg55-card.rarity-legend{background:linear-gradient(180deg,#fff8d2,#ffe395);border-color:rgba(181,127,13,.35)}.tcg55-binder-card.rarity-rare,.tcg55-card.rarity-rare{background:linear-gradient(180deg,#eff7ff,#dceaff);border-color:rgba(44,107,198,.28)}.tcg55-binder-card.rarity-uncommon,.tcg55-card.rarity-uncommon{background:linear-gradient(180deg,#f4fff6,#e0f5df);border-color:rgba(52,130,62,.2)}
.tcg55-shop-banner{border-radius:18px;background:rgba(255,255,255,.74);border:1px solid rgba(20,47,83,.14);padding:12px}.tcg55-shop-banner strong{display:block;font-size:1.05rem}.tcg55-shop-banner span{color:#596b82;font-weight:850}.tcg55-shop.is-locked{opacity:.86}.tcg55-shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.tcg55-shop-grid button,.tcg55-singles button{border-radius:16px;text-align:left;display:grid;gap:4px}.tcg55-shop-grid button span,.tcg55-singles button span{font-size:.78rem;color:#65738a}.tcg55-singles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.tcg55-singles button{grid-template-columns:auto minmax(0,1fr);align-items:center}.tcg55-singles button span{grid-column:2}.tcg55-singles button strong{grid-column:2}
.tcg55-score{display:flex;align-items:center;gap:10px;border-radius:18px;background:linear-gradient(135deg,#101f37,#173a61);color:#f8fbff;padding:12px;box-shadow:0 14px 28px rgba(0,0,0,.22)}.tcg55-score strong{font-size:1.1rem}.tcg55-score span{opacity:.84;font-weight:850}.tcg55-score button{margin-left:auto;background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.24)}
.tcg55-table{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tcg55-table section{display:grid;gap:8px;border-radius:22px;background:linear-gradient(180deg,#f8fbff,#e5eefb);border:2px solid rgba(31,66,108,.14);padding:12px;min-width:0}.tcg55-table h4,.tcg55-hand h4{margin:0;color:#1b3760}.tcg55-table p{margin:0;color:#607085;font-weight:850}.tcg55-pokemon{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:center;border-radius:18px;background:linear-gradient(180deg,#fff,#f0f6ff);border:1px solid rgba(17,45,78,.13);padding:10px;min-height:92px}.tcg55-pokemon.opponent{background:linear-gradient(180deg,#fff6f3,#f1e4df)}.tcg55-pokemon img{grid-row:1/5;width:54px;height:54px}.tcg55-pokemon strong{font-size:1rem}.tcg55-pokemon small{color:#596b83;font-weight:850}.tcg55-pokemon em{font-style:normal;color:#355276;font-weight:950;font-size:.75rem}.tcg55-slot.empty{display:grid;place-items:center;min-height:92px;border-radius:18px;border:2px dashed rgba(33,67,111,.22);color:#667991;font-weight:950}.tcg55-bench{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}.tcg55-bench .tcg55-pokemon{min-height:70px;padding:7px}.tcg55-bench .tcg55-pokemon img{width:34px;height:34px}.tcg55-bench .tcg55-pokemon small{display:none}.tcg55-hp{display:grid;gap:3px}.tcg55-hp span{font-size:.72rem;color:#32506f;font-weight:1000}.tcg55-hp i{display:block;height:10px;border-radius:999px;background:linear-gradient(90deg,#67df83,#fff278);box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.tcg55-hand{display:grid;gap:8px;border-radius:22px;background:rgba(255,255,255,.74);border:1px solid rgba(30,67,117,.14);padding:12px}.tcg55-hand>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.tcg55-card{cursor:pointer;min-height:128px}.tcg55-card.kind-energy{background:linear-gradient(180deg,#fffde9,#e7f0ff)}.tcg55-card.kind-trainer{background:linear-gradient(180deg,#fff,#f5efe4)}.tcg55-log{max-height:160px;overflow:auto;border-radius:18px;background:#101f37;color:#dbeafe;padding:10px}.tcg55-log p{margin:0 0 6px;font-weight:800}.tcg55-log p:first-child{color:#ffe680}.tcg55-actions button span{display:block;font-size:.72rem;opacity:.7}.tcg55-panel .world-action-row{align-items:center}.tcg55-panel .button{white-space:normal}
@media(max-width:900px){.tcg55-hero,.tcg55-table{grid-template-columns:1fr}.tcg55-hero>div:last-child{text-align:left}.tcg55-collection-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.tcg55-hand>div{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}}

/* Adventure 5.6 - 3-Prize TCG polish */
.adventure56-active .tcg56-panel{--tcg-red:#e84c4f;--tcg-blue:#2b7de9;--tcg-gold:#f7c948;color:#12233b}
.tcg56-match{gap:14px}.tcg56-prize-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tcg56-prize-row section{display:flex;align-items:center;gap:10px;border-radius:18px;background:linear-gradient(180deg,#fff,#edf6ff);border:2px solid rgba(31,69,116,.14);padding:10px 12px;box-shadow:0 8px 16px rgba(19,42,78,.08)}.tcg56-prize-row b{font-size:.9rem}.tcg56-prize-row span{display:flex;gap:5px}.tcg56-prize-row i{display:grid;place-items:center;width:30px;height:38px;border-radius:8px;background:linear-gradient(160deg,#f8fbff,#cbdaf1);border:2px solid rgba(26,58,106,.2);font-style:normal;font-weight:1000;color:#1d365c;box-shadow:0 5px 10px rgba(0,0,0,.12)}.tcg56-prize-row i.taken{background:linear-gradient(160deg,#ffe475,#f3a83a);color:#111827;border-color:rgba(127,82,14,.28)}.tcg56-prize-row em{margin-left:auto;font-style:normal;font-size:.78rem;color:#526881;font-weight:950}.tcg56-callout{border-radius:16px;background:linear-gradient(90deg,#ffe98a,#fff7cc);border:2px solid rgba(149,95,10,.2);padding:10px 12px;color:#332408;font-weight:1000}.tcg56-table .tcg55-pokemon{border-width:2px}.tcg56-card-on-board{position:relative;overflow:hidden}.tcg56-card-on-board:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 16% 10%,rgba(255,255,255,.8),transparent 30%)}.tcg56-energy-dot{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;margin-right:3px;background:#d9e3f7;color:#11203a;font-size:.68rem;line-height:1;border:1px solid rgba(0,0,0,.12)}.tcg56-energy-dot.type-fire{background:#ffb276}.tcg56-energy-dot.type-water{background:#8cc8ff}.tcg56-energy-dot.type-grass{background:#9ee291}.tcg56-energy-dot.type-lightning,.tcg56-energy-dot.type-electric{background:#ffe477}.tcg56-energy-dot.type-fighting,.tcg56-energy-dot.type-rock{background:#d5a56b}.tcg56-energy-dot.type-psychic{background:#eab0ff}.tcg56-energy-dot.type-darkness,.tcg56-energy-dot.type-dark{background:#a7a7b4;color:#fff}.tcg56-energy-dot.type-metal,.tcg56-energy-dot.type-steel{background:#c8d0d8}.tcg56-energy-dot.type-colorless{background:#edf1f7}.tcg56-promote{position:absolute;right:8px;bottom:8px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffe77a,#f5bd36);padding:6px 9px;color:#151515;font-weight:1000;cursor:pointer;box-shadow:0 6px 12px rgba(0,0,0,.18)}.tcg55-actions button[data-tcg55-retreat]{background:linear-gradient(180deg,#fff,#f5eee2)}.adventure56-active .tcg55-score{background:linear-gradient(135deg,#123f73,#0f253d)}.adventure56-active .tcg55-hero{background:linear-gradient(135deg,#fff7d0 0%,#eff8ff 42%,#d8ecff 100%);border-color:rgba(47,105,177,.24)}
@media(max-width:900px){.tcg56-prize-row{grid-template-columns:1fr}.tcg56-prize-row section{flex-wrap:wrap}}

/* Adventure 5.7 — visible board walking, targeted move VFX, and battle stage polish */
body.adventure57-active .journey-window-frame .board-token.walking57{
  z-index:1400!important;
  transform:translate(-50%,-72%) scale(1.05)!important;
  filter:drop-shadow(0 20px 12px rgba(0,0,0,.45)) drop-shadow(0 0 16px rgba(255,230,107,.42))!important;
}
body.adventure57-active .journey-window-frame .companion-token50.walking57,
body.adventure57-active .journey-window-frame .companion-token52.walking57{
  z-index:1390!important;
  transform:translate(-50%,-50%) scale(1.04)!important;
  filter:drop-shadow(0 14px 9px rgba(0,0,0,.45)) brightness(1.06)!important;
}
body.adventure57-active .journey-window-frame .board-token.map-token45,
body.adventure57-active .journey-window-frame .board-token.map-token43,
body.adventure57-active .journey-window-frame .board-token.map-token37{
  transition:none!important;
  will-change:left,top,transform!important;
}
body.adventure57-active .journey-window-frame .companion-token50,
body.adventure57-active .journey-window-frame .companion-token52{
  transition:none!important;
  will-change:left,top,transform!important;
}

body.adventure57-active .battle-screen{--battle-blue:#d8f4ff;--battle-grass:#5f8f43;}
body.adventure57-active .battlefield57{
  height:min(700px,55vw)!important;
  min-height:610px!important;
  border-radius:32px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 74% 11%,rgba(255,245,167,.72) 0 8%,rgba(255,245,167,.38) 8% 12%,transparent 12.5%),
    radial-gradient(ellipse at 50% 47%,rgba(255,255,255,.18),transparent 44%),
    linear-gradient(180deg,#a6e1f2 0%,#a7d8e3 38%,#6fa159 38.2%,#4f793d 61%,#284929 100%)!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.16),0 22px 70px rgba(0,0,0,.42)!important;
}
body.adventure57-active .battlefield57:before{
  content:""!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;
  background:
    radial-gradient(ellipse at 18% 49%,rgba(51,122,71,.82) 0 7%,transparent 7.3%),
    radial-gradient(ellipse at 32% 43%,rgba(59,136,79,.72) 0 8%,transparent 8.2%),
    radial-gradient(ellipse at 48% 47%,rgba(56,130,75,.66) 0 7.2%,transparent 7.5%),
    radial-gradient(ellipse at 66% 48%,rgba(52,122,70,.6) 0 7%,transparent 7.3%),
    radial-gradient(ellipse at 82% 49%,rgba(51,120,69,.62) 0 8%,transparent 8.3%),
    linear-gradient(170deg,transparent 0 44%,rgba(43,90,47,.72) 44.2% 67%,rgba(20,52,28,.82) 67.2% 100%)!important;
  opacity:.92!important;
}
body.adventure57-active .battlefield57:after{display:none!important;content:none!important;}
body.adventure57-active .battlefield57 .battle-pads57{position:absolute;inset:0;z-index:3;pointer-events:none;}
body.adventure57-active .battlefield57 .battle-pad57{position:absolute;display:block;border-radius:50%;background:radial-gradient(ellipse at center,rgba(222,217,166,.74),rgba(130,135,105,.62) 65%,rgba(49,70,54,.22) 66%,transparent 70%);box-shadow:inset 0 0 0 6px rgba(255,255,255,.14),0 18px 20px rgba(0,0,0,.24);}
body.adventure57-active .battlefield57 .player-pad57{left:8.5%;bottom:5.5%;width:40%;height:19%;transform:rotate(1deg);}
body.adventure57-active .battlefield57 .enemy-pad57{right:13%;top:45%;width:32%;height:15%;transform:rotate(-1deg);}
body.adventure57-active .battlefield57 .trainer-full{z-index:7!important;}
body.adventure57-active .battlefield57 .player-trainer-full{left:6.7%!important;bottom:8.2%!important;}
body.adventure57-active .battlefield57 .enemy-trainer-full{right:6.8%!important;top:10.5%!important;}
body.adventure57-active .battlefield57 .pokemon-stage{
  width:180px!important;height:160px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;z-index:9!important;filter:drop-shadow(0 24px 16px rgba(0,0,0,.42))!important;transform-origin:center bottom!important;
}
body.adventure57-active .battlefield57 .player-stage{
  left:29.5%!important;top:66.5%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%) scale(1.62)!important;
}
body.adventure57-active .battlefield57 .enemy-stage{
  left:73%!important;top:44.5%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%) scale(1.46)!important;
}
body.adventure57-active .battlefield57 .pokemon-stage img{
  max-width:150px!important;max-height:135px!important;width:auto!important;height:auto!important;object-fit:contain!important;image-rendering:pixelated!important;transform:none!important;transform-origin:center bottom!important;background:transparent!important;
}
body.adventure57-active .battlefield57 .player-stage img{max-width:160px!important;max-height:145px!important;}
body.adventure57-active .battlefield57 .enemy-stage img{max-width:150px!important;max-height:135px!important;}
body.adventure57-active .battlefield57 .pokemon-stage img.sprite-lunge{animation:nexusLunge57 .28s ease!important;}
@keyframes nexusLunge57{50%{transform:translateX(14px) scale(1.08)}}
body.adventure57-active .battlefield57 .enemy-stage img.sprite-lunge{animation:nexusEnemyLunge57 .28s ease!important;}
@keyframes nexusEnemyLunge57{50%{transform:translateX(-14px) scale(1.08)}}
body.adventure57-active .battlefield57 .enemy-info{left:38.5%!important;top:7.3%!important;right:auto!important;min-width:330px!important;z-index:12!important;}
body.adventure57-active .battlefield57 .player-info{right:6.1%!important;bottom:6.4%!important;left:auto!important;min-width:330px!important;z-index:12!important;}
body.adventure57-active .battlefield57 .combat-card{border-radius:20px!important;background:linear-gradient(160deg,rgba(21,31,44,.94),rgba(8,15,24,.92))!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 18px 42px rgba(0,0,0,.38)!important;}
body.adventure57-active .battle-console{border-radius:28px!important;background:linear-gradient(145deg,rgba(8,14,27,.92),rgba(4,7,16,.96))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 16px 48px rgba(0,0,0,.24)!important;}
body.adventure57-active .move-grid{align-content:start!important;}
body.adventure57-active .move-button{min-height:70px!important;border-radius:18px!important;background:linear-gradient(180deg,#f8fbff,#dce9ff)!important;color:#132238!important;border:2px solid rgba(47,78,130,.25)!important;text-align:left!important;box-shadow:0 8px 0 rgba(28,49,83,.25),0 16px 26px rgba(0,0,0,.16)!important;}
body.adventure57-active .move-button strong{color:#111c2f!important;}body.adventure57-active .move-button span{color:#52667f!important;}

.move-vfx57{position:absolute;inset:0;z-index:34;pointer-events:none;overflow:hidden;}
.move-vfx57 i{position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-style:normal;font-size:21px;font-weight:950;text-shadow:0 2px 8px rgba(0,0,0,.45);filter:drop-shadow(0 0 8px rgba(255,255,255,.28));will-change:left,top,transform,opacity;}
.move-vfx57 b{position:absolute;z-index:2;transform:translate(-50%,-50%);border-radius:999px;background:rgba(6,10,22,.82);border:1px solid rgba(255,255,255,.2);color:#fff;padding:6px 10px;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;animation:vfxLabel57 .7s ease both;white-space:nowrap;}
@keyframes vfxLabel57{0%,100%{opacity:0;transform:translate(-50%,-60%) scale(.96)}18%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.move-vfx57 .impact57{position:absolute;width:20px;height:20px;border-radius:50%;border:3px solid rgba(255,255,255,.85);transform:translate(-50%,-50%) scale(.2);opacity:0;box-shadow:0 0 22px rgba(255,255,255,.55);}
.move-vfx57 .impact57.is-live{animation:impactPulse57 .32s ease-out both;}
@keyframes impactPulse57{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(4.2)}}
.vfx-fire57 i{color:#ff702e;text-shadow:0 0 14px #ff3d1c}.vfx-water57 i{color:#60dbff;text-shadow:0 0 14px #1ba2ff}.vfx-electric57 i{color:#fff36c;text-shadow:0 0 16px #ffee33}.vfx-grass57 i{color:#6ff184;text-shadow:0 0 13px #3bd65e}.vfx-ice57 i{color:#baf7ff;text-shadow:0 0 15px #7ee9ff}.vfx-rock57 i,.vfx-ground57 i{color:#b38347;text-shadow:0 0 10px #6b4426}.vfx-fighting57 i,.vfx-normal57 i{color:#fff7a5;text-shadow:0 0 14px #ffca42}.vfx-psychic57 i{color:#ff78e4;text-shadow:0 0 16px #ed45d8}.vfx-ghost57 i,.vfx-dark57 i{color:#b98cff;text-shadow:0 0 16px #7037d7}.vfx-bug57 i{color:#cbff5a;text-shadow:0 0 12px #98d93d}.vfx-poison57 i{color:#d982ff;text-shadow:0 0 14px #9b3ec5}.vfx-flying57 i{color:#e9fbff;text-shadow:0 0 14px #a7dfff}.vfx-dragon57 i{color:#83fff3;text-shadow:0 0 18px #7058ff}.vfx-steel57 i{color:#e8f2ff;text-shadow:0 0 14px #9aaec4}.vfx-status57 i{color:#ffe66b;text-shadow:0 0 14px #ffd43b;}
.hit57{animation:hitJolt57 .24s ease both!important;filter:brightness(1.65) drop-shadow(0 0 18px rgba(255,255,255,.72))!important;}
@keyframes hitJolt57{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px)}55%{transform:translateX(8px)}80%{transform:translateX(-4px)}}
.battlefield57.heavy-hit57{animation:heavyShake57 .38s ease both!important;}
@keyframes heavyShake57{0%,100%{transform:translate(0)}20%{transform:translate(-5px,2px)}40%{transform:translate(4px,-3px)}60%{transform:translate(-3px,3px)}80%{transform:translate(2px,-1px)}}
@media(max-width:900px){body.adventure57-active .battlefield57{height:620px!important;min-height:620px!important}body.adventure57-active .battlefield57 .player-stage{left:33%!important;top:66%!important;transform:translate(-50%,-50%) scale(1.35)!important}body.adventure57-active .battlefield57 .enemy-stage{left:69%!important;top:44%!important;transform:translate(-50%,-50%) scale(1.24)!important}body.adventure57-active .battlefield57 .enemy-info,body.adventure57-active .battlefield57 .player-info{min-width:240px!important}.move-vfx57 b{font-size:.62rem!important}}

/* Adventure 5.8 — true 3-prize TCG, companion scale, living board and shadow plague polish */
body.adventure58-active .journey-window-frame .companion-token50,
body.adventure58-active .journey-window-frame .companion-token52,
body.adventure58-active .journey-window-frame .companion-token58{
  width:58px!important;max-width:58px!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 15px 10px rgba(0,0,0,.55)) drop-shadow(0 0 8px rgba(255,255,255,.22))!important;image-rendering:pixelated!important;transform:translate(-50%,-70%)!important;
}
body.adventure58-active .journey-window-frame .companion-token50-0{transform:translate(-50%,-70%) translate(42px,-8px)!important}
body.adventure58-active .journey-window-frame .companion-token50-1{transform:translate(-50%,-70%) translate(-42px,-6px)!important}
body.adventure58-active .journey-window-frame .companion-token50-2{transform:translate(-50%,-70%) translate(48px,42px)!important}
body.adventure58-active .journey-window-frame .companion-token50-3{transform:translate(-50%,-70%) translate(-48px,42px)!important}
body.adventure58-active .journey-window-frame .companion-token50-4{transform:translate(-50%,-70%) translate(0,62px)!important}
body.adventure58-active .journey-window-frame .board-token.map-token45,
body.adventure58-active .journey-window-frame .board-token.map-token43,
body.adventure58-active .journey-window-frame .board-token.map-token37{width:82px!important;max-width:82px!important;z-index:1600!important;}
body.adventure58-active .journey-window-frame .node-polish58{min-width:122px!important;min-height:76px!important;font-size:.82rem!important;letter-spacing:-.01em!important;filter:saturate(1.04) contrast(1.02);}
body.adventure58-active .journey-window-frame .node-polish58 span{font-size:.82rem!important;line-height:1.04!important;max-width:110px!important;}
body.adventure58-active .journey-window-frame .node-polish58 small{font-size:.6rem!important;}
body.adventure58-active .journey-window-frame .shadow-plague-node58{border-color:rgba(202,112,255,.88)!important;box-shadow:0 9px 0 rgba(59,20,82,.38),0 0 0 5px rgba(161,76,255,.2),0 0 30px rgba(185,73,255,.38),0 24px 42px rgba(0,0,0,.35)!important;background:linear-gradient(180deg,#fff0ff,#c283ff 54%,#4f267a 100%)!important;color:#fff!important;}
body.adventure58-active .journey-window-frame .shadow-plague-node58:after{content:"";position:absolute;inset:-12px;border-radius:inherit;background:radial-gradient(circle,rgba(189,69,255,.34),transparent 62%);z-index:-1;animation:shadowPulse58 1.8s ease-in-out infinite;}
@keyframes shadowPulse58{0%,100%{opacity:.35;transform:scale(.96)}50%{opacity:.9;transform:scale(1.08)}}
.living-board58{transition:filter .35s ease;background-blend-mode:overlay,normal!important;}
.living-board58.tod-night{filter:brightness(.82) saturate(1.08) hue-rotate(7deg)!important;}
.living-board58.tod-dusk{filter:brightness(.96) saturate(1.12) sepia(.06)!important;}
.living-board58.season-winter{filter:brightness(1.04) saturate(.86) contrast(1.04)!important;}
.living-ambience58{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;}
.living-ambience58 i{position:absolute;width:8px;height:8px;border-radius:50%;background:rgba(255,239,145,.72);box-shadow:0 0 12px rgba(255,239,145,.75);animation:firefly58 8s linear infinite;}
.living-ambience58 i:nth-child(1){left:12%;top:22%;animation-duration:9s}.living-ambience58 i:nth-child(2){left:34%;top:61%;animation-duration:11s}.living-ambience58 i:nth-child(3){left:67%;top:32%;animation-duration:7s}.living-ambience58 i:nth-child(4){left:81%;top:72%;animation-duration:12s}.living-ambience58 i:nth-child(5){left:48%;top:18%;animation-duration:10s}
@keyframes firefly58{0%{transform:translate(0,0);opacity:.1}20%{opacity:.85}50%{transform:translate(36px,-24px);opacity:.55}80%{opacity:.8}100%{transform:translate(-18px,34px);opacity:.1}}

.tcg58-table-wrap,.tcg58-home{display:grid;gap:14px;color:#14233a;}
.tcg58-hero,.tcg58-score{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:3px solid rgba(42,99,172,.22);border-radius:24px;background:linear-gradient(135deg,#fff9dd 0%,#f4fbff 42%,#d8ecff 100%);padding:16px;box-shadow:0 18px 36px rgba(15,43,82,.18),inset 0 1px 0 rgba(255,255,255,.8);}
.tcg58-hero strong,.tcg58-score strong{display:block;font-size:1.35rem;color:#102d52;line-height:1.05}.tcg58-hero p,.tcg58-score p{margin:.35rem 0 0;color:#526783;font-weight:850;line-height:1.35}.tcg58-rank{display:grid;gap:4px;text-align:right;border-radius:18px;background:#12223d;color:#fff;padding:12px 14px;min-width:150px}.tcg58-rank b{font-size:1.2rem;color:#ffe66b}.tcg58-rank span,.tcg58-rank em{font-style:normal;color:#cfe1ff;font-weight:900;font-size:.82rem}.tcg58-starter-row,.tcg58-command-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.tcg58-starter-row button,.tcg58-command-row button,.tcg58-actions button{border:2px solid rgba(31,75,136,.2);border-radius:16px;background:linear-gradient(180deg,#fff,#e7f2ff);color:#15365b;padding:11px;font-weight:1000;text-align:left;cursor:pointer;box-shadow:0 8px 16px rgba(0,0,0,.08)}.tcg58-starter-row button:hover,.tcg58-command-row button:hover,.tcg58-actions button:not(:disabled):hover{transform:translateY(-1px);border-color:#f6c846}.tcg58-starter-row span,.tcg58-actions span{display:block;color:#627895;font-weight:850;font-size:.76rem}.tcg58-score{background:linear-gradient(135deg,#102543,#163e69);color:#f8fbff;border-color:rgba(255,255,255,.15)}.tcg58-score strong{color:#fff}.tcg58-score p{color:#cbdcf8}.tcg58-score button{justify-self:end;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;padding:9px 13px;font-weight:1000}.tcg58-prizes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tcg58-prizes section{display:flex;align-items:center;gap:10px;border:2px solid rgba(38,84,143,.16);border-radius:20px;background:linear-gradient(180deg,#fff,#eef6ff);padding:12px}.tcg58-prizes b{color:#17365f}.tcg58-prizes em{margin-left:auto;font-style:normal;color:#5a6f8a;font-weight:1000}.tcg58-prize{display:grid;place-items:center;width:44px;height:58px;border-radius:10px;background:linear-gradient(145deg,#e8f2ff,#b9cbe8);border:2px solid rgba(27,68,123,.25);font-size:.58rem;font-weight:1000;color:#17365f;box-shadow:0 6px 12px rgba(0,0,0,.14)}.tcg58-prize.taken{background:linear-gradient(145deg,#fff092,#efaf32);color:#231a06}.tcg58-callout{border-radius:18px;background:linear-gradient(90deg,#fff093,#fff8d8);border:2px solid rgba(149,95,10,.22);padding:12px;color:#332408;font-weight:1000}.tcg58-board{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tcg58-board section{display:grid;gap:10px;border-radius:24px;background:linear-gradient(180deg,#f9fcff,#e8f2ff);border:2px solid rgba(36,79,135,.13);padding:14px;min-width:0}.tcg58-board h4,.tcg58-hand h4{margin:0;color:#17365f;font-size:1.05rem}.tcg58-card-on-board{position:relative;overflow:hidden;display:grid;gap:8px;border-radius:20px;background:linear-gradient(180deg,#fff,#f2f7ff);border:2px solid rgba(26,68,122,.14);padding:12px;box-shadow:0 10px 22px rgba(16,45,82,.12)}.tcg58-card-on-board.opponent{background:linear-gradient(180deg,#fff7f4,#f0e6e1)}.tcg58-card-top{display:flex;justify-content:space-between;gap:10px}.tcg58-card-top b{color:#102d52;font-size:1.05rem}.tcg58-card-top em{font-style:normal;color:#687a92;font-weight:900;font-size:.75rem}.tcg58-card-body{display:grid;grid-template-columns:74px 1fr;gap:12px;align-items:center}.tcg58-card-body img{width:74px;height:74px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 10px 8px rgba(0,0,0,.28))}.tcg58-card-body small{display:block;color:#5d6f86;font-weight:800;line-height:1.25}.tcg58-hp{display:grid;gap:4px;margin-bottom:5px}.tcg58-hp span{font-size:.76rem;font-weight:1000;color:#274a72}.tcg58-hp:after{content:"";display:block;height:11px;border-radius:999px;background:#d5e2f6}.tcg58-hp i{display:block;height:11px;border-radius:999px;background:linear-gradient(90deg,#69df80,#fff278);margin-top:-15px;position:relative;z-index:1}.tcg58-energy{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffe477;border:1px solid rgba(0,0,0,.14);margin-right:4px;font-weight:1000;color:#12243b}.tcg58-no-energy{color:#8290a3;font-weight:900;font-size:.78rem}.tcg58-bench{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}.tcg58-bench .tcg58-card-body{grid-template-columns:46px 1fr}.tcg58-bench img{width:46px;height:46px}.tcg58-bench small{display:none}.tcg58-slot.empty{display:grid;place-items:center;min-height:120px;border-radius:20px;border:2px dashed rgba(38,84,143,.24);color:#687a92;font-weight:1000}.tcg58-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.tcg58-actions button:disabled{opacity:.45;cursor:not-allowed}.tcg58-hand{display:grid;gap:10px;border-radius:24px;background:rgba(255,255,255,.78);border:1px solid rgba(36,79,135,.13);padding:14px}.tcg58-hand>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}.tcg58-hand-card{display:grid;gap:4px;min-height:138px;border:2px solid rgba(31,75,136,.16);border-radius:16px;background:linear-gradient(180deg,#fff,#eef6ff);padding:10px;text-align:left;color:#14233a;cursor:pointer}.tcg58-hand-card img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}.tcg58-hand-card strong{color:#102d52}.tcg58-hand-card span,.tcg58-hand-card small{color:#657890;font-size:.74rem;font-weight:850}.tcg58-hand-card.kind-energy{background:linear-gradient(180deg,#fffde9,#e6f0ff)}.tcg58-hand-card.kind-trainer{background:linear-gradient(180deg,#fff,#f6efe4)}.tcg58-log{max-height:190px;overflow:auto;border-radius:18px;background:#101f37;color:#dbeafe;padding:12px}.tcg58-log p{margin:0 0 7px;font-weight:850}.tcg58-log p:first-child{color:#ffe680}.tcg58-promote{position:absolute;right:10px;bottom:10px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffe77a,#f5bd36);padding:7px 10px;color:#151515;font-weight:1000;cursor:pointer;box-shadow:0 6px 12px rgba(0,0,0,.18)}
body.adventure58-active .battlefield58{min-height:640px!important;height:min(720px,56vw)!important;background:radial-gradient(circle at 73% 12%,rgba(255,244,156,.72) 0 8%,rgba(255,244,156,.34) 8% 13%,transparent 13.5%),linear-gradient(180deg,#a7e3f4 0 39%,#6ea458 39.1% 58%,#3e6c35 58.1% 76%,#1e3a24 100%)!important}.battle-mon-size58{max-width:280px!important;max-height:260px!important;object-fit:contain!important;image-rendering:pixelated!important;filter:drop-shadow(0 24px 18px rgba(0,0,0,.48))!important}body.adventure58-active .battlefield58 .player-stage{left:27%!important;bottom:25%!important;transform:translate(-50%,38%)!important}body.adventure58-active .battlefield58 .enemy-stage{right:26%!important;top:42%!important;transform:translate(50%,-35%)!important}body.adventure58-active .battlefield58 .player-stage img{transform:scale(1.55)!important;transform-origin:center bottom!important}body.adventure58-active .battlefield58 .enemy-stage img{transform:scale(1.45)!important;transform-origin:center bottom!important}.shadow-aura58{filter:drop-shadow(0 20px 16px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(191,75,255,.95)) hue-rotate(25deg) saturate(1.2)!important;animation:shadowMonPulse58 1.5s ease-in-out infinite}.shadow-plague-battle58:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 67% 52%,rgba(179,64,255,.24),transparent 18%),linear-gradient(180deg,transparent 55%,rgba(90,23,130,.14));z-index:6;mix-blend-mode:screen}@keyframes shadowMonPulse58{0%,100%{opacity:.92;transform:scale(1.45)}50%{opacity:1;transform:scale(1.52)}}
@media(max-width:950px){.tcg58-board,.tcg58-prizes,.tcg58-hero,.tcg58-score{grid-template-columns:1fr}.tcg58-rank{text-align:left}.tcg58-prizes section{flex-wrap:wrap}body.adventure58-active .battlefield58 .player-stage{left:32%!important}body.adventure58-active .battlefield58 .enemy-stage{right:31%!important}}


/* --- Adventure 5.9 Party Battle + Living Board Polish --- */
body.adventure59-active .battlefield59{
  min-height:660px!important;
  height:min(740px,56vw)!important;
  border-radius:34px!important;
  background:
    radial-gradient(circle at 74% 11%,rgba(255,244,169,.88) 0 7%,rgba(255,244,169,.42) 7.2% 12%,transparent 12.5%),
    radial-gradient(ellipse at 78% 79%,rgba(243,233,177,.45) 0 14%,transparent 15%),
    radial-gradient(ellipse at 25% 94%,rgba(243,233,177,.42) 0 17%,transparent 18%),
    linear-gradient(180deg,#9ee0f4 0 37%,#76aa61 37.2% 56%,#3e6e35 56.2% 76%,#1c3422 100%)!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.2),0 28px 70px rgba(0,0,0,.35)!important;
}
body.adventure59-active .battlefield59:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.2),transparent 34%,rgba(0,0,0,.16));z-index:1}
body.adventure59-active .battlefield59:after{content:"";position:absolute;left:-4%;right:-4%;bottom:1%;height:20%;pointer-events:none;background:radial-gradient(ellipse at 28% 58%,rgba(18,48,28,.55),transparent 58%),radial-gradient(ellipse at 70% 44%,rgba(18,48,28,.42),transparent 60%);z-index:2;filter:blur(2px)}
body.adventure59-active .battlefield59 .battle-pads57{z-index:3!important}
body.adventure59-active .battlefield59 .player-pad57{left:10%!important;bottom:4%!important;width:39%!important;height:19%!important;opacity:.9!important}
body.adventure59-active .battlefield59 .enemy-pad57{right:12%!important;top:39%!important;width:32%!important;height:16%!important;opacity:.86!important}
body.adventure59-active .battlefield59 .player-stage{left:28%!important;bottom:23%!important;transform:translate(-50%,42%)!important;z-index:9!important}
body.adventure59-active .battlefield59 .enemy-stage{right:27%!important;top:47%!important;transform:translate(50%,-38%)!important;z-index:8!important}
body.adventure59-active .battlefield59 .pokemon-sprite59{width:auto!important;height:auto!important;max-width:255px!important;max-height:238px!important;object-fit:contain!important;image-rendering:pixelated!important;transform-origin:center bottom!important;filter:drop-shadow(0 25px 17px rgba(0,0,0,.52))!important}
body.adventure59-active .battlefield59 .player-stage img{transform:scale(1.52)!important}
body.adventure59-active .battlefield59 .enemy-stage img{transform:scale(1.52)!important}
body.adventure59-active .trainer-size59 img,
body.adventure59-active .battlefield59 .trainer-full img{height:142px!important;max-height:142px!important;width:auto!important;image-rendering:pixelated!important;filter:drop-shadow(0 18px 13px rgba(0,0,0,.58))!important}
body.adventure59-active .battlefield59 .player-trainer-full{left:5.2%!important;bottom:8%!important;z-index:12!important}
body.adventure59-active .battlefield59 .enemy-trainer-full{right:5.2%!important;top:9%!important;z-index:12!important}
body.adventure59-active .battlefield59 .combat-card{z-index:20!important;background:linear-gradient(180deg,rgba(12,20,35,.94),rgba(5,9,18,.92))!important;border:2px solid rgba(255,255,255,.13)!important;border-radius:22px!important;box-shadow:0 18px 42px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07)!important}
body.adventure59-active .battlefield59 .enemy-info{left:39%!important;top:7%!important;min-width:310px!important}
body.adventure59-active .battlefield59 .player-info{right:6%!important;bottom:7%!important;min-width:320px!important}
.battle-companion-stack59{display:flex;gap:10px;position:absolute;left:96px;bottom:22px;align-items:end;z-index:14;pointer-events:none}.battle-companion59{display:grid;justify-items:center;gap:3px}.battle-companion59 img{height:142px!important;image-rendering:pixelated;filter:drop-shadow(0 15px 12px rgba(0,0,0,.55))}.battle-companion59 span{font-size:.72rem;font-weight:1000;color:#fff;background:rgba(8,15,28,.75);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 8px;text-shadow:0 2px 7px rgba(0,0,0,.8);white-space:nowrap}
.party-battle-overlay59{position:absolute;inset:0;z-index:13;pointer-events:none}.party-size-chip59{position:absolute;left:50%;top:16px;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,#fff08a,#e6a935);color:#17120a;font-weight:1000;letter-spacing:.08em;font-size:.72rem;padding:7px 13px;box-shadow:0 10px 24px rgba(0,0,0,.28)}.ally-formation59,.enemy-formation59{position:absolute;display:grid;gap:7px;max-width:250px}.ally-formation59{left:2.5%;bottom:24%;}.enemy-formation59{right:2.5%;top:28%;}.party-lane59{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:7px;border-radius:16px;background:rgba(6,13,25,.6);border:1px solid rgba(255,255,255,.14);padding:6px 8px;backdrop-filter:blur(8px);box-shadow:0 10px 22px rgba(0,0,0,.26)}.party-lane59.is-main{display:none}.lane-trainer59{display:grid;justify-items:center;gap:2px}.lane-trainer59 img{height:54px;image-rendering:pixelated}.lane-trainer59 span{font-size:.58rem;color:#fff;font-weight:900;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lane-mon59{position:relative;display:grid;gap:2px;color:#fff}.lane-mon59 img{height:46px;width:54px;object-fit:contain;image-rendering:pixelated;justify-self:start;filter:drop-shadow(0 8px 7px rgba(0,0,0,.48))}.lane-mon59 b{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lane-mon59 small{font-size:.58rem;color:#cbd7ee}.lane-mon59:after{content:"";height:6px;border-radius:999px;background:rgba(255,255,255,.14);grid-column:1/-1}.lane-mon59 i{position:absolute;left:0;bottom:0;height:6px;border-radius:999px;background:linear-gradient(90deg,#65e88a,#fff17a);display:block}
body.adventure59-active .battle-console.refined-console{grid-template-columns:1.25fr .8fr 1.05fr!important;gap:12px!important;background:linear-gradient(180deg,rgba(12,20,36,.98),rgba(4,9,18,.97))!important;border:2px solid rgba(255,255,255,.12)!important;border-radius:28px!important;padding:14px!important;box-shadow:0 18px 45px rgba(0,0,0,.28)!important}.typed-move59{position:relative;overflow:hidden;border-width:2px!important;min-height:74px!important;padding:12px 14px 12px 18px!important;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.035))!important}.typed-move59:before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:var(--move-color,#a8a77a)}.typed-move59:after{content:var(--move-type-label);position:absolute;right:10px;top:8px;border-radius:999px;background:var(--move-color,#a8a77a);color:#fff;font-size:.58rem;font-weight:1000;letter-spacing:.05em;padding:3px 7px;text-shadow:0 1px 3px rgba(0,0,0,.45)}.typed-move59 strong{font-size:1.02rem!important;color:#fff!important}.typed-move59 span{padding-right:52px!important}.type-normal59{--move-color:#a8a77a}.type-fire59{--move-color:#ee8130}.type-water59{--move-color:#6390f0}.type-electric59{--move-color:#f7d02c}.type-grass59{--move-color:#7ac74c}.type-ice59{--move-color:#96d9d6}.type-fighting59{--move-color:#c22e28}.type-poison59{--move-color:#a33ea1}.type-ground59{--move-color:#e2bf65}.type-flying59{--move-color:#a98ff3}.type-psychic59{--move-color:#f95587}.type-bug59{--move-color:#a6b91a}.type-rock59{--move-color:#b6a136}.type-ghost59{--move-color:#735797}.type-dragon59{--move-color:#6f35fc}.type-dark59{--move-color:#705746}.type-steel59{--move-color:#b7b7ce}
body.adventure59-active .companion-token59{width:58px!important;height:58px!important;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%) scale(1.18)!important;filter:drop-shadow(0 14px 10px rgba(0,0,0,.45))!important}.is-cooling-but-passable59{border-style:solid!important;opacity:.86!important}.is-cooling-but-passable59 small{background:rgba(42,72,110,.68)!important;color:#fff!important}.calendar-chip59{margin:8px 0;padding:9px 11px;border-radius:16px;background:linear-gradient(135deg,#fff3a8,#e4f4ff);border:1px solid rgba(28,75,130,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.calendar-chip59 strong{display:block;color:#132942;font-size:.82rem;line-height:1.2}.calendar-chip59 span{display:block;color:#52667f;font-size:.68rem;font-weight:850;margin-top:3px}.weather-rain59 .living-ambience58:after{content:"";position:absolute;inset:-20%;background:repeating-linear-gradient(115deg,rgba(166,214,255,.28) 0 2px,transparent 2px 16px);animation:rain59 .65s linear infinite}.weather-snow59 .living-ambience58:after{content:"❄  ❄   ❄      ❄   ❄";position:absolute;inset:0;color:rgba(255,255,255,.75);font-size:24px;letter-spacing:42px;animation:snow59 7s linear infinite}.weather-fog59{filter:brightness(.96) saturate(.88) contrast(.92)!important}.weather-storm59{filter:brightness(.78) saturate(1.1)!important}.tod-night59{filter:brightness(.78) saturate(1.05) hue-rotate(12deg)!important}.tod-dusk59{filter:sepia(.08) saturate(1.14)!important}.season-winter59{filter:brightness(1.05) saturate(.82)!important}@keyframes rain59{to{transform:translate(-18px,36px)}}@keyframes snow59{to{transform:translateY(80px)}}
@media(max-width:980px){.battle-companion-stack59{display:none}.party-battle-overlay59{display:none}body.adventure59-active .trainer-size59 img,body.adventure59-active .battlefield59 .trainer-full img{height:92px!important}body.adventure59-active .battlefield59 .pokemon-sprite59{max-width:185px!important;max-height:178px!important}.typed-move59{min-height:62px!important}}


/* Adventure 5.10 — clean multi-battle formation repair */
body.adventure510-active .party-battle-overlay59,
body.adventure510-active .battle-companion-stack59{display:none!important;visibility:hidden!important;opacity:0!important;}
body.adventure510-active .battlefield510{overflow:hidden!important;isolation:isolate!important;}
body.adventure510-active .battlefield510.is-multi510 .player-stage,
body.adventure510-active .battlefield510.is-multi510 .enemy-stage{opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
body.adventure510-active .battlefield510.is-multi510 .player-info{right:5.5%!important;bottom:4.8%!important;min-width:315px!important;z-index:34!important;}
body.adventure510-active .battlefield510.is-multi510 .enemy-info{left:38.8%!important;top:6.2%!important;min-width:315px!important;z-index:34!important;}
.party-battle-field510{position:absolute;inset:0;z-index:18;pointer-events:none;}
.party-size-chip510{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:40;border-radius:999px;padding:7px 17px;background:linear-gradient(180deg,#fff399,#e6ad37);color:#17110a;font-size:.73rem;font-weight:1000;letter-spacing:.09em;box-shadow:0 10px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.55);}
.clean-formation510{position:absolute;z-index:22;pointer-events:none;}
.player-formation510{left:7.5%;bottom:7%;width:45%;height:34%;}
.enemy-formation510{right:7%;top:26%;width:45%;height:32%;}
.battle-slot510{position:absolute;transform:translate(-50%,-50%);display:grid;grid-template-rows:auto auto;justify-items:center;align-items:end;min-width:110px;filter:drop-shadow(0 19px 14px rgba(0,0,0,.42));}
.battle-slot510.is-main{z-index:5}.battle-slot510:not(.is-main){z-index:4;}
.trainer-figure510{display:grid;justify-items:center;gap:2px;transform:translateY(12px);}
.enemy-formation510 .trainer-figure510{transform:translateY(8px);}
.trainer-figure510 img{height:118px!important;max-height:118px!important;width:auto!important;image-rendering:pixelated!important;object-fit:contain!important;filter:drop-shadow(0 16px 10px rgba(0,0,0,.55));}
.trainer-figure510 span{border-radius:999px;padding:4px 10px;background:rgba(20,30,43,.88);color:#fff;font-size:.66rem;font-weight:1000;text-shadow:0 1px 0 rgba(0,0,0,.5);box-shadow:0 8px 16px rgba(0,0,0,.28);max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mon-figure510{display:grid;justify-items:center;align-items:end;gap:1px;position:relative;transform:translateY(-2px);}
.mon-figure510:before{content:"";position:absolute;left:50%;bottom:29px;width:92px;height:22px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.34),rgba(0,0,0,.16) 55%,transparent 74%);z-index:-1;filter:blur(1px);}
.formation-mon510{width:auto!important;height:auto!important;max-width:calc(164px - (var(--battle-count,2) - 2) * 18px)!important;max-height:calc(146px - (var(--battle-count,2) - 2) * 13px)!important;min-height:64px;object-fit:contain!important;image-rendering:pixelated!important;transform-origin:center bottom!important;filter:drop-shadow(0 19px 12px rgba(0,0,0,.48))!important;}
.battle-slot510.is-main .formation-mon510{max-width:calc(176px - (var(--battle-count,2) - 2) * 18px)!important;max-height:calc(156px - (var(--battle-count,2) - 2) * 13px)!important;}
.enemy-formation510 .formation-mon510{transform:scaleX(-1);}
.mon-figure510 b{margin-top:2px;border-radius:999px;padding:3px 8px;background:rgba(8,14,24,.86);color:#fff;font-size:.64rem;font-weight:1000;white-space:nowrap;box-shadow:0 7px 16px rgba(0,0,0,.24);}
.mon-figure510 small{font-size:.58rem;color:#e8f2ff;text-shadow:0 2px 4px rgba(0,0,0,.8);font-weight:800;}
.mon-figure510 i{display:block;width:100%;height:6px;min-width:68px;max-width:92px;border-radius:999px;background:linear-gradient(90deg,#67eb8b,#fff279);box-shadow:0 0 0 1px rgba(0,0,0,.26),0 4px 8px rgba(0,0,0,.26);}
.formation-mon510.hit510{animation:multiHit510 .24s ease both!important;filter:drop-shadow(0 19px 12px rgba(0,0,0,.48)) brightness(1.45) saturate(1.2)!important;}
@keyframes multiHit510{0%{translate:0 0}30%{translate:-12px 0}60%{translate:10px 0}100%{translate:0 0}}
.battlefield510.impact-field510{animation:fieldImpact510 .18s ease both;}@keyframes fieldImpact510{0%,100%{filter:none}50%{filter:brightness(1.08)}}
.move-vfx510{position:absolute;inset:0;z-index:36;pointer-events:none;overflow:visible;}
.move-vfx510 i{position:absolute;font-style:normal;font-size:1.25rem;line-height:1;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45));will-change:left,top,transform,opacity;}
.move-vfx510 b{position:absolute;transform:translate(-50%,-50%);border-radius:999px;padding:5px 11px;background:rgba(7,13,24,.86);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:.68rem;font-weight:1000;letter-spacing:.04em;white-space:nowrap;box-shadow:0 12px 24px rgba(0,0,0,.32);}
.move-vfx510 span{position:absolute;width:32px;height:32px;transform:translate(-50%,-50%) scale(.2);opacity:0;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,rgba(255,238,111,.9) 13% 32%,transparent 65%);}
.move-vfx510 span.is-live{animation:impactPop510 .27s ease-out both;}@keyframes impactPop510{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.5)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.1)}}
.vfx-water510 i{color:#77d9ff}.vfx-fire510 i{color:#ff9c47}.vfx-electric510 i{color:#ffe75c}.vfx-grass510 i{color:#92ef7c}.vfx-psychic510 i{color:#d992ff}.vfx-dark510 i,.vfx-ghost510 i{color:#b892ff}.vfx-rock510 i,.vfx-ground510 i{color:#d7b16b}.vfx-ice510 i{color:#c8fbff}.vfx-poison510 i{color:#d980ff}.vfx-steel510 i{color:#d8e2ef}
body.adventure510-active .battle-console.refined-console{border-radius:24px!important;background:linear-gradient(180deg,rgba(8,14,28,.97),rgba(3,8,18,.96))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 -10px 40px rgba(0,0,0,.36)!important;}
body.adventure510-active .move-button.move-type510{border:2px solid rgba(255,255,255,.13)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 20px rgba(0,0,0,.24)!important;}
@media(max-width:1050px){.trainer-figure510 img{height:86px!important}.formation-mon510{max-width:96px!important;max-height:92px!important}.player-formation510{left:6%;width:51%}.enemy-formation510{right:4%;width:52%}.mon-figure510 b,.trainer-figure510 span{font-size:.55rem}}


/* Adventure 5.11: Cinematic Multi-Battle Formation Repair */
body.adventure511-active .battlefield511{overflow:hidden!important;isolation:isolate!important;perspective:1200px;}
body.adventure511-active .battlefield511.is-multi511 .party-battle-field510,
body.adventure511-active .battlefield511.is-multi511 .party-battle-overlay59,
body.adventure511-active .battlefield511.is-multi511 .battle-companion-stack59{display:none!important;visibility:hidden!important;opacity:0!important;}
body.adventure511-active .battlefield511.is-multi511 .player-stage,
body.adventure511-active .battlefield511.is-multi511 .enemy-stage,
body.adventure511-active .battlefield511.is-multi511 .player-trainer-full,
body.adventure511-active .battlefield511.is-multi511 .enemy-trainer-full{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.adventure511-active .battlefield511.is-multi511 .player-info{right:5%!important;bottom:5%!important;min-width:320px!important;z-index:42!important;}
body.adventure511-active .battlefield511.is-multi511 .enemy-info{left:38%!important;top:6%!important;min-width:320px!important;z-index:42!important;}
.party-battle-field511{position:absolute;inset:0;z-index:26;pointer-events:none;transform-origin:center;transition:transform .3s ease,filter .3s ease;}
.battlefield511.camera-player511 .party-battle-field511{transform:translateX(-1.5%) scale(1.018);filter:saturate(1.05) brightness(1.03)}
.battlefield511.camera-enemy511 .party-battle-field511{transform:translateX(1.5%) scale(1.018);filter:saturate(1.05) brightness(1.03)}
.party-size-chip511{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:54;border-radius:999px;padding:7px 18px;background:linear-gradient(180deg,#fff5a6,#e6ad35);color:#17110a;font-size:.73rem;font-weight:1000;letter-spacing:.1em;box-shadow:0 12px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.6);}
.formation-layer511{position:absolute;inset:0;z-index:28;}
.battle-unit511{position:absolute;width:158px;height:185px;transform:translate(-50%,-50%);filter:drop-shadow(0 18px 14px rgba(0,0,0,.42));}
.battle-unit511.is-main511{z-index:4}.battle-unit511:not(.is-main511){z-index:3}
.unit-trainer511{position:absolute;left:50%;top:0;width:118px;transform:translateX(-50%);display:grid;justify-items:center;z-index:1;opacity:.98;}
.ally-unit511 .unit-trainer511{top:2px;left:34%;}
.enemy-unit511 .unit-trainer511{top:0;left:68%;}
.unit-trainer511 img{height:112px!important;max-height:112px!important;width:auto!important;image-rendering:pixelated!important;object-fit:contain!important;filter:drop-shadow(0 15px 10px rgba(0,0,0,.5));}
.enemy-unit511 .unit-trainer511 img{transform:scaleX(-1)}
.unit-trainer511 span{display:block;max-width:130px;margin-top:-3px;border-radius:999px;padding:4px 9px;background:rgba(16,26,39,.86);border:1px solid rgba(255,255,255,.13);color:#fff;font-size:.62rem;font-weight:1000;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-shadow:0 8px 16px rgba(0,0,0,.26);}
.unit-mon511{position:absolute;left:50%;top:68px;width:150px;height:112px;transform:translateX(-50%);display:grid;place-items:end center;z-index:3;}
.ally-unit511 .unit-mon511{top:72px;left:61%;}
.enemy-unit511 .unit-mon511{top:72px;left:39%;}
.unit-mon511:before{content:"";position:absolute;left:50%;bottom:6px;width:104px;height:24px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.34),rgba(0,0,0,.16) 55%,transparent 75%);filter:blur(1px);z-index:-1;}
.unit-mon-sprite511{width:auto!important;height:auto!important;max-width:calc(166px - (var(--battle-count,2) - 2) * 16px)!important;max-height:calc(148px - (var(--battle-count,2) - 2) * 12px)!important;min-height:64px!important;object-fit:contain!important;image-rendering:pixelated!important;transform-origin:center bottom!important;filter:drop-shadow(0 18px 12px rgba(0,0,0,.52))!important;}
.enemy-unit511 .unit-mon-sprite511{transform:scaleX(-1)}
.battle-unit511.is-main511 .unit-mon-sprite511{max-width:calc(180px - (var(--battle-count,2) - 2) * 16px)!important;max-height:calc(158px - (var(--battle-count,2) - 2) * 12px)!important;}
.unit-plate511{position:absolute;left:50%;top:160px;transform:translateX(-50%);z-index:6;width:126px;border-radius:12px;padding:5px 7px;background:rgba(6,12,23,.88);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 18px rgba(0,0,0,.28);display:grid;gap:2px;}
.battle-unit511.is-main511 .unit-plate511{width:138px;}
.unit-plate511 strong{color:#fff;font-size:.64rem;font-weight:1000;line-height:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.unit-plate511 small{color:#dce8ff;font-size:.56rem;font-weight:850;line-height:1.05;}
.unit-hpbar511,.unit-xpbar511,.main-xpbar511{height:6px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
.unit-hpbar511 i,.unit-xpbar511 i,.main-xpbar511 i{display:block;height:100%;border-radius:inherit;transition:width .25s ease;background:linear-gradient(90deg,#62e88a,#9df587)}
.unit-xpbar511,.main-xpbar511{height:4px;margin-top:1px}.unit-xpbar511 i,.main-xpbar511 i{background:linear-gradient(90deg,#58a8ff,#a4d7ff)}
.hp-green511 i,.hp-bar.hp-green511 i{background:linear-gradient(90deg,#5ee585,#c8ff8f)!important}.hp-yellow511 i,.hp-bar.hp-yellow511 i{background:linear-gradient(90deg,#ffd44e,#fff38f)!important}.hp-red511 i,.hp-bar.hp-red511 i{background:linear-gradient(90deg,#ff5353,#ff9b7a)!important}
.unit-mon-sprite511.hit511{animation:hit511 .24s ease both!important;filter:drop-shadow(0 18px 12px rgba(0,0,0,.52)) brightness(1.55) saturate(1.25)!important}
@keyframes hit511{0%{translate:0 0}32%{translate:-12px 0}65%{translate:10px 0}100%{translate:0 0}}
.battlefield511.impact-field511{animation:fieldImpact511 .18s ease both}@keyframes fieldImpact511{50%{filter:brightness(1.08) contrast(1.03)}}
.move-vfx511{position:absolute;inset:0;z-index:58;pointer-events:none;overflow:visible}.move-vfx511 i{position:absolute;font-style:normal;font-size:1.28rem;line-height:1;filter:drop-shadow(0 7px 9px rgba(0,0,0,.45));will-change:left,top,transform,opacity}.move-vfx511 b{position:absolute;transform:translate(-50%,-50%);border-radius:999px;padding:5px 11px;background:rgba(7,13,24,.88);border:1px solid rgba(255,255,255,.17);color:#fff;font-size:.68rem;font-weight:1000;letter-spacing:.04em;white-space:nowrap;box-shadow:0 12px 24px rgba(0,0,0,.33)}.move-vfx511 span{position:absolute;width:36px;height:36px;transform:translate(-50%,-50%) scale(.2);opacity:0;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,rgba(255,238,111,.92) 13% 32%,transparent 66%)}.move-vfx511 span.is-live{animation:impactPop511 .28s ease-out both}@keyframes impactPop511{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.55)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.2)}}
.vfx-water511 i{color:#77d9ff}.vfx-fire511 i{color:#ff9c47}.vfx-electric511 i{color:#ffe75c}.vfx-grass511 i{color:#92ef7c}.vfx-psychic511 i{color:#d992ff}.vfx-dark511 i,.vfx-ghost511 i{color:#b892ff}.vfx-rock511 i,.vfx-ground511 i{color:#d7b16b}.vfx-ice511 i{color:#c8fbff}.vfx-poison511 i{color:#d980ff}.vfx-steel511 i{color:#d8e2ef}
body.adventure511-active .battle-console.refined-console{border-radius:24px!important;background:linear-gradient(180deg,rgba(8,14,28,.98),rgba(3,8,18,.97))!important;border:1px solid rgba(255,255,255,.13)!important;box-shadow:0 -10px 42px rgba(0,0,0,.38)!important}
body.adventure511-active .move-button.move-type511{position:relative;overflow:hidden;border:2px solid rgba(255,255,255,.13)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 20px rgba(0,0,0,.24)!important}
body.adventure511-active .move-button.move-type511:before{content:"";position:absolute;left:0;top:0;bottom:0;width:9px;background:var(--move-color,#a8a77a)}
body.adventure511-active .move-button.move-type511:after{content:var(--move-type-label);position:absolute;right:10px;top:8px;border-radius:999px;background:var(--move-color,#a8a77a);color:#fff;font-size:.58rem;font-weight:1000;letter-spacing:.04em;padding:3px 7px;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.move-normal511{--move-color:#a8a77a}.move-fire511{--move-color:#ee8130}.move-water511{--move-color:#6390f0}.move-electric511{--move-color:#f7d02c}.move-grass511{--move-color:#7ac74c}.move-ice511{--move-color:#96d9d6}.move-fighting511{--move-color:#c22e28}.move-poison511{--move-color:#a33ea1}.move-ground511{--move-color:#e2bf65}.move-flying511{--move-color:#a98ff3}.move-psychic511{--move-color:#f95587}.move-bug511{--move-color:#a6b91a}.move-rock511{--move-color:#b6a136}.move-ghost511{--move-color:#735797}.move-dragon511{--move-color:#6f35fc}.move-dark511{--move-color:#705746}.move-steel511{--move-color:#b7b7ce}
@media(max-width:1050px){.battle-unit511{width:126px;height:154px}.unit-trainer511 img{height:82px!important}.unit-mon511{top:56px}.unit-mon-sprite511{max-width:92px!important;max-height:86px!important}.unit-plate511{top:129px;width:108px}.unit-trainer511 span,.unit-plate511 strong{font-size:.54rem}.unit-plate511 small{font-size:.5rem}}

/* Adventure 5.12: location menus, passable city nodes, expanded item pockets */
.adventure512-active .city-passable512{outline:2px solid rgba(255,222,93,.45);box-shadow:0 12px 28px rgba(0,0,0,.33),0 0 0 4px rgba(255,222,93,.12)!important;}
.adventure512-active .passable-cooldown512{filter:saturate(.82) brightness(.95);}
.location-panel512{display:grid;gap:14px;max-width:980px;margin:0 auto;}
.location-hero512{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px;border-radius:22px;background:linear-gradient(135deg,rgba(17,29,38,.98),rgba(19,47,49,.92));border:1px solid rgba(255,222,93,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 32px rgba(0,0,0,.32);}
.location-hero512 h4{font-size:clamp(1.35rem,2vw,2rem);margin:.15rem 0 .35rem;color:#fff;}
.location-hero512 p{margin:0;color:#c9d6e4;max-width:72ch;line-height:1.45;}
.location-hero512 strong{white-space:nowrap;border-radius:999px;padding:8px 12px;background:#ffe475;color:#171717;box-shadow:0 5px 0 rgba(0,0,0,.25);}
.location-grid512{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;}
.location-action512{appearance:none;text-align:left;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:13px 14px;background:linear-gradient(180deg,rgba(28,42,54,.96),rgba(11,18,28,.96));color:#eef4ff;box-shadow:0 10px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease;}
.location-action512:hover{transform:translateY(-2px);border-color:rgba(255,222,93,.55);background:linear-gradient(180deg,rgba(39,57,67,.98),rgba(14,25,37,.98));}
.location-action512 b{display:block;font-size:1rem;margin-bottom:5px;color:#fff;}
.location-action512 span{display:block;font-size:.9rem;color:#b9c6d7;line-height:1.35;}
.bag-panel512{display:grid;gap:13px;max-width:1040px;margin:0 auto;}
.bag512-money{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:18px;padding:12px 15px;background:linear-gradient(90deg,rgba(255,222,93,.16),rgba(57,117,160,.12));border:1px solid rgba(255,222,93,.22);}
.bag512-money b{font-size:1.2rem;color:#ffe475;}.bag512-money span{color:#cbd7e5}.bag512-note{margin:0;color:#aebdd1;line-height:1.35;}
.item-section512{border-radius:20px;padding:12px;background:rgba(10,18,28,.54);border:1px solid rgba(255,255,255,.08);}
.item-section512 h4{margin:0 0 10px;color:#ffe475;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem;}
.item-section512>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;max-height:300px;overflow:auto;padding-right:2px;}
.item-card512{appearance:none;border:1px solid rgba(255,255,255,.11);border-radius:14px;padding:9px 10px;background:linear-gradient(180deg,rgba(26,39,53,.96),rgba(12,19,30,.96));color:#eef4ff;text-align:left;cursor:pointer;}
.item-card512:hover:not(:disabled){border-color:rgba(255,222,93,.48);transform:translateY(-1px);}.item-card512:disabled{opacity:.48;cursor:not-allowed;}
.item-card512 strong{display:block;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-card512 span{display:inline-block;color:#ffe475;font-weight:800;margin-right:8px}.item-card512 em{font-style:normal;color:#97a7ba;font-size:.76rem;}
.adventure512-active .journey-map-window-body .bag-panel512{font-size:.94rem;}


/* Adventure 5.13 — complete Pokémon-style battle UI rebuild */
body.adventure513-active[data-battle-screen="battle"] .battle-screen{height:100vh!important;display:grid!important;grid-template-rows:auto minmax(540px,1fr) minmax(220px,28vh)!important;gap:10px!important;padding:10px!important;overflow:hidden!important;background:linear-gradient(180deg,#071225,#030711)!important;border-radius:22px!important;}
body.adventure513-active[data-battle-screen="battle"] .battle-topbar{margin:0!important;min-height:50px!important;display:flex!important;align-items:center!important;}
body.adventure513-active[data-battle-screen="battle"] .battle-topbar h2{font-size:clamp(1.55rem,2.65vw,2.65rem)!important;line-height:1!important;margin:0!important;}
body.adventure513-active[data-battle-screen="battle"] .battle-topbar .eyebrow{font-size:.78rem!important;letter-spacing:.13em!important;color:#ffe066!important;}
body.adventure513-active .pkmn-battlefield513{position:relative!important;height:100%!important;min-height:540px!important;max-height:none!important;overflow:hidden!important;border-radius:30px!important;border:3px solid rgba(221,236,255,.34)!important;background:#9ad8ea!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.16),0 20px 60px rgba(0,0,0,.38)!important;isolation:isolate!important;perspective:1200px!important;}
.pkmn-sky513,.pkmn-horizon513,.pkmn-ground513{position:absolute;inset:0;pointer-events:none}.pkmn-sky513{z-index:0;background:radial-gradient(circle at 74% 15%,#fff6a7 0 7%,rgba(255,246,167,.35) 8% 15%,transparent 16%),linear-gradient(180deg,#8ed9ec 0%,#bdeaf0 49%,#76ad5d 50%,#4b873e 67%,#235a2c 100%)}.pkmn-horizon513{z-index:1;background:radial-gradient(ellipse at 25% 56%,rgba(38,105,55,.75) 0 11%,transparent 12%),radial-gradient(ellipse at 40% 52%,rgba(55,129,70,.75) 0 12%,transparent 13%),radial-gradient(ellipse at 67% 54%,rgba(50,116,65,.72) 0 15%,transparent 16%),linear-gradient(170deg,transparent 0 43%,rgba(42,109,62,.82) 44% 59%,transparent 60%)}.pkmn-ground513{z-index:2;background:linear-gradient(170deg,transparent 0 54%,rgba(22,70,34,.68) 55% 70%,rgba(11,42,22,.78) 71% 100%),radial-gradient(ellipse at 26% 83%,rgba(255,246,190,.26),transparent 27%),radial-gradient(ellipse at 73% 76%,rgba(255,246,190,.18),transparent 26%)}
.pkmn-pad513{position:absolute;z-index:3;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse at center,rgba(245,239,188,.58),rgba(158,164,119,.46) 58%,rgba(57,89,63,.38) 61%,transparent 70%);box-shadow:inset 0 0 0 6px rgba(255,255,255,.13),0 18px 24px rgba(0,0,0,.19)}.pkmn-pad-player513{left:7%;bottom:5%;width:43%;height:22%;transform:rotate(1deg)}.pkmn-pad-enemy513{right:12%;top:38%;width:34%;height:17%;transform:rotate(-1deg)}
.pkmn-battle-badge513{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:34;background:linear-gradient(180deg,#ffe66b,#efbd35);color:#111827;border-radius:999px;padding:6px 17px;font-weight:1000;font-size:.77rem;letter-spacing:.06em;box-shadow:0 7px 16px rgba(0,0,0,.24)}
.pkmn-formation513,.pkmn-vfx-layer513{position:absolute;inset:0;z-index:20;pointer-events:none}.pkmn-vfx-layer513{z-index:80}.pkmn-trainer{position:absolute;z-index:9;display:grid;justify-items:center;gap:2px;transform:translate(-50%,-100%);pointer-events:none}.pkmn-trainer img{height:126px!important;width:auto!important;image-rendering:pixelated;filter:drop-shadow(0 16px 12px rgba(0,0,0,.5))}.pkmn-trainer-enemy img{transform:scaleX(-1)}.pkmn-trainer span,.pkmn-unit .pkmn-mini-card strong{border-radius:999px;background:rgba(5,12,22,.86);color:#fff;padding:4px 9px;font-size:.72rem;font-weight:1000;white-space:nowrap;box-shadow:0 4px 10px rgba(0,0,0,.28)}
.pkmn-unit{position:absolute;z-index:22;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:3px;pointer-events:none}.pkmn-mon{height:96px!important;max-height:116px!important;max-width:150px!important;width:auto!important;object-fit:contain!important;image-rendering:pixelated!important;filter:drop-shadow(0 20px 12px rgba(0,0,0,.42));transform-origin:center bottom;transition:filter .18s ease,transform .18s ease}.pkmn-unit-ally .pkmn-mon{height:104px!important}.pkmn-unit.is-main .pkmn-mon{height:122px!important;max-height:132px!important}.pkmn-unit-enemy .pkmn-mon{height:108px!important}.pkmn-unit-ally{z-index:25}.pkmn-unit-enemy{z-index:24}.pkmn-mon.is-shadow{filter:drop-shadow(0 0 10px rgba(165,70,255,.75)) drop-shadow(0 20px 12px rgba(0,0,0,.42));animation:shadowPulse513 1.4s ease-in-out infinite}@keyframes shadowPulse513{50%{filter:drop-shadow(0 0 18px rgba(180,75,255,.9)) drop-shadow(0 20px 12px rgba(0,0,0,.42))}}
.pkmn-mini-card{min-width:122px;max-width:162px;border-radius:12px;background:rgba(7,13,25,.88);padding:5px 7px;box-shadow:0 7px 13px rgba(0,0,0,.31);display:grid;gap:2px}.pkmn-mini-card span{display:flex;gap:3px;justify-content:center}.pkmn-mini-card em,.status-name-row em{font-style:normal;background:var(--type);color:#fff;border-radius:999px;padding:2px 6px;font-size:.55rem;font-weight:1000;text-shadow:0 1px 2px rgba(0,0,0,.45)}.pkmn-mini-card small{font-size:.62rem;color:#e5ecff;text-align:center;font-weight:800}.pkmn-hp,.pkmn-xp{display:block;height:7px;background:rgba(255,255,255,.16);border-radius:999px;overflow:hidden}.pkmn-hp b,.pkmn-xp b{display:block;height:100%;border-radius:inherit;transition:width .25s ease}.pkmn-card-green .pkmn-hp b{background:linear-gradient(90deg,#2ee66f,#caff6b)}.pkmn-card-yellow .pkmn-hp b{background:linear-gradient(90deg,#f5ce31,#ffed75)}.pkmn-card-red .pkmn-hp b{background:linear-gradient(90deg,#ef4444,#ff856d)}.pkmn-xp{height:4px;background:rgba(107,189,255,.16)}.pkmn-xp b{background:linear-gradient(90deg,#55c7ff,#9be5ff)}
.pkmn-status-card{position:absolute;z-index:38;min-width:310px;border-radius:18px;background:linear-gradient(180deg,rgba(15,28,46,.96),rgba(5,10,20,.97));border:2px solid rgba(187,217,255,.2);padding:13px 15px;box-shadow:0 17px 33px rgba(0,0,0,.34);display:grid;gap:8px}.pkmn-status-enemy{left:38%;top:6.4%}.pkmn-status-ally{right:6%;bottom:5.2%}.status-name-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.status-name-row strong{font-size:1.15rem;color:#fff}.status-name-row span{display:flex;gap:4px;justify-content:flex-end}.pkmn-status-card small{color:#d9e3f7;font-weight:800}.xp-note513{font-size:.68rem!important;color:#87cfff!important;text-align:right}
body.adventure513-active[data-battle-screen="battle"] .battle-console.refined-console{display:grid!important;grid-template-columns:minmax(430px,1.2fr) minmax(250px,.55fr) minmax(310px,.85fr)!important;gap:10px!important;max-height:none!important;min-height:0!important;overflow:hidden!important;padding:10px!important;border-radius:22px!important;background:linear-gradient(180deg,#f2f7ff,#cbdcf6)!important;border:3px solid #496a9c!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.8),0 14px 30px rgba(0,0,0,.25)!important;color:#13233a!important}.pkmn-command-tabs513{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:8px}.pkmn-command-tabs513 button{border:2px solid #344b75;border-radius:18px;background:linear-gradient(180deg,#ffffff,#dce8fa);color:#13233a;font-weight:1000;padding:10px 12px;box-shadow:0 5px 0 #9fb1cd;cursor:pointer}.pkmn-command-tabs513 button.is-active,.pkmn-command-tabs513 button:hover{background:linear-gradient(180deg,#ffe76c,#efbd39);color:#111827;transform:translateY(-1px)}.pkmn-move-panel513{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pkmn-move-card513{position:relative!important;min-height:78px!important;border-radius:18px!important;background:linear-gradient(180deg,color-mix(in srgb,var(--move-color) 86%,#fff 14%),color-mix(in srgb,var(--move-color) 72%,#000 28%))!important;border:3px solid rgba(255,255,255,.72)!important;color:#fff!important;padding:12px 14px!important;text-shadow:0 2px 3px rgba(0,0,0,.4)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 6px 0 color-mix(in srgb,var(--move-color) 60%,#000 40%),0 12px 18px rgba(0,0,0,.2)!important}.pkmn-move-card513 strong{font-size:1rem!important;color:#fff!important}.pkmn-move-card513 span{color:rgba(255,255,255,.88)!important;font-size:.76rem!important}.pkmn-move-card513 em{position:absolute;right:10px;top:9px;background:rgba(0,0,0,.28);border-radius:999px;padding:3px 7px;font-style:normal;font-size:.58rem;font-weight:1000}.pkmn-move-card513:disabled{filter:grayscale(.35);opacity:.55!important}.pkmn-party-switch513{display:grid;grid-template-columns:1fr;gap:7px;max-height:100%;overflow:auto;padding-right:3px}.pkmn-switch513{display:grid!important;grid-template-columns:42px 1fr!important;align-items:center!important;gap:8px!important;border:2px solid #aec0dc!important;background:#f8fbff!important;color:#183151!important;border-radius:16px!important;padding:7px!important;min-height:58px!important;box-shadow:0 4px 0 #aab8d1!important}.pkmn-switch513 img{height:40px!important;width:40px!important;object-fit:contain!important;image-rendering:pixelated!important}.pkmn-switch513 span{font-size:.76rem!important;color:#183151!important;font-weight:1000!important}.pkmn-switch513 .pkmn-hp{grid-column:1/-1;height:6px}.pkmn-switch513.is-active{border-color:#f3c43b!important;background:#fff5bd!important}.pkmn-console-help513{display:block;margin-top:7px;color:#526981!important;font-weight:800!important;line-height:1.3}.battle-log{background:linear-gradient(180deg,#172a44,#0b1728)!important;color:#eff6ff!important;border-radius:18px!important;border:2px solid #31496c!important;padding:10px!important;max-height:100%!important;overflow:auto!important}.battle-log p{margin:0 0 6px!important;color:#eff6ff!important}.pkmn-bag-wrap513{grid-column:1/-1;max-height:100%;overflow:auto}.pkmn-bag-wrap513 .bag-panel512{color:#13233a!important}
.pkmn-attack-vfx513{position:absolute;inset:0;z-index:90;pointer-events:none}.pkmn-attack-vfx513 i{position:absolute;width:18px;height:18px;border-radius:999px;background:var(--move-color);box-shadow:0 0 16px var(--move-color),0 0 3px #fff}.pkmn-attack-vfx513 b{position:absolute;transform:translate(-50%,-50%);background:rgba(9,16,30,.9);color:#fff;border:2px solid var(--move-color);border-radius:999px;padding:5px 11px;font-size:.7rem;font-weight:1000;white-space:nowrap}.pkmn-attack-vfx513 span{position:absolute;transform:translate(-50%,-50%) scale(.2);width:22px;height:22px;border-radius:999px;border:4px solid var(--move-color);opacity:0}.pkmn-attack-vfx513 span.is-live{animation:impactRing513 .34s ease-out both}@keyframes impactRing513{0%{opacity:.95;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(3.2)}}.pkmn-hit513{animation:hitShake513 .25s ease both!important}.pkmn-impact513{animation:fieldFlash513 .17s ease both}@keyframes hitShake513{0%,100%{transform:translateX(0) scale(1)}25%{transform:translateX(-10px) scale(1.04)}60%{transform:translateX(8px) scale(1.02)}}@keyframes fieldFlash513{50%{filter:brightness(1.08) saturate(1.08)}}.pkmn-battlefield513.camera-to-enemy513{transform:translateX(-.8%) scale(1.006)}.pkmn-battlefield513.camera-to-player513{transform:translateX(.8%) scale(1.006)}
@media(max-width:1100px){body.adventure513-active[data-battle-screen="battle"] .battle-screen{grid-template-rows:auto minmax(500px,1fr) minmax(260px,36vh)!important}.pkmn-status-card{min-width:250px}.pkmn-status-enemy{left:32%;top:6%}.pkmn-status-ally{right:4%;bottom:4%}body.adventure513-active[data-battle-screen="battle"] .battle-console.refined-console{grid-template-columns:1fr!important;overflow:auto!important}.pkmn-trainer img{height:92px!important}.pkmn-unit.is-main .pkmn-mon{height:96px!important}.pkmn-unit .pkmn-mon{height:82px!important}.pkmn-mini-card{min-width:96px}.pkmn-move-panel513{grid-template-columns:1fr 1fr}}


/* Adventure 5.14 — Pokemon-style battle UI and RPG systems */
.adventure514-active .battle-screen{overflow:visible}.adventure514-active .battlefield{min-height:620px}.pkmn-battlefield514{position:relative;overflow:hidden;border-radius:28px;border:3px solid rgba(197,236,255,.75);background:#98d9ec;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25),0 18px 42px rgba(0,0,0,.42);isolation:isolate}.scene-sky514,.scene-horizon514,.scene-ground514{position:absolute;inset:0;pointer-events:none}.scene-sky514{background:linear-gradient(180deg,#8bd9ef 0%,#cdf7ff 46%,rgba(255,255,255,0) 47%)}.scene-horizon514{top:32%;height:30%;background:radial-gradient(ellipse at 20% 55%,rgba(41,130,72,.7) 0 12%,transparent 13%),radial-gradient(ellipse at 38% 50%,rgba(56,148,77,.7) 0 11%,transparent 12%),radial-gradient(ellipse at 83% 42%,rgba(38,111,68,.72) 0 22%,transparent 23%),linear-gradient(9deg,#76b46c 0 48%,#3f8955 49% 100%)}.scene-ground514{top:55%;background:linear-gradient(167deg,rgba(45,101,52,.92) 0 50%,rgba(16,63,35,.96) 51% 100%)}.scene-sky514:after{content:'';position:absolute;width:185px;height:185px;right:20%;top:5%;border-radius:50%;background:#fff7a6;box-shadow:0 0 0 42px rgba(255,255,190,.25)}.battle-pad514{position:absolute;border-radius:50%;background:radial-gradient(ellipse at center,rgba(246,241,181,.65),rgba(208,208,151,.38) 58%,rgba(51,91,58,.34) 61%,transparent 66%);filter:drop-shadow(0 10px 10px rgba(0,0,0,.22));pointer-events:none}.ally-pad514{left:8%;bottom:5%;width:42%;height:22%;transform:rotate(-2deg)}.enemy-pad514{right:11%;top:38%;width:35%;height:18%;transform:rotate(2deg)}.battle-label514{position:absolute;z-index:25;top:10px;left:50%;transform:translateX(-50%);background:linear-gradient(180deg,#ffe985,#f0b83e);color:#17130c;border-radius:999px;padding:7px 22px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em;box-shadow:0 7px 18px rgba(0,0,0,.25)}.pkmn-trainer514,.pkmn-unit514{position:absolute;z-index:10;transform:translate(-50%,-100%);text-align:center;pointer-events:none}.pkmn-trainer514{z-index:8}.pkmn-trainer514 img{height:118px;width:auto;image-rendering:auto;filter:drop-shadow(0 8px 5px rgba(0,0,0,.35))}.pkmn-trainer514 span,.mini-hud514 strong{display:inline-block;background:rgba(4,10,18,.86);color:white;border-radius:999px;padding:4px 11px;font-weight:900;text-shadow:0 1px #000;box-shadow:0 5px 12px rgba(0,0,0,.3)}.pkmn-mon514{height:104px;width:auto;max-width:160px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 12px 8px rgba(0,0,0,.38));transform-origin:bottom center}.unit-ally514 .pkmn-mon514{height:116px}.unit-enemy514 .pkmn-mon514{height:104px}.unit-ally514.is-main .pkmn-mon514{height:128px}.unit-enemy514.is-main .pkmn-mon514{height:118px}.mini-hud514{min-width:128px;transform:translate(-50%,4px);margin-left:50%;background:linear-gradient(180deg,rgba(14,24,39,.96),rgba(5,11,21,.96));border:2px solid rgba(255,255,255,.12);border-radius:14px;padding:6px 8px;box-shadow:0 12px 24px rgba(0,0,0,.32);color:white}.mini-hud514 strong{background:none;box-shadow:none;padding:0;border-radius:0;display:block;font-size:.82rem;white-space:nowrap}.mini-hud514 span{display:flex;gap:4px;justify-content:center}.mini-hud514 em{font-style:normal;color:#fff;border-radius:999px;padding:1px 6px;font-size:.58rem;font-weight:1000;background:var(--type)}.mini-hud514 small{display:block;font-size:.68rem;opacity:.92}.hp514,.xp514{display:block;height:7px;border-radius:999px;background:rgba(255,255,255,.19);overflow:hidden;margin-top:3px}.hp514 b,.xp514 b{display:block;height:100%;border-radius:inherit}.hud-green .hp514 b{background:#78f59a}.hud-yellow .hp514 b{background:#ffe76b}.hud-red .hp514 b{background:#f85f5f}.xp514{height:4px}.xp514 b{background:#59d2ff}.command-tabs514{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 8px}.command-tabs514 button{border:2px solid rgba(33,61,92,.45);border-radius:16px;background:linear-gradient(180deg,#eef7ff,#cadcf2);font-weight:1000;color:#172236;padding:12px}.command-tabs514 button.is-active{background:linear-gradient(180deg,#ffe77d,#f0bb3f);color:#14110b}.move-grid514{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.move514{position:relative;min-height:78px;text-align:left;border:3px solid color-mix(in srgb,var(--move-color) 58%,#fff);border-radius:18px;background:linear-gradient(180deg,#ffffff,#dfeafa);box-shadow:inset 10px 0 0 var(--move-color),0 7px 0 rgba(35,59,91,.25);color:#1c2a3c;padding:11px 70px 11px 20px}.move514 strong{font-size:1.05rem;display:block}.move514 span{display:block;opacity:.72;font-weight:800}.move514 em{position:absolute;right:12px;top:12px;background:var(--move-color);color:#fff;border-radius:999px;padding:4px 8px;font-style:normal;font-size:.62rem;font-weight:1000;text-shadow:0 1px rgba(0,0,0,.3)}.target-panel514{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.target-panel514>strong{grid-column:1/-1;color:#10223e;background:#ffe67c;border-radius:14px;padding:10px 14px}.target-panel514 button{border-radius:16px;border:2px solid rgba(25,56,93,.3);background:linear-gradient(180deg,#fff,#e4eefb);display:flex;align-items:center;gap:10px;padding:10px;font-weight:900;color:#132033}.target-panel514 img{width:38px;height:38px;object-fit:contain}.target-panel514 em{margin-left:auto;font-style:normal;opacity:.72}.party-strip514{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;max-height:145px;overflow:auto;padding-right:4px}.switch514{display:grid;grid-template-columns:42px 1fr;gap:6px;align-items:center;border:2px solid rgba(45,74,106,.25);border-radius:14px;background:#edf5ff;padding:7px;text-align:left}.switch514 img{width:40px;height:40px;object-fit:contain}.switch514 span{font-weight:900;color:#22324a}.switch514 i{grid-column:1/-1;height:6px;background:#c9d7e7;border-radius:999px;overflow:hidden}.switch514 i b{display:block;height:100%;background:#78f59a}.switch514.tone-yellow i b{background:#ffe76b}.switch514.tone-red i b{background:#f85f5f}.battle-help514{font-weight:800;color:#dbe7ff;padding:8px 4px}.pkmn-attack-vfx513{z-index:60}.pkmn-hit513,.pkmn-mon514.pkmn-hit513{filter:brightness(1.8) drop-shadow(0 0 16px #fff)}.city-resources514,.resource-row514{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.city-resources514 span,.resource-row514 span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:5px 10px;font-weight:900}.city-actions-514{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}.city-actions-514 button,.town-event-grid514 button{border-radius:16px;border:1px solid rgba(255,255,255,.16);background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.04));color:#eef6ff;padding:12px;text-align:left}.city-actions-514 button span,.town-event-grid514 span{display:block;opacity:.75}.town-board514{margin-top:12px;padding:14px;border:1px solid rgba(255,224,113,.35);border-radius:18px;background:rgba(255,217,83,.06)}.town-event-grid514{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.town-event-grid514 em{display:inline-block;margin-top:5px;border-radius:999px;background:#ffe071;color:#121212;padding:2px 7px;font-style:normal;font-weight:1000}.companions514{display:grid;gap:12px}.comp-card514{display:grid;grid-template-columns:76px 1fr;gap:12px;padding:12px;border-radius:18px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13)}.comp-card514 img{width:72px;height:88px;object-fit:contain}.comp-card514 button{margin-right:8px;border-radius:999px;border:0;background:#ffe071;color:#17130c;font-weight:1000;padding:8px 12px}.dialogue-note514,.dex-summary514{padding:12px;border-radius:16px;background:rgba(66,125,255,.11);border:1px solid rgba(140,180,255,.2)}.pokedex514{display:grid;gap:12px}.dex-summary514 input{width:100%;margin-top:8px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:#0e1728;color:white;padding:10px}.dex-grid514{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:9px;max-height:520px;overflow:auto}.dex-card514{padding:10px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);text-align:center}.dex-card514 img{width:52px;height:52px;object-fit:contain;filter:brightness(.1);opacity:.45}.dex-card514.is-seen img{filter:none;opacity:1}.dex-card514 strong,.dex-card514 span,.dex-card514 em{display:block}.dex-card514 em{font-size:.7rem;opacity:.75}.dex-card514.is-caught{border-color:#ffe071;background:rgba(255,224,113,.12)}@media(max-width:900px){.adventure514-active .battlefield{min-height:560px}.pkmn-trainer514 img{height:92px}.unit-ally514 .pkmn-mon514,.unit-ally514.is-main .pkmn-mon514{height:96px}.unit-enemy514 .pkmn-mon514,.unit-enemy514.is-main .pkmn-mon514{height:90px}.mini-hud514{min-width:104px}.move-grid514{grid-template-columns:1fr}}


/* Adventure 5.15 battle resolution + Orre/Shiny polish */
.battle515 .pkmn-mon.is-shiny515,
.battlefield .is-shiny515{filter:drop-shadow(0 0 10px rgba(255,230,90,.95)) drop-shadow(0 0 20px rgba(120,220,255,.55)) saturate(1.45) hue-rotate(16deg);}
.battle515 .pkmn-mon.is-shiny515::after{content:'✨';position:absolute;right:-8px;top:-10px;font-size:18px;}
.snag-note515{border:1px solid rgba(184,113,255,.45);background:linear-gradient(135deg,rgba(59,18,91,.82),rgba(18,18,33,.86));border-radius:16px;padding:12px 14px;margin:0 0 12px;color:#f2e9ff;box-shadow:0 10px 26px rgba(53,14,91,.28)}
.snag-note515 strong{color:#d9b3ff;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;display:block;margin-bottom:4px}
.location-action512[data-location-action512="snag515"]{border-color:rgba(190,99,255,.65);box-shadow:inset 0 0 0 1px rgba(219,174,255,.12),0 10px 28px rgba(80,20,120,.25)}
.battle515 .pkmn-unit514 .mini-hud514 strong::first-letter{color:inherit}
.battle515 .pkmn-unit514 .pkmn-mon.shadow-aura58{filter:drop-shadow(0 0 12px rgba(182,80,255,.95)) drop-shadow(0 0 24px rgba(95,18,155,.7));}


/* === Adventure 5.16: Six-slot party command repair === */
body.adventure516-active[data-battle-screen="battle"] .battle-console.refined-console,
body.adventure516-active[data-battle-screen="battle"] .battle-console{
  grid-template-columns:minmax(520px,1.25fr) minmax(420px,.9fr) minmax(300px,.75fr)!important;
  gap:12px!important;
  max-height:none!important;
  overflow:visible!important;
  padding:10px 12px!important;
}
body.adventure516-active[data-battle-screen="battle"] .switch-grid{
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  align-content:stretch!important;
}
body.adventure516-active[data-battle-screen="battle"] .party-strip514{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(56px,auto)!important;
  gap:8px!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
}
body.adventure516-active[data-battle-screen="battle"] .switch514{
  min-height:56px!important;
  padding:6px 7px!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:6px!important;
  border-radius:14px!important;
  box-shadow:0 3px 0 #aab8d1!important;
}
body.adventure516-active[data-battle-screen="battle"] .switch514 img{
  width:38px!important;
  height:38px!important;
}
body.adventure516-active[data-battle-screen="battle"] .switch514 span{
  font-size:.72rem!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.adventure516-active[data-battle-screen="battle"] .switch514 i{
  height:6px!important;
  margin-top:0!important;
}
body.adventure516-active[data-battle-screen="battle"] .battle-help514{
  margin-top:6px!important;
  padding:6px 8px!important;
  border-radius:12px!important;
  background:rgba(18,38,64,.16)!important;
  color:#385270!important;
  font-size:.76rem!important;
  line-height:1.25!important;
}
body.adventure516-active[data-battle-screen="battle"] .move-grid514,
body.adventure516-active[data-battle-screen="battle"] .pkmn-move-panel513{
  gap:8px!important;
}
body.adventure516-active[data-battle-screen="battle"] .move514,
body.adventure516-active[data-battle-screen="battle"] .pkmn-move-card513{
  min-height:68px!important;
}
@media(max-width:1200px){
  body.adventure516-active[data-battle-screen="battle"] .battle-console.refined-console,
  body.adventure516-active[data-battle-screen="battle"] .battle-console{
    grid-template-columns:1fr!important;
    overflow:auto!important;
  }
  body.adventure516-active[data-battle-screen="battle"] .party-strip514{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.adventure516-active[data-battle-screen="battle"] .party-strip514{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* === Adventure 5.17: persistent resource HUD + stable forfeit polish === */
.adventure517-active .resource-dock517{
  position:absolute;
  z-index:80;
  top:12px;
  right:16px;
  pointer-events:none;
  max-width:min(720px, calc(100% - 32px));
}
.adventure517-active .resource-dock517.is-battle{
  top:70px;
  right:24px;
}
.resource-dock-inner517{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  justify-content:flex-end;
  padding:6px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(12,20,32,.88), rgba(5,9,17,.76));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}
.res-chip517{
  display:grid;
  grid-template-columns:auto auto;
  grid-template-rows:auto auto;
  column-gap:6px;
  min-width:94px;
  padding:6px 9px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#f4f7ff;
  line-height:1.05;
}
.res-chip517 b{
  grid-row:1 / 3;
  align-self:center;
  font-size:1.05rem;
}
.res-chip517 em{
  font-style:normal;
  font-size:.58rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.78;
}
.res-chip517 strong{
  font-size:.82rem;
  white-space:nowrap;
}
.res-chip517.tone-ok{box-shadow:inset 0 -3px 0 rgba(106,230,134,.55)}
.res-chip517.tone-warn{box-shadow:inset 0 -3px 0 rgba(255,215,92,.75)}
.res-chip517.tone-danger{box-shadow:inset 0 -3px 0 rgba(255,87,87,.78)}
.res-chip517.tone-money{box-shadow:inset 0 -3px 0 rgba(255,222,93,.75)}
.resource-row517{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin-top:8px;
}
.resource-row517 span{
  border-radius:999px;
  padding:5px 8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  font-size:.72rem;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
}
@media (max-width: 900px){
  .adventure517-active .resource-dock517,
  .adventure517-active .resource-dock517.is-battle{
    top:8px;
    right:8px;
    left:8px;
    max-width:none;
  }
  .resource-dock-inner517{justify-content:center;}
  .res-chip517{min-width:78px;padding:5px 7px;}
}

/* === Adventure 5.19: cleaned city panels, greyed town boards, vertical party panel === */
.adventure519-active .city-panel519{
  display:grid;
  gap:14px;
  color:#edf6ff;
}
.adventure519-active .city-head519{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 30px rgba(0,0,0,.22);
}
.adventure519-active .city-avatar519{
  width:82px;
  height:82px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#eef7ff,#c8def8);
  border:2px solid rgba(255,224,113,.7);
  box-shadow:0 8px 18px rgba(0,0,0,.28);
  overflow:hidden;
}
.adventure519-active .city-avatar519 img{max-width:72px;max-height:78px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 4px 3px rgba(0,0,0,.25))}
.adventure519-active .city-head519 h3{margin:.1rem 0 .35rem;font-size:clamp(1.35rem,2vw,2rem);letter-spacing:-.04em;color:#fff}
.adventure519-active .city-head519 p{margin:0;color:#c7d6e8;line-height:1.35;max-width:900px}
.adventure519-active .city-head519 small{display:block;margin-top:6px;text-transform:uppercase;font-weight:1000;letter-spacing:.08em;color:#96a9bf}
.adventure519-active .resource-chips519{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.adventure519-active .resource-chips519 span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 13px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.17);
  color:#fff;
  font-weight:1000;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.adventure519-active .city-service-grid519,
.adventure519-active .local-grid519,
.adventure519-active .town-event-grid519{
  display:grid;
  gap:10px;
}
.adventure519-active .city-service-grid519{grid-template-columns:repeat(4,minmax(150px,1fr))}
.adventure519-active .local-grid519{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.adventure519-active .town-event-grid519{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.adventure519-active .city-service-grid519 button,
.adventure519-active .local-option519,
.adventure519-active .town-board-card519{
  position:relative;
  min-height:84px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.04));
  color:#edf6ff;
  padding:13px 14px;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 18px rgba(0,0,0,.18);
  transition:transform .15s ease,filter .15s ease,border-color .15s ease,background .15s ease;
}
.adventure519-active .city-service-grid519 button:hover,
.adventure519-active .local-option519:not(:disabled):hover,
.adventure519-active .town-board-card519:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(255,224,113,.75);
  background:linear-gradient(180deg,rgba(255,224,113,.16),rgba(255,255,255,.055));
}
.adventure519-active .city-service-grid519 strong,
.adventure519-active .local-option519 strong,
.adventure519-active .town-board-card519 strong{display:block;color:#fff;font-size:.98rem;line-height:1.12;margin-bottom:4px}
.adventure519-active .city-service-grid519 span,
.adventure519-active .local-option519 span,
.adventure519-active .town-board-card519 span{display:block;color:#c8d6e8;font-weight:800;line-height:1.25;font-size:.86rem}
.adventure519-active .local-option519 em,
.adventure519-active .town-board-card519 em,
.adventure519-active .town-board-card519 small{
  display:inline-flex;
  margin-top:8px;
  margin-right:5px;
  border-radius:999px;
  background:#ffe071;
  color:#111723;
  padding:3px 8px;
  font-style:normal;
  font-size:.68rem;
  font-weight:1000;
  text-transform:capitalize;
}
.adventure519-active .town-board-card519 small{background:rgba(255,255,255,.14);color:#f4f8ff}
.adventure519-active .local-option519:disabled,
.adventure519-active .town-board-card519:disabled{
  cursor:not-allowed;
  filter:grayscale(.85) brightness(.62);
  opacity:.7;
  border-color:rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(120,130,145,.13),rgba(50,58,68,.13));
  box-shadow:none;
}
.adventure519-active .local-option519.is-locked em,
.adventure519-active .town-board-card519.is-cooling em{background:#a9b3c2;color:#111723}
.adventure519-active .local-option519.is-done em,
.adventure519-active .town-board-card519.is-resolved em{background:#9be8a5;color:#101b10}
.adventure519-active .local-options519,
.adventure519-active .town-board519{
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(255,224,113,.26);
  background:linear-gradient(180deg,rgba(255,224,113,.06),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.adventure519-active .section-head519{display:flex;gap:12px;align-items:flex-end;justify-content:space-between;margin-bottom:10px}
.adventure519-active .section-head519 h4{margin:0;color:#ffe071;font-size:1.05rem;text-transform:uppercase;letter-spacing:.06em}
.adventure519-active .section-head519 p{margin:0;color:#c5d2e4;font-weight:700;font-size:.86rem;max-width:680px}

/* Keep the battle party panel readable: six slots vertically, no tiny inner scrollbar. */
body.adventure519-active[data-battle-screen="battle"] .battle-console{
  grid-template-columns:minmax(520px,1.35fr) minmax(250px,.52fr) minmax(360px,.82fr)!important;
  gap:12px!important;
  overflow:visible!important;
  align-items:stretch!important;
}
body.adventure519-active[data-battle-screen="battle"] .switch-grid,
body.adventure519-active[data-battle-screen="battle"] .party-strip514,
body.adventure519-active[data-battle-screen="battle"] .party-strip519{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-rows:minmax(47px,auto)!important;
  gap:7px!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  align-content:start!important;
}
body.adventure519-active[data-battle-screen="battle"] .switch514{
  min-height:47px!important;
  padding:5px 7px!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:6px!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#f4f9ff,#d8e7f8)!important;
  box-shadow:0 3px 0 #a9b9d1!important;
}
body.adventure519-active[data-battle-screen="battle"] .switch514 img{width:34px!important;height:34px!important;object-fit:contain!important}
body.adventure519-active[data-battle-screen="battle"] .switch514 span{font-size:.7rem!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.adventure519-active[data-battle-screen="battle"] .switch514 i{height:5px!important;grid-column:1/-1!important;margin-top:0!important}
body.adventure519-active[data-battle-screen="battle"] .battle-help514{font-size:.73rem!important;line-height:1.2!important;max-height:none!important;overflow:visible!important}
@media(max-width:1200px){
  body.adventure519-active[data-battle-screen="battle"] .battle-console{grid-template-columns:1fr!important;overflow:auto!important}
  body.adventure519-active[data-battle-screen="battle"] .party-strip514,
  body.adventure519-active[data-battle-screen="battle"] .party-strip519{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .adventure519-active .city-service-grid519{grid-template-columns:repeat(2,minmax(150px,1fr))}
}
@media(max-width:760px){
  .adventure519-active .city-head519{grid-template-columns:1fr}.adventure519-active .city-avatar519{display:none}
  .adventure519-active .city-service-grid519{grid-template-columns:1fr}
  body.adventure519-active[data-battle-screen="battle"] .party-strip514,
  body.adventure519-active[data-battle-screen="battle"] .party-strip519{grid-template-columns:1fr!important}
}

/* Adventure 5.20 standard merge note */
.standard-merge-note520{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid rgba(255,221,94,.35);
  border-radius:16px;
  background:rgba(255,221,94,.08);
  color:#fff7c7;
}
.standard-merge-note520 strong{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;}
.standard-merge-note520 span{font-size:.8rem;color:rgba(255,255,255,.78);}
@media (max-width:720px){.standard-merge-note520{align-items:flex-start;flex-direction:column;}}


/* === Adventure 5.21 UI Remaster: responsive strategy-game polish === */
body.adventure521-active{
  --pnx-bg:#070b16;
  --pnx-panel:rgba(10,16,31,.92);
  --pnx-panel-2:rgba(17,28,52,.86);
  --pnx-line:rgba(255,255,255,.12);
  --pnx-line-strong:rgba(255,232,112,.32);
  --pnx-gold:#ffe477;
  --pnx-blue:#69d8ff;
  --pnx-green:#8ef0a0;
  --pnx-red:#ff6e76;
}
body.adventure521-active .battle-site-shell,
body.adventure521-active .site-shell{max-width:none;width:100%;overflow-x:hidden;background:radial-gradient(circle at 50% 0%,rgba(63,119,255,.12),transparent 34%),#050811;}
body.adventure521-active .battle-main{width:min(1920px,100%);margin:0 auto;padding:clamp(10px,1.4vw,26px);}
body.adventure521-active .battle-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:18px;align-items:stretch;border:1px solid var(--pnx-line);box-shadow:0 24px 80px rgba(0,0,0,.36);}
body.adventure521-active .battle-app{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:30px;background:linear-gradient(180deg,rgba(8,13,25,.98),rgba(4,6,14,.98));box-shadow:0 30px 90px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08);}
body.adventure521-active .battle-app::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,228,119,.05),transparent 18%,transparent 82%,rgba(105,216,255,.05)),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 6px);z-index:0;}
body.adventure521-active [data-screen]{position:relative;z-index:1;}
body.adventure521-active .map-screen{padding:clamp(12px,1.4vw,22px);display:flex;flex-direction:column;gap:12px;min-height:min(92vh,980px);}
body.adventure521-active .map-screen.is-hidden{display:none!important;}
body.adventure521-active .map-screen .league-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:16px 18px;border:1px solid var(--pnx-line);border-radius:24px;background:linear-gradient(135deg,rgba(11,20,40,.94),rgba(8,13,25,.72));}
body.adventure521-active .map-screen .league-head h2{font-size:clamp(1.6rem,2.4vw,3.1rem);line-height:.95;margin:.15rem 0 .35rem;letter-spacing:-.055em;}
body.adventure521-active .map-screen .league-head p{max-width:110ch;color:rgba(237,243,255,.72);}
body.adventure521-active .journey-map-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:10px;border:1px solid var(--pnx-line);border-radius:22px;background:rgba(6,10,20,.72);backdrop-filter:blur(12px);}
body.adventure521-active .map-region-tabs,
body.adventure521-active .map-view-controls{display:flex;flex-wrap:wrap;gap:8px;}
body.adventure521-active .journey-window-frame{position:relative;flex:1 1 auto;min-height:clamp(520px,68vh,860px);height:clamp(520px,70vh,880px);border-radius:30px;overflow:hidden;border:1px solid rgba(255,255,255,.15);background:#07101f;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 20px 60px rgba(0,0,0,.45);}
body.adventure521-active .rogue-board-shell{height:100%;width:100%;overflow:hidden;cursor:grab;background:radial-gradient(circle at 50% 50%,rgba(56,139,174,.16),transparent 54%);}
body.adventure521-active .rogue-board-shell.is-dragging{cursor:grabbing;}
body.adventure521-active .rogue-board{min-width:1500px;min-height:850px;transform-origin:50% 50%;}
body.adventure521-active .journey-map-hud{position:relative;z-index:4;}
body.adventure521-active .journey-map-status-card,
body.adventure521-active .journey-hud-card{border:1px solid rgba(255,255,255,.12);background:rgba(6,10,20,.78);backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(0,0,0,.34);}
body.adventure521-active .journey-overlay-layer{position:absolute;inset:0;pointer-events:none;z-index:8;}
body.adventure521-active .journey-map-menu-stack{pointer-events:auto;position:absolute;left:12px;top:12px;display:flex;gap:12px;align-items:flex-start;max-width:min(760px,calc(100% - 24px));}
body.adventure521-active .journey-map-dock{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:22px;border:1px solid rgba(255,255,255,.13);background:rgba(3,7,16,.84);backdrop-filter:blur(14px);box-shadow:0 16px 42px rgba(0,0,0,.38);max-height:calc(100vh - 260px);overflow:auto;}
body.adventure521-active .journey-map-dock button{width:52px;height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));color:#fff;display:grid;place-items:center;transition:transform .16s ease,border-color .16s ease,background .16s ease;}
body.adventure521-active .journey-map-dock button:hover{transform:translateY(-2px);border-color:var(--pnx-line-strong);background:rgba(255,228,119,.12);}
body.adventure521-active .journey-map-dock button.is-active{background:linear-gradient(135deg,rgba(255,228,119,.24),rgba(105,216,255,.12));border-color:var(--pnx-gold);box-shadow:0 0 24px rgba(255,228,119,.18);}
body.adventure521-active .journey-map-dock small{display:none;}
body.adventure521-active .journey-map-window{width:min(620px,calc(100vw - 110px));max-height:calc(100vh - 260px);display:flex;flex-direction:column;border-radius:24px;border:1px solid rgba(255,255,255,.14);background:rgba(5,9,20,.93);box-shadow:0 20px 80px rgba(0,0,0,.55);overflow:hidden;}
body.adventure521-active .journey-map-window-head{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.1);background:linear-gradient(90deg,rgba(255,228,119,.1),rgba(105,216,255,.06));}
body.adventure521-active .journey-map-window-body{padding:14px;overflow:auto;min-height:0;}
body.adventure521-active .journey-controls-panel.compact-note{display:none;}
body.adventure521-active .pnx-top-hud521{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(330px,1.25fr) minmax(220px,.85fr) minmax(160px,.6fr) auto;gap:10px;align-items:stretch;padding:10px;margin:0 0 8px;border:1px solid rgba(255,255,255,.13);border-radius:24px;background:rgba(5,9,19,.82);box-shadow:0 18px 58px rgba(0,0,0,.34);backdrop-filter:blur(16px);z-index:12;}
body.adventure521-active .pnx-top-hud521.is-battle{margin:0 0 12px;}
body.adventure521-active .pnx-hud-main521,
body.adventure521-active .pnx-hud-quest521,
body.adventure521-active .pnx-hud-lead521,
body.adventure521-active .pnx-hud-actions521{border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.045);padding:10px;min-width:0;}
body.adventure521-active .pnx-hud-main521 strong{display:block;font-size:1.05rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.adventure521-active .pnx-hud-main521 small,
body.adventure521-active .pnx-hud-quest521 span{display:block;color:rgba(237,243,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.adventure521-active .pnx-resource-strip521{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:8px;}
body.adventure521-active .pnx-res521{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"ico label" "ico value";gap:0 8px;align-items:center;padding:9px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.045);min-width:0;}
body.adventure521-active .pnx-res521 b{grid-area:ico;font-size:1.15rem;}
body.adventure521-active .pnx-res521 i{grid-area:label;font-style:normal;color:rgba(237,243,255,.62);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;}
body.adventure521-active .pnx-res521 strong{grid-area:value;color:#fff;position:relative;z-index:1;}
body.adventure521-active .pnx-res521 em{position:absolute;left:0;bottom:0;height:3px;width:var(--v,100%);background:linear-gradient(90deg,var(--pnx-gold),var(--pnx-blue));opacity:.82;}
body.adventure521-active .pnx-hud-lead521{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;align-items:center;}
body.adventure521-active .pnx-hud-lead521 img{width:34px;height:34px;object-fit:contain;grid-row:span 2;}
body.adventure521-active .pnx-hud-lead521 span,
body.adventure521-active .pnx-hud-lead521 i{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal;}
body.adventure521-active .pnx-hud-actions521{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
body.adventure521-active .resource-dock517{display:none!important;}
body.adventure521-active .companion-token521{width:31px!important;height:31px!important;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 8px rgba(0,0,0,.6));z-index:1505!important;pointer-events:none;animation:companionPulse521 1.9s ease-in-out infinite;animation-delay:calc(var(--comp-i,0)*.12s);}
body.adventure521-active .board-token:not(.companion-token521){z-index:1510!important;filter:drop-shadow(0 10px 10px rgba(0,0,0,.65)) drop-shadow(0 0 12px rgba(255,228,119,.35));}
@keyframes companionPulse521{0%,100%{transform:translate(-50%,-50%) translateY(0)}50%{transform:translate(-50%,-50%) translateY(-2px)}}
body.adventure521-active .board-node,body.adventure521-active [data-node]{transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;}
body.adventure521-active [data-node]:hover{transform:translate(-50%,-50%) scale(1.06);filter:brightness(1.2);}
body.adventure521-active [data-node].node-legend,body.adventure521-active [data-node].major45{box-shadow:0 0 0 2px rgba(255,228,119,.55),0 0 24px rgba(255,228,119,.28)!important;}
body.adventure521-active .quest-strategy-note521,.legend-gate521,.resource-panel521{border:1px solid rgba(255,228,119,.18);border-radius:20px;padding:14px;margin-bottom:12px;background:linear-gradient(135deg,rgba(255,228,119,.10),rgba(105,216,255,.055));}
body.adventure521-active .quest-strategy-note521 strong{display:block;color:#fff;margin-bottom:4px;}
body.adventure521-active .quest-strategy-note521 span{color:rgba(237,243,255,.74);}
body.adventure521-active .quest-card35{border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;background:rgba(255,255,255,.045)!important;box-shadow:none!important;}
body.adventure521-active .quest-card35 i{display:block;height:5px;border-radius:999px;background:linear-gradient(90deg,var(--pnx-gold) var(--quest-pct,0%),rgba(255,255,255,.08) 0)!important;}
body.adventure521-active .legend-req-grid521{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0;}
body.adventure521-active .legend-req-grid521 span{padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);text-align:center;}
body.adventure521-active .legend-req-grid521 span.ok{border-color:rgba(142,240,160,.45);box-shadow:inset 0 -3px 0 rgba(142,240,160,.45);}
body.adventure521-active .legend-req-grid521 span.bad{border-color:rgba(255,110,118,.45);box-shadow:inset 0 -3px 0 rgba(255,110,118,.45);}
body.adventure521-active .legend-req-grid521 b{display:block;font-size:1.25rem;color:#fff;}
body.adventure521-active .legend-req-grid521 em{font-style:normal;color:rgba(237,243,255,.64);text-transform:uppercase;font-size:.68rem;letter-spacing:.08em;}
body.adventure521-active .battle-screen{padding:clamp(12px,1.5vw,22px);min-height:min(92vh,980px);display:flex;flex-direction:column;gap:12px;}
body.adventure521-active .battle-screen.is-hidden{display:none!important;}
body.adventure521-active .battle-topbar{border:1px solid rgba(255,255,255,.13);border-radius:22px;background:rgba(8,14,26,.8);padding:12px 16px;}
body.adventure521-active .battlefield{min-height:clamp(420px,50vh,620px);border-radius:28px;border:1px solid rgba(255,255,255,.12);overflow:hidden;background:radial-gradient(circle at 70% 30%,rgba(105,216,255,.13),transparent 35%),radial-gradient(circle at 30% 70%,rgba(255,228,119,.09),transparent 35%),#081322;}
body.adventure521-active .battle-console{display:grid;grid-template-columns:minmax(300px,1fr) minmax(240px,.65fr) minmax(320px,.9fr);gap:12px;min-height:210px;}
body.adventure521-active .move-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.adventure521-active .move-remaster521{align-items:stretch;text-align:left;padding:12px!important;border-radius:18px!important;min-height:88px;position:relative;overflow:hidden;}
body.adventure521-active .move-remaster521.is-good{box-shadow:inset 0 0 0 1px rgba(142,240,160,.35);}
body.adventure521-active .move-remaster521.is-low{box-shadow:inset 0 0 0 1px rgba(255,110,118,.32);}
body.adventure521-active .move-meta521{display:grid;grid-template-columns:repeat(4,auto);gap:6px;margin-top:6px;color:rgba(237,243,255,.72);font-size:.72rem;align-items:center;}
body.adventure521-active .move-meta521 b,body.adventure521-active .move-meta521 i,body.adventure521-active .move-meta521 em,body.adventure521-active .move-meta521 small{font-style:normal;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.08);white-space:nowrap;}
body.adventure521-active .switch-grid,.battle-remaster521 .party-strip519{max-height:260px;overflow:auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;}
body.adventure521-active .battle-log521,.battle-remaster521 .battle-log{max-height:260px;overflow:auto;border-radius:18px;background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.1);}
body.adventure521-active .map-party-row{border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);}
@media (max-width: 1180px){
  body.adventure521-active .pnx-top-hud521{grid-template-columns:1fr 1fr;}
  body.adventure521-active .pnx-resource-strip521{grid-column:1 / -1;}
  body.adventure521-active .battle-console{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  body.adventure521-active .battle-main{padding:8px;}
  body.adventure521-active .battle-hero{grid-template-columns:1fr;}
  body.adventure521-active .map-screen .league-head{grid-template-columns:1fr;}
  body.adventure521-active .journey-window-frame{height:68vh;min-height:480px;}
  body.adventure521-active .pnx-top-hud521{grid-template-columns:1fr;}
  body.adventure521-active .pnx-resource-strip521{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.adventure521-active .journey-map-menu-stack{left:8px;top:8px;gap:8px;}
  body.adventure521-active .journey-map-dock{padding:7px;}
  body.adventure521-active .journey-map-dock button{width:44px;height:44px;}
  body.adventure521-active .journey-map-window{width:calc(100vw - 76px);max-height:calc(100vh - 210px);}
  body.adventure521-active .move-grid{grid-template-columns:1fr;}
}

/* === Adventure 5.22 Route Submaps / City Starts / Badge Level Caps === */
body.adventure522-active .city-start-wrap522{margin:18px 0 0;padding:18px;border:1px solid rgba(255,228,119,.18);border-radius:28px;background:linear-gradient(135deg,rgba(255,228,119,.10),rgba(105,216,255,.06)),rgba(4,8,18,.72);box-shadow:0 22px 70px rgba(0,0,0,.32)}
body.adventure522-active .city-start-head522{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:14px}
body.adventure522-active .city-start-head522 h3{margin:.15rem 0 .35rem;font-size:clamp(1.25rem,2vw,2rem)}
body.adventure522-active .city-start-head522 p{margin:0;color:rgba(237,243,255,.72);max-width:780px}
body.adventure522-active .city-start-grid522{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
body.adventure522-active .city-start-card522{appearance:none;text-align:left;border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:15px;min-height:142px;color:#fff;background:radial-gradient(circle at 20% 0%,rgba(255,228,119,.13),transparent 38%),rgba(255,255,255,.045);box-shadow:0 16px 36px rgba(0,0,0,.24);cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
body.adventure522-active .city-start-card522:hover{transform:translateY(-2px);border-color:rgba(255,228,119,.55);background:rgba(255,228,119,.09)}
body.adventure522-active .city-start-card522.is-selected{border-color:var(--pnx-gold);box-shadow:0 0 0 1px rgba(255,228,119,.22),0 18px 44px rgba(255,228,119,.13)}
body.adventure522-active .city-start-card522 strong{display:block;font-size:1.08rem;margin-bottom:7px;color:#fff}
body.adventure522-active .city-start-card522 span{display:block;color:rgba(237,243,255,.72);line-height:1.35;margin-bottom:12px}
body.adventure522-active .city-start-card522 em{font-style:normal;display:inline-flex;padding:4px 9px;border-radius:999px;background:rgba(105,216,255,.12);border:1px solid rgba(105,216,255,.22);font-size:.75rem;color:#dff6ff}
body.adventure522-active .board-node.node-wild small::after,body.adventure522-active .board-node.node-trainer small::after{content:' · Submap';color:var(--pnx-gold)}
body.adventure522-active .route-submap522{position:absolute;inset:14px;z-index:2600;display:flex;flex-direction:column;gap:12px;border:1px solid rgba(255,255,255,.15);border-radius:30px;background:radial-gradient(circle at 25% 30%,rgba(96,200,125,.22),transparent 36%),radial-gradient(circle at 75% 65%,rgba(105,216,255,.14),transparent 38%),rgba(4,8,18,.95);box-shadow:0 30px 120px rgba(0,0,0,.62);padding:16px;overflow:hidden;pointer-events:auto;backdrop-filter:blur(12px)}
body.adventure522-active .route-submap522.habitat-cave{background:radial-gradient(circle at 24% 30%,rgba(130,120,105,.24),transparent 38%),radial-gradient(circle at 75% 60%,rgba(110,90,230,.12),transparent 40%),rgba(4,6,12,.96)}
body.adventure522-active .route-submap522.habitat-water{background:radial-gradient(circle at 30% 25%,rgba(105,216,255,.22),transparent 38%),radial-gradient(circle at 78% 62%,rgba(70,120,220,.20),transparent 42%),rgba(4,9,22,.96)}
body.adventure522-active .route-submap522.habitat-desert{background:radial-gradient(circle at 25% 30%,rgba(255,190,95,.22),transparent 38%),radial-gradient(circle at 75% 65%,rgba(255,228,119,.13),transparent 42%),rgba(16,11,6,.96)}
body.adventure522-active .route-submap522.habitat-forest{background:radial-gradient(circle at 24% 30%,rgba(80,220,130,.20),transparent 38%),radial-gradient(circle at 80% 65%,rgba(20,120,70,.20),transparent 42%),rgba(2,13,11,.96)}
body.adventure522-active .route-submap-head522{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(0,0,0,.24)}
body.adventure522-active .route-submap-head522 h3{margin:.15rem 0 .35rem;font-size:clamp(1.35rem,2vw,2.25rem)}
body.adventure522-active .route-submap-head522 p{margin:0;color:rgba(237,243,255,.72);max-width:760px}.route-party-strip522{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.055);width:max-content;max-width:100%}.route-party-strip522 img{width:34px;height:34px;object-fit:contain}.route-party-strip522 span,.route-party-strip522 em{color:rgba(237,243,255,.7);font-style:normal}
body.adventure522-active .route-path522{position:relative;flex:1;min-height:300px;border:1px solid rgba(255,255,255,.10);border-radius:26px;overflow:hidden;background:linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(0deg,rgba(255,255,255,.028) 1px,transparent 1px);background-size:44px 44px}
body.adventure522-active .route-path-line522{position:absolute;left:10%;right:10%;top:48%;height:12px;border-radius:999px;background:repeating-linear-gradient(90deg,rgba(255,228,119,.22) 0 44px,transparent 44px 64px);filter:drop-shadow(0 0 10px rgba(255,228,119,.16));transform:rotate(-4deg)}
body.adventure522-active .route-poi522{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:min(210px,24%);min-height:150px;border:1px solid rgba(255,255,255,.14);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.045));color:#fff;padding:14px;text-align:left;box-shadow:0 18px 46px rgba(0,0,0,.35);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
body.adventure522-active .route-poi522:hover{transform:translate(-50%,-50%) translateY(-4px) scale(1.03);border-color:rgba(255,228,119,.6);box-shadow:0 24px 60px rgba(0,0,0,.42),0 0 28px rgba(255,228,119,.11)}
body.adventure522-active .route-poi522 i{font-style:normal;display:grid;place-items:center;width:42px;height:42px;border-radius:16px;background:rgba(0,0,0,.25);font-size:1.35rem;margin-bottom:8px}.route-poi522 strong{display:block;margin-bottom:6px}.route-poi522 small{display:block;color:rgba(237,243,255,.72);line-height:1.32}
body.adventure522-active .route-submap-foot522{display:flex;gap:10px;align-items:center;justify-content:center;padding:10px 14px;border:1px solid rgba(255,228,119,.16);border-radius:18px;background:rgba(255,228,119,.07);color:rgba(237,243,255,.8)}
body.adventure522-active .route-submap-foot522 strong{color:#fff}.battlefield .pkmn-mon.is-fainted522,.battlefield img.sprite-faint{opacity:.25!important;filter:grayscale(1) blur(1px)!important;transform:translateY(20px) scale(.9)!important}
@media(max-width:900px){body.adventure522-active .route-submap522{inset:8px;padding:10px}.route-submap-head522{flex-direction:column}.route-path522{min-height:520px}.route-poi522{width:42%;min-height:132px}.route-poi522:nth-of-type(2){--x:70%!important;--y:32%!important}.route-poi522:nth-of-type(3){--x:30%!important;--y:68%!important}.route-poi522:nth-of-type(4){--x:70%!important;--y:72%!important}.route-submap-foot522{align-items:flex-start;flex-direction:column}.city-start-grid522{grid-template-columns:1fr}}
body.adventure522-active .journey-window-frame .journey-overlay-layer{z-index:3000!important;pointer-events:none!important;}
body.adventure522-active .journey-window-frame .route-submap522{pointer-events:auto!important;}


/* === Adventure 5.23 purple title screen and double battle UI repair === */
.gameboy-boot-overlay.boot-v8{
  background:
    radial-gradient(circle at 50% 42%,rgba(138,88,255,.28),transparent 26%),
    linear-gradient(180deg,#05020d,#180930 58%,#03020a)!important;
}
.boot-screen-v8{
  background:
    radial-gradient(circle at 50% 41%,rgba(255,255,255,.09) 0 21%,transparent 22%),
    radial-gradient(circle at 50% 42%,rgba(123,71,255,.36),transparent 34%),
    linear-gradient(155deg,#170826,#2b1245 52%,#090512 100%)!important;
  border-color:#2a183d!important;
}
.boot-screen-v8:before{
  content:""!important;position:absolute!important;left:50%!important;top:43%!important;width:min(310px,48vw)!important;height:min(310px,48vw)!important;transform:translate(-50%,-50%)!important;border-radius:50%!important;z-index:1!important;
  background:
    radial-gradient(circle at 50% 50%,#ffffff 0 10%,#251934 11% 13%,transparent 14%),
    linear-gradient(180deg,#7246ce 0 45%,#23162d 46% 53%,#ffffff 54% 100%)!important;
  box-shadow:0 0 0 10px rgba(255,255,255,.08),0 0 45px rgba(160,110,255,.58),inset 0 -18px 42px rgba(0,0,0,.24)!important;
  opacity:.88!important;pointer-events:none!important;
}
.boot-screen-v8:after{border-color:rgba(207,184,255,.24)!important;box-shadow:inset 0 0 0 4px rgba(255,255,255,.07),0 0 42px rgba(122,67,240,.22)!important;}
.boot-title-card{transform:translateY(18px)!important;z-index:6!important;}
.boot-title-card strong{color:#f8f1ff!important;text-shadow:2px 2px 0 #32134f,0 0 26px rgba(204,176,255,.8)!important;}
.boot-title-card em{background:#22102f!important;color:#ffe66b!important;box-shadow:0 6px 0 rgba(0,0,0,.24),0 0 24px rgba(255,230,107,.16)!important;}
.boot-v8 .boot-status{bottom:92px!important;color:#f1e8ff!important;text-shadow:0 0 8px rgba(0,0,0,.8)!important;}
.boot-v8 .boot-progress{bottom:72px!important;background:rgba(255,255,255,.12)!important;}
.boot-v8 .boot-progress i{background:linear-gradient(90deg,#7b4dff,#ffe66b,#b17cff)!important;}
.boot-v8 .boot-start{bottom:18px!important;}
.boot-v8 .boot-cartridge b{color:#c5b5ff!important;}

body.adventure523-active[data-battle-screen="battle"] .battle-screen{
  min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;
  display:grid!important;grid-template-rows:auto auto minmax(360px,46vh) auto!important;gap:10px!important;padding:10px 14px 18px!important;
}
body.adventure523-active[data-battle-screen="battle"] .pnx-top-hud521{margin:0!important;}
body.adventure523-active[data-battle-screen="battle"] .battle-topbar{margin:0!important;padding:10px 14px!important;align-items:center!important;}
body.adventure523-active[data-battle-screen="battle"] .battlefield,
body.adventure523-active[data-battle-screen="battle"] .pkmn-battlefield514{
  min-height:360px!important;height:46vh!important;max-height:520px!important;margin:0!important;border-radius:26px!important;position:relative!important;overflow:hidden!important;
}
body.adventure523-active[data-battle-screen="battle"] .pkmn-battlefield514{
  background:#8cd6ef!important;border:3px solid rgba(218,243,255,.9)!important;
}
body.adventure523-active[data-battle-screen="battle"] .scene-sky514{background:linear-gradient(180deg,#8bd7f0 0%,#d2faff 43%,rgba(255,255,255,0) 44%)!important;}
body.adventure523-active[data-battle-screen="battle"] .scene-horizon514{top:30%!important;height:31%!important;}
body.adventure523-active[data-battle-screen="battle"] .scene-ground514{top:54%!important;}
body.adventure523-active[data-battle-screen="battle"] .battle-label514{top:8px!important;z-index:60!important;padding:6px 18px!important;font-size:.86rem!important;}
body.adventure523-active[data-battle-screen="battle"] .pkmn-trainer514 img{height:92px!important;max-height:92px!important;}
body.adventure523-active[data-battle-screen="battle"] .pkmn-mon514{height:88px!important;max-height:96px!important;}
body.adventure523-active[data-battle-screen="battle"] .unit-ally514.is-main .pkmn-mon514{height:104px!important;max-height:112px!important;}
body.adventure523-active[data-battle-screen="battle"] .unit-enemy514.is-main .pkmn-mon514{height:96px!important;max-height:104px!important;}
body.adventure523-active[data-battle-screen="battle"] .mini-hud514{min-width:118px!important;padding:5px 7px!important;font-size:.82rem!important;}
body.adventure523-active[data-battle-screen="battle"] .mini-hud514 strong{font-size:.72rem!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.adventure523-active[data-battle-screen="battle"] .battle-console.refined-console,
body.adventure523-active[data-battle-screen="battle"] .battle-console{
  display:grid!important;grid-template-columns:minmax(330px,1.1fr) minmax(210px,.72fr) minmax(260px,.85fr)!important;gap:10px!important;min-height:0!important;margin-top:0!important;padding:12px!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(9,16,30,.96),rgba(4,8,18,.98))!important;border:1px solid rgba(255,255,255,.13)!important;box-shadow:0 16px 42px rgba(0,0,0,.28)!important;
}
body.adventure523-active[data-battle-screen="battle"] .move-grid514{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
body.adventure523-active[data-battle-screen="battle"] .move514{min-height:66px!important;padding:9px 58px 9px 16px!important;border-radius:16px!important;}
body.adventure523-active[data-battle-screen="battle"] .move514 strong{font-size:.92rem!important;}
body.adventure523-active[data-battle-screen="battle"] .move514 span{font-size:.7rem!important;}
body.adventure523-active[data-battle-screen="battle"] .switch-grid,
body.adventure523-active[data-battle-screen="battle"] .party-strip514,
body.adventure523-active[data-battle-screen="battle"] .party-strip519{max-height:235px!important;overflow:auto!important;}
body.adventure523-active[data-battle-screen="battle"] .battle-log{max-height:235px!important;min-height:160px!important;}
body.adventure523-active[data-battle-screen="battle"] .target-panel514{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;}
body.adventure523-active[data-battle-screen="battle"] .pkmn-unit514.is-fainted523{opacity:.38!important;filter:grayscale(1)!important;}
@media(max-width:1180px){
  body.adventure523-active[data-battle-screen="battle"] .battle-screen{grid-template-rows:auto auto minmax(360px,45vh) auto!important;}
  body.adventure523-active[data-battle-screen="battle"] .battle-console{grid-template-columns:1fr!important;}
  body.adventure523-active[data-battle-screen="battle"] .battlefield,body.adventure523-active[data-battle-screen="battle"] .pkmn-battlefield514{height:45vh!important;}
}
@media(max-width:760px){
  body.adventure523-active[data-battle-screen="battle"] .battle-screen{padding:8px!important;grid-template-rows:auto auto minmax(390px,48vh) auto!important;}
  body.adventure523-active[data-battle-screen="battle"] .move-grid514{grid-template-columns:1fr!important;}
  body.adventure523-active[data-battle-screen="battle"] .pkmn-trainer514 img{height:72px!important;}
  body.adventure523-active[data-battle-screen="battle"] .pkmn-mon514,body.adventure523-active[data-battle-screen="battle"] .unit-ally514.is-main .pkmn-mon514,body.adventure523-active[data-battle-screen="battle"] .unit-enemy514.is-main .pkmn-mon514{height:76px!important;}
}


/* Adventure 5.24 - battle title belongs inside the game window, not in a separate top HUD block */
body.adventure524-active[data-battle-screen="battle"] .battle-screen > .pnx-top-hud521,
body.adventure524-active[data-battle-screen="battle"] .pnx-top-hud521.is-battle{
  display:none!important;
}
body.adventure524-active[data-battle-screen="battle"] .battle-topbar{
  display:none!important;
}
body.adventure524-active[data-battle-screen="battle"] .battle-screen{
  grid-template-rows:minmax(0,1fr) minmax(215px,32vh)!important;
  gap:10px!important;
  padding:10px!important;
  min-height:0!important;
  height:100%!important;
}
body.adventure524-active[data-battle-screen="battle"] .battlefield,
body.adventure524-active[data-battle-screen="battle"] .pkmn-battlefield514{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
}
body.adventure524-active[data-battle-screen="battle"] .battle-console,
body.adventure524-active[data-battle-screen="battle"] .battle-console.refined-console{
  min-height:215px!important;
  max-height:32vh!important;
  overflow:auto!important;
}
.battle-window-title524{
  position:absolute;
  z-index:90;
  left:16px;
  top:14px;
  right:16px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  pointer-events:none;
}
.battle-window-title524>div{
  min-width:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:12px 16px;
  background:linear-gradient(145deg,rgba(4,8,18,.82),rgba(10,18,34,.58));
  backdrop-filter:blur(10px);
  box-shadow:0 18px 44px rgba(0,0,0,.32);
  pointer-events:auto;
}
.battle-window-title524 span{
  display:block;
  color:#ffe66b;
  font-size:.78rem;
  line-height:1;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:5px;
}
.battle-window-title524 strong{
  display:block;
  color:#fff;
  font-size:clamp(1.35rem,2.45vw,2.55rem);
  line-height:.96;
  letter-spacing:-.045em;
  text-shadow:0 2px 12px rgba(0,0,0,.65);
  max-width:min(850px,70vw);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.battle-window-title524 .button{
  pointer-events:auto;
  white-space:nowrap;
  background:rgba(12,18,32,.76)!important;
  backdrop-filter:blur(10px);
}
body.adventure524-active[data-battle-screen="battle"] .battle-label514{
  top:12px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  max-width:38vw!important;
}
@media(max-width:900px){
  body.adventure524-active[data-battle-screen="battle"] .battle-screen{grid-template-rows:minmax(330px,1fr) minmax(225px,38vh)!important;padding:8px!important;}
  body.adventure524-active[data-battle-screen="battle"] .battle-console{max-height:38vh!important;}
  .battle-window-title524{left:10px;right:10px;top:10px;align-items:stretch;}
  .battle-window-title524 strong{max-width:64vw;font-size:clamp(1.15rem,5vw,1.9rem);}
  .battle-window-title524>div{padding:10px 12px;}
}
@media(max-width:620px){
  .battle-window-title524{display:grid;grid-template-columns:1fr auto;}
  .battle-window-title524 span{font-size:.66rem;}
  .battle-window-title524 strong{max-width:58vw;}
}

/* Adventure 5.25 - battle command remaster: attacks anchored along the bottom */
body.adventure525-active[data-battle-screen="battle"] .battle-screen{
  grid-template-rows:minmax(420px,1fr) minmax(260px,34vh)!important;
  gap:10px!important;
  padding:10px!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-console,
body.adventure525-active[data-battle-screen="battle"] .battle-console.refined-console{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(245px,.35fr)!important;
  grid-template-rows:minmax(74px,1fr) auto!important;
  grid-template-areas:
    "log party"
    "moves party"!important;
  gap:12px!important;
  min-height:260px!important;
  max-height:34vh!important;
  overflow:hidden!important;
  padding:12px!important;
  border-radius:26px!important;
  border:3px solid #476a9e!important;
  background:linear-gradient(180deg,#eef7ff 0%,#cfdef3 100%)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.88),0 -10px 34px rgba(0,0,0,.32)!important;
  color:#14223a!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-console [data-move-grid]{
  grid-area:moves!important;
  display:grid!important;
  grid-template-columns:minmax(104px,128px) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  min-height:128px!important;
  overflow:hidden!important;
}
body.adventure525-active[data-battle-screen="battle"] .command-tabs514,
body.adventure525-active[data-battle-screen="battle"] .journey-battle-menu,
body.adventure525-active[data-battle-screen="battle"] .pkmn-command-tabs513{
  grid-column:1!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
  align-self:stretch!important;
  min-height:0!important;
}
body.adventure525-active[data-battle-screen="battle"] .command-tabs514 button,
body.adventure525-active[data-battle-screen="battle"] .journey-battle-menu button,
body.adventure525-active[data-battle-screen="battle"] .pkmn-command-tabs513 button{
  min-height:0!important;
  padding:8px 10px!important;
  border-radius:16px!important;
  border:2px solid rgba(60,88,128,.55)!important;
  background:linear-gradient(180deg,#f7fbff,#d7e6f8)!important;
  color:#11223e!important;
  box-shadow:0 4px 0 rgba(58,83,116,.32)!important;
  font-size:.88rem!important;
  font-weight:1000!important;
  cursor:pointer!important;
}
body.adventure525-active[data-battle-screen="battle"] .command-tabs514 button.is-active,
body.adventure525-active[data-battle-screen="battle"] .journey-battle-menu button.is-active,
body.adventure525-active[data-battle-screen="battle"] .pkmn-command-tabs513 button.is-active{
  background:linear-gradient(180deg,#ffe985,#efbe3e)!important;
  border-color:#9c7a1c!important;
  color:#16130c!important;
}
body.adventure525-active[data-battle-screen="battle"] .move-grid514,
body.adventure525-active[data-battle-screen="battle"] .pkmn-move-panel513{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  min-width:0!important;
  overflow:visible!important;
}
body.adventure525-active[data-battle-screen="battle"] .move514,
body.adventure525-active[data-battle-screen="battle"] .pkmn-move-card513,
body.adventure525-active[data-battle-screen="battle"] [data-move-grid] > .move-button{
  position:relative!important;
  min-height:58px!important;
  max-height:70px!important;
  border-radius:17px!important;
  padding:9px 64px 9px 16px!important;
  text-align:left!important;
  border:3px solid rgba(255,255,255,.76)!important;
  background:linear-gradient(180deg,#ffffff,#dfeafa)!important;
  color:#172236!important;
  box-shadow:inset 8px 0 0 var(--move-color,#89a8d8),0 5px 0 rgba(67,87,116,.3)!important;
  overflow:hidden!important;
}
body.adventure525-active[data-battle-screen="battle"] .move514 strong,
body.adventure525-active[data-battle-screen="battle"] .pkmn-move-card513 strong,
body.adventure525-active[data-battle-screen="battle"] [data-move-grid] > .move-button strong{
  display:block!important;
  color:#13213a!important;
  font-size:.96rem!important;
  line-height:1.02!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-shadow:none!important;
}
body.adventure525-active[data-battle-screen="battle"] .move514 span,
body.adventure525-active[data-battle-screen="battle"] .pkmn-move-card513 span,
body.adventure525-active[data-battle-screen="battle"] [data-move-grid] > .move-button span{
  display:block!important;
  margin-top:4px!important;
  color:#66778e!important;
  font-size:.68rem!important;
  line-height:1.1!important;
  font-weight:850!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.adventure525-active[data-battle-screen="battle"] .move514 em,
body.adventure525-active[data-battle-screen="battle"] .pkmn-move-card513 em{
  position:absolute!important;
  right:10px!important;
  top:9px!important;
  max-width:58px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  border-radius:999px!important;
  padding:3px 7px!important;
  background:var(--move-color,#728ab6)!important;
  color:white!important;
  font-size:.55rem!important;
  line-height:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-console [data-switch-grid]{
  grid-area:party!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
body.adventure525-active[data-battle-screen="battle"] .party-strip514,
body.adventure525-active[data-battle-screen="battle"] .pkmn-party-switch513,
body.adventure525-active[data-battle-screen="battle"] .switch-grid{
  min-height:0!important;
  max-height:100%!important;
  overflow:auto!important;
  padding-right:4px!important;
}
body.adventure525-active[data-battle-screen="battle"] .party-strip514{
  grid-template-columns:1fr!important;
  gap:7px!important;
}
body.adventure525-active[data-battle-screen="battle"] .switch514,
body.adventure525-active[data-battle-screen="battle"] .switch-button,
body.adventure525-active[data-battle-screen="battle"] .pkmn-switch513{
  min-height:52px!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#f8fbff,#deebfb)!important;
  border:2px solid rgba(65,91,130,.2)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 3px 0 rgba(72,92,124,.16)!important;
  color:#1d2f4a!important;
}
body.adventure525-active[data-battle-screen="battle"] .switch514 img,
body.adventure525-active[data-battle-screen="battle"] .switch-button img,
body.adventure525-active[data-battle-screen="battle"] .pkmn-switch513 img{
  width:36px!important;
  height:36px!important;
  object-fit:contain!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-log{
  grid-area:log!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  border-radius:18px!important;
  padding:10px 12px!important;
  border:2px solid #304a70!important;
  background:linear-gradient(180deg,#162b49,#0a1729)!important;
  color:#edf6ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-log p{
  margin:0 0 6px!important;
  color:#edf6ff!important;
  font-weight:800!important;
  line-height:1.25!important;
}
body.adventure525-active[data-battle-screen="battle"] .target-panel514,
body.adventure525-active[data-battle-screen="battle"] .battle-bag-panel,
body.adventure525-active[data-battle-screen="battle"] .bag-wrap514{
  grid-column:1 / -1!important;
  align-self:stretch!important;
  max-height:135px!important;
  overflow:auto!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-help514{
  display:none!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-window-title524{
  top:12px!important;
}
body.adventure525-active[data-battle-screen="battle"] .battle-label514{
  top:auto!important;
  bottom:10px!important;
  padding:5px 16px!important;
  font-size:.78rem!important;
}
@media(max-width:1100px){
  body.adventure525-active[data-battle-screen="battle"] .battle-screen{
    grid-template-rows:minmax(380px,1fr) minmax(310px,42vh)!important;
  }
  body.adventure525-active[data-battle-screen="battle"] .battle-console,
  body.adventure525-active[data-battle-screen="battle"] .battle-console.refined-console{
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(72px,.7fr) auto minmax(70px,.5fr)!important;
    grid-template-areas:"log" "moves" "party"!important;
    max-height:42vh!important;
    overflow:auto!important;
  }
  body.adventure525-active[data-battle-screen="battle"] .party-strip514,
  body.adventure525-active[data-battle-screen="battle"] .pkmn-party-switch513{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    display:grid!important;
  }
}
@media(max-width:720px){
  body.adventure525-active[data-battle-screen="battle"] .battle-screen{
    grid-template-rows:minmax(350px,1fr) minmax(360px,48vh)!important;
  }
  body.adventure525-active[data-battle-screen="battle"] .battle-console [data-move-grid]{
    grid-template-columns:1fr!important;
  }
  body.adventure525-active[data-battle-screen="battle"] .command-tabs514,
  body.adventure525-active[data-battle-screen="battle"] .journey-battle-menu,
  body.adventure525-active[data-battle-screen="battle"] .pkmn-command-tabs513{
    grid-template-columns:repeat(4,1fr)!important;
    grid-template-rows:1fr!important;
  }
  body.adventure525-active[data-battle-screen="battle"] .move-grid514,
  body.adventure525-active[data-battle-screen="battle"] .pkmn-move-panel513{
    grid-column:1!important;
    grid-row:auto!important;
    grid-template-columns:1fr!important;
  }
}


/* Adventure 5.26: multi-battle stability polish */
body.adventure526-active[data-battle-screen="battle"] .battle-help514{
  color:#26384f;
  font-weight:800;
}
body.adventure526-active[data-battle-screen="battle"] .target-panel526{
  align-self:end;
  max-height:100%;
  overflow:auto;
}
body.adventure526-active[data-battle-screen="battle"] .target-panel526 button{
  min-height:54px;
}
body.adventure526-active[data-battle-screen="battle"] .party-strip526 .switch514[disabled]{
  opacity:.62;
}


/* Adventure 5.27 - true bottom move dock + faint replacement chooser */
body.adventure527-active[data-battle-screen="battle"] .battle-screen{
  grid-template-rows:minmax(390px,1fr) minmax(285px,36vh)!important;
}
body.adventure527-active[data-battle-screen="battle"] .battle-console,
body.adventure527-active[data-battle-screen="battle"] .battle-console.refined-console{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(250px,.34fr)!important;
  grid-template-rows:minmax(0,1fr) minmax(126px,auto)!important;
  grid-template-areas:"log party" "moves party"!important;
  align-items:stretch!important;
  padding:14px!important;
  gap:12px!important;
  overflow:hidden!important;
}
body.adventure527-active[data-battle-screen="battle"] .battle-console [data-move-grid]{
  grid-area:moves!important;
  align-self:end!important;
  display:grid!important;
  grid-template-columns:118px minmax(0,1fr)!important;
  gap:10px!important;
  min-height:126px!important;
  height:100%!important;
  overflow:hidden!important;
}
body.adventure527-active[data-battle-screen="battle"] .command-tabs527,
body.adventure527-active[data-battle-screen="battle"] .command-tabs514,
body.adventure527-active[data-battle-screen="battle"] .journey-battle-menu,
body.adventure527-active[data-battle-screen="battle"] .pkmn-command-tabs513{
  grid-column:1!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  align-self:stretch!important;
  min-height:126px!important;
  max-height:150px!important;
}
body.adventure527-active[data-battle-screen="battle"] .move-grid527,
body.adventure527-active[data-battle-screen="battle"] .move-grid514,
body.adventure527-active[data-battle-screen="battle"] .pkmn-move-panel513{
  grid-column:2!important;
  align-self:end!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:auto!important;
  margin-bottom:0!important;
  min-height:126px!important;
  max-height:150px!important;
}
body.adventure527-active[data-battle-screen="battle"] .move514,
body.adventure527-active[data-battle-screen="battle"] .move-button,
body.adventure527-active[data-battle-screen="battle"] .pkmn-move-card513{
  min-height:58px!important;
  max-height:66px!important;
  align-self:stretch!important;
}
body.adventure527-active[data-battle-screen="battle"] .bottom-panel527,
body.adventure527-active[data-battle-screen="battle"] .target-panel527{
  grid-column:2!important;
  align-self:end!important;
  max-height:150px!important;
  overflow:auto!important;
}
body.adventure527-active[data-battle-screen="battle"] .battle-log{
  grid-area:log!important;
  min-height:0!important;
  overflow:auto!important;
}
body.adventure527-active[data-battle-screen="battle"] .battle-console [data-switch-grid]{
  grid-area:party!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.adventure527-active[data-battle-screen="battle"] .force-switch527{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:minmax(210px,.5fr) minmax(0,1fr)!important;
  gap:12px!important;
  align-self:end!important;
  min-height:126px!important;
  border:3px solid #f0c84b!important;
  border-radius:22px!important;
  padding:12px!important;
  background:linear-gradient(180deg,#fff6c9,#dceaff)!important;
  box-shadow:0 8px 0 rgba(73,86,114,.25), inset 0 1px 0 rgba(255,255,255,.85)!important;
  color:#13213a!important;
}
body.adventure527-active[data-battle-screen="battle"] .force-switch-copy527 b{display:block;font-size:1.05rem;font-weight:1000;color:#111c2f;margin-bottom:4px;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-copy527 span{display:block;font-size:.82rem;font-weight:850;color:#5a6c84;line-height:1.25;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 button{
  display:grid;grid-template-columns:42px 1fr;gap:6px;align-items:center;text-align:left;min-height:54px;
  border-radius:16px;border:2px solid rgba(48,78,123,.24);background:linear-gradient(180deg,#fff,#e7f2ff);color:#17253d;font-weight:950;padding:7px;cursor:pointer;
}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 button:hover{transform:translateY(-1px);border-color:#d19d19;box-shadow:0 5px 0 rgba(80,92,122,.22);}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated;grid-row:1 / span 3;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 span{font-size:.72rem;color:#607089;font-weight:850;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 i{height:6px;background:#c9d7e7;border-radius:999px;overflow:hidden;}
body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527 i b{display:block;height:100%;background:#78f59a;}
body.adventure527-active[data-battle-screen="battle"] .force-help527{display:block!important;color:#26384f!important;background:#fff3b9;border-radius:12px;padding:8px!important;}
body.adventure527-active[data-battle-screen="battle"] .swap-panel527{border-radius:18px;background:linear-gradient(180deg,#ffffff,#deebfb);border:2px solid rgba(65,91,130,.2);padding:16px;color:#17253d;font-weight:900;}
body.adventure527-active[data-battle-screen="battle"] .swap-panel527 strong{display:block;font-size:1.05rem;margin-bottom:4px;}
body.adventure527-active[data-battle-screen="battle"] .swap-panel527 span{display:block;color:#607089;font-size:.85rem;}
@media(max-width:1100px){
  body.adventure527-active[data-battle-screen="battle"] .battle-console,
  body.adventure527-active[data-battle-screen="battle"] .battle-console.refined-console{grid-template-columns:1fr!important;grid-template-rows:minmax(70px,.75fr) minmax(126px,auto) minmax(76px,.45fr)!important;grid-template-areas:"log" "moves" "party"!important;max-height:44vh!important;overflow:auto!important;}
  body.adventure527-active[data-battle-screen="battle"] .force-switch527{grid-template-columns:1fr!important;}
  body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
  body.adventure527-active[data-battle-screen="battle"] .battle-console [data-move-grid]{grid-template-columns:1fr!important;}
  body.adventure527-active[data-battle-screen="battle"] .command-tabs527,
  body.adventure527-active[data-battle-screen="battle"] .command-tabs514,
  body.adventure527-active[data-battle-screen="battle"] .journey-battle-menu,
  body.adventure527-active[data-battle-screen="battle"] .pkmn-command-tabs513{grid-template-columns:repeat(4,1fr)!important;grid-template-rows:1fr!important;min-height:64px!important;}
  body.adventure527-active[data-battle-screen="battle"] .move-grid527,
  body.adventure527-active[data-battle-screen="battle"] .move-grid514,
  body.adventure527-active[data-battle-screen="battle"] .pkmn-move-panel513{grid-column:1!important;grid-template-columns:1fr!important;}
  body.adventure527-active[data-battle-screen="battle"] .force-switch-grid527{grid-template-columns:1fr;}
}
