/* Game-first home and club selection. */
.home-page{background:radial-gradient(ellipse at 80% 0,rgba(255,204,51,.06),transparent 45%),#07101e}
.home-page .wrap{width:min(1080px,calc(100% - 40px));min-height:100svh;display:flex;flex-direction:column}
.home-page .top{height:auto;padding:24px 0;border-bottom:1px solid rgba(39,54,80,.5)}
.home-page .brand img{width:min(450px,72vw);height:auto}

/* Home: two big artwork cards that sell each game. */
.game-home-page{background:radial-gradient(ellipse 60% 40% at 25% 30%,rgba(255,204,51,.08),transparent),radial-gradient(ellipse 60% 40% at 75% 30%,rgba(46,204,143,.08),transparent),#07101e}
.game-home-intro{text-align:center;padding:38px 0 30px}
.live-pill{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:7px 14px;border:1px solid rgba(46,204,143,.4);border-radius:99px;background:rgba(46,204,143,.08);color:#d9f7ea;font-size:.82rem;font-weight:750}
.live-dot{width:9px;height:9px;border-radius:50%;background:#2ecc8f;box-shadow:0 0 0 0 rgba(46,204,143,.7);animation:live-pulse 2s infinite}
.next-round{color:#a9c3e3;font-weight:600}
@keyframes live-pulse{70%{box-shadow:0 0 0 9px rgba(46,204,143,0)}100%{box-shadow:0 0 0 0 rgba(46,204,143,0)}}
.game-home-intro h1{font-size:clamp(2rem,5.2vw,3.6rem);line-height:1.05;letter-spacing:-.05em;margin:0 0 12px}
.intro-sub{margin:0;color:#a9c3e3;font-size:clamp(1rem,1.8vw,1.2rem)}
.game-tiles{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.game-tile{--glow:#ffcc33;position:relative;overflow:hidden;display:flex;flex-direction:column;background:#0a1628;border:1px solid #2a4566;border-radius:24px;color:#f7f8fc;text-decoration:none;box-shadow:0 18px 50px rgba(0,0,0,.35);transition:border-color .2s,transform .2s,box-shadow .2s;animation:tile-in .5s ease-out both}
.tile-wordle{--glow:#2ecc8f;animation-delay:.08s}
.game-tile:hover,.game-tile:focus-visible{border-color:var(--glow);transform:translateY(-4px);box-shadow:0 22px 60px rgba(0,0,0,.45),0 0 0 1px var(--glow),0 0 42px color-mix(in srgb,var(--glow) 28%,transparent)}
.game-tile:focus-visible{outline:3px solid var(--glow);outline-offset:4px}
@keyframes tile-in{from{opacity:0;transform:translateY(14px)}}
.tile-art{position:relative;aspect-ratio:4/3;overflow:hidden}
.tile-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%;transition:transform .5s ease}
.game-tile:hover .tile-art img{transform:scale(1.05)}
.tile-art::after{content:'';position:absolute;inset:auto 0 0;height:30%;background:linear-gradient(transparent,#0a1628);pointer-events:none}
.tile-badge{position:absolute;top:16px;left:16px;padding:7px 12px;border-radius:99px;background:rgba(7,16,30,.78);border:1px solid color-mix(in srgb,var(--glow) 55%,transparent);color:var(--glow);font-size:.75rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;backdrop-filter:blur(4px)}
.tile-copy{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;margin-top:-34px;padding:0 28px 28px;text-align:center}
.tile-copy h2{font-size:clamp(1.9rem,3.4vw,2.6rem);letter-spacing:-.04em;margin:0 0 8px;line-height:1.05}
.tile-copy p{color:#bad0ec;font-size:1.05rem;line-height:1.45;margin:0 0 22px}
.tile-action{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--glow);color:#07101e;font-size:1.1rem;font-weight:900;border-radius:14px;padding:15px 12px;margin-top:auto;min-height:56px;transition:filter .2s}
.game-tile:hover .tile-action{filter:brightness(1.08)}
.tile-action>span[aria-hidden]{font-size:1.25em;transition:transform .2s}
.game-tile:hover .tile-action>span[aria-hidden]{transform:translateX(4px)}

.club-strip{margin:40px 0 8px;text-align:center}
.club-strip h2{margin:0 0 16px;color:#a9c3e3;font-size:.95rem;font-weight:700}
.crest-marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.crest-track{--crest-gap:26px;display:flex;gap:var(--crest-gap);width:max-content;animation:crest-scroll 70s linear infinite}
.crest-track img{width:44px;height:44px;object-fit:contain;flex:0 0 auto}
.crest-track img[src*="/derby-county.webp"],.crest-track img[src*="/swansea-city.webp"]{filter:brightness(0) invert(1)}
@keyframes crest-scroll{to{transform:translateX(calc(-50% - var(--crest-gap) / 2))}}

.home-page .foot{margin-top:auto;padding:22px 0 26px}
.home-page .foot>span,.home-page .foot .sistersite{display:none}
.club-select-page .wrap{width:min(850px,calc(100% - 32px))}
.hub-back{margin:20px 0 0;font-size:.9rem}.hub-back a{color:#a9c3e3;text-decoration:none}.hub-back a:hover{text-decoration:underline}
.club-select-intro{text-align:center;margin:16px 0 20px}.club-select-intro h1{font-size:clamp(2rem,5vw,3rem);letter-spacing:-.04em;margin:0 0 7px}.club-select-intro p{color:#a9c3e3;font-size:1.1rem;margin:0}
.club-select-page .league-tabs{width:100%;max-width:650px;margin:0 auto 20px}
.club-select-page .club-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 0 14px}
.club-select-page .club,.club-select-page .club.played{padding:14px 5px;grid-template-rows:52px minmax(2.2em,auto) auto;gap:6px;font-size:.86rem;min-height:110px;border-radius:13px}
.club-select-page .club img{width:52px;height:52px}
.club-select-page .club-info{font-size:.67rem;line-height:1.35;white-space:normal;color:#a9b2c4}
.club-select-page .club.played .club-info{color:#2ecc8f}
.club-select-page .club.in-progress{border-color:#e7c77a}
.club-select-page .preparing-club{opacity:.6;cursor:default}
.selection-note{text-align:center;color:#a9b2c4;font-size:.76rem;line-height:1.5;margin:4px 0 22px}
.game-explainer,.club-directory{border-top:1px solid #273650;padding:15px 0;font-size:.85rem;color:#a9b2c4}
.game-explainer summary,.club-directory summary{cursor:pointer;color:#c5d0e0}
.game-explainer p{line-height:1.6}.game-explainer a,.club-directory a{color:#a9c3e3}
.club-directory nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px;line-height:1.4}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
 .home-page .wrap{width:calc(100% - 28px)}.home-page .top{padding:16px 0}
 .home-page .foot{padding:20px 0 24px}.home-page .foot-links{gap:10px 16px;font-size:.75rem}
 .hub-back{margin-top:16px}.club-select-intro{margin:12px 0 20px}.club-select-intro h1{font-size:2rem}.club-select-intro p{font-size:1rem}
 .club-select-page .league-tabs{margin-bottom:16px}.club-select-page .league-tabs button{font-size:.8rem;min-height:44px}
 .club-select-page .club-grid{gap:7px}
 .club-select-page .club,.club-select-page .club.played{padding:9px 3px;grid-template-rows:42px minmax(2.3em,auto) auto;font-size:.65rem;min-height:92px;gap:5px;border-radius:10px}
 .club-select-page .club img{width:42px;height:42px}.club-select-page .club-info{font-size:.56rem}
 .club-directory nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Phones: full-width artwork, compact copy row with the play button beside it. */
@media(max-width:600px){
 .game-home-page .top{padding:12px 0}
 .game-home-intro{padding:16px 0}
 .live-pill{margin-bottom:10px;padding:5px 11px;font-size:.72rem}
 .game-home-intro h1{font-size:clamp(1.55rem,7vw,2rem);margin-bottom:6px}
 .intro-sub{font-size:.88rem}
 .game-tiles{grid-template-columns:1fr;gap:14px}
 .game-tile{border-radius:18px}
 .tile-art{aspect-ratio:16/10.5}
 .tile-badge{top:10px;left:10px;padding:5px 9px;font-size:.66rem}
 .tile-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title action" "text action";align-items:center;column-gap:12px;margin-top:-26px;padding:0 14px 14px;text-align:left}
 .tile-copy h2{grid-area:title;font-size:1.5rem;margin:0 0 3px}
 .tile-copy p{grid-area:text;font-size:.84rem;line-height:1.3;margin:0}
 .tile-action{grid-area:action;margin:0;min-height:48px;padding:0 18px;font-size:1rem;border-radius:12px}
 .action-game{display:none}
 .club-strip{margin:26px 0 4px}.club-strip h2{font-size:.82rem;margin-bottom:12px}
 .crest-track{--crest-gap:20px}.crest-track img{width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){
 .game-tile,.tile-art img,.tile-action>span[aria-hidden]{transition:none;animation:none}
 .game-tile:hover,.game-tile:focus-visible{transform:none}.game-tile:hover .tile-art img{transform:none}
 .live-dot{animation:none}
 .crest-marquee{mask-image:none}
 .crest-track{animation:none;flex-wrap:wrap;justify-content:center;width:auto}.crest-track .crest-repeat{display:none}
}
.live-short{display:none}
@media(max-width:600px){.live-long{display:none}.live-short{display:inline}.tile-copy p{font-size:.86rem}}
.tile-action{gap:0}.action-game{margin-left:.3em}.tile-action>span[aria-hidden]{margin-left:.45em}
.game-home-intro h1,.intro-sub,.tile-copy p{text-wrap:balance}
/* Phones: fit header, both games and footer in one screen; artwork flexes to the space left. */
@media(max-width:600px) and (min-height:540px){
 .game-home-page .wrap{height:100svh;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
 .game-home-page .top{padding:10px 0;flex-shrink:0}
 .game-home-intro{padding:10px 0 12px;flex-shrink:0}
 .live-pill{margin-bottom:7px}
 .game-home-intro h1{font-size:clamp(1.25rem,5.6vw,1.6rem);margin:0}
 .intro-sub{display:none}
 .game-tiles{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
 .game-tile{min-height:0}
 .tile-art{flex:1;min-height:0;aspect-ratio:auto}
 .tile-daily .tile-art img{object-position:center 42%}
 .tile-wordle .tile-art img{object-position:center 50%}
 .tile-copy{flex:0 0 auto;margin-top:-22px;padding:0 12px 12px}
 .tile-copy h2{font-size:1.35rem}
 .tile-copy p{font-size:.8rem}
 .tile-action{min-height:44px;padding:0 16px}
 .club-strip{display:none}
 .game-home-page .foot{flex-shrink:0;padding:8px 0 6px}
 .game-home-page .foot-links{gap:4px 12px;font-size:.72rem;margin:0}
}
@media(max-width:600px) and (min-height:760px){
 .game-home-intro{padding:16px 0}
 .game-home-intro h1{font-size:clamp(1.5rem,6.6vw,1.9rem)}
 .intro-sub{display:block;margin-top:6px}
 .tile-copy h2{font-size:1.5rem}.tile-copy p{font-size:.86rem}
 .tile-action{min-height:48px}
}
@media(max-width:600px) and (min-height:540px) and (max-height:639px){
 .tile-copy p{display:none}
 .tile-copy{grid-template-areas:"title action";margin-top:-16px}
 .tile-copy h2{margin:0}
 .tile-wordle .tile-art img{object-position:center 58%}
}
/* Keep the scrolling crests on one-screen phones, compact so the artwork keeps most of the height. */
@media(max-width:600px) and (min-height:540px){
 .club-strip{display:block;flex-shrink:0;margin:10px 0 0}
 .club-strip h2{display:none}
 .crest-track{--crest-gap:16px}.crest-track img{width:30px;height:30px}
}
@media(max-width:600px) and (min-height:700px){
 .club-strip{margin-top:12px}
 .club-strip h2{display:block;font-size:.74rem;margin:0 0 8px}
 .crest-track img{width:34px;height:34px}
}
/* Crawlable club quiz directory, below the one-screen game picker. */
.club-quiz-index{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:28px 0 40px;border-top:1px solid #273650;color:#a9b2c4}
.club-quiz-index h2{color:#f7f8fc;font-size:1.3rem;margin:0 0 6px}
.club-quiz-index>p{margin:0 0 14px;font-size:.9rem;line-height:1.55}
.club-quiz-index h3{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#ffcc33;margin:18px 0 8px}
.club-quiz-index nav{display:flex;flex-wrap:wrap;gap:6px 8px}
.club-quiz-index nav a{color:#a9b2c4;font-size:.85rem;text-decoration:none;padding:6px 10px;border:1px solid #273650;border-radius:9px}
.club-quiz-index nav a:hover,.club-quiz-index nav a:focus-visible{color:#f7f8fc;border-color:#ffcc33}
@media(max-width:600px){.club-quiz-index{width:calc(100% - 28px)}}
