/* The home page (index.html): dark night-sky look. The other pages still use style.css only.
   Everything here is scoped to body.home so it never changes those pages. */
@font-face { font-family: "Poppins"; font-weight: 500; src: url(fonts/poppins-medium.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 700; src: url(fonts/poppins-bold.ttf) format("truetype"); font-display: swap; }

body.home {
  --bg: #070d1c; --bg2: #0b1428; --card: #0f1a33; --card2: #13213f; --line: #22325a; --line2: #2d4170;
  --text: #e8eefb; --soft: #9fb0d4; --blue: #3b82f6; --blue2: #2563eb; --sky: #60a5fa; --gold: #ffcb05; --gold2: #f5a300;
  --green: #22c55e; --red: #ef4444; --purple: #8b5cf6; --orange: #f97316;
  margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.55 "Poppins", system-ui, sans-serif;
}
body.home a { color: inherit; }
body.home .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
body.home h1, body.home h2, body.home h3 { font-family: "Poppins", system-ui, sans-serif; margin: 0; }
body.home img { max-width: 100%; }

/* ---------- header ---------- */
body.home .top { position: sticky; top: 0; z-index: 30; background: rgba(7, 13, 28, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); color: var(--text); }
body.home .top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.h-logo { font: 700 28px/1 "Poppins", sans-serif; letter-spacing: -.5px; text-decoration: none; color: var(--gold) !important;
  -webkit-text-stroke: 2px #1d4ea8; paint-order: stroke fill; text-shadow: 0 3px 0 #0b2a6b; display: inline-flex; align-items: center; white-space: nowrap; }
.h-logo .ball { display: inline-block; width: .62em; height: .62em; margin: 0 .04em; border-radius: 50%; border: 3px solid #0b2a6b;
  background: linear-gradient(#ef4444 0 46%, #0b2a6b 46% 54%, #fff 54%); position: relative; top: .02em; }
body.home .top nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
body.home .top nav > a, body.home .top nav summary { font: 500 14px "Poppins", sans-serif; color: #c9d5f0; text-decoration: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; list-style: none; }
body.home .top nav summary::-webkit-details-marker { display: none; }
body.home .top nav > a:hover, body.home .top nav summary:hover { color: #fff; background: rgba(255,255,255,.06); }
body.home .top nav > a[aria-current] { color: #fff; background: rgba(59,130,246,.18); }
.h-social { display: flex; gap: 6px; align-items: center; }
.h-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #c9d5f0; }
.h-social a:hover { background: rgba(255,255,255,.08); color: #fff; }
.h-social svg { width: 18px; height: 18px; fill: currentColor; }
body.home .top .acts { display: flex; gap: 8px; }
body.home .top .btn { font: 600 14px "Poppins", sans-serif; padding: 8px 16px; border-radius: 8px; box-shadow: none; text-decoration: none; border: 1px solid var(--line2); }
body.home .top .btn-line { background: transparent; color: #fff; }
body.home .top .btn-line:hover { background: rgba(255,255,255,.06); }
body.home .top .btn-gold { background: var(--blue); border-color: var(--blue); color: #fff; }
body.home .top .btn-gold:hover { background: var(--blue2); }
body.home .menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: #fff; border-radius: 8px; padding: 7px 12px; font: 600 14px "Poppins", sans-serif; }

/* download menus */
body.home .dl { position: relative; }
body.home .dl-items { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 290px; background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); z-index: 40; display: none; }
body.home .dl[open] .dl-items { display: block; }
body.home .dl-items a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
body.home .dl-items a:hover { background: rgba(59,130,246,.18); }
body.home .dl-items b { display: block; font-weight: 600; font-size: 14px; }
body.home .dl-items small { color: var(--soft); font-size: 12px; }

/* buttons */
.h-btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px "Poppins", sans-serif; padding: 15px 28px; border-radius: 10px; text-decoration: none; cursor: pointer; border: 1px solid transparent; color: #fff; list-style: none; transition: transform .12s, background .12s; }
.h-btn::-webkit-details-marker { display: none; }
.h-btn:hover { transform: translateY(-1px); }
.h-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.h-btn-blue { background: linear-gradient(180deg, #4b8ef8, #2563eb); box-shadow: 0 8px 24px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.h-btn-dark { background: rgba(7,13,28,.65); border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.h-btn-dark:hover { background: rgba(7,13,28,.85); }
.h-btn small { display: block; font: 500 11px "Poppins", sans-serif; opacity: .8; }

/* ---------- hero ---------- */
.h-hero { position: relative; min-height: 460px; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.h-hero::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: url(img/home/hero.webp?v=20261113) center 40% / cover; image-rendering: pixelated; filter: saturate(1.15); animation: drift 40s ease-in-out infinite alternate; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 70% at 50% 45%, rgba(7,13,28,.62), rgba(7,13,28,.25) 70%),
  linear-gradient(180deg, rgba(7,13,28,.35) 0%, rgba(7,13,28,.1) 40%, var(--bg) 100%); }
@keyframes drift { from { transform: scale(1.04) translateX(-12px); } to { transform: scale(1.08) translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .h-hero::before { animation: none; } }
.h-hero .inner { padding: 70px 24px 64px; max-width: 820px; }
.h-big-logo { font-size: clamp(54px, 9vw, 96px); -webkit-text-stroke: 4px #1d4ea8; text-shadow: 0 6px 0 #0b2a6b, 0 12px 30px rgba(0,0,0,.5); }
.h-big-logo .ball { border-width: 5px; }
.h-hero h1 { font-size: clamp(24px, 3.6vw, 36px); line-height: 1.2; margin-top: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.h-hero h1 span { display: block; font-size: 1.12em; }
.h-hero .lede { color: #dbe5fa; font-size: 16px; margin: 14px 0 26px; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.h-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.h-ticks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: #dbe5fa; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.h-ticks span { display: inline-flex; align-items: center; gap: 7px; }
.h-ticks svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- status strip ---------- */
.h-status { position: relative; margin-top: -30px; z-index: 2; }
.h-status .bar { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr 1.4fr; background: linear-gradient(90deg, var(--card), var(--card2)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); overflow: hidden; }
.h-stat { display: flex; align-items: center; gap: 14px; padding: 18px 22px; min-width: 0; }
.h-stat + .h-stat { border-left: 1px solid var(--line); }
.h-stat .ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.h-stat .ico svg { width: 22px; height: 22px; fill: #c9d5f0; }
.h-stat small { display: block; color: var(--soft); font-size: 12px; }
.h-stat b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-stat em { font-style: normal; color: var(--soft); font-size: 13px; }
.h-dot { width: 18px; height: 18px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 6px rgba(100,116,139,.15); flex: none; }
.h-dot.on { background: var(--green); box-shadow: 0 0 0 6px rgba(34,197,94,.18), 0 0 18px rgba(34,197,94,.7); }
.h-dot.off { background: var(--red); box-shadow: 0 0 0 6px rgba(239,68,68,.18); }
#srv-text.on { color: var(--green); } #srv-text.off { color: var(--red); }
.h-stat.event b { color: var(--gold); }
.h-stat.event .ico { background: rgba(255,203,5,.1); } .h-stat.event .ico svg { fill: var(--gold); }
.h-stat.shiny .ico { background: rgba(139,92,246,.18); } .h-stat.shiny .ico svg { fill: #c4b5fd; }

/* ---------- sections ---------- */
.h-sec { padding: 56px 0 8px; }
.h-sec h2 { font-size: 30px; line-height: 1.15; }
.h-sec h2 span { color: var(--sky); }
.h-sec .sub { color: var(--soft); margin: 6px 0 0; }
.h-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.h-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 16px; border: 1px solid var(--line2); border-radius: 10px; text-decoration: none; white-space: nowrap; }
.h-more:hover { background: rgba(255,255,255,.05); }
.h-more svg { width: 16px; height: 16px; fill: currentColor; }

/* regions */
.h-regions { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.h-regions .intro p { color: var(--soft); margin-top: 12px; }
.h-rgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.h-region { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; text-decoration: none; background: var(--card); }
.h-region img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .4s; display: block; }
.h-region:hover img { transform: scale(1.07); }
.h-region::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,13,28,.95)); }
.h-region div { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; }
.h-region b { display: block; font-size: 18px; }
.h-region small { color: #c9d5f0; font-size: 12px; }
.h-region:hover { border-color: var(--sky); }

/* features */
.h-feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.h-feat .pic { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--card); }
.h-feat .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.h-feat:hover .pic img { transform: scale(1.06); }
.h-feat h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 12px; }
.h-feat h3 svg { width: 22px; height: 22px; flex: none; }
.h-feat p { margin: 4px 0 0 30px; color: var(--soft); font-size: 13px; line-height: 1.45; }

/* bottom three panels */
.h-panels { display: grid; grid-template-columns: 1.15fr 1fr 1.05fr; gap: 18px; padding-bottom: 56px; }
.h-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.h-panel .ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.h-panel .ph h2 { font-size: 16px; }
.h-panel .ph a { font-size: 13px; color: var(--soft); text-decoration: none; }
.h-panel .ph a:hover { color: #fff; }
.h-news { list-style: none; margin: 0; padding: 0; }
.h-news li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.h-news li:first-child { border-top: 0; }
.h-news .thumb { width: 80px; height: 56px; border-radius: 8px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); }
.h-news .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.h-news time { color: var(--soft); font-size: 12px; white-space: nowrap; }
.h-tag { font: 700 10px "Poppins", sans-serif; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 5px; background: var(--blue2); }
.h-tag.event { background: var(--purple); } .h-tag.fix { background: #0e9f6e; } .h-tag.new { background: var(--orange); }
.h-news h3 { font-size: 14px; margin-top: 3px; }
.h-news p { margin: 2px 0 0; color: var(--soft); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-comm { display: grid; gap: 10px; }
.h-comm a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.h-comm a:hover { border-color: var(--line2); background: #172850; }
.h-comm a[hidden] { display: none; }
.h-comm .ci { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.h-comm .ci svg { width: 22px; height: 22px; fill: #fff; }
.h-comm b { display: block; font-size: 14px; }
.h-comm small { color: var(--soft); font-size: 12px; }
.h-comm .arr { margin-left: auto; width: 18px; height: 18px; fill: var(--soft); flex: none; }
.h-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-shots a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.h-shots img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.h-shots a:hover img { transform: scale(1.06); }

/* final band */
.h-band { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.h-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(img/home/band.webp?v=20261113) center 70% / cover; image-rendering: pixelated; }
.h-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,13,28,.55), rgba(7,13,28,.82) 40%, rgba(7,13,28,.82) 70%, rgba(7,13,28,.5)); }
.h-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.h-band h2 { font-size: 26px; } .h-band h2 span { color: var(--sky); }
.h-band p { color: #c9d5f0; margin: 4px 0 0; }
.h-band .h-cta { justify-content: flex-start; }

/* footer */
.h-foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--soft); font-size: 13px; }
.h-foot .wrap { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; }
.h-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.h-foot nav a { text-decoration: none; } .h-foot nav a:hover { color: #fff; }
.h-foot .legal { flex-basis: 100%; margin: 0; font-size: 12px; opacity: .8; }

/* the account menu (account.js) on the dark header */
body.home .acct-btn { background: var(--card2); border: 1px solid var(--line2); font-family: "Poppins", sans-serif; font-size: 14px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .h-feats { grid-template-columns: repeat(3, 1fr); }
  .h-regions { grid-template-columns: 1fr; }
  .h-panels { grid-template-columns: 1fr 1fr; }
  .h-panels .h-panel:first-child { grid-column: 1 / -1; }
  .h-social { display: none; }
}
@media (max-width: 900px) {
  body.home .menu-btn { display: block; }
  body.home .top nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  body.home .top nav.open { display: flex; }
  body.home .top nav .dl-items { position: static; transform: none; box-shadow: none; margin-top: 4px; }
  .h-status .bar { grid-template-columns: 1fr 1fr; }
  .h-stat:nth-child(3) { border-left: 0; }
  .h-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-rgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  body.home .wrap { padding: 0 16px; }
  body.home .top .acts .btn-line { display: none; }
  .h-logo { font-size: 23px; }
  .h-hero .inner { padding: 48px 16px 56px; }
  .h-btn { padding: 13px 20px; font-size: 15px; }
  .h-status .bar { grid-template-columns: 1fr; }
  .h-stat + .h-stat { border-left: 0; border-top: 1px solid var(--line); }
  .h-rgrid { grid-template-columns: repeat(2, 1fr); }
  .h-feats { grid-template-columns: 1fr 1fr; }
  .h-panels { grid-template-columns: 1fr; }
  .h-head { flex-direction: column; align-items: flex-start; }
  .h-sec h2 { font-size: 25px; }
}

/* fixes over style.css on this page */
body.home h1, body.home h2, body.home h3, body.home h4 { color: var(--text); letter-spacing: 0; }
body.home .h-sec h2 span, body.home .h-band h2 span { color: var(--sky); }
body.home footer, body.home .h-foot { background: var(--bg); color: var(--soft); }
.h-stat > div { min-width: 0; }
.h-logo { -webkit-text-stroke: 0; text-shadow: -2px -2px 0 #1d4ea8, 2px -2px 0 #1d4ea8, -2px 2px 0 #1d4ea8, 2px 2px 0 #1d4ea8, 0 2px 0 #1d4ea8, 0 -2px 0 #1d4ea8, 2px 0 0 #1d4ea8, -2px 0 0 #1d4ea8, 0 5px 0 #0b2a6b; }
.h-big-logo { text-shadow: -4px -4px 0 #1d4ea8, 4px -4px 0 #1d4ea8, -4px 4px 0 #1d4ea8, 4px 4px 0 #1d4ea8, 0 4px 0 #1d4ea8, 0 -4px 0 #1d4ea8, 4px 0 0 #1d4ea8, -4px 0 0 #1d4ea8, 0 10px 0 #0b2a6b, 0 18px 30px rgba(0,0,0,.6); }
body.home .h-band .wrap { padding-top: 44px; padding-bottom: 44px; }
.h-stat em a { color: var(--sky); }

/* every photo can be clicked: the picture viewer (zoom + drag) */
[data-zoom] { cursor: zoom-in; }
.h-feat a.pic { display: block; }
.h-lb { position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 14, .94); backdrop-filter: blur(6px); }
.h-lb[hidden] { display: none; }
.lb-stage { position: absolute; inset: 56px 64px 64px; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform-origin: center; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #e8eefb; font-size: 14px; pointer-events: none; }
.lb-tips { color: #9fb0d4; font-size: 12px; }
.lb-btn { background: rgba(19,33,63,.9); color: #fff; border: 1px solid #2d4170; width: 44px; height: 44px; border-radius: 50%; font: 600 26px/1 "Poppins", sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lb-btn:hover { background: #2563eb; border-color: #2563eb; }
.lb-x { position: absolute; top: 12px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-zoom { position: absolute; top: 12px; left: 14px; display: flex; gap: 8px; }
@media (max-width: 620px) { .lb-stage { inset: 64px 8px 70px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-tips { display: none; } }
.h-stat.event .ico.xmas { background: rgba(34,197,94,.12); }
.h-stat.event .ico.xmas svg { width: 26px; height: 26px; }
.h-stat.event .ico.xmas { background: rgba(34,197,94,.12); }
.h-stat.event .ico.xmas svg { width: 26px; height: 26px; }

/* the POKEVERSE logo picture (img/logo.png) */
.h-logo-img { height: 50px; width: auto; display: block; }
.h-big-logo-img { display: block; margin: 0 auto 10px; height: clamp(170px, 26vw, 300px); width: auto; filter: drop-shadow(0 10px 28px rgba(0,0,0,.5)); }
.h-foot-logo-img { height: 42px; width: auto; display: block; }


/* ================= 2026 REDESIGN: the Hoenn legends hero, glass cards ================= */
.h-hero { min-height: 640px; }
.h-hero::before { background: url(img/home/hero_legends.webp?v=20261113) center 35% / cover !important; image-rendering: auto !important; filter: none !important; animation: none !important; }
.h-hero::after { background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(5,12,32,.55), rgba(5,12,32,0) 70%), linear-gradient(180deg, rgba(5,12,32,.25) 0%, rgba(5,12,32,0) 35%, rgba(7,13,28,.55) 78%, var(--bg) 100%) !important; }
.h-hero .inner { padding: 36px 24px 110px; max-width: 860px; }
.h-big-logo-img { height: clamp(150px, 20vw, 230px) !important; margin-bottom: 4px !important; filter: drop-shadow(0 8px 26px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(80,160,255,.35)) !important; }
.h-hero h1.h-tagline { font: 600 clamp(20px, 2.6vw, 30px)/1.2 Georgia, "Times New Roman", serif; letter-spacing: .32em; text-transform: uppercase; color: #fff; margin-top: 6px;
  text-shadow: 0 0 14px rgba(96,165,250,.75), 0 0 2px rgba(147,197,253,.9), 0 2px 10px rgba(0,0,0,.8); }
.h-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 6px; }
.h-divider i { display: block; width: min(180px, 22vw); height: 1.5px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75)); }
.h-divider i:last-child { background: linear-gradient(90deg, rgba(255,255,255,.75), transparent); }
.h-divider span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; position: relative; box-shadow: 0 0 10px rgba(96,165,250,.8); }
.h-divider span::before { content: ""; position: absolute; left: -2px; right: -2px; top: 6px; height: 2px; background: #fff; }
.h-divider span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.h-hero .lede { font-size: 17px; max-width: 520px; margin: 12px auto 26px; color: #e6eeff; }
.h-cta .h-btn { padding: 15px 34px; border-radius: 14px; font-size: 19px; }
.h-cta .h-btn-blue { background: linear-gradient(180deg, #3d86ff 0%, #1d4ed8 100%); border: 2px solid rgba(147,210,255,.85);
  box-shadow: 0 0 0 3px rgba(59,130,246,.25), 0 0 28px rgba(59,130,246,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.h-cta .h-btn-blue:hover { box-shadow: 0 0 0 4px rgba(59,130,246,.3), 0 0 40px rgba(96,165,250,.95), inset 0 1px 0 rgba(255,255,255,.4); }
.h-cta .h-btn-dark { background: rgba(6,14,36,.55); border: 2px solid rgba(255,255,255,.7); }
.h-cta .h-btn-dark:hover { background: rgba(10,24,60,.75); border-color: #fff; }

/* the four picture cards under the hero */
.h-cards { position: relative; z-index: 3; margin-top: -78px; }
.h-cards .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-card { position: relative; display: block; min-height: 140px; padding: 20px 20px 18px; border-radius: 14px; overflow: hidden; text-decoration: none; isolation: isolate;
  border: 1px solid rgba(110,170,255,.45); box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.h-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pic) right center / cover; transition: transform .4s; }
.h-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,14,38,.95) 0%, rgba(6,14,38,.8) 45%, rgba(6,14,38,.15) 100%); }
.h-card:hover { transform: translateY(-3px); border-color: rgba(147,210,255,.9); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 22px rgba(59,130,246,.35); }
.h-card:hover::before { transform: scale(1.05); }
.h-card svg { width: 30px; height: 30px; display: block; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.h-card b { display: block; font: 700 20px/1.2 "Poppins", sans-serif; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.h-card span { display: block; max-width: 62%; margin-top: 4px; font-size: 14px; line-height: 1.35; color: #dbe5fa; text-shadow: 0 1px 6px rgba(0,0,0,.9); }

/* the status bar: navy glass */
.h-status { margin-top: 22px; }
.h-status .bar { background: linear-gradient(90deg, rgba(12,26,58,.92), rgba(16,34,72,.92)) !important; border: 1px solid rgba(110,170,255,.35) !important; border-radius: 14px !important; box-shadow: 0 10px 28px rgba(0,0,0,.4); }

/* "Explore the Regions": centred title with little balls, five picture cards in a row */
.h-regions .intro { text-align: center; }
.h-regions .intro p { margin-left: auto; margin-right: auto; }
.h-title-ball { display: flex; align-items: center; justify-content: center; gap: 18px; }
.h-title-ball::before, .h-title-ball::after { content: ""; width: min(240px, 18vw); height: 1.5px; background: linear-gradient(90deg, transparent, rgba(147,197,253,.8)); }
.h-title-ball::after { background: linear-gradient(90deg, rgba(147,197,253,.8), transparent); }
.h-rgrid .h-region { border: 1px solid rgba(110,170,255,.45); box-shadow: 0 8px 22px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s, border-color .2s; }
.h-rgrid .h-region:hover { transform: translateY(-3px); border-color: rgba(147,210,255,.9); box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 20px rgba(59,130,246,.35); }

/* WATCH TRAILER window */
.h-trailer { position: fixed; inset: 0; z-index: 100; background: rgba(2,6,18,.85); display: grid; place-items: center; backdrop-filter: blur(4px); }
.h-trailer .v { position: relative; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 92vw; }
.h-trailer video { width: 100%; height: 100%; border-radius: 14px; background: #000; box-shadow: 0 0 40px rgba(59,130,246,.45); border: 1px solid rgba(110,170,255,.5); }
.h-trailer button { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #e11d48; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .h-cards .wrap { grid-template-columns: repeat(2, 1fr); }
  .h-cards { margin-top: -50px; }
}
@media (max-width: 560px) {
  .h-cards .wrap { grid-template-columns: 1fr; }
  .h-card span { max-width: 75%; }
  .h-cta .h-btn { width: 100%; justify-content: center; }
}

.h-regions { display: block !important; }
.h-regions .intro { max-width: none !important; margin: 0 0 24px !important; }
.h-title-ball { white-space: nowrap; font-size: clamp(26px, 3vw, 36px); }
.h-title-ball span { margin-left: .3em; }
.h-rgrid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }   /* 6 regions: 2 rows of 3 */
@media (max-width: 900px) { .h-rgrid { grid-template-columns: repeat(2, 1fr) !important; } }

/* closer to the mockup: brighter hero, logo higher, ball dividers, bigger region names, nav pill */
.h-hero { min-height: 700px; }
.h-hero::before { transform: translateY(var(--py, 0px)); will-change: transform; }
.h-hero::after { background: radial-gradient(ellipse 42% 48% at 50% 38%, rgba(5,12,32,.5), rgba(5,12,32,0) 72%), linear-gradient(180deg, rgba(5,12,32,.15) 0%, rgba(5,12,32,0) 40%, rgba(7,13,28,.45) 80%, var(--bg) 100%) !important; }
.h-hero .inner { padding-top: 20px; }
.h-title-ball { gap: 16px; font-weight: 700; color: #fff; }
.h-title-ball .pb { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #e2e8f0; position: relative; flex: none; box-shadow: 0 0 10px rgba(96,165,250,.7); }
.h-title-ball .pb::before { content: ""; position: absolute; left: -2px; right: -2px; top: 7.5px; height: 2.5px; background: #e2e8f0; }
.h-title-ball .pb::after { content: ""; position: absolute; left: 5.5px; top: 5.5px; width: 6px; height: 6px; border-radius: 50%; background: #e2e8f0; }
.h-rgrid .h-region div b { font-size: 22px !important; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.h-rgrid .h-region { border-radius: 12px; }
body.home .top { background: rgba(5,11,28,.82) !important; border-bottom: 1px solid rgba(110,170,255,.22) !important; }
body.home .top nav > a, body.home .top nav summary { transition: color .2s, background .2s, box-shadow .2s; }
body.home .top nav > a[aria-current] { background: linear-gradient(180deg, rgba(37,99,235,.55), rgba(29,78,216,.35)) !important; box-shadow: inset 0 0 0 1px rgba(147,197,253,.65), 0 0 14px rgba(59,130,246,.35); }
body.home .top nav > a:hover { box-shadow: inset 0 -2px 0 rgba(103,232,249,.7); }
/* glass on the lower panels too */
.h-sec .panel, .h-news, .h-sec .box { backdrop-filter: blur(6px); }
/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .h-hero::before { transform: none !important; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.home { overflow-x: hidden; }

/* the painted card pictures: show more of the art, lighter fade */
.h-card::before { background-position: center !important; }
.h-card::after { background: linear-gradient(90deg, rgba(6,14,38,.88) 0%, rgba(6,14,38,.55) 42%, rgba(6,14,38,0) 75%) !important; }

/* region cards with the painted art: centred names like the mockup */
.h-rgrid .h-region { aspect-ratio: 16 / 9; }
.h-rgrid .h-region img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto !important; transition: transform .4s; }
.h-rgrid .h-region:hover img { transform: scale(1.06); }
.h-rgrid .h-region div { text-align: center; background: linear-gradient(180deg, transparent, rgba(5,12,32,.85)) !important; }
.h-rgrid .h-region div small { display: none; }

/* 7 feature cards: 4 per row, the last row centred */
.h-feats { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 18px !important; }
.h-feats .h-feat { flex: 0 1 calc(25% - 14px); min-width: 0; }
@media (max-width: 900px) { .h-feats .h-feat { flex-basis: calc(50% - 9px); } }
@media (max-width: 520px) { .h-feats .h-feat { flex-basis: 100%; } }

/* HERO BACKGROUND v2: Rayquaza / Kyogre / Groudon framing the logo (the image as supplied, light shading only) */
.h-hero::before { background: url(img/home/hero_legends2.webp?v=20261113b) center center / cover no-repeat !important; }
.h-hero::after { background: radial-gradient(ellipse 34% 40% at 50% 40%, rgba(5,12,32,.38), rgba(5,12,32,0) 75%), linear-gradient(180deg, rgba(5,12,32,0) 0%, rgba(5,12,32,0) 62%, rgba(7,13,28,.55) 88%, var(--bg) 100%) !important; }
@media (max-width: 900px) {   /* tablets: keep Kyogre and Rayquaza in, Groudon at the right edge */
  .h-hero::before { background-position: 38% center !important; }
}
@media (max-width: 560px) {   /* phones: the scene is much wider than the screen - frame Rayquaza and Kyogre */
  .h-hero::before { background-position: 20% center !important; }
  .h-hero::after { background: radial-gradient(ellipse 70% 40% at 50% 38%, rgba(5,12,32,.45), rgba(5,12,32,0) 78%), linear-gradient(180deg, rgba(5,12,32,0) 60%, var(--bg) 100%) !important; }
}

/* LAUNCH banner under the tagline */
.h-hero .h-launch { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 12px auto 0;
  padding: 8px 18px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,196,64,.22), rgba(255,140,40,.22));
  border: 1px solid rgba(255,206,96,.65); box-shadow: 0 0 18px rgba(255,190,80,.25); color: #ffe7a8; }
.h-hero .h-launch b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.h-hero .h-launch .h-launch-count { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; font-size: 14px; }
@media (max-width: 520px) { .h-hero .h-launch { padding: 7px 12px; } .h-hero .h-launch b, .h-hero .h-launch .h-launch-count { font-size: 12px; } }
