/* Game Grid site styles. Tokens match brand/tokens.md. */
:root {
  --gg-blue: #589DD5;   /* logo colour: decoration only, never text */
  --web-blue: #197BBD;  /* links, small labels */
  --link-blue: #146499; /* link text: darker Web Blue for AA at body size */
  --navy: #003049;
  --navy-2: #0A3F5C;
  --orange: #EB7C00;    /* one accent per page */
  --ink: #292929;
  --slate: #5F5F5F;
  --rule: #C9D6E3;
  --tint: #EEF5FB;
  --mist: #F2F2F2;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1160px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(0, 48, 73, .06), 0 4px 16px rgba(0, 48, 73, .06);
  --head: "Exo 2", "Segoe UI", Roboto, Arial, sans-serif;
  --body: Roboto, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link-blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: block; padding: 12px 0; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font: 500 .95rem/1 var(--body); color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--link-blue); }
.nav .login { border: 1.5px solid var(--navy); margin-left: 6px; padding: 9px 14px; }
.nav .login:hover { background: var(--navy); color: var(--white); }
@media (max-width: 640px) {
  .brand img { width: 128px; }
  .nav .hide-sm { display: none; }
  .nav a { padding: 9px 8px; font-size: .9rem; }
  .nav .login { padding: 8px 10px; margin-left: 2px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.1 var(--body); text-decoration: none; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--web-blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; }

/* Hero: navy band with a faint grid */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(88,157,213,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,157,213,.13) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gg-blue); }
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #DCE9F5; max-width: 40ch; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.hero-grid .lede { margin-bottom: 0; }
.quick { background: rgba(255,255,255,.06); border: 1px solid rgba(88,157,213,.45); border-radius: 14px; padding: 24px; }
.quick label { display: block; font: 700 1.2rem/1.2 var(--head); color: var(--white); margin-bottom: 14px; }
.quick-row { display: flex; gap: 8px; }
.quick input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 0; border-radius: 8px; }
.quick input::placeholder { color: #6B7680; }
.quick .btn { flex: 0 0 auto; }
.quick-near { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 32px;
  color: var(--white); font: 500 .95rem/1.2 var(--body); text-decoration: underline; text-underline-offset: 3px; }
.quick-near:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.quick-near::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gg-blue); box-shadow: 0 0 0 3px rgba(88,157,213,.25); }
.quick-sum { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); color: #B8CFE3; font-size: .95rem; }
.quick-sum:empty { display: none; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gg-blue); margin: 0 0 14px; }
.hero .eyebrow { color: #9CC7EA; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--slate); }
.kicker-rule { width: 44px; height: 4px; background: var(--gg-blue); border-radius: 2px; margin-bottom: 14px; }

/* Three points under the hero */
.points { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.points li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px 18px; }
.points h3 { margin-bottom: 6px; }
.points p { margin: 0; color: var(--slate); font-size: 1rem; }
.points .num { font: 700 .85rem/1 var(--head); color: var(--web-blue); display: block; margin-bottom: 10px; }

/* Store locator */
.locator-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.locator-tools label { flex: 1 1 260px; }
.locator-tools input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid #8FA3B5; border-radius: 8px; background: var(--white); }
.locator-tools input::placeholder { color: #6B7680; }
.locator-tools input:focus-visible { border-color: var(--web-blue); }
.locator { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .locator { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; } }
.map { height: 360px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--mist); z-index: 0; }
@media (min-width: 900px) { .map { height: 560px; position: sticky; top: 92px; } }
.locator-page .map { height: 420px; }
@media (min-width: 900px) { .locator-page .map { height: calc(100vh - 140px); min-height: 520px; } }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .store-list { max-height: 560px; overflow: auto; padding-right: 4px; } .locator-page .store-list { max-height: none; } }
.store { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gg-blue); }
.store.is-active { border-color: var(--web-blue); box-shadow: 0 0 0 2px var(--web-blue); border-left-width: 4px; }
.store h3 { font-size: 1.15rem; margin-bottom: 4px; }
.store h3 button { all: unset; cursor: pointer; }
.store h3 button:hover { color: var(--link-blue); }
.store h3 button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.store address { font-style: normal; color: var(--ink); margin-bottom: 4px; }
.store .meta { color: var(--slate); font-size: .95rem; margin: 0 0 12px; }
.store .note { color: var(--slate); font-size: .9rem; margin: 0 0 12px; }
.store .links { display: flex; flex-wrap: wrap; gap: 8px; }
.store .links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: .95rem;
  text-decoration: none; border: 1.5px solid var(--rule); color: var(--navy); }
