/* Reversible compact home-page layout experiment. Preserve ASR artwork and colors. */
body{--home-ink:#fff;--home-gold:#ffe775}
header{display:flex;align-items:center;justify-content:center;gap:22px;padding:12px 24px 8px}
.game-logo{width:min(250px,38vw);max-height:108px;object-fit:contain}
header h1{margin:0;font-size:clamp(16px,1.6vw,22px);text-align:left;max-width:250px}
main{max-width:1180px;padding:0 24px;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);grid-template-areas:"welcome mode" "daily mode" "weekly mode" "community community" "extras extras" "settings settings" "help help";align-items:center;gap:14px 24px}
.home-style-switcher{margin:0 auto -2px}.sonic-says{grid-area:welcome;width:100%;min-height:0;height:auto;margin:0;padding:22px 26px 26px;background-size:100% 100%;}
.sonic-says h2{font-size:clamp(23px,2.3vw,31px);margin-bottom:9px}
.sonic-says p{font-size:clamp(15px,1.25vw,18px);line-height:1.4}
.sonic-says p+p{margin-top:10px}
.main-menu{grid-area:mode;min-width:0;width:100%;padding:4px 22px 12px;border:1px solid #a7d7ff88;border-radius:13px;background:linear-gradient(145deg,#06346ac9,#031d3bd9);box-shadow:0 6px 18px #00132988}
.section-title{font-size:clamp(20px,2vw,26px);margin:0 0 5px;padding-bottom:5px;background-size:100% 9px}
.mode-tiles.carousel-ready{height:clamp(185px,21vw,230px);max-width:600px}
.carousel-ready .menu-tile{width:36%;left:32%;top:10px}
.carousel-ready .mode-centre{transform:scale(1.02)}
.carousel-ready .mode-left{transform:translateX(-103%) scale(.68) rotateY(10deg)}
.carousel-ready .mode-right{transform:translateX(103%) scale(.68) rotateY(-10deg)}
.mode-controls{inset:auto 0 0;z-index:5;gap:10px;margin:0}
.mode-controls button,.open-mode{min-height:38px;padding:8px 13px;font-size:12px}
.main-menu>p{margin:5px 0;text-align:center}
.main-menu>p .daily-launch{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 13px;font-size:12px}
.menu-description{min-height:0;margin:4px 0 0;text-align:center;font-size:12px;line-height:1.35}
.daily-summary[aria-label="Daily challenges"]{grid-area:daily;}.daily-summary[aria-label="Weekly challenges"]{grid-area:weekly;}
.daily-summary{min-width:0;flex-wrap:nowrap!important;margin:0!important;padding:7px 10px!important;gap:8px!important;border-radius:9px!important;align-items:center}.daily-summary .challenge-preview-summary{display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;font:10px/1.2 Arial,sans-serif!important;margin:2px 0 0!important}
.daily-summary>div{flex:1;min-width:0;overflow:visible}.daily-summary img{width:30px!important;height:30px!important}
.daily-summary h2{font-size:13px!important;line-height:1.2!important;margin:0!important}
.daily-summary p{font-size:11px!important;line-height:1.2!important;margin:1px 0!important}
.daily-summary button{width:auto!important;min-width:max-content;min-height:30px!important;margin-left:auto!important;padding:5px 9px!important;font-size:10px!important}
.community-menu{grid-area:community;width:100%;margin-top:2px}
.community-menu .section-title{margin-bottom:9px}
.community-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 0 8px}
.community-tiles .menu-tile{border:1px solid #b9e3ff99;border-radius:10px;background:linear-gradient(140deg,#0965c9,#063c7b);filter:drop-shadow(0 3px 3px #0007);-webkit-box-reflect:none;overflow:hidden}
.community-tiles .tile-art{height:clamp(52px,6vw,76px);aspect-ratio:auto;object-fit:cover;object-position:center 45%;opacity:.68}
.community-tiles .tile-label{left:9px;right:6px;bottom:7px;font-size:clamp(11px,1vw,14px);text-shadow:1px 2px #00162c}
.menu-help{grid-area:help;margin:0 0 5px;justify-content:center;gap:18px}
.media-section{grid-area:extras;min-width:0;width:100%;max-width:none;margin:4px 0 0;padding:0}.media-section .media-intro{margin:8px 0 0;font-size:12px}.media-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px!important}.media-tiles .media-tile{position:relative;min-width:0;height:88px;overflow:hidden;border:1px solid #9dd8ff;border-radius:9px;background:#07366c;box-shadow:0 3px 7px #00132988}.media-tiles .media-tile img{width:100%;height:100%;object-fit:cover;opacity:.8}.media-tiles .media-tile span{left:4px;right:4px;bottom:5px;white-space:normal;text-align:center;line-height:1.05;font-size:clamp(9px,.9vw,12px);text-wrap:balance;text-shadow:1px 2px #00132b}main .settings-dock{grid-area:settings;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:12px;margin:4px 0 0}main .settings-dock>*{width:100%;min-width:0;box-sizing:border-box}main .settings-dock .settings-tile{height:82px!important;max-height:82px!important;width:100%!important;min-width:0;min-height:82px!important}main .settings-dock .settings-tile img{height:100%!important;width:100%!important;object-fit:cover}.home-shortcut{display:flex!important;align-items:center;justify-content:flex-start;text-align:left!important;gap:9px;padding:9px 12px!important;border:1px solid #9edcff!important;border-bottom:3px solid #cf1e29!important;border-radius:9px!important;background:linear-gradient(140deg,#0d5da9,#05264f)!important;color:#fff!important;font:12px/1.1 ASR,Arial,sans-serif!important;text-shadow:1px 2px #061020;box-shadow:0 3px 6px #00162d88,inset 0 1px #dff8ff45!important;cursor:pointer}.home-shortcut:focus-visible,.home-shortcut:hover{outline:2px solid #ffe775!important;outline-offset:2px!important;color:#ffe775!important}.home-shortcut:before{content:"";display:block;flex:none;width:34px;height:34px;background:center/contain no-repeat;filter:drop-shadow(0 2px 2px #00162d)}.home-shortcut-profile:before{background-image:url("assets/home-menu/profile-icon.svg")}.home-shortcut-feedback:before{background-image:url("assets/home-menu/feedback-icon.svg")}.home-shortcut-daily:before{background-image:url("assets/home-menu/daily-icon.svg")}.home-shortcut-weekly:before{background-image:url("assets/home-menu/weekly-icon.svg")}.home-shortcut-bounty:before{background-image:url("assets/home-menu/sega-miles.svg")}.settings-dock .site-achievements-launch{display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:left;padding:9px 12px!important;border:1px solid #9edcff!important;border-bottom:3px solid #cf1e29!important;border-radius:9px!important;background:linear-gradient(140deg,#0d5da9,#05264f)!important;box-shadow:0 3px 6px #00162d88,inset 0 1px #dff8ff45!important;color:white}.settings-dock .site-achievements-launch img{width:34px;height:34px;flex:none}.settings-dock .settings-tile span{left:4px;right:4px;bottom:8%;white-space:normal;text-align:center;line-height:1.05;font-size:clamp(9px,.9vw,12px);text-wrap:balance;text-shadow:1px 2px #00132b}
.media-section .section-title{margin-bottom:9px}
.media-tiles{gap:12px!important}
.media-tiles .menu-tile{min-height:58px}
footer{padding-top:10px}
@media(max-width:720px){
 header{gap:10px;padding:10px 12px 5px}.game-logo{width:min(180px,48vw);max-height:74px}header h1{font-size:13px;max-width:140px}
 main{display:flex;flex-direction:column;align-items:stretch;padding:0 12px;gap:10px}main>*{grid-area:auto!important;width:100%;max-width:100%;min-width:0}
 .sonic-says{padding:17px 19px 18px}.sonic-says h2{font-size:22px;margin-bottom:7px}.sonic-says p{font-size:14px}
 .main-menu{padding:10px 12px 12px}.section-title{font-size:21px}.mode-tiles.carousel-ready{height:175px}.carousel-ready .menu-tile{width:39%;left:30.5%;top:8px}.carousel-ready .mode-centre{transform:scale(1)}.carousel-ready .mode-left{transform:translateX(-93%) scale(.6) rotateY(12deg)}.carousel-ready .mode-right{transform:translateX(93%) scale(.6) rotateY(-12deg)}
 main .settings-dock{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.media-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.media-tiles .media-tile{height:82px}.daily-summary{order:0;width:100%!important}.daily-summary .challenge-preview-summary{display:block!important}
 .community-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.community-tiles .tile-art{height:54px}.community-tiles .tile-label{font-size:clamp(10px,3.1vw,13px)}
 .menu-help{flex-direction:column;align-items:center;font-size:10px;gap:5px}.media-section{padding:0 12px}
}
@media(max-width:420px){main .settings-dock{grid-template-columns:repeat(2,minmax(0,1fr))}main .settings-dock .settings-tile{height:66px!important;max-height:66px!important;min-height:66px!important}}@media(max-width:380px){header{flex-direction:column;gap:2px}header h1{text-align:center}.community-tiles .tile-art{height:44px}}
@media(prefers-reduced-motion:reduce){.community-tiles .menu-tile{transition:none}}

@media(max-width:720px){.mode-wip{top:4px;font-size:8px;padding:3px}.mode-controls .open-mode[aria-disabled=true]{max-width:190px;font-size:9px;padding:8px 6px}}
