@charset "UTF-8";
:root {
  --ink: #123747;
  --muted: #4c6470;
  --blue: #086b88;
  --blue-dark: #075269;
  --tint: #eaf6f9;
  --line: #c8dde4;
  --orange: #b94317;
  --orange-tint: #fff1e9;
  --paper: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.modal-locked { position: fixed; width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue-dark); text-underline-offset: 4px; }
a:hover { color: var(--orange); }
button, .button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 8px 14px; font-weight: 700; }
button:hover, .button:hover { background: var(--tint); }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary, button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.warm, button.warm { background: var(--orange); border-color: var(--orange); color: #fff; }
.warm:hover { background: #963512; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 10px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
h3 { font-size: 19px; line-height: 1.23; margin-bottom: 8px; }
p { margin-bottom: 14px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 10px; transform: translateY(-150%); background: white; padding: 12px; z-index: 10; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); flex-shrink: 0; min-height: 44px; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { display: inline-flex; align-items: center; padding-block: 12px; text-decoration: none; min-height: 44px; font-weight: 700; }
.site-nav a[aria-current=page] { color: var(--orange); box-shadow: inset 0 -3px var(--orange); }
main { padding-block: 30px 48px; }
.page-intro { margin-bottom: 24px; }
.page-intro p { color: var(--muted); margin: 0; max-width: 65ch; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.goal-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; }
.goal-tab { display: flex; justify-content: space-between; align-items: center; border-color: var(--line); min-height: 50px; padding: 10px 16px; text-align: left; }
.goal-tab[aria-selected=true] { background: var(--blue); border-color: var(--blue); color: white; }
.goal-tab span { font-weight: 400; }
.goal-lead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.goal-lead h2 { margin: 0; }
.goal-lead p { margin: 0; color: var(--muted); }
.content-block, .batch, .prose-block { margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.discovery-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 16px; text-decoration: none; color: var(--ink); align-items: start; min-width: 0; }
.picture { display: block; background: var(--tint); position: relative; border-radius: 5px; border: 1px solid var(--line); }
.picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.picture .image-fallback { padding: 16px; display: flex; min-height: 90px; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.discovery-card h3 { overflow-wrap: anywhere; margin: 5px 0 8px; }
.discovery-card p { margin-bottom: 10px; color: var(--muted); }
.discovery-card .card-copy, .game-card .card-copy { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
.discovery-card .control-label, .game-card .control-label { margin-top: auto; }
.discovery-card .control-label { padding-top: 4px; }
.card-action { display: block; font-weight: 700; color: var(--blue-dark); margin-top: 8px; }
.control-label { display: block; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.section-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.section-links a, .text-target { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.callout { background: var(--orange-tint); border-left: 4px solid var(--orange); padding: 20px; margin-block: 24px; }
.callout p:last-child { margin-bottom: 0; }
.index-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.index-head h2 { margin: 0 0 6px; }
.index-head p { margin: 0; color: var(--muted); max-width: 65ch; }
.goal-number { color: var(--blue); font-size: 16px; font-weight: 700; min-width: 42px; min-height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.index-block { padding-top: 8px; }
.search-region { padding: 8px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.search-line { display: flex; gap: 8px; flex-wrap: wrap; }
.search-line form { display: flex; flex: 1 1 150px; gap: 8px; min-width: 0; }
.search-line input { width: 100%; min-width: 0; height: 44px; border: 1px solid #7898a5; border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--ink); }
.search-line button { padding-inline: 13px; }
.search-line > button { flex-shrink: 0; }
.search-status { min-height: 28px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 3px; }
.search-status p { font-size: 16px; margin: 0; }
.clear-link { border: 0; border-radius: 0; padding: 0 3px; font-weight: 400; text-decoration: underline; background: transparent; min-height: 44px; min-width: 44px; }
.batch { padding: 12px 0 20px; }
.batch-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.batch-label h2 { font-size: 16px; margin: 0; letter-spacing: 0; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.game-card { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.game-card h3 { font-size: 17px; line-height: 1.25; margin: 5px 0 6px; overflow-wrap: anywhere; }
.game-card:hover h3, .discovery-card:hover h3 { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.category-label { font-size: 16px; color: var(--blue); }
.batch-footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.batch-footer p { color: var(--muted); margin: 0; }
.more, .retired-more { min-width: 154px; }
.retired-more { color: var(--muted); background: #f1f6f7; }
.empty { background: var(--tint); border-radius: 6px; padding: 24px; }
dialog { width: min(520px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgb(10 38 49 / 55%); }
.dialog-layout { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.dialog-header, .dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; flex-shrink: 0; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { flex: 1 1 10em; min-width: 0; font-size: 24px; margin: 0; overflow-wrap: normal; word-break: normal; }
.dialog-header button, .dialog-footer button { flex-shrink: 0; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; }
.dialog-body { padding: 16px 20px; overflow-y: auto; min-height: 0; }
.dialog-body p { color: var(--muted); }
.dialog-footer { border-top: 1px solid var(--line); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.filter-group { border: 1px solid var(--line); border-radius: 5px; margin-bottom: 12px; }
.filter-group summary { font-weight: 700; padding: 13px; cursor: pointer; min-height: 48px; }
fieldset { margin: 0; padding: 0 12px 10px; border: 0; }
.filter-group fieldset { min-inline-size: 0; }
legend { font-weight: 700; padding-bottom: 6px; }
.radio-option { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 46px; padding: 8px 6px; cursor: pointer; font-size: 16px; }
.radio-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.radio-copy > span { max-width: 100%; }
.radio-option input { width: 19px; height: 19px; accent-color: var(--blue); flex-shrink: 0; }
.radio-option .count { margin-left: auto; font-variant-numeric: tabular-nums; }
.prose-layout { max-width: 820px; }
.prose-block { padding-top: 4px; }
.prose-block h2 { font-size: 23px; }
.prose-block p { max-width: 72ch; }
.prose-block ul { padding-left: 22px; }
.prose-block li { margin-bottom: 8px; }
.prose-block > :last-child { margin-bottom: 0; }
.small-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.small-links a { display: inline-flex; min-height: 44px; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.game-heading { margin-bottom: 18px; }
.game-heading h1 { max-width: 35ch; }
.game-heading p { margin: 0; color: var(--muted); }
.player-shell { background: #102c39; border-radius: 8px; padding: 10px; color: #fff; margin-bottom: 26px; }
.player-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player-toolbar button { padding-inline: 14px; }
.player-toolbar button:disabled { opacity: .6; }
.player-status { margin: 8px 2px; font-size: 16px; line-height: 1.35; color: #e5f2f7; }
.stage { height: clamp(220px, 52vw, 600px); position: relative; background: #081e28; }
.player-preview { width: 100%; height: 100%; }
.player-preview > img { width: 100%; height: 100%; object-fit: cover; }
.stage-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.preview-tag { position: absolute; inset: 10px auto auto 10px; color: #fff; background: #123747; padding: 5px 10px; border-radius: 4px; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-help { margin-bottom: 24px; }
.game-help p { margin-bottom: 8px; }
.player-shell:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100dvh; max-height: none; border: 0; margin: 0; border-radius: 0; padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
.player-shell:fullscreen .stage { flex: 1; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
.player-shell:fullscreen iframe { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; }
.player-shell:fullscreen .player-toolbar { flex-shrink: 0; }
.player-shell:fullscreen .player-status { flex-shrink: 0; margin: 5px 2px; }
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.footer-inner p { margin: 0; color: var(--muted); max-width: 30ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px 22px; justify-content: flex-end; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.title-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0; list-style: none; }
.title-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
@media (max-width: 1000px) {
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-card { grid-template-columns: 40% minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: block; padding-top: 12px; }
  .brand { font-size: 22px; }
  .site-nav { justify-content: space-between; gap: 0 10px; }
  .site-nav a { padding-block: 9px; }
  main { padding-top: 24px; }
  .goal-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
  .goal-tab { min-height: 44px; padding: 9px 14px; }
  .goal-lead { display: block; }
  .goal-lead p { margin-top: 6px; }
  .discovery-grid { gap: 14px; }
  .discovery-card { display: flex; flex-direction: column; gap: 0; }
  .discovery-card .picture, .game-card .picture { align-self: stretch; width: 100%; flex-shrink: 0; }
  .discovery-card .card-copy, .game-card .card-copy { flex: 1; }
  .discovery-card h3 { font-size: 18px; margin-top: 12px; }
  .discovery-card p { margin-bottom: 8px; }
  .discovery-card .control-label { margin-top: auto; padding-top: 8px; }
  .section-links { margin-top: 10px; gap: 4px 12px; }
  .game-card { display: flex; flex-direction: column; gap: 0; }
  .game-card .picture img { height: 96px; aspect-ratio: auto; object-fit: cover; }
  .game-card .category-label { display: block; margin-top: 8px; }
  .game-card h3 { font-size: 17px; }
  .catalogue-grid { gap: 16px 14px; }
  .batch { padding-top: 6px; }
  .batch-label { margin-bottom: 10px; }
  .batch-footer { margin-top: 14px; gap: 8px; }
  .batch-footer p { font-size: 16px; }
  .index-head { margin-bottom: 12px; }
  .footer-inner { display: block; }
  .footer-nav { margin-top: 16px; justify-content: flex-start; gap: 2px 20px; }
  .prose-block { margin-bottom: 20px; padding-bottom: 20px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 24px); }
  .site-nav { gap: 0 7px; }
  .site-nav a { font-size: 16px; }
  .search-line { gap: 6px; }
  .search-line form { gap: 6px; }
  .search-line button { padding-inline: 8px; }
  .search-line input { padding-inline: 8px; }
  .discovery-grid, .catalogue-grid { gap: 12px; }
  .discovery-card h3, .game-card h3 { font-size: 16px; }
  .more, .retired-more { min-width: 140px; padding-inline: 10px; }
  .goal-number { display: none; }
}
@media (max-width: 480px) {
  .player-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-toolbar button { min-width: 0; padding-inline: 8px; }
  .dialog-header, .dialog-footer { padding: 12px; }
  .dialog-body { padding: 12px; }
  .title-links { grid-template-columns: 1fr; }
}
@media (max-height: 450px) and (min-width: 481px) {
  .header-inner { min-height: 62px; }
  .player-shell:fullscreen .player-status { margin-block: 3px; }
  .dialog-header, .dialog-footer { padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
