/* Youth playoff brackets. Same look as the youth story slides (RecapStudio's Youth House League profile):
   bright blue water, blue cards with a light-blue edge, orange #F07B2F accents, Lilita One and Fredoka.
   Built for arena TVs (16:9, read from across the room); also works on laptops and phones. */
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/LilitaOne-400.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/Fredoka.woff2') format('woff2'); }

:root {
  --orange: #F07B2F;
  --orange-hi: #F79A4E;
  --orange-lo: #E5642A;
  --sky: #83D3FF;
  --blue: #1E96E8;
  --deep: #0B5AA6;
  --navy: #041A3C;
  --card-a: #1A78D0;
  --card-b: #0E56A3;
  --stroke: rgba(131, 211, 255, .55);
  --ink: #FFFFFF;
  --ink-2: #CFEBFF;
  --gold: #FFD54A;
  --live: #FF4D5E;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --text: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(130% 95% at 50% 0%, #4FB0F5 0%, #2A9BEA 28%, #1673C9 62%, #0B5AA6 100%) fixed, #1673C9;
  color: var(--ink);
  font-family: var(--text);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.idle { cursor: none; }

.app { position: relative; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(12px, 2vh, 26px) clamp(16px, 2.4vw, 44px) 0; gap: clamp(6px, 1.2vh, 16px); }

/* ---------- header ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(12px, 1.6vw, 26px); min-width: 0; }
.logo { height: clamp(56px, 10vh, 118px); width: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(4,26,60,.35)); }
.titles { min-width: 0; flex: 1; }
.eyebrow { margin: 0 0 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); opacity: .92; font-size: clamp(13px, 2vh, 24px); }
h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; font-size: clamp(34px, 7.4vh, 88px); white-space: nowrap; padding-bottom: .1em;
  text-shadow: 0 .07em 0 var(--orange-lo); }
h1 .sub { color: var(--sky); text-shadow: 0 .07em 0 var(--deep); }

.tabs { display: flex; gap: clamp(6px, .6vw, 10px); flex: none; padding-bottom: 6px; }
.tab { position: relative; flex: none; white-space: nowrap; overflow: hidden; border: 2px solid rgba(255,255,255,.55); background: rgba(11,90,166,.45); color: #fff; border-radius: 999px; padding: clamp(6px, 1vh, 11px) clamp(12px, 1.2vw, 20px); font: 400 clamp(17px, 2.6vh, 30px)/1 var(--display); letter-spacing: .04em; cursor: pointer; box-shadow: 0 4px 0 rgba(4,26,60,.35); }
.tab:hover { background: rgba(11,90,166,.7); }
.tab[aria-current="true"] { background: var(--orange); border-color: #fff; box-shadow: 0 5px 0 var(--orange-lo); }
.tab .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255,255,255,.7); transform-origin: left; transform: scaleX(0); }
.tab .champ-dot { display: inline-block; width: .42em; height: .42em; margin-left: .35em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(255,255,255,.7); vertical-align: .14em; }
.tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- board ---------- */
.board { position: relative; min-height: 0; min-width: 0; z-index: 1; }
.screen { position: absolute; inset: 0; animation: fade-in .6s cubic-bezier(.3,1.3,.5,1) both; }
.screen.leaving { animation: fade-out .35s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .screen, .screen.leaving { animation: none; } }

.stage { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.wires { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; stroke-linejoin: round; }
.wires path.done { stroke: #fff; stroke-width: 3.5; }
.wires path.to-final { stroke: var(--gold); }

.sec-label { position: absolute; display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.sec-label::before { content: ""; width: 24px; height: 8px; border-radius: 4px; background: var(--sky); box-shadow: 0 2px 0 var(--deep); }
.sec-label.losers::before { background: var(--orange); box-shadow: 0 2px 0 var(--orange-lo); }
.sec-label.championship::before { background: var(--gold); box-shadow: 0 2px 0 #C79A12; }
.round-label { position: absolute; font: 600 12.5px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* game card: natural size 284 x 100; the stage scales to fit the screen */
.game { position: absolute; width: 284px; height: 100px; background: linear-gradient(180deg, var(--card-a), var(--card-b)); border: 2px solid var(--stroke); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 18px rgba(4,26,60,.32); }
.game::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--sky); }
.game.losers::before { background: var(--orange); }
.game.championship { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,213,74,.35), 0 12px 28px rgba(4,26,60,.4); }
.game.championship::before { background: var(--gold); }
.game.live { border-color: var(--live); box-shadow: 0 0 0 3px rgba(255,77,94,.45), 0 0 28px rgba(255,77,94,.5); }
.g-head { height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 14px; font: 600 13px/1 var(--text); color: var(--ink-2); background: rgba(4,26,60,.22); white-space: nowrap; }
.g-head .num { flex: none; font: 400 13px/1 var(--display); letter-spacing: .04em; color: #fff; background: var(--orange); border-radius: 999px; padding: 3px 8px 2px; }
.championship .g-head .num { background: var(--gold); color: #5A3D00; }
.g-head .when { overflow: hidden; text-overflow: ellipsis; }
.g-head .when .pin { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; fill: var(--orange-hi); }
.g-head .state { margin-left: auto; flex: none; font: 400 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.g-head .state.final { color: var(--sky); }
.g-head .state.live { background: var(--live); border-radius: 999px; padding: 3px 8px 2px; display: inline-flex; align-items: center; gap: 5px; }
.g-head .state.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }

.row { height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 14px; }
.row + .row { border-top: 1px solid rgba(131,211,255,.18); }
.tag { flex: none; min-width: 30px; height: 21px; padding: 0 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--text); color: var(--deep); background: #fff; }
.tag.drop { color: #fff; background: var(--orange); }
.tag.empty { background: none; }
.crest { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(4,26,60,.45)); }
.crest .mono { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); border: 2px solid #fff; font: 400 10.5px/1 var(--display); color: #fff; }
.crest.tbd::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed rgba(207,235,255,.55); }
.team { flex: 1; min-width: 0; font: 600 18px/1.1 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team.tbd { font-weight: 500; color: var(--ink-2); font-size: 16px; }
.team.projected::after { content: " ›"; color: var(--orange-hi); font-weight: 700; }
.score { flex: none; width: 36px; height: 27px; display: grid; place-items: center; padding-top: 2px; border-radius: 9px; font: 400 23px/1 var(--display); color: var(--ink-2); }
.row.won .team { font-weight: 700; color: #fff; }
.row.won .score { color: #fff; background: var(--orange); box-shadow: 0 3px 0 var(--orange-lo); }
.championship .row.won .score { background: var(--gold); color: #5A3D00; box-shadow: 0 3px 0 #C79A12; }
.row.lost { opacity: .5; }

.champion { position: absolute; width: 284px; text-align: center; padding: 12px 12px 14px; border-radius: 20px; background: radial-gradient(circle at 50% 25%, var(--orange-hi), var(--orange-lo)); border: 3px solid #fff; box-shadow: 0 6px 0 #B8481B, 0 16px 34px rgba(4,26,60,.35); }
.champion .cup { width: 36px; height: 36px; color: var(--gold); display: block; margin: 0 auto 2px; filter: drop-shadow(0 2px 0 #B8481B); }
.champion .lbl { font: 700 13px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.champion .name { margin-top: 6px; font: 400 32px/1 var(--display); letter-spacing: .02em; color: #fff; overflow-wrap: anywhere; text-shadow: 0 3px 0 #B8481B; }

.empty-state { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; color: var(--ink-2); }
.empty-state strong { font: 400 clamp(36px, 7vh, 72px)/1 var(--display); color: #fff; text-shadow: 0 .07em 0 var(--orange-lo); }
.empty-state span { font-size: clamp(16px, 2.3vh, 26px); font-weight: 500; }

/* ---------- footer: the water ---------- */
.foot { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 0 calc(-1 * clamp(16px, 2.4vw, 44px)); padding: clamp(30px, 5.4vh, 62px) clamp(16px, 2.4vw, 44px) clamp(10px, 1.6vh, 18px); font-size: clamp(12px, 1.6vh, 17px); font-weight: 500; color: #fff; }
.sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sea .w1 { fill: var(--sky); }
.sea .w2 { fill: var(--blue); }
.sea .w3 { fill: #0A4F95; }
.foot > :not(.sea) { position: relative; z-index: 1; }
.bh { height: clamp(22px, 3.6vh, 40px); width: auto; filter: drop-shadow(0 2px 4px rgba(4,26,60,.5)); }
.legend { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.legend .li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key { display: inline-block; width: 20px; height: 7px; border-radius: 4px; background: #fff; }
.key-l { background: var(--orange); }
.status { justify-self: end; text-align: right; }
.status.stale { color: var(--gold); }

/* ---------- phones and narrow windows: a scrolling list instead of the scaled bracket ---------- */
.list { position: absolute; inset: 0; overflow-y: auto; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
.list .champion, .list .game { position: relative; width: 100%; max-width: 520px; }
.list .champion { margin: 6px 0 18px; }
.list h2 { margin: 18px 0 10px; font: 700 15px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 10px; }
.list h2::before { content: ""; width: 24px; height: 8px; border-radius: 4px; background: var(--sky); }
.list h2.losers::before { background: var(--orange); }
.list h2.championship::before { background: var(--gold); }
.list h3 { margin: 12px 0 6px; font: 600 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.list .game { margin-bottom: 10px; }

@media (max-width: 760px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100dvh; }
  .top { flex-wrap: wrap; }
  .logo { height: 64px; }
  .tabs { flex-basis: 100%; overflow-x: auto; }
  .board { min-height: 50vh; }
  .board .screen { position: relative; inset: auto; }
  .list { position: static; overflow: visible; }
  .foot { grid-template-columns: 1fr; justify-items: start; gap: 8px; padding-top: 44px; }
  .status { justify-self: start; text-align: left; }
}

/* ---------- change view, follow bar ---------- */
.change { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 7px 14px; font: 600 clamp(13px, 1.7vh, 17px)/1 var(--text); cursor: pointer; margin-bottom: 6px; }
.change[hidden] { display: none; }
.change svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.change:hover { background: rgba(255,255,255,.24); }
.change:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
body.idle .change { opacity: 0; transition: opacity .4s; }

.follow { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px 8px 10px; border-radius: 18px; background: linear-gradient(180deg, var(--card-a), var(--card-b)); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(4,26,60,.28); font-size: clamp(14px, 2vh, 20px); font-weight: 500; }
.follow[hidden] { display: none; }
.follow .crest { width: 38px; height: 38px; }
.follow .crest .mono { width: 32px; height: 32px; font-size: 12px; }
.follow .who b { font-family: var(--display); font-weight: 400; font-size: 1.15em; letter-spacing: .02em; }
.follow .div { font-weight: 700; font-size: .8em; background: #fff; color: var(--deep); border-radius: 8px; padding: 1px 8px; margin-left: 4px; vertical-align: .1em; }
.follow .chip { font-weight: 700; font-size: .85em; background: rgba(4,26,60,.28); border-radius: 999px; padding: 3px 10px; }
.follow .what { flex: 1; min-width: 220px; color: var(--ink-2); }
.follow .what b { color: #fff; }
.follow .now { background: var(--live); color: #fff; border-radius: 999px; padding: 2px 10px; margin-right: 4px; }
.follow.st-champion { background: radial-gradient(circle at 30% 20%, var(--orange-hi), var(--orange-lo)); }
.follow.st-champion .what { color: #fff; }

/* the followed team's games */
.game.mine { box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255,255,255,.55), 0 8px 18px rgba(4,26,60,.32); }
.game.mine.live { box-shadow: 0 0 0 3px var(--live), 0 0 26px rgba(255,77,94,.6); }
.row.mine { background: linear-gradient(90deg, rgba(255,213,74,.38), rgba(255,213,74,.08)); }
.row.mine .team { color: #fff; font-weight: 700; }
.row.mine.lost { opacity: .7; }

/* ---------- "how do you want to follow?" ---------- */
.chooser { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4,26,60,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; animation: fade-in .35s ease both; }
.chooser[hidden] { display: none; }
.chooser .panel { width: min(640px, 100%); text-align: center; padding: 26px 26px 22px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, #2FA3F0, #1673C9 60%, #0B5AA6); border: 3px solid #fff; box-shadow: 0 10px 0 rgba(4,26,60,.35), 0 30px 60px rgba(4,26,60,.4); }
.ch-logo { width: 92px; height: 92px; margin: -70px auto 6px; display: block; filter: drop-shadow(0 8px 14px rgba(4,26,60,.4)); }
.chooser h2 { margin: 0 0 18px; font: 400 clamp(26px, 4.4vw, 36px)/1.1 var(--display); text-shadow: 0 3px 0 var(--orange-lo); }
.choices { display: grid; gap: 12px; }
.choice { display: grid; gap: 4px; text-align: left; padding: 16px 20px; border-radius: 18px; border: 2px solid var(--stroke); background: linear-gradient(180deg, var(--card-a), var(--card-b)); color: #fff; cursor: pointer; box-shadow: 0 5px 0 rgba(4,26,60,.35); font-family: var(--text); }
.choice b { font: 400 24px/1 var(--display); letter-spacing: .02em; }
.choice span { font-size: 16px; color: var(--ink-2); }
.choice:hover, .choice:focus-visible { border-color: #fff; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 5px 0 #B8481B; outline: none; }
.choice:hover span, .choice:focus-visible span { color: #fff; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.pill-btn { border: 2px solid rgba(255,255,255,.6); background: rgba(11,90,166,.55); color: #fff; border-radius: 999px; padding: 8px 16px; font: 400 20px/1 var(--display); cursor: pointer; box-shadow: 0 4px 0 rgba(4,26,60,.35); }
.pills.big .pill-btn { font-size: 30px; padding: 14px 24px; }
.pill-btn[aria-pressed="true"], .pill-btn:hover, .pill-btn:focus-visible { background: var(--orange); border-color: #fff; box-shadow: 0 4px 0 var(--orange-lo); outline: none; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; text-align: left; }
.team-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--stroke); background: linear-gradient(180deg, var(--card-a), var(--card-b)); color: #fff; font: 600 17px/1.15 var(--text); cursor: pointer; box-shadow: 0 4px 0 rgba(4,26,60,.35); }
.team-btn .crest { width: 40px; height: 40px; }
.team-btn .crest .mono { width: 34px; height: 34px; font-size: 13px; }
.team-btn:hover, .team-btn:focus-visible { border-color: #fff; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); outline: none; }
.chooser .none { grid-column: 1 / -1; color: var(--ink-2); text-align: center; }
.back { margin-top: 16px; background: none; border: 0; color: #fff; font: 600 16px/1 var(--text); cursor: pointer; padding: 8px 12px; border-radius: 999px; }
.back:hover, .back:focus-visible { background: rgba(255,255,255,.15); outline: none; }

@media (max-width: 760px) {
  .titles { flex: 1 1 200px; }
  .tabs { order: 4; }
  .change { order: 5; }
  .follow { order: 6; }
  .chooser { place-items: start center; padding-top: 70px; }
}

/* ---------- registration pop-up ---------- */
.promo { position: fixed; z-index: 40; right: clamp(16px, 2.4vw, 44px); bottom: clamp(70px, 11vh, 130px); width: min(clamp(420px, 34vw, 660px), calc(100vw - 32px)); animation: promo-in .7s cubic-bezier(.3,1.4,.5,1) both; }
.promo[hidden] { display: none; }
.promo.out { animation: promo-out .4s ease-in both; }
@keyframes promo-in { from { transform: translateX(120%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes promo-out { to { transform: translateX(120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .promo, .promo.out { animation: none; } }
.promo-card { position: relative; display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); padding: clamp(14px, 1.8vh, 22px) clamp(16px, 1.4vw, 24px); border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 20% 15%, var(--orange-hi), var(--orange-lo) 75%); border: 3px solid #fff; box-shadow: 0 7px 0 #B8481B, 0 22px 44px rgba(4,26,60,.45); }
.promo-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.promo-logo { flex: none; width: clamp(64px, 8vh, 104px); height: auto; filter: drop-shadow(0 6px 10px rgba(90,30,0,.35)); }
.promo-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.promo-kicker { font: 700 clamp(11px, 1.45vh, 16px)/1.15 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.promo-title { font: 400 clamp(24px, 3.9vh, 46px)/1 var(--display); letter-spacing: .01em; text-shadow: 0 3px 0 #B8481B; }
.promo-text { font: 500 clamp(14px, 1.9vh, 22px)/1.25 var(--text); }
.promo-cta { justify-self: start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; background: #fff; color: var(--orange-lo); border-radius: 999px; padding: 6px 14px 5px; font: 400 clamp(13px, 1.8vh, 20px)/1 var(--display); letter-spacing: .03em; box-shadow: 0 3px 0 #B8481B; }
.promo-cta span { font: 600 .85em/1 var(--text); color: var(--deep); letter-spacing: 0; margin-left: 4px; }
.promo-scan { flex: none; display: grid; justify-items: center; gap: 6px; }
.promo-qr { width: clamp(104px, 14vh, 160px); height: clamp(104px, 14vh, 160px); background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 4px 0 #B8481B; image-rendering: pixelated; }
.promo-scan b { font: 400 clamp(13px, 1.7vh, 19px)/1 var(--display); letter-spacing: .04em; text-shadow: 0 2px 0 #B8481B; white-space: nowrap; }
.promo:not(.tv) .promo-scan { display: none; }
.promo.tv { width: min(clamp(560px, 42vw, 820px), calc(100vw - 32px)); }
.promo.tv .promo-cta { background: rgba(255,255,255,.95); }
.promo-close { position: absolute; top: -12px; right: -10px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--deep); color: #fff; font: 700 22px/1 var(--text); cursor: pointer; box-shadow: 0 3px 0 rgba(4,26,60,.4); }
.promo-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.promo-timer { position: absolute; left: 22px; right: 22px; bottom: 7px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.75); transform-origin: left; animation: promo-timer linear both; pointer-events: none; }
@keyframes promo-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 760px) {
  .promo { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .promo-card { border-radius: 20px; }
  .promo-logo { width: 52px; }
  .promo-title { font-size: 24px; }
  .promo-text { font-size: 14px; }
}

/* ---------- full screen button, embedded page ---------- */
#fullscreen .fs-off, #fullscreen.on .fs-on { display: none; }
#fullscreen.on .fs-off { display: inline; }
body.idle #fullscreen { opacity: 0; transition: opacity .4s; }
html:fullscreen, html:-webkit-full-screen { background: #1673C9; }
@media (max-width: 760px) {
  #fullscreen { order: 5; }
  /* inside the ballhockey.com iframe the page grows to fit, so don't force a full-height screen */
  .embedded .app { min-height: 0; }
}

/* Phones: fixed sizes instead of screen-height ones. Inside the ballhockey.com iframe the "screen" is the frame,
   which grows to fit the list, so height-based sizes would balloon and push the page wider than the phone. */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 0; gap: 10px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(34px, 11vw, 48px); white-space: normal; overflow-wrap: anywhere; }
  .tab { font-size: 18px; padding: 7px 13px; }
  .change { font-size: 14px; }
  .follow { font-size: 15px; }
  .empty-state strong { font-size: 36px; }
  .empty-state span { font-size: 16px; }
  .foot { font-size: 13px; padding: 44px 14px 14px; margin: 0 -14px; }
  .bh { height: 26px; }
  .promo-logo { width: 52px; }
  .promo-kicker { font-size: 11px; }
  .promo-cta { font-size: 14px; }
  /* in the iframe the frame is as tall as the list, so "bottom of the screen" would be the bottom of the list */
  .embedded .promo { top: 12px; bottom: auto; }
  .legend .li { white-space: normal; }
}
