/* PocketMobs site: matches the store look (dark navy, yellow accents, red buttons, Oswald + Open Sans).
   High contrast and large text on purpose: body 19px, small text never under 16px, targets 48px+. */
:root {
  --bg: #0e101c; --surface: #181c2e; --surface2: #222842; --line: #3a4266;
  --text: #ffffff; --muted: #dde2f0; --yellow: #f2b81d; --yellow-soft: #ffd25a; --red: #f44336; --red-dark: #b71c1c;
  --green: #43d17a; --radius: 16px;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 19px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--yellow-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: clamp(32px, 5.5vw, 52px); margin: 0 0 12px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 40px 0 12px; color: var(--yellow); text-transform: uppercase; }
h3 { font-size: 24px; margin: 28px 0 8px; }
p, li { max-width: 72ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: 12px 18px; font-weight: 800; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(14,16,28,.96); border-bottom: 2px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
header.top .brand img { height: 46px; width: auto; display: block; }
header.top nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; align-items: center; }
header.top nav a { color: var(--text); text-decoration: none; font: 600 18px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; padding: 14px 12px; border-radius: 10px; min-height: 48px; display: inline-flex; align-items: center; }
header.top nav a:hover, header.top nav a[aria-current="page"] { color: var(--yellow); background: var(--surface); }
header.top nav a.nav-play { background: var(--red); color: #fff; margin-left: 6px; }
header.top nav a.nav-play:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 760px) {
  header.top { position: static; }
  header.top .wrap { padding-top: 8px; padding-bottom: 8px; }
  header.top nav { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  header.top nav a { justify-content: center; background: none; padding: 10px 4px; font-size: 18px; min-height: 46px; }
  header.top nav a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
  header.top nav a.nav-play { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 12px; font: 700 20px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 0; cursor: pointer; text-align: center; }
.btn.play { background: var(--red); color: #fff; font-size: 26px; min-height: 72px; padding: 0 44px; box-shadow: 0 6px 0 var(--red-dark); }
.btn.play:hover { color: #fff; filter: brightness(1.08); }
.btn.play:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark); }
.btn.ghost { background: var(--surface2); color: var(--text); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--text); }
.btn.gold { background: var(--yellow); color: #0e101c; }
.btn.gold:hover { background: var(--yellow-soft); color: #0e101c; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Hero */
.hero { position: relative; text-align: center; padding: 44px 0 52px; background: linear-gradient(180deg, rgba(14,16,28,.55), rgba(14,16,28,.8) 60%, var(--bg) 96%), url(/img/shots/rayquaza.webp) center/cover no-repeat; }
.hero .logo { width: min(250px, 60vw); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.hero p.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); margin: 0 auto 24px; max-width: 760px; }
.status { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; margin-bottom: 22px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: #8a91aa; }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.addr { margin: 16px auto 0; font-size: 20px; color: var(--muted); max-width: none; }
.addr b { color: var(--text); }

/* Page head */
.page-head { background: linear-gradient(180deg, #1b2036, var(--bg)); border-bottom: 2px solid var(--line); padding: 30px 0 26px; }
.page-head p.lead { font-size: 21px; color: var(--muted); margin: 0; }
.crumbs { font-size: 17px; margin: 0 0 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }
main.content { padding: 8px 0 48px; }

/* Sections and cards */
section.block { padding: 48px 0; }
section.block > .wrap > h2:first-child, .center-h { text-align: center; margin-top: 0; }
p.sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 720px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 10px; color: var(--yellow); font-size: 25px; }
.card p:last-child { margin-bottom: 0; }
.card ol, .card ul { margin: 0; padding-left: 24px; }
.card li { margin: 6px 0; }
a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--yellow); background: var(--surface2); }
a.card .more { color: var(--yellow-soft); font-weight: 700; }
.big { display: inline-block; font: 700 23px/1.3 var(--head); color: #fff; background: var(--surface2); border: 2px solid var(--line); border-radius: 8px; padding: 0 10px; word-break: break-all; }
.note { color: var(--muted); font-size: 17px; }
.tag { display: inline-block; font: 700 15px/1.4 var(--head); text-transform: uppercase; color: #0e101c; background: var(--yellow); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }

.beta { background: linear-gradient(90deg, #2a1240, #3a1626); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 26px 0; }
.beta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.beta strong { color: var(--yellow); font: 700 26px var(--head); }
.count { display: flex; gap: 10px; }
.count div { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 76px; }
.count b { display: block; font: 700 32px/1.1 var(--head); }
.count span { font-size: 16px; color: var(--muted); text-transform: uppercase; }

.code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: var(--yellow); color: #0e101c; border-radius: var(--radius); padding: 24px; text-align: center; }
.code .cmd { font: 800 clamp(24px, 4vw, 34px)/1.2 ui-monospace, Consolas, monospace; background: #fff; padding: 10px 18px; border-radius: 10px; }
.code p { margin: 0; font-weight: 700; font-size: 20px; }
.code .btn { background: #0e101c; color: #fff; }

.features { columns: 2 300px; column-gap: 24px; padding: 0; list-style: none; max-width: 940px; margin: 0 auto; }
.features li { break-inside: avoid; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.features b { color: var(--yellow); }

/* In-game picture cards on the home page */
.shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-card div { padding: 16px 20px 20px; }
.shot-card h3 { margin: 0 0 6px; color: var(--yellow); font-size: 25px; }
.shot-card p { margin: 0; }

/* Article text */
.prose { max-width: 820px; }
.prose li { margin: 8px 0; }
.prose .callout { background: var(--surface); border-left: 6px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0; }
.prose .callout p { margin: 6px 0; }
.toc { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; padding-left: 24px; }
.meta { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
.faq h3 { color: var(--yellow-soft); }

/* Join box (on every article/wiki page) */
.joinbox { background: var(--surface); border-radius: var(--radius); padding: 28px 20px; margin: 44px 0 8px; text-align: center; }
.joinbox h2 { margin: 0 0 16px; color: #fff; }
.joinbox p { margin: 0 auto 16px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 12px; margin: 14px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 18px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface2); font: 600 17px/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); position: sticky; top: 0; }
tr:nth-child(even) td { background: rgba(255,255,255,.03); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.search { width: 100%; font: 20px var(--body); padding: 14px 16px; min-height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: #fff; }
.search::placeholder { color: #b9bfd4; }
.type { display: inline-block; font: 600 15px/1.5 var(--head); text-transform: uppercase; padding: 1px 9px; border-radius: 6px; margin: 2px 4px 2px 0; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.rar { font-weight: 700; white-space: nowrap; }
.rar.r5 { color: #7fe3a3; } .rar.r4 { color: #b6e86a; } .rar.r3 { color: var(--yellow-soft); } .rar.r2 { color: #ffab66; } .rar.r1 { color: #ff8a8a; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stat b { display: block; font: 700 26px/1.2 var(--head); color: #fff; }
.stat span { color: var(--muted); font-size: 16px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.az a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--line); border-radius: 8px; text-decoration: none; font: 700 18px var(--head); }

footer.foot { border-top: 2px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 16px; text-align: center; }
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin-bottom: 14px; }
footer.foot nav a { padding: 10px 12px; font-size: 18px; }
footer.foot p { margin: 8px auto; max-width: 900px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green); color: #062b14; font-weight: 800; font-size: 20px; padding: 14px 22px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }

/* Phones: each table row becomes a card with labels, no sideways scrolling */
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 8px 14px; }
  .table-wrap tr[hidden] { display: none; }
  .table-wrap tr:nth-child(even) td { background: none; }
  .table-wrap td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; }
  .table-wrap td::before { content: attr(data-label); font: 600 16px var(--head); text-transform: uppercase; color: var(--yellow); text-align: left; flex: 0 0 auto; }
  .table-wrap td:first-child { font-size: 21px; font-weight: 700; }
}

@media (max-width: 760px) {
  .hero { padding-top: 20px; }
  .hero .logo { width: min(170px, 46vw); }
  .hero p.lead { margin-bottom: 16px; }
}

/* Home v2: calm sections */
.hero { padding: 40px 0 48px; }
.hero h1 { margin-top: 6px; }
.hero p.lead { margin-bottom: 26px; }
.hero-meta { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.hero-meta b { color: #fff; }
.status-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.sep { color: #8a91aa; }
.features-zig { display: grid; gap: 56px; margin-top: 28px; }
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.feature.flip img { order: 2; }
.feature-text h3 { font-size: clamp(28px, 3.2vw, 38px); color: var(--yellow); margin: 0 0 12px; text-transform: uppercase; }
.feature-text p { font-size: 21px; margin: 0; color: var(--muted); }
.also-title { text-align: center; margin: 64px 0 18px; font-size: 28px; text-transform: uppercase; }
.also { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 32px; }
.also li { position: relative; padding-left: 34px; font-size: 20px; max-width: none; }
.also li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--yellow); font-weight: 800; font-size: 22px; }
.join-band { background: var(--surface); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.join-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; max-width: 900px; margin: 10px auto 26px; text-align: center; }
.join-cols h3 { margin: 0 0 8px; color: var(--yellow); font-size: 26px; text-transform: uppercase; }
.join-cols p { margin: 4px auto; max-width: none; }
.big-addr { font: 700 30px/1.3 var(--head); color: #fff; word-break: break-word; }
.gift { text-align: center; margin: 0 auto 26px; max-width: 760px; font-size: 19px; }
.cmd-inline { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 17px; vertical-align: middle; margin-left: 6px; }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 16px; }
  .feature.flip img { order: 0; }
  .features-zig { gap: 40px; }
  .feature-text p { font-size: 19px; }
  .join-cols { grid-template-columns: 1fr; }
  .big-addr { font-size: 26px; }
}

/* Calm inner pages */
.wrap.narrow > * { max-width: 860px; }
.linklist { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.linklist li { max-width: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.linklist a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t a" "d a"; gap: 2px 16px; align-items: center; padding: 18px 8px; text-decoration: none; color: #fff; border-radius: 10px; }
.linklist a:hover { background: var(--surface); }
.ll-title { grid-area: t; font: 600 25px/1.25 var(--head); color: var(--yellow); }
.ll-desc { grid-area: d; color: var(--muted); font-size: 18px; }
.ll-arrow { grid-area: a; font-size: 28px; color: var(--yellow); }
.join-step { padding: 28px 0 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.join-step:last-of-type { border-bottom: 0; }
.join-step h2 { margin-top: 0; }
.join-step h3 { font-size: 24px; margin: 26px 0 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 6px 56px; margin: 0 0 10px; font-size: 20px; min-height: 42px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #0e101c; font: 700 21px/40px var(--head); text-align: center; }
.cta-row.left { justify-content: flex-start; margin: 16px 0; }
.addr.left { text-align: left; margin-left: 0; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.dl-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,.1); }
.dl-row h3 { margin: 0 0 2px; font-size: 25px; color: var(--yellow); }
.dl-row p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .dl-row .btn, .cta-row.left .btn { width: 100%; }
}