.store .links a:hover { border-color: var(--navy); }
.store .links a.dir { background: var(--navy); border-color: var(--navy); color: var(--white); }
.store .links a.dir:hover { background: var(--web-blue); border-color: var(--web-blue); }
.store .dist { float: right; font: 600 .85rem/1.6 var(--body); color: var(--link-blue); }
.no-map .locator { grid-template-columns: 1fr; }
.no-map .store-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.empty { padding: 20px; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--slate); }
.leaflet-popup-content { font: 400 .95rem/1.45 var(--body); color: var(--ink); }
.leaflet-popup-content strong { font-family: var(--head); color: var(--navy); font-size: 1.02rem; }
.gg-pin { background: none; border: 0; }

/* Own a Game Grid band (home) */
.own { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .own { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.own .card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--rule); padding: 24px; }
.own .card ul { margin: 0 0 18px; padding-left: 1.1em; }
.own .card li { margin-bottom: 6px; }
.own .card li::marker { color: var(--gg-blue); }
.fine { font-size: .875rem; line-height: 1.5; color: var(--slate); }

/* Franchise page */
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; border-top: 4px solid var(--gg-blue); }
.panel p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding: 12px 14px 12px 44px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; }
.checks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 4px; background: var(--web-blue); }
.checks li::after { content: ""; position: absolute; left: 20px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 16px 14px 60px; min-height: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 700 .95rem/34px var(--head); text-align: center; }
.steps li strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.02rem; }
.steps li span { display: block; color: var(--slate); font-size: .95rem; line-height: 1.45; }
.steps li.key { background: var(--tint); border-color: var(--gg-blue); }
.steps li.key::before { background: var(--web-blue); }
.callout { background: var(--tint); border-left: 4px solid var(--gg-blue); border-radius: 0 8px 8px 0; padding: 16px 18px; margin: 20px 0 0; }
.callout p { margin: 0; }
.cta-band { background: var(--navy); color: var(--white); border-radius: 14px; padding: clamp(28px, 5vw, 48px); display: grid; gap: 18px; align-items: center; grid-template-columns: 1fr; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.5fr auto; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #DCE9F5; margin: 0; }
.cta-band .fine { color: #B8CFE3; margin-top: 10px; }
.notice { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.notice h2 { font-size: 1.15rem; margin-bottom: 8px; }
.notice p { font-size: .95rem; color: var(--ink); max-width: none; }
.notice p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #C9DAE8; padding: 44px 0 32px; margin-top: 0; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer img { width: 150px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 500; padding: 6px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { font-size: .85rem; line-height: 1.55; padding-top: 20px; margin: 0; max-width: none; color: #B8CFE3; }

/* Simple pages (portal, 404) */
.simple { min-height: calc(100vh - 69px - 180px); display: grid; place-items: center; padding: 64px 0; text-align: left; }
.simple .box { max-width: 560px; }
.simple .box img.icon { width: 56px; height: 56px; margin-bottom: 20px; }
.points-band { padding: 40px 0; }
.status { margin: -6px 0 12px; min-height: 1.5em; }
.nav a { white-space: nowrap; }
.locator-tools label { min-width: 0; flex: 1 1 0; }
.locator-tools .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .store { padding: 14px 14px 14px 16px; }
  .store h3 { font-size: 1.08rem; }
  .store .meta { margin-bottom: 10px; }
}
.facts { margin: 0; display: grid; gap: 12px; }
.facts > div { background: rgba(255,255,255,.06); border: 1px solid rgba(88,157,213,.45); border-left: 4px solid var(--gg-blue); border-radius: 10px; padding: 16px 20px; }
.facts dt { font: 800 1.6rem/1.1 var(--head); color: var(--white); }
.facts dd { margin: 4px 0 0; color: #DCE9F5; font-size: 1rem; }
.hero .hero-grid .actions { margin-top: 28px; }
