/* Homepage presentation only; gameplay and other game pages retain their rules. */
.home-page .play-section{padding:38px 0 55px}
.home-page .play-heading{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:26px}
.home-page .play-heading>div{display:contents}
.home-page .quick-rule{max-width:660px}
.home-page .entry-panel,.home-page .stats-panel,.home-page .storage-warning{max-width:964px}
.home-page .game-layout{grid-template-columns:220px minmax(0,470px) 230px;gap:22px;justify-content:center;max-width:100%}
.home-objectives{padding:20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,var(--panel),#0a1728)}
.home-objectives h2{font-size:1.18rem;margin:10px 0 18px}
.home-objectives .hud-main{display:grid;grid-template-columns:1fr;gap:10px}
.home-objectives .hud-stat{min-height:78px;grid-template-columns:30px minmax(0,1fr);padding:12px 10px 17px;gap:10px;background:var(--panel-2);border-radius:12px}
.home-objectives .hud-label{display:block;font-size:.8rem;line-height:1.3}
.home-objectives .hud-stat strong{font-size:1rem;line-height:1.4}
.home-objectives .mini-tile,.home-objectives .hud-symbol{width:29px}
.home-objectives .hud-score{min-height:67px}
.home-strategy{margin-top:21px;padding-top:18px;border-top:1px solid var(--line)}
.home-strategy h3{font-size:.85rem;margin:13px 0 6px}
.home-strategy p:not(.eyebrow){font-size:.78rem;color:var(--muted);margin:0 0 14px}
.home-strategy .text-link{font-size:.78rem}
.home-page .game-stage{padding:16px;border-radius:22px}
.home-page .game-hud{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0;margin:0 0 14px;border:0;background:none;box-shadow:none;min-height:64px}
.home-page .hud-level{position:static;display:flex;gap:8px;align-items:center;padding:0;background:none;border:0;box-shadow:none;border-radius:0;transform:none}
.home-page .hud-level span{font-size:.65rem;color:var(--cyan);letter-spacing:.1em}
.home-page .hud-level strong{font-size:1.05rem;color:var(--text)}
.home-page .hud-side{display:flex;gap:8px;align-items:center}
.home-page .hud-moves{min-width:90px;min-height:64px;border-radius:12px}
.home-page .hud-moves strong{font-size:1.8rem}
.home-page .hud-reset{width:40px;min-height:44px;font-size:.7rem}
.home-page .board-wrap{width:100%;max-width:none}
.home-page .board{padding:7px;gap:5px;border-radius:16px}
.home-page .game-message{min-height:45px;margin:10px 0 0;font-size:.8rem}
.home-page .level-select{position:static;padding:20px;border-radius:20px;box-shadow:none}
.home-page .level-select-heading{align-items:start;gap:7px}
.home-page .level-select-heading h2{font-size:1.18rem}
.home-page .level-select-heading .eyebrow{font-size:.65rem}
.home-page .level-select-copy{font-size:.78rem;min-height:0;margin:12px 0}
.home-page .continue-button{font-size:.8rem;padding:9px 8px}
.home-page .level-grid{gap:6px;margin-top:14px}
.home-page .level-button{min-height:32px;border-radius:8px;font-size:.78rem}
.home-page .level-legend{font-size:.66rem;gap:7px;flex-wrap:wrap}
.home-page .home-game-discovery{max-width:964px}
.home-page .home-game-discovery{grid-template-columns:1fr;gap:20px;padding:22px}
.home-page .home-game-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-game-card{display:block;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--panel);text-decoration:none;transition:border-color .18s,transform .18s}
.home-game-card:hover{border-color:var(--cyan);transform:translateY(-3px)}
.home-game-card:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.home-game-image{display:flex;align-items:center;justify-content:center;height:245px;padding:16px;background:radial-gradient(ellipse at center,#243755,#081323);border-bottom:1px solid var(--line)}
.home-game-image img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}
.home-game-card-copy{padding:18px;text-align:left}
.home-game-card-copy h3{margin:0 0 8px;font-size:1.15rem;color:var(--text)}
.home-game-card-copy p{font-size:.85rem;color:var(--muted);line-height:1.55;margin:0 0 15px!important}
.home-game-play{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--cyan);font-size:.85rem;font-weight:800}
@media(max-width:600px){.home-page .home-game-links{grid-template-columns:1fr;gap:15px}.home-game-image{height:230px}.home-page .home-game-discovery{padding:16px}.home-game-card-copy{padding:16px}}
@media(max-width:1100px) and (min-width:651px){
 .home-page .game-layout{grid-template-columns:200px minmax(0,470px)}
 .home-page .level-select{grid-column:1/-1;width:100%}
 .home-page .level-grid{grid-template-columns:repeat(10,minmax(0,1fr))}
 .home-page .level-button{min-height:40px}
 .home-page .continue-button{max-width:230px}
 .home-page .entry-panel{max-width:692px}
}
@media(max-width:650px){
 .home-page .play-section{padding:26px 0 35px}
 .home-page .play-heading{gap:10px;margin-bottom:18px}
 .home-page .quick-rule{font-size:.9rem;max-width:40ch}
 .home-page .game-layout{display:flex;flex-direction:column;gap:15px;max-width:470px}
 .home-objectives{width:100%;padding:12px}
 .home-objectives>.eyebrow,.home-objectives>h2,.home-strategy{display:none}
 .home-objectives .hud-main{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .home-objectives .hud-stat{grid-template-columns:1fr;justify-items:center;text-align:center;gap:5px;min-height:90px;padding:9px 4px 14px}
 .home-objectives .hud-label{display:block;font-size:.66rem}
 .home-objectives .hud-stat strong{font-size:.92rem}
 .home-objectives .mini-tile,.home-objectives .hud-symbol{width:25px}
 .home-page .game-stage{width:100%;padding:10px;border-radius:18px}
 .home-page .game-hud{margin-bottom:10px;padding:0;min-height:62px}
 .home-page .hud-level{position:static}
 .home-page .hud-moves{min-height:60px;min-width:85px}
 .home-page .board{gap:4px;padding:6px}
 .home-page .level-select{width:100%;padding:17px}
 .home-page .level-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
 .home-page .level-button{min-height:38px}
 .home-page .entry-panel{max-width:470px}
 .home-page .home-game-discovery{max-width:470px}
}
