/* 2026-11 visual refresh (prototype): shared by index.html and backgrounds.html.
   Brand (11/26 sales-first): bright Pikachu-yellow header with dark brown text (30%), near-white page and white cards (60%), dark brown actions + LINE green (10%). Loaded after the page stylesheet so it can override. */
:root{
 --wj-cream:#fcfbf7;--wj-paper:#fffdf5;--wj-card:#ffffff;--wj-green:#4b370f;--wj-green-2:#6a4e16;--wj-green-ink:#3d2c08;
 --wj-gold:#8a6410;--wj-gold-soft:#fff1bd;--wj-gold-line:#e3bb49;--wj-ink:#2b2216;--wj-muted:#5f5747;--wj-line:#e5e7eb;
 --wj-live:#1f7a4f;--wj-soon:#8a5a0b;--wj-ended:#6b7068;--wj-radius:14px;--wj-focus:#b36e17;
 --wj-pattern:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22300%22%20viewBox%3D%220%200%20320%20300%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%239c834b%22%20stroke-width%3D%222.5%22%20opacity%3D%22.17%22%3E%3Cg%20transform%3D%22translate(62%2065)%20rotate(-16)%22%3E%3Ccircle%20r%3D%2234%22%2F%3E%3Cpath%20d%3D%22M-34%200h23m22%200h23%22%2F%3E%3Ccircle%20r%3D%2211%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(228%20112)%20rotate(18)%22%3E%3Ccircle%20r%3D%2229%22%2F%3E%3Cpath%20d%3D%22M-29%200h19m20%200h19%22%2F%3E%3Ccircle%20r%3D%2210%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(128%20242)%20rotate(12)%22%3E%3Ccircle%20r%3D%2233%22%2F%3E%3Cpath%20d%3D%22M-33%200h22m22%200h22%22%2F%3E%3Ccircle%20r%3D%2211%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
 color-scheme:light;
}
body.home-page,body.atlas-page{background-color:var(--wj-cream);background-image:var(--wj-pattern);background-size:320px 300px;background-repeat:repeat;color:var(--wj-ink)}
:where(body.home-page,body.atlas-page) :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--wj-focus);outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Header + navigation (both pages) ---------- */
/* Original atlas header: solid Pikachu yellow with the large pale ring in the corner. */
body.home-page .header,body.atlas-page header{position:relative;overflow:hidden;background:#ffdf70;color:#4b370f;border-bottom:1px solid #e3bb49}
body.home-page .header>*,body.atlas-page header>*{position:relative;z-index:1}
body.home-page .header:after{content:'';position:absolute;width:460px;height:460px;right:-120px;top:-225px;border:48px solid #ffeaa2;border-radius:50%;pointer-events:none}
.brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.brand-mark{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;background:#4b370f;color:#fff;font:700 17px/1 Georgia,"Times New Roman",serif;letter-spacing:1px;box-shadow:inset 0 0 0 2px #fff6dc}
.brand-text{display:block}
body.home-page .brand small,body.atlas-page .brand small{color:#705816}
.site-nav{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.site-nav a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;color:#4b370f;text-decoration:none;font-size:14px;font-weight:700;border:1px solid #e3bb4999;background:#ffffffa6}
.site-nav a:hover{background:#fff}
.site-nav a[aria-current=page]{background:#4b370f;color:#fff;border-color:#4b370f}
body.home-page .language-control>span,body.home-page .language-control>span small{color:#4b370f}
body.atlas-page .top{border-bottom:0;padding-bottom:4px}
body.atlas-page .top .nav>a{display:none}
body.atlas-page .language-control span,body.atlas-page .language-control small{color:#4b370f}
body.atlas-page .site-nav{margin-top:0;padding:4px 0 2px}

/* ---------- Home: quick search ---------- */
.home-hero{padding:14px 18px 6px}
.quick-search{display:grid;gap:6px;background:var(--wj-card);border:1px solid var(--wj-line);border-radius:var(--wj-radius);padding:12px;box-shadow:0 6px 18px #4a3a1208}
.quick-label{font-size:13px;font-weight:800;color:var(--wj-green);letter-spacing:.04em}
.quick-row{display:flex;gap:8px}
.quick-row .field{flex:1;min-width:0;min-height:48px;font-size:16px;border-radius:10px}
.quick-row .btn{flex:none;min-height:48px;padding:0 18px;border-radius:10px;background:var(--wj-green);color:#fff;border:0;font-weight:800}
.quick-status{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-height:0;margin:6px 2px 0;font-size:13px;color:var(--wj-muted)}
.quick-status:empty{display:none}
.quick-jump{color:var(--wj-green);font-weight:800}

/* ---------- Event feed (home + atlas) ---------- */
.ev-feed{--ev-thumb:112px}
.home-events{padding:8px 18px 4px;min-height:120px}
.ev-loading,.ev-error{color:var(--wj-muted);font-size:14px;margin:12px 0}
.ev-feed-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:6px 0 8px}
.ev-feed-title h2{margin:0;font-size:22px;letter-spacing:-.01em;color:var(--wj-green-ink)}
.ev-asof{margin:3px 0 0;font-size:12px;color:var(--wj-muted)}
.ev-feed-toggle{flex:none;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--wj-line);background:var(--wj-card);color:var(--wj-green);font-weight:800}
.ev-intro{margin:0 0 10px;font-size:13px;color:var(--wj-muted);line-height:1.55}
.ev-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.ev-tab{min-height:40px;padding:7px 14px;border-radius:999px;border:1px solid #cfc3a4;background:transparent;color:var(--wj-ink);font-weight:750;font-size:14px}
.ev-tab[aria-pressed=true]{background:var(--wj-green);border-color:var(--wj-green);color:#fff}
.ev-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ev-item{background:var(--wj-card);border:1px solid var(--wj-line);border-radius:var(--wj-radius);overflow:hidden;box-shadow:0 3px 12px #4a3a1206}
.ev-item.is-open{border-color:#b6a274;box-shadow:0 8px 24px #4a3a1214}
.ev-heading{margin:0;font-size:inherit}
.ev-toggle{display:grid;grid-template-columns:var(--ev-thumb) minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:10px;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font:inherit}
.ev-toggle:hover .ev-title{color:var(--wj-green-2);text-decoration:underline;text-underline-offset:3px}
.ev-thumb{display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#f3f4f6}
.ev-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.ev-placeholder{display:grid;place-content:center;justify-items:center;gap:4px;width:100%;height:100%;background:radial-gradient(ellipse at 30% 20%,#ffe795,#f3c93f 80%);color:#4b370f;text-align:center;padding:6px}
.ev-placeholder-mark{font:700 20px/1 Georgia,serif;letter-spacing:1px}
.ev-placeholder-note{font-size:10px;color:#e4dac0;line-height:1.3}
.ev-text{display:grid;gap:4px;min-width:0}
.ev-badges{display:flex;flex-wrap:wrap;gap:4px}
.ev-badge{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.3;background:#efe7d3;color:#4d4433}
.ev-badge.status.in_progress{background:#dff1e5;color:#14583a}
.ev-badge.status.upcoming{background:#fbedc9;color:#734a06}
.ev-badge.status.ended{background:#e6e6e1;color:#4f544d}
.ev-badge.status.time_unknown,.ev-badge.pending,.ev-badge.evidence.pending{background:#f6e2cf;color:#7a3e10}
.ev-badge.bg.released{background:#e3ecf6;color:#24486b}
.ev-badge.bg.upcoming{background:#efe4f6;color:#5a2f74}
.ev-badge.evidence.confirmed{background:#dff1e5;color:#14583a}
.ev-badge.evidence.inferred{background:#e9eef7;color:#33496b}
.ev-title{font-size:17px;font-weight:850;line-height:1.35;color:var(--wj-ink);overflow-wrap:anywhere}
.ev-meta{font-size:13px;color:var(--wj-muted);line-height:1.45;overflow-wrap:anywhere}
.ev-cue{align-self:center;justify-self:end;white-space:nowrap;font-size:13px;font-weight:800;color:var(--wj-green);padding:7px 10px;border-radius:999px;border:1px solid #cbbf9f;background:var(--wj-paper)}
.ev-panel{border-top:1px solid var(--wj-line);padding:12px 14px 16px;display:grid;gap:12px;background:var(--wj-paper)}
.ev-actions{display:flex;flex-wrap:wrap;gap:8px}
.ev-action{display:inline-flex;align-items:center;min-height:42px;padding:8px 14px;border-radius:10px;border:1px solid #cbbf9f;background:var(--wj-card);color:var(--wj-ink);font-weight:800;font-size:14px;text-decoration:none;cursor:pointer}
.ev-action.primary{background:var(--wj-green);border-color:var(--wj-green);color:#fff}
.ev-action.quiet{background:transparent}
.ev-share-status{margin:0;font-size:13px;color:var(--wj-muted)}
.ev-share-status:empty{display:none}
.ev-share-input{width:100%;font:inherit;padding:8px;border:1px solid var(--wj-line);border-radius:8px}
.ev-section{border:1px solid #ece2c9;border-radius:12px;background:var(--wj-card);padding:12px 14px}
.ev-section h4{margin:0 0 8px;font-size:15px;color:var(--wj-green-ink)}
.ev-section p,.ev-section li{font-size:14px;line-height:1.6}
.ev-section p{margin:4px 0}
.ev-highlights ul{margin:0;padding-left:20px}
.ev-kind{font-weight:800;color:var(--wj-gold)}
.ev-line.strong{font-weight:750}
.ev-note{color:var(--wj-muted);font-size:13px!important}
.ev-countdown{display:inline-block;margin-top:6px!important;padding:6px 10px;border-radius:8px;background:#e8f1ea;color:#174a33;font-weight:750}
.ev-countdown:empty{display:none}
.ev-windows summary{cursor:pointer;font-weight:750;margin-top:6px}
.ev-table{overflow-x:auto}
.ev-table table{border-collapse:collapse;font-size:13px;min-width:420px}
.ev-table th,.ev-table td{border-bottom:1px solid var(--wj-line);padding:6px 8px;text-align:left}
.ev-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ev-chips li{padding:4px 10px;border-radius:999px;background:#f1ead8;font-size:13px}
.ev-bg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.ev-bg{display:grid;gap:6px;text-decoration:none;color:inherit;border:1px solid var(--wj-line);border-radius:10px;padding:8px;background:var(--wj-paper)}
.ev-bg:hover{border-color:var(--wj-gold)}
.ev-bg-pic{display:block;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:#f3f4f6}
.ev-bg-pic img{width:100%;height:100%;object-fit:contain;display:block}
.ev-bg-text{display:grid;gap:2px;font-size:13px}
.ev-bg-text span{color:var(--wj-muted);font-size:12px}
.ev-fact{border-top:1px dashed var(--wj-line);padding-top:6px;margin-top:6px}
.ev-fact:first-of-type{border-top:0;margin-top:0;padding-top:0}
.ev-fact-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ev-products:focus{outline:3px solid var(--wj-focus);outline-offset:2px}
.ev-product-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ev-product{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:9px 12px;border-radius:10px;border:1px solid var(--wj-line);text-decoration:none;color:inherit;background:var(--wj-paper)}
.ev-product span{color:var(--wj-muted);font-size:13px}
.ev-source-links{display:flex;flex-wrap:wrap;gap:8px}
.ev-source-links a{font-size:13px;color:var(--wj-green-2);font-weight:700}
.ev-empty{color:var(--wj-muted);font-size:14px}
.ev-empty[hidden]{display:none}
.ev-more{margin-top:8px}
.ev-more:empty{display:none}
.ev-more-link,.ev-history-link{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid #cbbf9f;background:var(--wj-card);color:var(--wj-green);font-weight:800;font-size:14px;text-decoration:none;cursor:pointer;margin-right:8px}
.ev-history{margin-top:14px;border-top:1px solid var(--wj-line);padding-top:10px}
.ev-history>summary{cursor:pointer;font-weight:800;color:var(--wj-green);min-height:40px;display:flex;align-items:center}
.ev-peek{margin:0 0 4px}
.ev-peek-count{margin:0 0 6px;font-weight:800;color:var(--wj-green)}
.ev-peek-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ev-peek-item{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:6px 10px;border:1px solid var(--wj-line);border-radius:10px;background:var(--wj-card);text-align:left;font:inherit;color:inherit;cursor:pointer}
.ev-peek-name{flex:1;min-width:0;font-weight:750;overflow-wrap:anywhere}
.ev-peek-date{font-size:12px;color:var(--wj-muted)}
.ev-deeplink{background:#fff3d6;border:1px solid #e9cf8a;border-radius:10px;padding:8px 12px}
.ev-item[hidden]{display:none}
/* Wide screens: the first visible event becomes the visual spotlight (image kept whole). */
@media(min-width:900px){
 .ev-home .ev-list{grid-template-columns:1.15fr 1fr;align-items:start}
 .ev-home .ev-item.is-feature{grid-row:span 3}
 .ev-home .ev-item.is-feature .ev-toggle{grid-template-columns:1fr auto;grid-template-areas:"thumb thumb" "text cue"}
 .ev-home .ev-item.is-feature .ev-thumb{grid-area:thumb;aspect-ratio:16/9}
 .ev-home .ev-item.is-feature .ev-text{grid-area:text}
 .ev-home .ev-item.is-feature .ev-cue{grid-area:cue}
 .ev-home .ev-item.is-feature .ev-title{font-size:21px}
 .ev-home .ev-item.is-open{grid-column:1/-1}
 .ev-home .ev-item.is-feature.is-open .ev-thumb{max-height:420px}
 .ev-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ev-panel>.ev-actions,.ev-panel>.ev-share-status,.ev-panel>.ev-pokemon,.ev-panel>.ev-backgrounds,.ev-panel>.ev-sources{grid-column:1/-1}
}
@media(max-width:600px){
 .ev-feed{--ev-thumb:84px}
 .home-events,.home-hero{padding-left:12px;padding-right:12px}
 .ev-toggle{grid-template-columns:var(--ev-thumb) minmax(0,1fr);gap:10px;padding:8px}
 .ev-cue{grid-column:2;justify-self:start;padding:3px 9px;font-size:12px}
 .ev-title{font-size:15px}
 .ev-meta{font-size:12px}
 .ev-badge{font-size:11px;min-height:20px;padding:1px 7px}
 .ev-panel{padding:10px}
 .ev-section{padding:10px 12px}
 .ev-feed-title h2{font-size:19px}
}
@media(max-width:360px){.ev-feed{--ev-thumb:68px}.ev-asof{font-size:11px}}

/* ---------- Home: nine regions (collapsible entry + full originals) ---------- */
body.home-page .region-showcase{background:transparent;border-bottom:0;padding:6px 0 4px}
.region-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:6px 18px 8px;box-sizing:border-box}
.region-head h2{margin:0;font-size:20px;color:var(--wj-green-ink)}
.region-sub{margin:2px 0 0;font-size:13px;color:var(--wj-muted)}
.region-expand{flex:none;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid #cbbf9f;background:var(--wj-card);color:var(--wj-green);font-weight:800}
.region-strip{list-style:none;margin:0;padding:0 18px 6px;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;box-sizing:border-box}
.region-thumb{position:relative;display:block;width:100%;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#3d2c08;cursor:pointer;color:#fff}
.region-thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.region-thumb[aria-current=true]{border-color:var(--wj-gold)}
.region-showcase:not(.is-expanded) .region-thumb[aria-current=true]{border-color:transparent}
.region-name{position:absolute;inset:auto 0 0;padding:14px 6px 5px;background:linear-gradient(transparent,#0b211bdd);font-size:12px;font-weight:800;text-align:left}
.region-name span[lang]{display:none}
html[lang="zh-Hant"] .region-name span[lang="zh-Hant"],html[lang="en"] .region-name span[lang="en"],html[lang="id"] .region-name span[lang="en"],html[lang="es"] .region-name span[lang="en"],html[lang="pt"] .region-name span[lang="en"],html[lang="ja"] .region-name span[lang="ja"],html[lang="ko"] .region-name span[lang="ko"],html[lang="vi"] .region-name span[lang="vi"],html[lang="th"] .region-name span[lang="th"]{display:inline}
.region-viewer{margin:6px 0 0;outline-offset:-4px}
.region-viewer[hidden]{display:none}
/* Expanded on wide screens: all nine originals, whole image, no crop. */
@media(min-width:901px){
 body.home-page .region-viewer .region-stage{max-width:1440px}
 body.home-page .region-viewer .region-slide img,body.home-page .region-showcase .region-viewer .region-slide img{height:auto;aspect-ratio:3/8;object-fit:contain;width:100%}
}
/* Expanded on phones: one whole original at a time. */
@media(max-width:900px){
 .region-strip{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:96px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:8px}
 .region-strip li{scroll-snap-align:start}
 body.home-page .region-viewer .region-stage{height:min(72svh,620px);min-height:300px}
 body.home-page .region-viewer .region-slide{grid-template-rows:minmax(0,1fr) auto}
 body.home-page .region-viewer .region-art{position:relative;min-height:0;overflow:hidden}
 body.home-page .region-viewer .region-art img,body.home-page .region-viewer .region-slide img{position:static;top:auto;height:100%;width:100%;max-width:none;object-fit:contain}
 body.home-page .region-viewer .region-slide figcaption{position:static;height:auto}
}
@media(max-width:600px){.region-head,.region-strip{padding-left:12px;padding-right:12px}.region-head h2{font-size:18px}.region-strip{grid-auto-columns:84px}}
@media(prefers-reduced-motion:reduce){.region-slide,.region-dot span{transition:none!important}*{scroll-behavior:auto!important}}

/* ---------- Home: header compaction on phones ---------- */
@media(max-width:600px){
 body.home-page .header{padding:14px 12px 10px}
 body.home-page .toprow{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 body.home-page .brand-mark{width:36px;height:36px;font-size:14px;border-radius:10px}
 body.home-page .brand{font-size:20px}
 body.home-page .header-actions{display:flex;align-items:flex-end;gap:8px;width:100%;margin-top:0}
 body.home-page .header-actions .language-control{flex:1;width:auto;gap:2px}
 body.home-page .header-actions .language-control>span{font-size:11px;line-height:1.3}
 body.home-page .header-actions .language-control>span small{display:none}
 body.home-page .header-actions #language{min-height:44px;font-size:15px;padding:8px 34px 8px 10px}
 body.home-page .header-actions .contact-actions{display:flex;gap:6px;width:auto;margin-top:0}
 body.home-page .header-actions .contact-actions>.line-link{min-width:0;min-height:44px;padding:8px 12px;font-size:14px}
 body.home-page .header-cart{min-height:44px}
 .site-nav{gap:4px;margin-top:10px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .site-nav a{min-height:36px;padding:6px 12px;font-size:13px;white-space:nowrap}
}
body.home-page .catalog-intro .section-eyebrow{color:var(--wj-gold)}
body.home-page .catalog-intro h1{color:var(--wj-green-ink)}

/* ---------- Atlas: hero, cards, list/map switch ---------- */
body.atlas-page .hero h1{color:#3d2c08}
body.atlas-page .hero>p{color:#5f4a1c}
body.atlas-page .stat{background:#ffffffb3;border-color:#e3bb49;color:#5f4a1c}
body.atlas-page .stat strong{color:#3d2c08}
body.atlas-page .stat[aria-pressed=true]{background:#4b370f;border-color:#4b370f;color:#fff}
body.atlas-page .stat[aria-pressed=true] strong{color:#fff}
body.atlas-page #activityShortcut{background:#ffffffb3;border:1px solid #e3bb49;color:#4b370f;font-weight:800}
body.atlas-page #activityShortcut:hover{background:#fff}
body.atlas-page #activityShortcut:after{border-color:#4b370f}
body.atlas-page .atlas-sidebar{background:var(--wj-card);border-color:var(--wj-line)}
body.atlas-page .type-tabs button[aria-pressed=true]{background:var(--wj-green);color:#fff;border-color:var(--wj-green)}
body.atlas-page .card{display:grid;grid-template-columns:var(--card-thumb,125px) minmax(0,1fr);background:var(--wj-card);border-color:var(--wj-line)}
body.atlas-page .cardzoom{position:relative;display:block;padding:0;border:0;background:none;cursor:zoom-in;min-width:0}
body.atlas-page .cardzoom .cardvisual{height:100%}
body.atlas-page .cardbutton{display:flex;flex-direction:column;justify-content:center}
.zoomhint{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#3d2c08d9;color:#fff;font-size:15px;line-height:1}
@media(min-width:1550px){body.atlas-page .card{--card-thumb:145px}}
@media(max-width:1050px){body.atlas-page .card{--card-thumb:135px}}
@media(max-width:700px){
 body.atlas-page .card{display:flex;flex-direction:column}
 body.atlas-page .cardzoom .cardvisual{width:100%;aspect-ratio:4/3;min-height:0;border-right:0;border-bottom:1px solid #e9dfbe}
}
body.atlas-page .activity-variants .card{display:flex;flex-direction:column}
body.atlas-page .activity-variants .cardzoom .cardvisual{aspect-ratio:1;min-height:0;border-right:0}
.view-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:-6px 0 14px}
.view-switch{display:inline-flex;padding:4px;gap:4px;border:1px solid #cfc3a4;border-radius:12px;background:var(--wj-paper)}
.view-switch button{min-height:40px;padding:6px 14px;border:0;border-radius:9px;background:transparent;color:var(--wj-ink);font-weight:800;font-size:14px;cursor:pointer}
.view-switch button[aria-pressed=true]{background:var(--wj-green);color:#fff}
.global-entry{min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid var(--wj-gold-line);background:#fff3d6;color:#5b3d08;font-weight:800;font-size:14px;cursor:pointer}
body.atlas-page .activity-feed.ev-feed{margin:28px 0 8px;padding:16px;border:1px solid var(--wj-line);border-radius:18px;background:#fffaf0e6}
body.atlas-page .ev-feed:not(.is-open) .ev-feed-body{display:none}

/* ---------- Atlas: world map ---------- */
.map-view{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:16px;align-items:start}
.map-view[hidden]{display:none}
.map-shell{position:relative;border-radius:18px;overflow:hidden;background:#cfe6f5;border:1px solid #e5e7eb}
/* Keep room for the loading message only until the map has drawn. */
.map-shell:has(#mapStatus:not(:empty)){min-height:180px}
#worldMap{display:block;width:100%;height:auto;aspect-ratio:820/390;cursor:grab;user-select:none;-webkit-user-select:none}
#worldMap:active{cursor:grabbing}
.map-ocean{fill:#cfe6f5}
.map-land{fill:#fdfbf4;stroke:#c9bfa3;stroke-width:.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.map-marker{cursor:pointer;outline:none}
.map-marker .hit{fill:transparent}
.map-marker .pin{fill:#fff;stroke:#4b370f;stroke-width:2.5}
.map-marker.is-cluster .pin{fill:#ffdf70;stroke:#8a6410;stroke-width:3}
.map-marker.is-selected .pin{fill:#1d6fd1;stroke:#fff;stroke-width:4}
.map-marker.is-selected .count{fill:#fff}
.map-marker:focus-visible .pin{stroke:#b36e17;stroke-width:5}
.map-marker .count{fill:#3d2c08;font-size:11px;font-weight:800;pointer-events:none}
.map-marker .label{fill:#3d2c08;stroke:#fff;stroke-width:3.5;paint-order:stroke;font-size:14px;font-weight:800;pointer-events:none}
.map-zoom{position:absolute;left:12px;bottom:12px;display:flex;gap:6px}
.map-zoom button{min-width:44px;min-height:44px;border-radius:10px;border:1px solid #cfc3a4;background:var(--wj-paper);color:var(--wj-ink);font-weight:850;font-size:16px;cursor:pointer}
.map-zoom button:disabled{opacity:.5;cursor:default}
.map-legend{position:absolute;left:12px;top:10px;margin:0;padding:4px 8px;border-radius:8px;background:#3d2c08d9;color:#fff;font-size:12px;max-width:calc(100% - 24px)}
.map-credit{position:absolute;right:10px;bottom:8px;color:#4b5563;font-size:11px}
.map-status{position:absolute;inset:auto 12px 64px;margin:0;color:#3d2c08;font-size:13px}
.map-status:empty{display:none}
.map-status button{margin-left:8px}
.map-side{display:grid;gap:12px;padding:14px;border:1px solid var(--wj-line);border-radius:18px;background:var(--wj-card);min-width:0}
.map-count{margin:0;font-size:13px;color:var(--wj-muted);line-height:1.5}
.map-eyebrow{margin:0;font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--wj-gold)}
.map-spotlight h3{margin:2px 0;font-size:19px;color:var(--wj-green-ink)}
.map-spotlight>p{margin:2px 0}
.map-picks{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;max-height:132px;overflow:auto}
.map-pick{min-height:36px;padding:5px 10px;border-radius:999px;border:1px solid #cfc3a4;background:transparent;font-size:13px;font-weight:700;color:var(--wj-ink);cursor:pointer;text-align:left}
.map-pick[aria-pressed=true]{background:#fff6d9;border-color:#4b370f}
.map-entry{display:grid;gap:10px}
.map-entry-pic{display:block;padding:0;border:0;border-radius:10px;overflow:hidden;background:#f3f4f6;cursor:zoom-in;aspect-ratio:16/10}
.map-entry-pic img{display:block;width:100%;height:100%;object-fit:contain}
.map-entry-info{display:grid;gap:4px;font-size:14px}
.map-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.map-entry-actions .quiet{display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;border-radius:10px;border:1px solid #cbbf9f;background:var(--wj-paper);color:var(--wj-green);font-weight:800;text-decoration:none;font-size:14px}
.map-places h3{margin:0 0 6px;font-size:15px}
.map-places input{width:100%;box-sizing:border-box;min-height:42px;padding:8px 10px;border:1px solid var(--wj-line);border-radius:10px;font-size:15px}
.place-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:300px;overflow:auto}
.place-item{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name count" "region count";gap:0 8px;width:100%;min-height:44px;padding:6px 10px;border:1px solid var(--wj-line);border-radius:10px;background:var(--wj-paper);text-align:left;font:inherit;color:inherit;cursor:pointer}
.place-item strong{grid-area:name;font-size:14px}
.place-item .subtle{grid-area:region;font-size:12px}
.place-count{grid-area:count;align-self:center;min-width:28px;text-align:center;padding:2px 8px;border-radius:999px;background:#efe3c3;font-weight:800;font-size:13px}
.place-item[aria-pressed=true]{background:#fff6d9;border-color:#4b370f}
.map-extra{display:grid;gap:6px}
.map-extra p{margin:0;font-size:13px}
@media(max-width:900px){.map-view{grid-template-columns:1fr}.map-legend{font-size:11px}}

/* ---------- Atlas: large image viewer ---------- */
.bg-viewer{width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:#10251f;color:#f6efdc;overflow:auto}
.bg-viewer::backdrop{background:#071612e6}
.viewer-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px}
.viewer-counter{margin:0;font-size:14px;color:#d6cdb4;font-variant-numeric:tabular-nums}
.viewer-close{min-height:44px;padding:8px 16px;border-radius:10px;border:1px solid #ffffff44;background:#ffffff14;color:#fff;font-weight:800;cursor:pointer}
.viewer-stage{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 8px}
.viewer-figure{margin:0;display:grid;place-items:center;min-height:200px;touch-action:pan-y}
.viewer-figure img{display:block;max-width:100%;max-height:min(68dvh,720px);object-fit:contain;border-radius:8px}
.viewer-figure .picture{width:100%;height:min(50dvh,420px);border-radius:8px}
.viewer-nav{width:48px;height:64px;border-radius:12px;border:1px solid #ffffff3d;background:#ffffff14;color:#fff;font-size:34px;line-height:1;cursor:pointer}
.viewer-nav:disabled{opacity:.3;cursor:default}
.viewer-meta{padding:10px 16px 16px}
.viewer-meta h2{margin:4px 0;font-size:20px;color:#fff}
.viewer-meta .subtle{color:#cfc6ad}
.viewer-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.viewer-actions button.primary{min-height:44px;padding:8px 16px;border-radius:10px;border:0;background:var(--wj-gold-soft);color:var(--wj-green-ink);font-weight:850;cursor:pointer}
.viewer-actions .related,.viewer-actions .quiet{display:grid;gap:2px;min-height:44px;padding:6px 12px;border-radius:10px;border:1px solid #ffffff33;color:#f6efdc;text-decoration:none;font-size:13px;align-content:center}
.viewer-actions .related span{color:#cfc6ad}
.viewer-hint{font-size:12px}
@media(max-width:700px){
 .viewer-stage{grid-template-columns:1fr;padding:0 6px}
 .viewer-figure{grid-row:1}
 .viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:56px;background:#0b1f19cc}
 .viewer-nav.prev{left:8px}.viewer-nav.next{right:8px}
 .viewer-figure img{max-height:58dvh}
}
@media(hover:none){.viewer-hint{display:none}}
#detailImage img{cursor:zoom-in}

/* City panel: activities open to Pokémon cards; phones show the city as a closable bottom sheet. */
.map-spotlight{position:relative}
.map-close{float:right;min-height:36px;padding:4px 12px;border-radius:999px;border:1px solid #cbbf9f;background:var(--wj-paper);color:var(--wj-green);font-weight:800;cursor:pointer}
.map-close:focus-visible,.map-activity summary:focus-visible,.pokemon-card:focus-visible{outline:3px solid #b36e17;outline-offset:2px}
.map-activities{display:grid;gap:7px;margin:8px 0}
.map-activity summary{cursor:pointer;padding:10px 10px;border:1px solid #d8ccae;border-radius:10px;background:#f5f0e2;font-weight:800;color:var(--wj-green-ink)}
.map-activity[open] summary{background:#fff6d9;border-color:#4b370f}
.pokemon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 4px;padding:0;list-style:none}
.pokemon-card{display:grid;gap:4px;width:100%;padding:4px;border:1px solid transparent;border-radius:10px;background:transparent;font:inherit;font-size:12px;font-weight:750;color:var(--wj-ink);text-align:center;cursor:pointer;min-width:0}
.pokemon-card[aria-pressed=true]{border-color:#4b370f;background:#fff6d9}
.pokemon-pic{display:grid;place-items:center;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#f3f4f6}
.pokemon-pic img{width:100%;height:100%;object-fit:cover}
.pokemon-card strong{line-height:1.25;overflow-wrap:anywhere;word-break:keep-all}
@media(max-width:780px){
 .map-spotlight.is-open{position:fixed;inset:auto 0 0;z-index:30;max-height:46dvh;overflow:auto;overscroll-behavior:contain;margin:0;
  background:var(--wj-card,#fffdf6);border:1px solid var(--wj-line,#e2d6b8);border-radius:16px 16px 0 0;
  padding:12px 16px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px rgba(21,62,50,.22)}
 .map-view.has-city{padding-bottom:46dvh}
}
.home-map-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px auto;padding:16px 18px;border:1px solid var(--wj-line,#e2d6b8);border-radius:16px;background:var(--wj-card,#fffdf6)}
.home-map-entry h2{margin:0;font-size:20px;color:var(--wj-green-ink,#163b30)}
.home-map-entry p{margin:4px 0 0;color:#5c625c;font-size:14px}
.home-map-link{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:12px;background:var(--wj-green);color:#fff;font-weight:800;text-decoration:none}

/* Home events: one featured event with its full artwork, other events as scannable rows. */
.ev-home .ev-home-layout{display:grid;gap:14px;align-items:start}
@media(min-width:900px){.ev-home .ev-home-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}
.ev-featured{margin:0;display:grid;gap:8px;padding:12px;border:1px solid var(--wj-line,#e2d6b8);border-radius:16px;background:var(--wj-card,#fffdf6)}
.ev-featured-label{margin:0;font-size:12px;font-weight:800;letter-spacing:.06em;color:#9a6a12}
.ev-featured-pic{border-radius:12px;overflow:hidden;background:#f3f4f6;aspect-ratio:16/10;display:grid;place-items:center}
.ev-featured-pic img{width:100%;height:100%;object-fit:contain;display:block}
.ev-featured-list{margin:0;padding:0;list-style:none}
.ev-home .ev-home-list .ev-list{display:grid;gap:6px}
.ev-home .ev-home-list .ev-item{padding:0}
.ev-home .ev-home-list .ev-toggle,.ev-home .ev-featured .ev-toggle{min-height:56px;padding:9px 12px}
.ev-home .ev-home-list .ev-title{font-size:15px}
/* Home rows: one event per line — status chips, name, date · place on the left, expand cue on the right. */
.ev-home .ev-home-list .ev-list,.ev-home .ev-featured-list{grid-template-columns:1fr!important}
.ev-home .ev-home-list .ev-toggle,.ev-home .ev-featured .ev-toggle{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:none!important;gap:10px}
.ev-home .ev-home-list .ev-text,.ev-home .ev-featured .ev-text{grid-column:1;grid-area:auto}
.ev-home .ev-home-list .ev-cue,.ev-home .ev-featured .ev-cue{grid-column:2!important;grid-area:auto!important;justify-self:end;align-self:center}
.ev-home .ev-home-list .ev-item.is-feature .ev-thumb{display:none}
.ev-home .ev-badges{gap:4px}
/* Auto-scroll to the map leaves a small gap so its top edge is never cut off. */
.map-shell{scroll-margin-top:12px}


/* ---------- Sales-first home (11/26): products right under the header ---------- */
/* Original page backgrounds: shop = warm beige with the Poké Ball pattern; atlas = cream. */
body.home-page{background-color:#efe2c5;background-image:var(--wj-pattern);background-size:320px 300px;background-repeat:repeat}
@media(max-width:600px){body.home-page{background-size:280px 262.5px}}
:root:has(body.home-page){background:#efe2c5}
body.atlas-page{background:#fffbed}
:root:has(body.atlas-page){background:#fffbed}
body.home-page .footer{background:#fff;border-color:#e5e7eb}
.event-strip{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px;background:#fff6d9;border-bottom:1px solid #f0d98a;color:#4b370f;font-size:13px;font-weight:700;text-decoration:none}
.event-strip>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.event-strip-dot{width:8px;height:8px;border-radius:50%;background:#e0611c;flex:none;box-shadow:0 0 0 3px #e0611c33}
@media(min-width:1180px){.event-strip{justify-content:center}.event-strip>span:nth-child(2){flex:0 1 auto}}
body.home-page .main{padding-top:18px}
body.home-page .catalog-intro{margin-bottom:12px}
@media(min-width:601px){body.home-page .catalog-caption{display:none}body.home-page .catalog-intro h1{font-size:26px}}
@media(max-width:600px){
 body.home-page .main{padding-top:12px}
 body.home-page .catalog-intro{margin-bottom:10px}
 body.home-page .catalog-intro .section-eyebrow,body.home-page .catalog-caption{display:none}
 body.home-page .catalog-intro h1{font-size:21px}
}
/* 60/30/10: white cards with light grey rules; dark brown primary actions; LINE stays green. */
body.home-page .card{background:#fff;border-color:#e5e7eb}
body.home-page .btn{background:#4b370f;color:#fff}
body.home-page .btn.alt,body.home-page .card-actions .btn.alt{background:#fff;border:1px solid #d1d5db;color:#374151}
body.home-page .card-actions .card-add{background:#4b370f;border-color:#4b370f;color:#fff}
body.home-page .chip.active{background:#4b370f;border-color:#4b370f;color:#fff}
body.home-page .price{color:#1f2937}
body.home-page .cartbar{background:#3d2c08;border-color:#ffffff26}
body.home-page .active-filter{border:1px solid #e3bb49;background:#fff6d9;color:#4b370f}
body.home-page .detail-background-link{border-color:#e3bb49;background:#fff6d9;color:#4b370f}
body.home-page .catalog-message{color:#4b370f}
body.home-page .region-showcase,body.home-page .region-carousel-controls{background:#fffdf5}
body.home-page #homeEvents{margin-top:28px;scroll-margin-top:12px}
/* Phones: get product photos onto the first screen. */
@media(max-width:600px){
 body.home-page .header-actions .language-control>span{display:none}
 body.home-page .site-nav{margin-top:8px}
 body.home-page .catalog-intro{display:none}
 body.home-page .main{padding-top:10px}
 body.home-page .catalog-controls{padding:8px 8px 2px}
 body.home-page .toolbar{grid-template-columns:minmax(0,1fr) auto 104px;gap:6px}
 body.home-page .toolbar .btn{width:auto;padding:0 10px}
 body.home-page .toolbar select{grid-column:auto;min-width:0;padding-left:8px;padding-right:22px;font-size:12px}
 body.home-page .sectionhead{margin:10px 1px 8px}
 body.home-page .browse-note{display:none}
 body.home-page .sectionhead #count{margin-left:auto}
}

/* ---------- Landing page (index.html): full-screen hero video ---------- */
body.landing-page{background:#0b0f2e}
body.landing-page .landing-header{position:absolute;inset:0 0 auto;z-index:5;background:linear-gradient(180deg,#05071acc,#05071a00);border:0;color:#fff}
body.landing-page .landing-header:after{display:none}
body.landing-page .landing-header .brand,body.landing-page .landing-header .brand small{color:#fff}
body.landing-page .landing-header .brand small{color:#ffdf70}
body.landing-page .landing-header .language-control>span,body.landing-page .landing-header .language-control>span small{color:#e8e6f5}
body.landing-page .landing-header .site-nav a{background:#ffffff1f;border-color:#ffffff40;color:#fff;backdrop-filter:blur(6px)}
body.landing-page .landing-header .site-nav a:hover{background:#ffffff33}
body.landing-page .landing-header .site-nav a[aria-current=page]{background:#ffdf70;border-color:#ffdf70;color:#3d2c08}
.hero-video{position:relative;display:grid;align-items:center;min-height:100svh;overflow:hidden;color:#fff;isolation:isolate}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero-shade{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 55%,#0b0f2e33 0,#0b0f2e99 60%,#0b0f2eee 100%),linear-gradient(180deg,#0b0f2e00 60%,#0b0f2e 100%)}
.hero-inner{display:grid;justify-items:center;gap:14px;text-align:center;padding:270px 16px 110px}
.hero-badge{margin:0;padding:6px 14px;border-radius:999px;background:#ffffff1a;border:1px solid #ffdf7066;color:#ffe9a6;font-size:14px;font-weight:800;backdrop-filter:blur(6px)}
.hero-video h1{display:grid;gap:2px;margin:4px 0 0;font-size:clamp(34px,7vw,72px);line-height:1.08;font-weight:900;letter-spacing:-.02em;text-shadow:0 4px 24px #000a}
.hero-video h1 span:nth-child(2){font-size:.82em}
.hero-accent{color:#ffdf70}
.hero-sub{max-width:640px;margin:0;color:#e6e4f4;font-size:clamp(15px,2.2vw,19px);line-height:1.6;text-shadow:0 2px 10px #000a}
.hero-live{display:inline-flex;align-items:center;gap:8px;margin:0;color:#ffdf70;font-weight:800;font-size:15px}
.hero-live[hidden]{display:none}
.hero-live:hover{text-decoration-thickness:2px}
.hero-live i{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #22c55e40;animation:heroPulse 1.6s ease-in-out infinite}
@keyframes heroPulse{50%{box-shadow:0 0 0 8px #22c55e10}}
.hero-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:6px}
.hero-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;min-width:180px;padding:12px 26px;border-radius:999px;font-weight:900;font-size:17px;text-decoration:none;box-shadow:0 10px 30px #0006;transition:transform .15s}
.hero-btn:hover{transform:translateY(-2px)}
.hero-btn.primary{background:#ffdf70;color:#3d2c08}
.hero-btn.line{background:#06a95b;color:#fff}
.hero-links{display:flex;gap:10px;margin:2px 0 0;font-size:15px}
.hero-links a{color:#fff;font-weight:700;text-underline-offset:4px}
.hero-links span{color:#ffffff80}
.hero-scroll{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);color:#ffffffb3;font-size:30px;text-decoration:none;line-height:1}
@media(prefers-reduced-motion:reduce){.hero-live i{animation:none}.hero-btn{transition:none}}
@media(max-width:700px){
 .hero-inner{padding:235px 14px 90px;gap:12px}
 .hero-scroll{display:none}
 .hero-btn{min-width:0;flex:1 1 140px;min-height:50px;font-size:16px;padding:12px 18px}
 .hero-ctas{width:100%;max-width:420px}
 body.landing-page .landing-header .language-control>span{display:none}
}
/* Entry cards and the sections below the hero sit on the original light theme. */
body.landing-page #entries,body.landing-page #homeEvents,body.landing-page .region-showcase,body.landing-page .footer{position:relative}
body.landing-page main,body.landing-page .entry-cards{background:transparent}
.entry-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:-40px auto 0;padding:0 16px;position:relative;z-index:2}
.entry-card{display:grid;grid-template-rows:auto 1fr;overflow:hidden;border-radius:18px;background:#fff;color:#2b2216;text-decoration:none;box-shadow:0 14px 40px #0004;transition:transform .15s}
.entry-card:hover{transform:translateY(-3px)}
.entry-pic{display:block;aspect-ratio:1200/630;background:#1d2148;overflow:hidden}
.entry-pic img{width:100%;height:100%;object-fit:cover;display:block}
.entry-map{display:grid;place-items:center;background:linear-gradient(135deg,#cfe6f5,#fdfbf4);font-size:56px}
.entry-body{display:grid;gap:4px;padding:14px 16px 16px}
.entry-body strong{font-size:19px;color:#3d2c08}
.entry-body span{color:#5f5747;font-size:14px;line-height:1.5}
.entry-body em{font-style:normal;font-weight:900;color:#4b370f;margin-top:4px}
@media(max-width:700px){.entry-cards{grid-template-columns:1fr;margin-top:-28px}.entry-card{grid-template-columns:120px 1fr;grid-template-rows:none}.entry-pic{aspect-ratio:auto;height:100%}.entry-pic img{object-position:68% center}.entry-map{font-size:40px}}
body.landing-page{background:#0b0f2e linear-gradient(180deg,#0b0f2e 0,#0b0f2e 100svh,#efe2c5 100svh) no-repeat}
body.landing-page #homeEvents{margin-top:34px}
/* Keep the intro footage intact and the shop button within the first screen. */
.hero-video.hero-banner{display:block;min-height:0;padding-top:0;background:#0b1424}
.hero-banner .hero-frame{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100svh - 120px);margin:0 auto;background:#0b1424}
.hero-banner .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:0}
.hero-banner .hero-inner{padding:26px 16px 70px;gap:12px}
.hero-banner h1{text-shadow:none}
body.landing-page .hero-banner~*{position:relative}
body.landing-page:has(.hero-banner) .landing-header{position:relative;background:#0b1424}
body.landing-page:has(.hero-banner){background:#0b1424 linear-gradient(180deg,#0b1424 0,#0b1424 calc(100svh + 200px),#efe2c5 calc(100svh + 200px)) no-repeat}
@media(max-width:700px){.hero-banner .hero-inner{padding:18px 14px 60px}.hero-banner h1{font-size:30px}}
/* The intro video already carries the Wu Jacky title: keep the text under it to one calm headline. */
.hero-banner h1{display:block;font-size:clamp(22px,4.2vw,40px);line-height:1.3;letter-spacing:0}
.hero-banner h1 span:nth-child(2){font-size:inherit}
.hero-banner .hero-inner{padding-top:20px;gap:10px}
.hero-banner .hero-frame{box-shadow:0 18px 30px -18px #0b1424 inset}
.hero-banner .hero-accent{white-space:nowrap}
/* Landing: compact event block — featured event, three upcoming rows and a link to the full feed. */
body.landing-page #homeEvents .ev-asof,body.landing-page #homeEvents .ev-intro,body.landing-page #homeEvents .ev-tabs{display:none}
body.landing-page #homeEvents .ev-more{display:flex;justify-content:center;margin-top:12px}
body.landing-page #homeEvents .ev-more-link{background:#4b370f;border-color:#4b370f;color:#fff;font-weight:800;min-height:46px;padding:10px 22px}
/* Nav and entry cards already link to 背景圖鑑／世界地圖: give the copy a little more room instead. */
.hero-banner .hero-inner{gap:14px;padding-bottom:56px}
.hero-banner .hero-sub{max-width:560px}
/* Landing simplification (11/27) */
.entry-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:-26px auto 0;padding:0 16px;position:relative;z-index:2}
.entry-tile{display:grid;justify-items:center;gap:4px;padding:14px 8px;border-radius:16px;background:#fff;color:#3d2c08;text-decoration:none;box-shadow:0 10px 26px #0003;font-size:15px}
.entry-tile span{font-size:26px;line-height:1}
.entry-tile strong{white-space:nowrap}
.entry-tile:hover{transform:translateY(-2px)}
body.landing-page #homeEvents .ev-history-link{display:none}
.privacy-note{margin-top:6px;font-size:12px}
.privacy-note summary{cursor:pointer;display:inline}
@media(max-width:360px){.entry-tile{font-size:13px;padding:12px 4px}}
/* Keep the dark band behind the hero and the three entry cards, then the light theme below. */
body.landing-page:has(.hero-banner){background:#efe2c5 var(--wj-pattern);background-size:320px 300px}
body.landing-page .hero-video.hero-banner{padding-bottom:0}
body.landing-page .hero-banner .hero-inner{padding-bottom:28px}
body.landing-page .entry-cards{margin-top:0;padding:4px 16px 34px;max-width:none;background:#0b1424;box-shadow:0 0 0 100vmax #0b1424;clip-path:inset(0 -100vmax)}
@media(max-width:700px){body.landing-page .entry-cards{margin-top:0}}
/* Entry card art: the Pokémon poster part only, so nothing important is cut off. */
.entry-pic img{object-position:center top}
@media(max-width:700px){.entry-pic img{object-position:center top}}

@media(min-width:761px){
  body.landing-page .hero-video.hero-banner{
    display:grid;
    grid-template-columns:minmax(0,5fr) minmax(0,7fr);
    column-gap:clamp(20px,3vw,48px);
    padding:12px max(24px,calc((100% - 1200px)/2)) 22px;
  }
  .hero-banner .hero-frame{
    grid-column:2;
    grid-row:1;
    max-height:none;
    overflow:hidden;
    border-radius:18px;
  }
  body.landing-page .hero-banner .hero-inner{
    grid-column:1;
    grid-row:1;
    justify-items:start;
    width:100%;
    padding:12px 0;
    text-align:left;
  }
  .hero-banner .hero-ctas{
    justify-content:flex-start;
  }
  .hero-banner .hero-btn{
    min-width:0;
    padding-inline:22px;
  }
  .hero-banner .hero-scroll{
    position:static;
    grid-column:1/-1;
    justify-self:center;
    margin-top:6px;
    transform:none;
  }
}

@media(max-width:760px){
  .hero-banner .hero-frame{
    max-height:min(48vw,240px);
  }
  body.landing-page .hero-banner .hero-inner{
    gap:10px;
    padding:12px 14px 24px;
  }
  .hero-banner h1{
    font-size:clamp(22px,6.4vw,32px);
  }
  .hero-banner .hero-ctas{
    width:100%;
    max-width:420px;
    gap:8px;
  }
  .hero-banner .hero-btn{
    flex:1 1 130px;
    min-width:0;
    min-height:46px;
    padding:9px 12px;
    font-size:16px;
    white-space:nowrap;
  }
  .hero-banner .hero-scroll{
    display:none;
  }
}
/* 16px "Browse products →" fits from 350px up. Narrower phones use 13px so the arrow stays inside the pill. */
@media(max-width:349px){
  .hero-banner .hero-btn{font-size:13px}
}
/* Background detail window: long lists fold to a preview. */
#backgroundDialog .is-folded{max-height:var(--fold,260px);overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
#backgroundDialog .detail-more{display:block;width:100%;min-height:42px;margin:6px 0 14px;padding:8px 14px;border-radius:999px;border:1px solid #e3bb49;background:#fff6d9;color:#4b370f;font-weight:800;font-size:14px;cursor:pointer}
/* Detail window header on phones: title on its own line, three small actions underneath. */
@media(max-width:700px){
 #backgroundDialog .dialoghead{display:grid!important;grid-template-columns:1fr;gap:6px}
 #backgroundDialog .dialoghead h2{margin:0;font-size:18px;line-height:1.3;writing-mode:horizontal-tb;word-break:normal}
 #backgroundDialog .dialog-actions{display:grid!important;grid-template-columns:1fr 1.3fr .8fr;gap:6px;width:100%}
 #backgroundDialog .dialog-actions button{min-height:36px;padding:4px 6px;font-size:13px;white-space:nowrap}
}

/* 11/27 owner request: the intro video runs edge to edge (full width), text and buttons underneath. */
body.landing-page .hero-video.hero-banner{display:block!important;padding:0!important}
.hero-banner .hero-frame{grid-column:auto;width:100%;max-width:none;aspect-ratio:16/9;max-height:min(62svh,720px);border-radius:0!important;overflow:hidden;margin:0}
.hero-banner .hero-bg{object-fit:cover;object-position:center}
body.landing-page .hero-banner .hero-inner{justify-items:center;text-align:center;width:auto;padding:22px 16px 30px}
.hero-banner .hero-ctas{justify-content:center}
@media(min-width:761px){.hero-banner .hero-btn{min-width:200px}}
@media(max-width:760px){.hero-banner .hero-frame{max-height:none}}

/* Phone tap targets for the shared event feed: at least 44px (PR #16 rule, carried to the new feed). */
@media(max-width:700px){.ev-feed-toggle,.ev-tab,.ev-history>summary{min-height:44px}}
