/* Match the existing client's palette and Open Sans / sans-serif typography. */
:root {
  --deep-blue: #003366;
  --gameboard-navy: #071c3e;
  --purple: #7b06be;
  /* Exact colors from the existing Family Face-Off logo. */
  --logo-purple: #5d18ed;
  --logo-red: #ff0000;
  --sky-blue: #1890ff;
  --bright-yellow: #ffd700;
  --ink: #24354b;
  --muted: #5b6879;
  --line: #e3e7ed;
  --white: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { color: var(--deep-blue); font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -1.3px; margin-bottom: 24px; }
h3 { color: var(--deep-blue); font-size: 21px; letter-spacing: -.5px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky-blue); outline-offset: 5px; border-radius: 4px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: white; padding: 12px 20px; }
.skip-link:focus { top: 10px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-brand { padding-block: 20px; text-align: center; }
.brand-attribution { margin: 9px 0 0; color: #b80000; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; line-height: 1.5; }
.navigation { display: flex; align-items: center; justify-content: center; min-height: 88px; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--logo-purple); font-size: 35px; font-weight: 900; letter-spacing: -1.9px; line-height: 1; }
.wordmark > span { color: var(--logo-purple); }
.wordmark i { font-size: 24px; color: var(--logo-red); font-style: normal; align-self: flex-start; margin: -5px 0 0 3px; }
.site-footer a:hover { color: var(--purple); text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; border: 1px solid transparent; padding: 13px 22px; border-radius: 7px; font-weight: 700; text-decoration: none; font-size: 14px; line-height: 1.4; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button > span { font-size: 19px; line-height: 1; }
.primary { color: white; background: var(--purple); }
.primary:hover { background: #610498; }
.hero { isolation: isolate; position: relative; background: var(--gameboard-navy); color: white; padding: 66px 0 25px; }
.hero-backdrop { position: absolute; inset: 0 0 auto; height: 620px; z-index: -2; overflow: hidden; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: .3; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,28,62,.5), rgba(7,28,62,.74) 32%, #071c3e 67%); }
.hero-content { text-align: center; }
.hero h1 { font-size: clamp(40px, 5.1vw, 66px); letter-spacing: -2.4px; line-height: 1.06; font-weight: 800; margin-bottom: 44px; }
.hero h1 > span { color: #ffdd50; }
.hero-button { background: var(--bright-yellow); color: #172b4d; padding: 15px 25px; }
.hero-button:hover { background: #ffe566; }
.game-grid { scroll-margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; text-align: left; }
.game-card { display: flex; flex-direction: column; background: white; border: 10px solid white; border-radius: 10px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #0005; }
.game-art { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1.2; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-copy { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 18px 13px 12px; }
.game-button { margin-top: auto; max-width: 100%; padding: 12px 14px; font-size: 12px; min-height: 44px; }
.game-copy h3 { font-size: 19px; margin-bottom: 18px; }
.destination-note { color: #c3cede; font-size: 12px; margin: 22px 0 0; }
.destination-note > span { margin-right: 6px; }
.section { padding: 86px 0; }
.eyebrow { color: var(--purple); margin-bottom: 18px; }
.text-link { color: var(--purple); font-size: 14px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 9px; }
.text-link:hover { text-decoration: underline; }
.text-link > span { margin-left: 12px; }
.how-section { background: #f5f6f8; }
.section-heading { max-width: 740px; }
.section-heading > p { color: var(--muted); font-size: 15px; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-layout > div > p:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; cursor: pointer; list-style: none; padding: 21px 30px 21px 0; color: var(--deep-blue); font-weight: 700; font-size: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 3px; top: 17px; font-size: 23px; font-weight: 400; color: var(--purple); }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); font-size: 14px; margin: -3px 26px 22px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 37px 0 22px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top .wordmark { font-size: 29px; }
.footer-top p { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.footer-top nav { display: flex; gap: 27px; font-size: 13px; font-weight: 600; }
.site-footer nav a, .footer-bottom a { text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 11px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom > div { display: flex; gap: 24px; }
.footer-note { font-size: 10px; color: var(--muted); margin: 10px 0 0; }
.not-found { padding-block: 100px; }
.not-found .eyebrow { margin-top: 65px; }
.not-found h1 { font-size: clamp(36px, 6vw, 64px); color: var(--deep-blue); }
@media (min-width: 1500px) { .container { width: min(1320px, calc(100% - 100px)); } }
@media (max-width: 1000px) {
  .game-grid { gap: 12px; }
  .game-copy { padding-inline: 8px; }
  .game-copy h3 { font-size: 16px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .navigation { min-height: 76px; gap: 12px; }
  .brand-attribution { font-size: 15px; max-width: 100%; }
  .wordmark { font-size: 30px; }
  .hero { padding-top: 43px; }
  .hero h1 { font-size: 49px; letter-spacing: -1.8px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .game-copy { padding: 16px 10px 10px; }
  .game-copy h3 { font-size: 18px; }
  .destination-note { font-size: 11px; max-width: 390px; margin-inline: auto; }
  .section { padding-block: 58px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 39px; }
  .desktop-break { display: none; }
  .game-grid { gap: 12px; }
  .game-card { border-width: 8px; }
  .game-art { aspect-ratio: 1; }
  .game-copy { padding: 13px 7px 8px; }
  .game-copy h3 { font-size: 16px; min-height: 37px; }
  .game-button { font-size: 11px; padding: 10px 8px; }
  .footer-top nav { gap: 20px; font-size: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Event selection gives organizers a reason to choose each game. */
.selection-heading { max-width: 780px; margin-bottom: 36px; }
.selection-heading > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.event-options { border-top: 1px solid var(--line); }
.event-option { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.event-copy h3 { font-size: 23px; line-height: 1.3; margin-bottom: 8px; }
.event-option p { margin-bottom: 13px; font-size: 15px; color: var(--muted); }
.event-option p:last-child { margin-bottom: 0; }
.event-option strong { color: var(--ink); }
@media (max-width: 760px) {
  .event-option { grid-template-columns: 1fr; gap: 20px; padding-block: 27px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
}

.product-figure { margin: 0; min-width: 0; }
.product-figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.product-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.event-option:nth-child(even) .product-figure { order: 2; }
.event-copy h3 { margin-bottom: 18px; }
.hosting-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hosting-feature .section-heading p:last-child { margin-bottom: 0; }
.faq-intro .product-figure { margin: 25px 0 18px; }
@media (max-width: 760px) {
  .hosting-feature { grid-template-columns: 1fr; gap: 25px; }
  .event-option:nth-child(even) .product-figure { order: initial; }
}

.event-button { min-height: 56px; min-width: 220px; max-width: 100%; margin-top: 12px; padding: 17px 28px; border-radius: 9px; font-size: 16px; box-shadow: 0 5px 14px rgb(123 6 190 / 16%); text-align: center; }
@media (max-width: 760px) {
  .event-button { width: 100%; min-width: 0; }
}

.format-note { margin: 24px 0 0; max-width: 900px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.free-note { margin: 8px auto 0; max-width: 760px; color: #e0e5ef; font-size: 12px; }
.free-note a { color: white; }
.video-player { position: relative; background: var(--gameboard-navy); border-radius: 10px; overflow: hidden; }
.video-player > img { border: 0; border-radius: 0; }
.video-button { display: flex; width: calc(100% - 32px); margin: 16px; min-height: 48px; cursor: pointer; font-family: inherit; }
.video-button[hidden] { display: none; }
.video-button:focus-visible { outline: 3px solid var(--bright-yellow); outline-offset: 3px; }
.video-player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.participation-list { margin: -3px 0 16px; padding-left: 22px; color: var(--muted); font-size: 14px; }
.participation-list li { margin-bottom: 6px; }
