/* Homepage: News and Events lead, followed by the feature slideshow. */
.home-hub{display:grid;gap:22px}
body[data-route="home"] .main{
  min-height:calc(100vh - 20rem);
  background:
    linear-gradient(rgba(234,245,253,.75),rgba(234,245,253,.75)),
    url('../assets/silver-ice-home-city-sky-v1.png') right top / 200% 100% no-repeat;
}
.home-hub>.home-primary-grid{order:1}
.home-hub>.home-showcase{order:2}
.home-hub>.home-primary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-primary-grid>.home-card{min-height:220px;padding:18px}
.home-primary-grid .home-card-head{margin-bottom:14px}
.home-events-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.home-events-list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #d8e6ef;font-size:14px}
.home-events-list i{width:20px;color:#6a9ebf;text-align:center}
.home-events-list strong{font-weight:500}
.home-events-list li>span{margin-left:auto;color:#607b8e;font-size:12px;white-space:nowrap}
.home-ranking-list{display:grid;gap:0;list-style:none;margin:0;padding:0}
.home-ranking-list li{display:grid;grid-template-columns:28px minmax(0,1fr)auto;align-items:center;gap:8px;min-height:25px;border-bottom:1px solid #d8e6ef;color:#294b66;font-size:13px}
.home-ranking-position{color:#6a9ebf;font:600 12px/1 'Segoe UI',sans-serif;font-variant-numeric:tabular-nums}
.home-ranking-name{overflow:hidden;color:#5b778d;text-overflow:ellipsis;white-space:nowrap}
.home-ranking-value{color:#7892a4;font-variant-numeric:tabular-nums}
.home-ranking-status{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:#647f94;font-size:12px}
.home-ranking-status i{color:#6a9ebf}
.home-server-stats .home-card-head{margin-bottom:8px}
.server-stats-list{display:grid;gap:0;margin:0}
.server-stats-list>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:baseline;gap:8px;padding:5px 0;border-bottom:1px solid #d8e6ef;font-size:12px;line-height:1.25}
.server-stats-list dt{color:#52748c}
.server-stats-list dd{margin:0;color:#294b66;font-weight:600;text-align:right}
.server-stats-guides{margin:auto 0 0;padding:12px 0 0;color:#52748c;font-size:12px;line-height:1.35}
.server-stats-guides>a{color:#356b91;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.home-community-copy{margin:0 0 16px;color:#597185;font-size:13px;line-height:1.45}
.community-shortcuts{display:grid;gap:12px;margin:auto 0}
.community-shortcut{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:64px;padding:10px 12px;border:1px solid #c8dce9;border-radius:7px;background:#f7fbfe;color:#294b66;text-decoration:none}
.community-shortcut>i:first-child{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e3f1fa;font-size:19px}
.community-shortcut span{display:grid;gap:2px;min-width:0}
.community-shortcut strong{font-size:14px;font-weight:600}
.community-shortcut small{color:#638095;font-size:12px}
.community-shortcut>i:last-child{color:#719bb8}
.community-shortcut-discord>i:first-child{color:#6476d8}
.community-shortcut-facebook>i:first-child{color:#4267a9}
.community-shortcut:hover{background:#eef7fd;border-color:#93bcd5}
.home-showcase{overflow:hidden;position:relative;border:1px solid #96c5e2;border-radius:9px;background:#071d31;box-shadow:inset 0 0 0 3px #ceeaff22;color:#edf9ff}
.home-slide-stage{position:relative;min-height:310px}
.home-slide{position:relative;min-height:310px;display:flex;align-items:center;isolation:isolate}
.home-showcase [hidden]{display:none!important}
.home-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;z-index:-2}
.home-slide::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#031424f5 0%,#041c31c9 42%,#041c3122 85%)}
.home-slide-copy{width:min(70%,700px);padding:36px 42px}
.home-slide-copy>span{font:600 12px/1.4 'Segoe UI',sans-serif;letter-spacing:.16em;color:#acdafa}
.home-slide-copy h2{margin:12px 0;font:500 clamp(25px,3.1cqw,40px)/1.15 Georgia,serif;color:#f1faff;text-shadow:0 2px 5px #020d1c}
.home-slide-copy p{margin:0 0 24px;font-size:16px;line-height:1.6;color:#d1e6f3}
.home-slide-copy>a{display:inline-flex;align-items:center;gap:22px;min-height:44px;padding:9px 17px;border:1px solid #99cdec;background:#0e3351ba;border-radius:2px;color:#edfaff;font-size:14px}
.home-slide-copy>a:hover{background:#20597b}
.home-slide-controls{display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 14px;background:#081d30;border-top:1px solid #87b6d366}
.home-slide-controls button{display:grid;place-items:center;width:44px;min-height:44px;border:0;border-radius:3px;background:transparent;color:#c5e6fa;font-size:20px;cursor:pointer}
.home-slide-controls button:hover{background:#204661;color:#fff}
.home-slide-controls>span{min-width:42px;text-align:center;font:500 13px 'Segoe UI',sans-serif;color:#cae5f7}
.home-slide-dots{display:flex;margin-left:auto}
.home-slide-dots button::before{content:'';width:7px;height:7px;transform:rotate(45deg);border:1px solid #a7d4ef;background:transparent}
.home-slide-dots button[aria-pressed="true"]::before{background:#c3efff;box-shadow:0 0 8px #9adcff}
.home-showcase :focus-visible{outline:2px solid #e2f7ff;outline-offset:-3px}
@media(max-width:720px){.home-hub{gap:16px}.home-slide-stage,.home-slide{min-height:300px}.home-slide-copy{width:100%;padding:28px 24px}.home-slide-copy h2{font-size:28px}.home-slide::before{background:linear-gradient(90deg,#031424eb,#041c3199)}.home-slide-controls{gap:2px;padding-inline:6px}.home-slide-dots button{width:34px}.home-primary-grid>.home-card{min-height:210px}}

/* Logo center: 3.35% + half its 33.91% width. */
.hero{--brand-center:20.305%;--brand-width:33.91%;--logo-top:max(46px,5cqw);--hero-group-drop:clamp(12px,2cqw,28px)}
.hero :is(.hero-brand-logo,.hero-orb-hub,.hero-countdown){translate:0 var(--hero-group-drop)}
.hero>.hero-image{aspect-ratio:2.25}
/* Replace only the baked lettering area; all other banner pixels remain original. */
.hero-logo-repair{position:absolute;left:2cqw;top:10cqw;width:36.5cqw;height:7.8cqw;z-index:0;pointer-events:none;background:url('../assets/grand-mu-hero-logo-clear-v1.png') -2cqw -10cqw / 100cqw auto no-repeat;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(transparent,#000 10%,#000 90%,transparent);mask-composite:intersect}
/* Original lettering width: 567/1672 = 33.91%; foreground width is exactly 110%. */
.hero .hero-brand-logo{position:absolute;left:var(--brand-center);top:var(--logo-top);width:calc(var(--brand-width) * 1.1);aspect-ratio:567/100;transform:translateX(-50%);overflow:hidden;z-index:5;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 2px #102f4c66)}
.hero-brand-logo>img{position:absolute;left:calc(-36 / 1564 * 100%);top:calc(-296 / 280 * 100%);width:calc(1619 / 1564 * 100%);height:calc(972 / 280 * 100%);max-width:none;object-fit:fill;mask-image:url('../assets/grand-mu-foreground-logo-v1.png');mask-mode:luminance;mask-size:100% 100%;mask-repeat:no-repeat}
.hero .hero-countdown{left:var(--brand-center);top:calc(var(--logo-top) + 6.58cqw + clamp(8px,.8cqw,14px));width:var(--brand-width);transform:translateX(-50%)}
/* Keep the existing three-orb action group together at the banner boundary. */
.hero .hero-orb-hub{--orb-center-width:min(187.2px,11.69cqw);--orb-height:min(264.1px,16.493cqw);--online-size:min(224.64px,14.028cqw);left:50%;top:100%;width:min(580px,46cqw);transform:translate(-50%,-66.667%)}
.hero-orb-hub .shortcut-orb-label{font-size:clamp(12px,1.1cqw,16px);gap:4px}
/* One third of the ornament group extends below the banner; keep the first content row clear. */
.hero:has(.harbor-online-stack)::after{display:none}
.wrap>.hero+.main{padding-top:calc(var(--orb-height) / 3 + clamp(30px,3cqw,45px))}
body[data-route="home"] .wrap>.hero+.main{margin:0;padding-top:calc(var(--orb-height) / 3 + clamp(30px,3cqw,45px));padding-right:0;padding-bottom:0;padding-left:0;border-radius:0 0 18px 18px}
body[data-route="home"] .main>.content{margin:0;padding:0}
/* Preserve the former slideshow slot so News/Events do not move.
   Lower the artwork's top inside this slot and reuse the former control-bar area. */
.home-hub>.home-showcase{--slide-original-height:max(232.5px,calc((93.75cqw - 12px) * 820 / 1920));--slide-offset:max(32px,3cqw);--slide-old-controls:39px;width:93.75%;height:calc(var(--slide-original-height) + 12px + var(--slide-old-controls));margin:0 auto;padding:0;border:0;background:none;box-shadow:none;overflow:visible;isolation:isolate;z-index:3;transform:translateY(var(--slide-offset))}
.home-slide-picture{position:relative;padding:5px;border:1px solid #c1e8fa;border-radius:12px;background:#12324c;box-shadow:0 5px 18px #537a9733}
.home-slide-picture::after{content:'';position:absolute;inset:-12% -4.6%;z-index:3;pointer-events:none;background:url('../assets/silver-ice-slideshow-orb-frame-v1.png') center/100% 100% no-repeat;mask-image:url('../assets/silver-ice-slideshow-orb-frame-v1.png');mask-mode:luminance;mask-size:100% 100%;mask-repeat:no-repeat}
.home-hub>.home-primary-grid{margin:0 30px;transform:translateY(max(12px,1.5cqw))}
/* Keep the same composition on narrow screens, with enough scale and clearance to avoid overlap. */
@media(max-width:720px){
  .hero>.hero-image{aspect-ratio:16/9}
  .hero{--brand-center:28%;--brand-width:43%;--logo-top:4.5cqw;--hero-group-drop:0px}
  .hero .hero-brand-logo{left:var(--brand-center);top:var(--logo-top);filter:drop-shadow(0 2px 2px #102f4cdd) drop-shadow(0 0 5px #06101db3)}
  .hero .hero-countdown{position:absolute;left:var(--brand-center);top:calc(var(--logo-top) + 8.35cqw + 8px);width:var(--brand-width);margin:0;padding:0;transform:translateX(-50%)}
  .hero .hero-orb-hub{position:absolute;left:50%;top:100%;width:100%;margin:0;--orb-center-width:22.96875cqw;--orb-height:32.4cqw;--online-size:30.625cqw;transform:translate(-50%,-66.667%)}
  .hero-orb-hub .shortcut-orb-label{font-size:12px}
  .hero-countdown .ice-time-block strong{font-size:clamp(14px,4cqw,24px)}
  .hero-countdown .ice-time-block>span{font-size:12px}
  .hero-countdown .ice-time-block>span::after{content:none}
  body[data-route="home"] .wrap>.hero+.main{padding-top:calc(var(--orb-height) / 3 + 18px)}
  .home-hub>.home-primary-grid{grid-template-columns:1fr}
  .home-hub>.home-primary-grid{margin:0 16px 20px}
}

/* Approved opening and class-renewal slides: retain complete artwork and its text. */
.home-slide-stage{display:grid;aspect-ratio:1920/820;min-height:232.5px;border-radius:7px 7px 0 0;overflow:hidden}
.home-slide{grid-area:1/1;min-width:0;min-height:232.5px}
.home-slide--artwork{min-height:0;background:#1760a2}
.home-slide--artwork::before{content:none}
.home-slide-artwork{display:block;width:100%;height:100%;min-width:0;min-height:0}
.home-slide-artwork>img{display:block;width:100%;height:100%;object-fit:contain}
.home-showcase .home-slide-copy{padding:27px 31.5px}
.home-showcase .home-slide-copy h2{font-size:clamp(19px,2.325cqw,30px);margin:9px 0}
.home-showcase .home-slide-copy p{font-size:12px;margin-bottom:18px}
.home-showcase .home-slide-copy>a{font-size:12px;padding:7px 13px;gap:16px}
.home-showcase .home-slide-controls{border-radius:0 0 7px 7px;flex-wrap:wrap;gap:6px;min-height:39px;padding:3px 10px}
.home-showcase .home-slide-controls button{width:33px;min-height:33px;font-size:15px}
.home-showcase .home-slide-controls>span{min-width:32px;font-size:12px}
@media(max-width:720px){
  .home-slide-stage,.home-slide{min-height:225px}
  .home-slide--artwork{min-height:0}
  .home-showcase .home-slide-copy{padding:21px 18px}
  .home-showcase .home-slide-copy h2{font-size:21px}
  .home-showcase .home-slide-controls{padding:3px 4px;gap:2px}
  .home-showcase .home-slide-controls button{min-height:44px}
}

/* Free-standing controls share the same silver, gold and blue-crystal artwork. */
.home-showcase .home-slide-stage{height:calc(var(--slide-original-height) - var(--slide-offset));min-height:0;aspect-ratio:auto;border-radius:7px}
.home-showcase .home-slide{min-height:0;overflow:hidden}
.home-showcase .home-slide-copy{max-height:100%;overflow:auto}
.home-showcase .home-slide-controls{position:absolute;top:calc(var(--slide-original-height) - var(--slide-offset) + 32px);left:50%;transform:translateX(-50%);display:grid;grid-template-columns:44px auto 44px;align-items:center;gap:10px;width:max-content;min-height:44px;padding:0;border:0;border-radius:0;background:none;z-index:4}
.home-showcase .home-slide-dots{display:flex;gap:6px;margin:0}
.home-showcase .home-slide-controls button,.home-showcase .home-slide-arrow{display:grid;place-items:center;position:relative;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:#eafaff;text-shadow:none;font-size:17px;cursor:pointer;filter:drop-shadow(0 2px 2px #23496b70)}
.home-showcase .home-slide-controls button::after{content:none}
.home-showcase .home-slide-dots button::before{content:'';width:32px;height:40px;transform:none;border:0;background:url('../assets/silver-ice-control-crystal-v1.svg') center/contain no-repeat;box-shadow:none;opacity:.62;filter:saturate(.55)}
.home-showcase .home-slide-dots button[aria-pressed="true"]::before{background:url('../assets/silver-ice-control-crystal-v1.svg') center/contain no-repeat;box-shadow:none;opacity:1;filter:drop-shadow(0 0 5px #64c9ff);transform:scale(1.12)}
.home-showcase [data-slide-pause] i{display:block;width:44px;height:44px;background:center/contain no-repeat}
.home-showcase [data-slide-pause] i::before{content:none}
.home-showcase [data-slide-pause] .fa-play{background-image:url('../assets/silver-ice-control-play-v1.svg')}
.home-showcase [data-slide-pause] .fa-pause{background-image:url('../assets/silver-ice-control-pause-v1.svg')}
.home-showcase .home-slide-controls>span{min-width:44px;color:#315773;text-shadow:0 1px 0 #fff;font-size:12px}
.home-showcase .home-slide-arrow{position:absolute;top:calc((var(--slide-original-height) - var(--slide-offset) + 12px) / 2);transform:translateY(-50%);width:64px;height:80px;font-size:52px;z-index:4}
.home-showcase .home-slide-arrow i{display:none}
.home-showcase .home-slide-arrow::after{content:'';position:absolute;inset:0;background:url('../assets/silver-ice-control-arrow-v1.svg') center/contain no-repeat;pointer-events:none}
.home-showcase .home-slide-arrow--prev::after{transform:scaleX(-1)}
.home-slide-arrow--prev{right:calc(100% + 18px)}
.home-slide-arrow--next{left:calc(100% + 18px)}
.home-showcase :is(.home-slide-controls button,.home-slide-arrow):hover{background:none;box-shadow:none;filter:brightness(1.15) drop-shadow(0 0 5px #6cbde8)}
.home-showcase :is(.home-slide-controls button,.home-slide-arrow):focus-visible{outline:3px solid #367ead;outline-offset:7px}
@media(max-width:720px){
 .home-hub>.home-showcase{--slide-original-height:max(225px,calc((93.75cqw - 12px) * 820 / 1920));--slide-old-controls:50px}
 .home-showcase .home-slide-arrow{width:44px;height:64px;font-size:40px}
 .home-slide-arrow--prev{right:calc(100% - 12px)}
 .home-slide-arrow--next{left:calc(100% - 12px)}
 .home-showcase .home-slide-controls{gap:5px}
 .home-showcase .home-slide-dots{gap:3px}
}
@container(max-width:388px){.home-hub>.home-showcase{--slide-old-controls:96px}}

.community-shortcut-youtube>i:first-child{color:#cc2f2f}
.community-shortcut-tiktok>i:first-child{color:#111827}

.home-primary-grid>.home-community{grid-column:auto}

.home-primary-grid>.home-discord-widget{grid-column:auto;display:flex;flex-direction:column}
.home-discord-widget-frame{display:block;width:100%;min-height:320px;flex:1;border:0;border-radius:6px;background:#202225}
@media(max-width:720px){.home-discord-widget-frame{min-height:360px}}

/* Home ranking: larger player portraits and readable progression. */
.home-ranking-list{height:288px;overflow-x:hidden;overflow-y:auto;padding-right:5px;scrollbar-width:thin;scrollbar-color:#7faeca #e9f4fb}
.home-ranking-list:focus-visible{outline:2px solid #6fa8cc;outline-offset:3px}
.home-ranking-list::-webkit-scrollbar{width:7px}
.home-ranking-list::-webkit-scrollbar-track{background:#e9f4fb;border-radius:999px}
.home-ranking-list::-webkit-scrollbar-thumb{background:#7faeca;border-radius:999px}
.home-ranking-list li.has-ranking-avatar{grid-template-columns:30px 36px minmax(0,1fr) auto;min-height:48px;gap:8px}
.home-ranking-avatar{width:36px;height:36px}
.home-ranking-position{font-size:18px;line-height:1}
.home-ranking-name{font-size:19px;line-height:1.05}
.home-ranking-value{display:flex;align-items:baseline;justify-self:end;gap:1px;white-space:nowrap;font-variant-numeric:tabular-nums}
.home-ranking-reset{color:#6a9ebf;font:600 16px/1 'Segoe UI',sans-serif}
.home-ranking-level{color:#294b66;font:600 19px/1 'Segoe UI',sans-serif}
.home-ranking-master{align-self:flex-start;transform:translateY(-5px);color:#b14343;font:700 11px/1 'Segoe UI',sans-serif}
@media(max-width:720px){.home-ranking-list{height:300px}.home-ranking-list li.has-ranking-avatar{grid-template-columns:30px 36px minmax(0,1fr) auto}}

/* Server Stats typography. */
.home-server-stats,.home-server-stats :is(h2,dt,dd,p,span,a){font-weight:700;text-transform:uppercase}

/* Center both card titles and echo the Grand MU silver-blue lettering. */
.home-primary-grid :is(.home-ranking,.home-server-stats) .home-card-head{position:relative;align-items:center;justify-content:center;min-height:32px}
.home-primary-grid :is(.home-ranking,.home-server-stats) .home-card-head h2{margin:0;text-align:center;font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:.08em;background:linear-gradient(180deg,#234e73 0%,#d7edf9 28%,#679dc4 48%,#19466b 72%,#a7cde5 100%);-webkit-background-clip:text;background-clip:text;color:#244c70;-webkit-text-fill-color:transparent;-webkit-text-stroke:.35px #244c70;filter:drop-shadow(0 1px 1px #163b59aa)}
.home-ranking .home-card-head>a{position:absolute;right:0;top:50%;transform:translateY(-50%)}

/* Raise the card titles above the frame detail at a lighter, larger weight. */
.home-primary-grid :is(.home-ranking,.home-server-stats) .home-card-head h2{position:relative;z-index:3;font-size:25px;font-weight:400;-webkit-text-stroke:.2px #244c70;filter:drop-shadow(0 2px 2px #163b59b3) drop-shadow(0 0 2px #c9e9ff)}

/* Solid silver card titles. */
.home-primary-grid :is(.home-ranking,.home-server-stats) .home-card-head h2{background:none;color:#8999a5;-webkit-text-fill-color:#8999a5;-webkit-text-stroke:.25px #536979;filter:drop-shadow(0 1px 1px #24415e99)}
