/* Explore hub: a soft, light page (between the homepage and the dark game
   screens). Title and steps, then a card per puzzle, then why it matters. */
.explore-page.hub-page {
  --hub-ink: #31424b;
  --hub-muted: #55626a;
  --hub-green: #2d424d;
  --hub-line: #e5e2da;
  color-scheme: light;
  background: radial-gradient(ellipse at 50% 0%, #fcfbf8 0, #f7f4ee 45%, #f3efe7 100%);
  color: var(--hub-ink);
}
.hub-page .game-header nav > a { color: var(--hub-muted); }
.hub-page .game-header nav > a:hover,
.hub-page .game-header nav > a[aria-current="page"] { color: var(--hub-green); }
.hub-page .skip-link { background: var(--hub-green); color: #fff; }
.hub-page :is(a, button):focus-visible { outline: 2px solid #dd543c; outline-offset: 5px; }

.hub-shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; padding-block: 26px 44px; }

.hub-intro { text-align: center; margin: 0 auto 34px; }
.hub-eyebrow { color: #5b6f79; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.hub-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.045em; line-height: 1.06; margin: 0 0 22px; color: var(--hub-green); text-wrap: balance; }
.hub-intro h1 em { color: #54788a; }
.hub-steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; padding: 0; margin: 0; color: var(--hub-ink); font-size: 1rem; font-weight: 600; }
.hub-steps li { display: flex; align-items: center; gap: 10px; }
.hub-steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #9bacb4; background: #fff; color: var(--hub-green); font-family: var(--serif); font-weight: 400; }

.game-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; }
.game-cards > li { display: flex; }
.game-tile {
  display: flex; flex-direction: column; width: 100%;
  padding: 16px 18px 20px; border: 1px solid var(--hub-line); border-radius: 14px;
  background: #fff; color: var(--hub-ink);
  box-shadow: 0 4px 14px #293d460a;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game-tile:hover { transform: translateY(-3px); border-color: #b6c3c9; box-shadow: 0 14px 28px #293d4614; }
.tile-art { display: block; border-radius: 10px; background: radial-gradient(circle at 50% 45%, #f7f5ef, #f0ece3 85%); border: 1px solid #eae6dc; margin-bottom: 16px; }
.tile-art svg { display: block; width: 100%; height: auto; }
.tile-art .wire { stroke: #b5c2c8; }
.tile-art .lamp-on { fill: #f3e0a6; stroke: #d6bf7a; }
.tile-art .lamp-off { fill: #ffffff; stroke: #b5c2c8; }
.tile-art .line { stroke: #ccd5da; }
.tile-art .stroke-draw { stroke: var(--hub-green); }
.tile-art .pen { fill: var(--hub-green); }
.tile-art .corner { fill: #fff; stroke: #9bacb4; }
.tile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--hub-muted); font-size: .8125rem; line-height: 1.5; margin-bottom: 3px; }
.tile-thinking { padding: 3px 9px; border-radius: 6px; background: #f3f0e8; color: var(--hub-green); font-weight: 600; }
.tile-title { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 8px; color: var(--hub-green); }
.tile-text { color: var(--hub-muted); font-size: .9375rem; line-height: 1.75; flex: 1; }
.tile-play { margin-top: 16px; color: var(--hub-green); font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.game-tile:hover .tile-play { text-decoration-thickness: 2px; }

.tile-art .stroke-draw { stroke-dasharray: 300; stroke-dashoffset: 120; transition: stroke-dashoffset .9s ease-in-out; }
.game-tile:hover .stroke-draw { stroke-dashoffset: 0; }
.tile-art .tiles rect { transition: fill .35s, stroke .35s; }
.game-tile:hover .tiles rect.lamp-on { fill: #fff; stroke: #b5c2c8; }

.hub-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hub-line); }
.hub-why h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.15; color: var(--hub-green); margin: 0; }
.hub-why h2 em { color: #54788a; }
.why-copy p { color: var(--hub-muted); font-size: 1rem; line-height: 1.85; margin: 0 0 14px; }
.why-copy p:first-child { color: var(--hub-ink); font-size: 1.0625rem; }

.explore-page .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hub-page .game-signoff { color: #5c6c74; margin-top: 30px; }

@media (max-width: 900px) {
  .game-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .hub-why { grid-template-columns: 1fr; gap: 18px; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .hub-shell { width: calc(100% - 32px); padding-top: 18px; }
  .hub-steps { gap: 10px 18px; font-size: .9375rem; }
  .tile-title { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-tile, .tile-art .stroke-draw, .tile-art .tiles rect { transition: none; }
  .game-tile:hover { transform: none; }
}
