/* A football film opening followed by a focused, scrollable club identity form. */
#boot-screen{background:#0b1717;padding:0;overflow:hidden;color:#f3f6ee;font-family:inherit;top:var(--app-top,0px);bottom:auto;height:var(--app-height,100dvh)}
#boot-screen [hidden]{display:none!important}
#boot-screen.done,#boot-screen[hidden]{display:none!important}
#boot-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;opacity:.8;background:#11251d;pointer-events:none}
.intro-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,18,17,.3),rgba(7,18,17,.08) 25%,rgba(7,18,17,.64) 55%,#0b1717 100%);pointer-events:none}
#boot-intro{position:relative;width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;padding:100px 24px max(32px,env(safe-area-inset-bottom));box-sizing:border-box}
#boot-intro .boot-inner{width:100%;max-width:460px;padding:0;text-align:left;background:none;border:0;box-shadow:none}
.intro-controls{position:absolute;z-index:3;top:max(18px,env(safe-area-inset-top));left:20px;right:20px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}
.intro-controls button{display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#e5e9da;background:transparent;font:inherit;cursor:pointer;pointer-events:auto}
.intro-control-face{position:relative;display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff26;border-radius:50%;background:#0b1717a6;font-size:10px;font-weight:700;letter-spacing:.4px;box-sizing:border-box}
.intro-control-face .game-icon{width:16px;height:16px}
.intro-sound-slash{position:absolute;width:19px;height:1.5px;border-radius:1px;transform:rotate(-45deg);background:currentColor;box-shadow:0 1px 0 #0b1717}
#boot-sound[aria-pressed=true] .intro-control-face{color:#e3cd92;border-color:#d7bf7e80}
#boot-sound[aria-pressed=true] .intro-sound-slash{display:none}
#boot-screen .intro-controls button:focus-visible{outline:none}
#boot-screen .intro-controls button:focus-visible .intro-control-face{outline:2px solid #ecdcac;outline-offset:2px}
.intro-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:2px;color:#d8bf7a;margin-bottom:14px}
#boot-screen .boot-title{font-size:clamp(38px,7vw,62px);line-height:.96;letter-spacing:-2px;margin:0 0 18px;font-weight:900;max-width:340px}
#boot-tagline{font-size:17px;line-height:1.55;color:#e5e9da;margin:0 0 26px;max-width:330px}
#boot-screen #boot-start{display:block;width:100%;min-width:0;min-height:52px;margin:16px 0 12px;background:#d5bd7f;border:1px solid #f0d994;color:#18221d;box-shadow:0 4px 0 #786539;font-size:15px;text-align:center}
#boot-note{font-size:12px;line-height:1.5;color:#97ab9d;margin:18px 0 0;min-height:36px}
#boot-screen.film-fallback #boot-video{opacity:.5}
#boot-screen.club-creating{display:block;background:radial-gradient(ellipse at 50% 0,#243d32 0,transparent 60%),#0c1b1b}
#boot-screen.club-creating #boot-video,#boot-screen.club-creating .intro-shade{display:none}
#boot-screen.club-creating .intro-controls{top:0;left:0;right:0;justify-content:flex-end;padding:max(12px,env(safe-area-inset-top)) 20px 12px;background:#0c1b1bf2;border-bottom:1px solid #9fba9220;box-sizing:border-box}
#club-setup{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scroll-padding:90px 0 150px;-webkit-overflow-scrolling:touch;padding:calc(84px + env(safe-area-inset-top)) 20px 0;box-sizing:border-box}
#club-create-form{max-width:520px;margin:0 auto}
.club-create-heading h1{font-size:36px;letter-spacing:-1px;line-height:1.15;margin:0 0 8px}
.club-create-heading p{font-size:13px;line-height:1.6;color:#a5b9ab;margin:0 0 24px}
.club-create-heading .intro-eyebrow{margin-bottom:10px}
.club-live-preview{display:flex;align-items:center;gap:14px;border:1px solid #8cab884a;border-radius:18px;padding:20px 16px;margin:0 0 24px;background:linear-gradient(135deg,#2b4333c9,#172b28);box-shadow:inset 0 1px 0 #fff1,0 14px 28px #0002;min-width:0}
.club-live-preview>img{width:64px;height:76px;flex-shrink:0;object-fit:contain;filter:drop-shadow(0 6px 5px #0005)}
.club-live-preview>div{flex:1;min-width:0}
.club-live-preview span{display:block;color:#99b6a1;font-size:9px;font-weight:800;letter-spacing:1px}
#club-preview-name{display:block;font-size:20px;line-height:1.3;overflow-wrap:anywhere;margin:6px 0}
.club-live-preview small{font-size:10px;line-height:1.6;color:#aec4b6;display:block}
.club-kit-preview{width:52px;height:72px;flex-shrink:0;filter:drop-shadow(0 5px 3px #0006)}
.club-create-section{border:0;padding:0;margin:0 0 24px;min-width:0}
.club-create-section label,.club-create-section legend{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:800;margin:0 0 12px;padding:0;color:#e4ece0}
.club-create-section b{font-size:10px;font-weight:700;color:#d5bd7f;background:#c6b16c17;padding:5px;border-radius:5px;letter-spacing:1px}
#club-create-name{width:100%;box-sizing:border-box;border:1px solid #88a38970;border-radius:10px;padding:14px;color:#edf3e8;background:#102422;font:inherit;font-size:16px;min-height:50px;box-shadow:inset 0 2px 4px #0002}
#club-create-name[aria-invalid=true]{border-color:#eb8f80}
.club-name-meta{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-top:8px}
.club-name-meta small,.club-create-section>small{font-size:10px;line-height:1.6;color:#9db4a4}
#club-name-count{white-space:nowrap}
.club-crest-options,.club-kit-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.club-crest-options button,.club-kit-options button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;aspect-ratio:1;border:1px solid #69816d59;border-radius:10px;background:#182b28;cursor:pointer;position:relative;padding:5px;box-sizing:border-box}
.club-crest-options img{width:36px;height:36px;object-fit:contain}
.club-crest-options button[aria-pressed=true],.club-kit-options button[aria-pressed=true]{border:2px solid #dac483;background:#d6c18815;box-shadow:0 0 0 2px #c9b37120}
.club-crest-options button[aria-pressed=true]:after,.club-kit-options button[aria-pressed=true]:after{content:'✓';position:absolute;right:1px;bottom:1px;font-size:10px;line-height:14px;width:14px;height:14px;background:#ddc98c;color:#1b3025;border-radius:4px;font-weight:900}
.club-kit-options button{min-height:44px;aspect-ratio:auto;padding:10px}
.club-kit-options span{width:24px;height:24px;background:var(--kit-color);border-radius:50%;box-shadow:inset 0 1px 0 #fff6,0 0 0 1px #ffffff1f}
#club-kit-name{display:block;margin-top:8px}
.club-create-footer{position:sticky;bottom:0;z-index:2;margin:28px -20px 0;padding:16px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid #94a68829;background:#102321f5;backdrop-filter:blur(10px);text-align:center}
.club-create-footer .action-btn{width:100%;min-height:52px;font-size:15px;background:#bfd190;border-color:#e0e9bc;color:#1d3325;box-shadow:0 4px 0 #566c45}
.club-create-footer>small{display:block;color:#90aa99;font-size:10px;margin-top:14px;line-height:1.6}
#club-create-error{font-size:13px;line-height:1.5;text-align:left;color:#ffc8b5;margin:0 0 12px}
#boot-reload{min-height:44px;background:#2c4433;color:#fff;border:1px solid #cbb87e;padding:8px 18px;border-radius:8px;margin:0 0 12px;cursor:pointer}
#boot-screen button:focus-visible,#boot-screen input:focus-visible{outline:3px solid #ecdcac;outline-offset:3px}
@media(min-width:700px){#boot-intro{padding-bottom:9vh}.intro-controls{left:32px;right:32px}.club-live-preview>img{width:80px;height:90px}.club-kit-preview{width:64px;height:82px}#club-preview-name{font-size:25px}}
@media(max-width:360px){#club-setup{padding-left:14px;padding-right:14px}.club-crest-options,.club-kit-options{gap:5px}.club-crest-options button{min-height:44px}.club-live-preview{gap:10px;padding:16px 12px}.club-live-preview>img{width:50px;height:64px}.club-kit-preview{width:42px}.club-create-footer{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}}
@media(max-height:500px) and (min-width:600px){#boot-intro{padding:70px 28px 16px;justify-content:flex-start}#boot-intro .boot-inner{max-width:400px}#boot-screen .boot-title{font-size:34px;margin-bottom:8px}#boot-tagline{margin-bottom:8px;font-size:13px}#boot-note{display:none}.intro-eyebrow{margin-bottom:6px}#boot-screen #boot-start{margin-top:8px;min-height:44px}}
@media(prefers-reduced-motion:reduce){#boot-video{opacity:.5}}
