/* Are They Playing — Wayfinder v2 (design 2a mobile / 3a desktop) */

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--club, #10329B);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Coloured panel ─────────────────────────────── */

.panel {
  background: var(--club, #10329B);
  color: #fff;
  border-radius: 0 0 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1.618 1 0;
  min-height: 0;
  transition: background .35s;
}

.hd {
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 0 22px;
}

.hd-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hd-title { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.hd-title span {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1.3;
}
.hd-title .venue { opacity: .55; }
.hd-title .blank {
  display: inline-block;
  width: 5em;
  border-bottom: 2px solid currentColor;
  vertical-align: -0.15em;
}

.hd-actions { display: flex; gap: 14px; align-items: center; }
.hd-actions button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  display: flex;
}

/* ── Answer area ────────────────────────────────── */

.answer-area {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  flex: 1;
  min-height: 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.answer-area.yes { align-items: stretch; justify-content: flex-start; }
.answer-area.no { align-items: center; justify-content: center; }

.answer-wrap { display: flex; flex-direction: column; }
.yes .answer-wrap { margin-top: 30px; }

.answer {
  font-weight: 800;
  line-height: .9;
}
.yes .answer { font-size: clamp(120px, 42vw, 170px); letter-spacing: -4px; }
.no .answer { font-size: 72px; letter-spacing: -1px; }

.underline {
  background: #fff;
  mask-image: url('underline.png');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('underline.png');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.yes .underline { height: 26px; margin-top: 14px; }
.no .underline { height: 12px; margin-top: 8px; }

.match {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}
.match-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.match-teams .home, .match-teams .away { font-size: 20px; font-weight: 700; line-height: 1.2; }
.match-teams .away { margin-top: 4px; }
.match-kick {
  border-left: 1px solid rgba(255, 255, 255, .25);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.match-kick .lbl { font-size: 13px; opacity: .7; font-weight: 600; }
.match-kick .val { font-size: 20px; font-weight: 700; }

.congestion { font-size: 13px; opacity: .7; margin-top: 16px; font-weight: 600; width: 100%; }

/* ── Lower white section ────────────────────────── */

.lower {
  flex: 1 1 0;
  min-height: 0;
  background: #fff;
  color: var(--club, #10329B);
  display: flex;
  flex-direction: column;
}

.next {
  padding: 32px 24px 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.next .kicker {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  font-weight: 600;
}
.next .when { font-size: 20px; font-weight: 700; margin-top: 8px; }
.next .teams { font-size: 15px; margin-top: 6px; line-height: 1.3; font-weight: 600; }
.next .tba { font-size: 15px; margin-top: 8px; line-height: 1.4; font-weight: 600; opacity: .75; }

.foot {
  margin-top: auto;
  padding: 12px 24px calc(env(safe-area-inset-bottom, 0px) + 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.foot .credit { font-size: 13px; opacity: .8; }
.foot .credit a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* ── Home page extras ───────────────────────────── */

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  align-items: center;
}
.home-actions button {
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-actions button:hover { background: rgba(255, 255, 255, .18); }

.directory {
  padding: 32px 24px 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.directory h2 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  font-weight: 600;
  margin: 26px 0 4px;
}
.directory h2:first-child { margin-top: 0; }
.directory a {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--club-rule, rgba(0, 0, 0, .15));
}
.directory a span { opacity: .6; font-weight: 400; font-size: 14px; }
.directory a:hover { opacity: .75; }

/* ── Overlays ───────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 24px 40px;
  z-index: 5;
}
.overlay.open { display: flex; }

.search-overlay { background: var(--club-dark, #0A2470); color: #fff; }

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
}
.search-bar input::placeholder { color: rgba(255, 255, 255, .55); }
.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-bar button {
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 2px;
}

.search-results {
  margin: 10px auto 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  width: 100%;
}
.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 2px;
}
.search-results .info { display: flex; flex-direction: column; gap: 2px; }
.search-results .label { font-weight: 700; font-size: 16px; }
.search-results .sub { opacity: .65; font-size: 13px; }
.search-results .tag { font-size: 10px; letter-spacing: .05em; opacity: .9; white-space: nowrap; }
.search-results .none { padding: 14px 2px; font-size: 14px; opacity: .7; line-height: 1.4; }

.about-overlay { background: #fff; color: var(--club, #10329B); z-index: 6; }

.about-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--club-rule, rgba(0, 0, 0, .35));
  padding-bottom: 14px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.about-hd .t { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.about-hd button {
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 6px 2px;
}

.about-body {
  overflow: auto;
  flex: 1;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.5;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.about-body .headline { font-size: 19px; font-weight: 700; line-height: 1.25; }
.about-body p { margin: 0; font-size: 15px; }
.about-body h3 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  font-weight: 600;
}
.about-body .email { font-weight: 600; margin-top: 4px; }

/* ── Desktop (design 3a) ────────────────────────── */

@media (min-width: 768px) {
  .panel { border-radius: 0 0 36px 36px; flex: none; }

  .hd { padding-top: 28px; }
  .hd-inner { padding: 0 48px; }
  .hd-actions { gap: 18px; }
  .hd-actions svg { width: 20px; height: 20px; }

  .answer-area { padding: 28px 48px 36px; }
  .answer-wrap { margin-top: 100px; margin-bottom: 100px; }
  .yes .answer { font-size: 220px; letter-spacing: -4px; }
  .no .answer { font-size: 96px; letter-spacing: -1px; }
  .no .answer-wrap { align-self: center; }
  .match { padding-top: 30px; }
  .match-kick { border-left: none; padding-left: 0; }

  .next { padding: 32px 48px 0; }
  .foot { padding: 12px 48px 28px; }
  .directory { padding: 32px 48px 0; }

  .overlay { padding: 36px 48px; }
  .search-bar { gap: 14px; }
  .search-bar input { font-size: 17px; padding: 13px 16px; }
  .search-results { margin-top: 12px; }

  .about-body { padding-top: 24px; }
  .about-body .headline { font-size: 26px; }
}
