:root {
  --cream: #f3eddf;
  --ink: #151a19;
  --red: #b82a2d;
  --red-dark: #741619;
  --blue: #173f73;
  --blue-dark: #0b284c;
  --gold: #e8ba57;
  --field: #2f684d;
  --white: #fffdf7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(232,186,87,.16), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(16,28,25,.025) 0 1px, transparent 1px 4px),
    var(--cream);
}
.install-welcome { position: fixed; z-index: 5000; inset: 0; display: grid; place-items: center; padding: 24px; overflow: hidden; background-color: #147d48; background-image: linear-gradient(90deg, transparent 0 14%, rgba(255,255,255,.92) 14% 14.8%, transparent 14.8% 85.2%, rgba(255,255,255,.92) 85.2% 86%, transparent 86%), repeating-linear-gradient(0deg, transparent 0 8.8%, rgba(255,255,255,.88) 8.8% 9.35%, transparent 9.35% 10%); }
.install-welcome::before, .install-welcome::after { content: ""; position: absolute; z-index: 0; left: 25%; right: 25%; height: 2.2%; border-top: 5px dashed rgba(255,255,255,.9); border-bottom: 5px dashed rgba(255,255,255,.9); }
.install-welcome::before { top: 28%; }
.install-welcome::after { bottom: 28%; }
.install-welcome-card { position: relative; z-index: 2; width: min(90vw, 560px); padding: clamp(34px,7vw,62px) clamp(26px,6vw,52px); text-align: center; background: rgba(255,253,247,.97); border: 1px solid #cec6b6; border-top: 8px solid var(--gold); box-shadow: 14px 16px 0 rgba(8,25,17,.34), 0 28px 80px rgba(0,0,0,.34); }
.install-welcome-card h1 { font-size: clamp(2.5rem,11vw,5rem); line-height: .9; }
.install-welcome-card > p:not(.eyebrow) { max-width: 390px; margin: 24px auto; color: #5f5c54; font-size: 1.05rem; line-height: 1.5; }
.install-welcome-button { width: min(100%,320px); padding: 16px 22px; color: white; background: var(--field); border: 3px solid #174f36; box-shadow: 6px 6px 0 var(--gold); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.install-help { position: fixed; z-index: 5100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(8,18,13,.76); }
.install-help.hidden { display: none; }
.install-help-card { position: relative; width: min(92vw,500px); padding: 36px 28px 30px; background: #fffdf7; border: 1px solid #cfc6b6; border-top: 7px solid var(--gold); box-shadow: 12px 14px 0 rgba(0,0,0,.28); text-align: center; }
.install-help-card h2 { margin: 8px 0 18px; font-size: clamp(1.8rem,8vw,2.7rem); line-height: 1; }
.install-help-close { position: absolute; top: 9px; right: 12px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: #151a19; font-size: 2rem; line-height: 1; cursor: pointer; }
.safari-share-symbol { display: grid; place-items: start center; width: 56px; height: 58px; margin: 0 auto 18px; border: 4px solid #1677d2; border-top: 0; border-radius: 4px; color: #1677d2; font: 800 3.2rem/1 Arial,sans-serif; }
.safari-share-symbol span { transform: translateY(-17px); }
.install-help-card ol { margin: 0; padding-left: 1.5rem; text-align: left; font-size: 1rem; line-height: 1.55; }
.install-help-card li + li { margin-top: 8px; }
.install-help-note { margin: 20px 0 0; color: #69645a; font-size: .86rem; line-height: 1.45; }
html.installed-app .install-welcome { display: none; }
html:not(.installed-app) body > main { display: none; }
button { font: inherit; }
main { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 28px 0 56px; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #6e6c62; }
h1 { margin: 0; font: 900 clamp(2rem, 5vw, 4.4rem)/.88 Impact, Haettenschweiler, sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
h1 span { color: var(--red); }
.scorebug { display: flex; align-items: stretch; color: white; background: var(--ink); border: 3px solid var(--ink); box-shadow: none; }
.scorebug > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 14px; padding: 9px 13px; }
.scorebug b { font-size: .72rem; letter-spacing: .1em; }
.scorebug strong { font-size: 1.55rem; }
.scorebug .clock { grid-template-columns: 1fr; gap: 0; text-align: center; background: var(--white); color: var(--ink); }
.scorebug .clock span { font-size: .72rem; font-weight: 900; }
.scorebug .clock strong { font-size: .86rem; font-variant-numeric: tabular-nums; }
.game-tools { display: flex; justify-content: flex-end; gap: 10px; margin: -12px 0 22px; }
.game-tools button, .level-notice button, .development-panel button { padding: 9px 13px; border: 2px solid var(--ink); background: var(--white); font-weight: 900; cursor: pointer; }
#endGame { color: white; background: var(--red); border-color: var(--red-dark); }
.level-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 15px 18px; color: white; background: var(--blue); border-left: 7px solid var(--gold); box-shadow: 5px 5px 0 rgba(21,26,25,.18); }
.level-notice small { display: block; color: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.level-notice strong { display: block; margin-top: 3px; }
.development-panel { max-width: 820px; margin: 0 auto 24px; padding: 24px; background: var(--white); border: 1px solid #cfc8b9; border-top: 7px solid var(--gold); box-shadow: 0 18px 45px rgba(21,26,25,.14); }
.development-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.development-actions { display: flex; gap: 9px; }
#startNextGame { color: white; background: var(--field); }
.development-header h2 { margin: 0; font: 900 clamp(1.8rem,4vw,3rem)/1 Georgia,serif; }
.development-explainer { max-width: 850px; color: #67655e; line-height: 1.5; }
.matchmaking-notice { font-weight: 900; color: var(--blue); }
.development-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; max-width: 720px; margin: 20px auto 0; }
.development-team { padding: 18px; border: 2px solid var(--team-color); }
.development-team h3 { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 15px; color: var(--team-color); font: 900 1.3rem Georgia,serif; }
.skill-row { display: grid; grid-template-columns: 1fr 3fr auto; align-items: center; gap: 12px; margin-top: 11px; }
.skill-row b { font-size: .82rem; }
.skill-meter { height: 10px; overflow: hidden; background: #dedbd1; border-radius: 99px; }
.skill-meter i { display: block; height: 100%; width: var(--level); background: var(--team-color); }
.skill-row button { min-width: 92px; padding: 7px 9px; }
.skill-row button:disabled { opacity: .38; cursor: not-allowed; }

.auth-room { max-width: 980px; margin: 10px auto 0; padding: 30px; background: rgba(255,253,247,.92); border: 1px solid #cec6b6; border-top: 7px solid var(--gold); box-shadow: 0 18px 50px rgba(35,37,31,.13); }
.auth-heading { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.auth-heading h2 { margin: 0; font: 900 clamp(2rem,5vw,3.5rem)/1 Georgia,serif; }
.auth-heading > p:last-child { color: #68665f; line-height: 1.5; }
.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.auth-card { display: grid; gap: 14px; padding: 22px; background: var(--white); border: 2px solid var(--team-color); }
.single-auth { --team-color: var(--field); max-width: 520px; margin: 0 auto; }
.red-auth { --team-color: var(--red); }
.blue-auth { --team-color: var(--blue); }
.auth-card > div:first-child { position: relative; padding-left: 24px; }
.auth-card h3 { margin: 0; color: var(--team-color); font: 900 1.55rem Georgia,serif; }
.auth-dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--team-color); border-radius: 50%; }
.auth-card label { display: grid; gap: 5px; font-size: .78rem; font-weight: 900; }
.auth-card label small { color: #7b786f; font-weight: 700; }
.auth-card input { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 2px solid #c9c3b7; font: inherit; }
.auth-card input:focus { outline: 3px solid color-mix(in srgb, var(--team-color) 25%, transparent); border-color: var(--team-color); }
.auth-card input:disabled { color: #65635d; background: #e9e5dc; }
.auth-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 !important; }
.auth-actions button, .auth-switch, .start-match { padding: 11px 13px; border: 2px solid var(--ink); font-weight: 900; cursor: pointer; }
.auth-actions button:first-child { color: white; background: var(--team-color); border-color: var(--team-color); }
.auth-actions button:last-child, .auth-switch { background: white; }
.auth-status { min-height: 1.2em; margin: 0; font-size: .8rem; font-weight: 900; color: #706d65; }
.auth-status.success { color: var(--field); }
.auth-status.error { color: var(--red); }
.start-match { display: block; min-width: min(100%,360px); margin: 24px auto 0; color: white; background: var(--field); border-color: #174f36; }
.match-waiting { margin: 16px 0 0; text-align: center; color: var(--field); font-weight: 900; }
.auth-primary { width: 100%; padding: 13px; color: white; background: var(--team-color); border: 2px solid var(--team-color); font-weight: 900; cursor: pointer; }
.auth-text-link { justify-self: center; padding: 2px 4px; color: var(--ink); background: transparent; border: 0; font-size: .78rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.development-at-signin { display: block; margin: 18px auto 0; padding: 10px 18px; color: var(--ink); background: transparent; border: 2px solid var(--ink); font-weight: 900; cursor: pointer; }
.locker-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 60px; min-height: 310px; max-width: 700px; margin: 0 auto; }
.locker-menu > div { display: grid; justify-items: center; gap: 22px; }
.locker-button { width: 280px; max-width: 100%; min-height: 58px; padding: 12px 18px; color: white; background: var(--field); border: 3px solid #174f36; box-shadow: 5px 5px 0 var(--gold); font: 900 .9rem/1.15 Georgia,serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.locker-button:hover { transform: translateY(-2px); }
.locker-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.game-chooser-card { width: min(92vw, 600px); }
.game-choice-list { display: grid; gap: 10px; margin: 24px 0; }
.game-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px; color: var(--ink); background: white; border: 2px solid #cfc8b9; cursor: pointer; text-align: left; }
.game-choice:hover { border-color: var(--field); }
.game-choice strong { display: block; font: 900 1.2rem Georgia,serif; }
.game-choice small { color: #6e6c62; font-weight: 800; text-transform: uppercase; }
.game-choice-dot { flex: 0 0 auto; width: 34px; height: 34px; background: var(--opponent-color); border: 3px solid var(--opponent-outline, white); border-radius: 50%; box-shadow: 0 0 0 1px #777; }
.game-chooser-new { margin: 0 auto; }
.account-created-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,12,11,.72); }
.account-created-card { position: relative; width: min(92vw,520px); padding: 42px 34px 34px; text-align: center; background: var(--white); border-top: 7px solid var(--gold); box-shadow: 12px 12px 0 rgba(0,0,0,.32); }
.account-created-card h2 { margin: 0 0 14px; font: 900 2.2rem/1 Georgia,serif; }
.account-created-card p { font-size: 1.05rem; }
.gameplay-rules-card { width: min(94vw, 900px); max-height: 88vh; overflow-y: auto; text-align: left; }
.gameplay-rules-card > .eyebrow, .gameplay-rules-card > h2 { text-align: center; }
.rules-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.rules-content section { padding: 17px 18px; border: 1px solid #d6d0c2; border-top: 4px solid var(--gold); background: #fffdf7; }
.rules-content h3 { margin: 0 0 9px; font: 900 1.1rem/1.1 Georgia, serif; }
.rules-content ul { margin: 0; padding-left: 19px; }
.rules-content li { margin: 0 0 7px; color: #55534d; font-size: .88rem; line-height: 1.4; }
.rules-content li:last-child { margin-bottom: 0; }
.account-created-close { position: absolute; top: 8px; right: 10px; width: 38px; height: 38px; color: white; background: var(--ink); border: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.assigned-color-circle { display: block; width: 112px; height: 112px; margin: 24px auto 0; background: var(--assigned-color); border: 7px solid white; border-radius: 50%; box-shadow: 0 7px 18px rgba(0,0,0,.22); }
.assigned-color-circle.white-color { border-color: #111; box-shadow: 0 7px 18px rgba(0,0,0,.22); }
.opponent-waiting { max-width: 720px; margin: 28px auto; padding: 42px 30px; text-align: center; background: var(--white); border: 1px solid #cec6b6; border-top: 7px solid var(--gold); box-shadow: 0 18px 45px rgba(21,26,25,.14); }
.opponent-waiting h2 { margin: 0; font: 900 clamp(2rem,5vw,3.6rem)/1 Georgia,serif; }
.opponent-waiting > p:not(.eyebrow) { color: #6b6860; }
.opponent-waiting .watch-button { margin-top: 12px; }
.start-match:disabled, .auth-actions button:disabled { opacity: .42; cursor: not-allowed; }

.coin-toss { display: grid; justify-items: center; max-width: 760px; margin: 32px auto 0; padding: 44px; text-align: center; background: rgba(255,253,247,.86); border: 1px solid rgba(21,26,25,.18); border-top: 7px solid var(--gold); box-shadow: 0 18px 50px rgba(35,37,31,.12); }
.coin-copy h2 { margin: 0; font: 900 clamp(2.1rem, 6vw, 4rem)/1 Georgia, serif; }
.coin-copy > p:last-child { color: #716e66; }
.coin-stage { position: relative; width: 250px; height: 285px; margin: 12px 0 8px; perspective: 1050px; }
.coin { position: absolute; z-index: 3; left: 25px; right: 25px; top: 20px; height: 200px; transform-style: preserve-3d; transform: translateY(30px) rotateY(0deg) rotateX(8deg); }
.coin-edge-slice { position: absolute; inset: 1px; border-radius: 50%; background: repeating-linear-gradient(90deg, #51320a 0 3px, #9a6b1b 3px 6px, #e4bd5d 6px 9px, #70470d 9px 12px); box-shadow: inset 0 0 0 8px #755018, inset 0 0 15px #2f1b04aa; }
.edge-1 { transform: translateZ(-9px); }
.edge-2 { transform: translateZ(-6px); }
.edge-3 { transform: translateZ(-3px); }
.edge-4 { transform: translateZ(0); }
.edge-5 { transform: translateZ(3px); }
.edge-6 { transform: translateZ(6px); }
.edge-7 { transform: translateZ(9px); }
.coin-face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border: 9px double #f3d27f; border-radius: 50%; backface-visibility: hidden; background: #fff; box-shadow: inset 0 0 0 4px #7b5a20, inset 0 0 22px rgba(71,43,8,.25); }
.coin-face::after { content: ""; position: absolute; inset: 7px; border: 2px solid rgba(111,75,19,.7); border-radius: 50%; pointer-events: none; }
.coin-team-circle { width: 62%; height: 62%; background: var(--face-color); border: 7px solid var(--face-outline); border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 2px rgba(0,0,0,.12); }
.coin-red { transform: translateZ(11px); }
.coin-blue { transform: rotateY(180deg) translateZ(11px); }
.coin-red { --face-color: var(--red); --face-outline: var(--red-outline, #fff); }
.coin-blue { --face-color: var(--blue); --face-outline: var(--blue-outline, #fff); }
.coin-shadow { position: absolute; z-index: 1; left: 25%; right: 25%; bottom: 18px; height: 18px; border-radius: 50%; background: #151a1940; filter: blur(7px); }
.coin.flipping-red { animation: flipRed 2.75s linear forwards; }
.coin.flipping-blue { animation: flipBlue 2.75s linear forwards; }
.coin-stage:has(.coin.flipping-red) .coin-shadow,
.coin-stage:has(.coin.flipping-blue) .coin-shadow { animation: shadowFlip 2.75s ease-in-out; }
.coin-result { min-height: 28px; font: 800 1.05rem Georgia, serif; }
.coin-result.winner { color: var(--ink); font-size: 1.3rem; }
.flip-button { margin-top: 16px; padding: 13px 30px; color: white; border: 0; border-radius: 3px; background: var(--ink); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.flip-button:disabled { opacity: .5; cursor: wait; }

.setup { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; }
.possession-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 11px 16px; color: white; background: var(--ink); border-left: 6px solid var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.possession-strip strong { color: var(--gold); font-size: 1rem; }
.possession-strip span:last-child { color: #c8c7bf; }
.drive-summary { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.fourth-down-decision { max-width: 700px; margin: 50px auto; padding: 38px; text-align: center; color: white; background: var(--ink); border-top: 7px solid var(--gold); box-shadow: 10px 10px 0 rgba(21,26,25,.2); }
.fourth-down-decision h2 { margin: 4px 0 10px; font: 900 clamp(2rem,5vw,3.4rem)/1 Georgia,serif; }
.fourth-down-decision > p:not(.eyebrow) { color: #cbc9c0; }
.fourth-down-decision > div { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.fourth-down-decision button { min-width: 150px; padding: 13px 20px; border: 2px solid white; color: white; background: var(--red); font-weight: 900; cursor: pointer; }
.kick-attempt { max-width: 760px; margin: 35px auto; padding: 34px; text-align: center; background: #fbf8ef; border-top: 7px solid var(--gold); box-shadow: 8px 8px 0 #151a1922; }
.try-choice { max-width: 700px; margin: 42px auto; padding: 38px; text-align: center; color: white; background: var(--ink); border-top: 7px solid var(--gold); box-shadow: 9px 9px 0 #151a1933; }
.try-choice h2 { margin: 5px 0 12px; font: 900 clamp(2.2rem,6vw,4rem)/1 Georgia,serif; }
.try-choice > p:not(.eyebrow) { color: #dedbd1; }
.try-choice > div { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.try-choice button { min-width: 175px; padding: 15px 22px; border: 2px solid white; color: white; background: var(--red); font-weight: 900; cursor: pointer; }
.kick-attempt h2 { margin: 5px 0; font: 900 clamp(2rem,5vw,3.4rem)/1 Georgia,serif; }
.kick-view { position: relative; height: 170px; margin: 22px 0; overflow: hidden; border: 4px solid white; outline: 2px solid #c9c5b8; background: repeating-linear-gradient(90deg,#117d49 0,#117d49 19.5%,#fff 20%,#117d49 20.5%); }
.kick-ball { position: absolute; z-index: 2; left: 14%; top: 48%; width: 20px; height: 11px; border-radius: 50%; background: #7c321d; transform: rotate(-15deg); }
.goal-posts { position: absolute; right: 6%; top: 36%; color: #ffd34f; font: 900 52px/1 monospace; transform: rotate(90deg); }
.kick-meter { position: relative; height: 44px; margin: 28px auto 20px; overflow: hidden; border: 3px solid var(--ink); background: linear-gradient(90deg,#b9282f,#efb84b 35%,#2e7d32 50%,#efb84b 65%,#b9282f); }
.kick-target { position: absolute; top: 0; bottom: 0; left: 42%; width: 16%; border: 3px solid white; border-top: 0; border-bottom: 0; }
.kick-meter i { position: absolute; z-index: 2; top: -5px; bottom: -5px; left: 0; width: 7px; background: white; box-shadow: 0 0 0 2px #151a19; }
@media (max-width: 620px) {
  .kick-attempt { margin: 12px; padding: 20px 14px; }
  .kick-view { height: 115px; margin: 14px 0; }
  .goal-posts { font-size: 38px; }
  .fourth-down-decision > div { flex-wrap: wrap; }
  .fourth-down-decision button { min-width: 125px; }
  .try-choice { margin: 12px; padding: 24px 16px; }
  .try-choice > div { flex-direction: column; }
  .try-choice button { width: 100%; }
}
#goForIt { background: var(--field); }
.play-card { position: relative; overflow: hidden; min-height: 570px; padding: 28px; border: 1px solid rgba(21,26,25,.18); background: rgba(255,253,247,.82); box-shadow: 0 18px 50px rgba(35,37,31,.09); }
.offense-card { border-top: 7px solid var(--red); }
.defense-card { border-top: 7px solid var(--blue); }
.card-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid rgba(21,26,25,.14); }
.team-dot { width: 34px; height: 34px; border: 5px solid white; border-radius: 50%; box-shadow: 0 0 0 2px currentColor; }
.team-dot.red { color: var(--red); background: var(--red); }
.team-dot.blue { color: var(--blue); background: var(--blue); }
.card-heading small { display: block; color: #76736a; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card-heading h2 { margin: 2px 0 0; font: 800 1.25rem/1.1 Georgia, serif; }
.status { margin-left: auto; padding: 5px 9px; border-radius: 99px; color: #69675f; background: #e8e4d9; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status.locked { color: white; background: #397050; }
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.play-option { min-height: 142px; padding: 16px; text-align: left; color: inherit; border: 2px solid #d6d0c2; border-radius: 4px; background: transparent; cursor: pointer; transition: .2s ease; }
.play-option:hover { transform: translateY(-2px); border-color: #8b877e; box-shadow: 0 8px 18px rgba(20,25,23,.08); }
.play-option.selected { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 5px 5px 0 var(--gold); }
.play-option b { display: block; margin-bottom: 7px; font: 800 1rem/1.15 Georgia, serif; }
.play-option span { color: #6f6c64; font-size: .78rem; line-height: 1.35; }
.play-option.selected span { color: #d8d8d2; }
.play-option em { display: inline-block; margin-top: 12px; padding: 4px 7px; color: var(--ink); background: var(--gold); font-size: .62rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lock-button, .watch-button { width: 100%; margin-top: 20px; padding: 14px 18px; color: white; border: 0; border-radius: 3px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.lock-button:disabled { opacity: .34; cursor: not-allowed; }
.red-button { background: var(--red); }
.blue-button { background: var(--blue); }
.versus { display: grid; place-items: center; z-index: 2; }
.versus span { display: grid; place-items: center; width: 56px; height: 56px; color: white; background: var(--ink); border: 4px solid var(--cream); border-radius: 50%; font: 900 1rem Georgia, serif; }

.privacy-screen { display: grid; place-content: center; min-height: 420px; padding: 28px; text-align: center; }
.shield { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; color: white; background: var(--blue); border: 6px double white; border-radius: 50% 50% 46% 46%; font: 900 2rem Georgia, serif; box-shadow: 0 0 0 3px var(--blue); }
.privacy-screen h3 { margin: 0 0 8px; font: 800 1.3rem Georgia, serif; }
.privacy-screen p { max-width: 300px; margin: 0 auto 18px; color: #716e66; line-height: 1.5; }
.privacy-screen button, .new-call, #replay { padding: 11px 16px; border: 2px solid var(--ink); background: transparent; font-weight: 900; cursor: pointer; }
.hidden { display: none !important; }

.ready-panel { max-width: 700px; margin: 70px auto; padding: 54px; text-align: center; color: white; background: var(--ink); box-shadow: 12px 12px 0 var(--gold); }
.ready-panel h2 { margin: 10px 0; font: 900 clamp(2rem, 5vw, 3.6rem)/1 Georgia, serif; }
.ready-panel > p:not(.eyebrow) { color: #c7c6bd; }
.watch-button { width: auto; padding-inline: 34px; background: var(--red); }

.film-room { animation: reveal .45s ease both; }
.film-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.film-header h2 { margin: 0; font: 900 clamp(1.3rem, 3vw, 2.35rem) Georgia, serif; }
.film-header h2 i { padding: 0 .25em; color: #87837a; font-size: .65em; font-weight: 400; }
.play-matchup-header h2 { font-size: clamp(.95rem, 1.65vw, 1.35rem); }
.orientation-prompt { display: none; }
.down-distance { padding: 10px 16px; color: white; background: var(--ink); text-align: right; }
.down-distance small { display: block; color: var(--gold); font-size: .6rem; letter-spacing: .1em; }
.field-shell { overflow: hidden; padding: 7px; background: #f7f5e9; border: 1px solid #9f9e91; box-shadow: 0 20px 50px rgba(22,30,25,.18); }
.field { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; min-height: 480px; border: 4px solid rgba(255,255,255,.96); background: #0f7b47; transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.field.short-play { transform: scale(1.28); transform-origin: 50% 50%; }
.field-markings { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.field-markings::before, .field-markings::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.98); transform: translateX(-50%); }
.field-markings::before { left: 8%; }
.field-markings::after { left: 92%; }
.yard-line { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); background: rgba(255,255,255,.94); }
.yard-line.major { width: 3px; }
.yard-line.minor { width: 2px; opacity: .92; }
.yard-tick { position: absolute; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background:
  linear-gradient(180deg,
    rgba(255,255,255,.95) 0 2.4%, transparent 2.4% 26%,
    rgba(255,255,255,.95) 26% 29%, transparent 29% 71%,
    rgba(255,255,255,.95) 71% 74%, transparent 74% 97.6%,
    rgba(255,255,255,.95) 97.6% 100%);
}
.endzone { position: absolute; z-index: 2; display: grid; place-items: center; top: 0; bottom: 0; width: 8%; color: rgba(255,255,255,.96); border-color: rgba(255,255,255,.95); font: 900 clamp(.58rem, 1.25vw, 1rem) Impact, sans-serif; letter-spacing: .28em; writing-mode: vertical-rl; }
.endzone.top { left: 0; border-right: 3px solid; }
.endzone.bottom { right: 0; border-left: 3px solid; }
.yard-numbers { position: absolute; z-index: 4; left: 12.2%; right: 12.2%; display: grid; grid-template-columns: repeat(9, 1fr); color: #fff; font: 900 clamp(.82rem, 2vw, 1.35rem)/1 Impact, sans-serif; text-align: center; text-shadow: 0 2px 2px rgba(0,0,0,.28); }
.top-numbers { top: 13.5%; transform: rotate(180deg); }
.bottom-numbers { bottom: 13.5%; }
.line-of-scrimmage, .first-down-line { display: none; }
.kickoff-room { animation: reveal .45s ease both; }
.kickoff-player { position: absolute; z-index: 6; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px; color: white; border: 2px solid white; border-radius: 50%; font: 900 14px/1 Georgia, serif; box-shadow: 0 2px 5px rgba(0,0,0,.38); transition: left var(--duration, 1s) linear, top var(--duration, 1s) linear, transform .2s ease; will-change: left, top; }
.kickoff-player.team-red { background: var(--red); border-color: var(--red-outline, #fff); }
.kickoff-player.team-blue { background: var(--blue); border-color: var(--blue-outline, #fff); }
.kickoff-player.returner { box-shadow: 0 0 0 4px var(--gold), 0 3px 8px #0008; transform: scale(1.1); }
.kickoff-player.engaged { transform: scale(1.06) rotate(8deg); }
.kickoff-ball { left: 24.8%; top: 50%; transition: none; }
.kickoff-result { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 17px 22px; color: white; background: var(--ink); box-shadow: 7px 7px 0 var(--gold); }
.kickoff-result small { color: var(--gold); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.kickoff-result h3 { margin: 3px 0 0; font: 800 1.25rem Georgia, serif; }
.kickoff-result .watch-button { width: auto; margin: 0; white-space: nowrap; }
.player { position: absolute; z-index: 6; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px; color: white; border: 2px solid white; border-radius: 50%; font: 900 14px/1 Georgia, serif; box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: left var(--duration, 1s) linear, top var(--duration, 1s) linear, transform .2s ease; will-change: left, top, transform; backface-visibility: hidden; }
.player.offense { background: var(--red); border-color: var(--red-outline, #fff); }
.player.defense { background: var(--blue); border-color: var(--blue-outline, #fff); }
.field.blue-offense .player.offense { background: var(--blue); border-color: var(--blue-outline, #fff); }
.field.blue-offense .player.defense { background: var(--red); border-color: var(--red-outline, #fff); }
.player.carrier { transform: scale(1.16); box-shadow: 0 0 0 4px var(--gold), 0 3px 7px #0008; }
.player.blocking { transform: scale(1.08) rotate(10deg); }
.ball { position: absolute; z-index: 8; left: 49%; top: 50%; width: 16px; height: 10px; margin: -5px -8px; background: #6f351e; border: 1px solid #e8c49b; border-radius: 50%; transform: rotate(-18deg); transition: left .65s ease, top .65s ease; }
.field.cadence::after { box-shadow: inset 0 0 70px rgba(232,186,87,.18); }
.result-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 16px; padding: 12px 18px; background: var(--white); border: 1px solid #d3ccbd; }
.result-yards { display: grid; min-width: 92px; padding-right: 20px; border-right: 1px solid #d7d1c4; }
.result-yards strong { font: 900 2.7rem/1 Impact, sans-serif; color: var(--red); }
.result-yards span, .result-strip small { font-size: .62rem; font-weight: 900; letter-spacing: .12em; color: #716e66; }
.result-strip h3 { margin: 2px 0; font: 800 1.1rem Georgia, serif; }
.result-strip p { margin: 0; color: #6b6962; font-size: .83rem; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 340px; }
.result-actions button { width: 100%; }
.new-call { display: block; margin: 0; }
.waiting-player-card { width: min(90vw, 460px); padding: 38px 28px 30px; }
.waiting-player-card h2 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
.penalty-decision-card { width: min(92vw, 760px); }
.penalty-decision-card > p { color: #625f58; }
.penalty-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.penalty-choice { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 18px 20px; color: #111716; background: #fff; border: 3px solid #111716; text-align: center; }
.penalty-choice strong { font-size: 1.25rem; text-transform: uppercase; }
.penalty-choice:hover { color: white; background: #174a79; }
.penalty-recommended { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); padding: 6px 10px; color: #111716; background: var(--gold); border: 2px solid #111716; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.penalty-clock-note { margin: 18px 0 0; font-size: .88rem; text-align: center; }
@media (max-width: 620px) { .penalty-choice-grid { grid-template-columns: 1fr; } .penalty-choice { min-height: 112px; } }
.new-call:disabled, #replay:disabled, .view-confirmations button:disabled { opacity: .38; cursor: not-allowed; }
.view-confirmations { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: .78rem; font-weight: 800; }
.view-confirmations button { padding: 8px 12px; border: 2px solid var(--ink); background: var(--white); font-weight: 900; cursor: pointer; }
.view-confirmations button.confirmed { color: white; background: var(--field); }
.touchdown-celebration { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; background: rgba(7,24,17,.28); }
.confetti { position: absolute; inset: 0; }
.confetti i { position: absolute; top: -12%; width: 9px; height: 24px; background: var(--piece-color); animation: confetti-fall var(--fall-time) linear var(--delay) infinite; }
@keyframes touchdown-pop { from { opacity: 0; transform: scale(.3) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes confetti-fall { to { top: 112%; transform: translateX(var(--drift)) rotate(900deg); } }
.official-card-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(5,10,8,.76); backdrop-filter: blur(3px); }
.official-card-frame { position: relative; max-width: min(390px, 88vw); max-height: 88vh; animation: touchdown-pop .28s cubic-bezier(.2,.9,.3,1.15) both; }
.official-card-frame.offsetting { width: min(820px, 94vw); max-width: min(820px, 94vw); padding: 24px 22px 22px; background: #0b477d; border-radius: 8px; box-shadow: 0 18px 60px #000b; }
.official-card-frame.turnover { width: min(520px, 92vw); max-width: min(520px, 92vw); padding: 24px 22px 22px; background: #0b477d; border-radius: 8px; box-shadow: 0 18px 60px #000b; }
.official-card-title { margin: 0 50px 18px; color: white; text-align: center; text-transform: uppercase; font: 900 clamp(1.35rem, 3vw, 2.15rem)/1.05 Arial, sans-serif; letter-spacing: .04em; }
.official-card-images { display: flex; align-items: center; justify-content: center; gap: 18px; }
.official-card-frame img { display: block; max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 7px; box-shadow: 0 18px 60px #000b; }
.official-card-frame.offsetting img { width: calc(50% - 9px); max-height: 68vh; box-shadow: none; }
.official-card-frame.turnover img { max-height: 66vh; box-shadow: none; }
.official-card-close { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: white; background: #111; border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 10px #0009; font: 900 30px/1 Arial,sans-serif; cursor: pointer; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@keyframes flipRed {
  0% { transform: translateY(30px) rotateY(0) rotateX(8deg); animation-timing-function: cubic-bezier(.36,0,.66,-.2); }
  12% { transform: translateY(42px) rotateY(120deg) rotateX(13deg); animation-timing-function: cubic-bezier(.16,.72,.28,1); }
  48% { transform: translateY(-92px) rotateY(900deg) rotateX(25deg) scale(1.06); animation-timing-function: cubic-bezier(.42,0,.75,.55); }
  84% { transform: translateY(25px) rotateY(1740deg) rotateX(12deg); animation-timing-function: cubic-bezier(.18,.7,.28,1); }
  93% { transform: translateY(34px) rotateY(1790deg) rotateX(9deg) scale(.98); }
  100% { transform: translateY(30px) rotateY(1800deg) rotateX(8deg); }
}
@keyframes flipBlue {
  0% { transform: translateY(30px) rotateY(0) rotateX(8deg); animation-timing-function: cubic-bezier(.36,0,.66,-.2); }
  12% { transform: translateY(42px) rotateY(120deg) rotateX(13deg); animation-timing-function: cubic-bezier(.16,.72,.28,1); }
  48% { transform: translateY(-92px) rotateY(990deg) rotateX(25deg) scale(1.06); animation-timing-function: cubic-bezier(.42,0,.75,.55); }
  84% { transform: translateY(25px) rotateY(1920deg) rotateX(12deg); animation-timing-function: cubic-bezier(.18,.7,.28,1); }
  93% { transform: translateY(34px) rotateY(1970deg) rotateX(9deg) scale(.98); }
  100% { transform: translateY(30px) rotateY(1980deg) rotateX(8deg); }
}
@keyframes shadowFlip {
  0%, 100% { transform: scale(1); opacity: .7; }
  45% { transform: scale(.5); opacity: .22; }
}
@media (max-width: 820px) {
  .masthead { align-items: flex-end; }
  .scorebug { transform: scale(.82); transform-origin: top right; }
  .setup { grid-template-columns: 1fr; gap: 16px; }
  .auth-grid { grid-template-columns: 1fr; }
  .locker-menu { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 25px 0; }
  .versus { height: 0; }
  .play-card { min-height: auto; }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { min-height: 430px; aspect-ratio: .86; }
  .result-strip { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
  .development-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .coin.flipping-red, .coin.flipping-blue, .coin-stage .coin-shadow { animation-duration: .3s; }
}
@media (max-width: 520px) {
  main { width: min(100% - 18px, 1180px); padding-top: 14px; }
  .masthead { display: block; }
  .scorebug { margin-top: 18px; transform: none; }
  .scorebug > div { gap: 8px; padding: 7px 9px; }
  .game-tools, .level-notice { align-items: stretch; flex-direction: column; }
  .possession-strip { align-items: flex-start; flex-wrap: wrap; gap: 9px 14px; }
  .drive-summary { width: 100%; flex-wrap: wrap; gap: 8px 14px; }
  .skill-row { grid-template-columns: 1fr auto; }
  .skill-meter { grid-row: 2; grid-column: 1 / -1; }
  .result-strip { gap: 10px; padding: 10px; }
  .result-actions button { padding: 10px 7px; font-size: .78rem; }
  .play-card { padding: 18px; }
  .play-grid { grid-template-columns: 1fr; }
  .play-option { min-height: 105px; }
  .rules-content { grid-template-columns: 1fr; }
  .gameplay-rules-card { padding: 38px 18px 22px; }
  .film-header { display: block; }
  .down-distance { display: inline-block; margin-top: 12px; }
  .player { width: 24px; height: 24px; margin: -12px; font-size: 12px; }
}

@media (max-width: 820px) and (orientation: portrait) {
  body.game-active .orientation-prompt {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    padding: 28px;
    color: white;
    text-align: center;
    background: var(--ink);
  }
  .orientation-prompt strong { font: 900 2rem/1 Georgia, serif; }
  .orientation-prompt span { color: #d5d2c9; }
  .orientation-phone { display: grid; place-items: center; width: 76px; height: 120px; border: 5px solid var(--gold); border-radius: 12px; font-size: 2.5rem; transform: rotate(90deg); }
}
