/* AncientMU Unified Home V6 — review-only polish.
   Scope: HOME PAGE ONLY. Rendered cache, schedule, ranking tabs, auth, and game logic untouched.
   Loaded after AncientMU Final, Unified and Navigation V5. */
.am-final.am-home {
  --am-h-gold:#edc28c;
  --am-h-amber:#ba8358;
  --am-h-line:rgba(173,104,72,.48);
  --am-h-glass:rgba(12,10,14,.95);
  background-image:
    radial-gradient(ellipse 65% 580px at 50% 470px,rgba(93,22,22,.23),transparent 85%),
    linear-gradient(180deg,#0a080a 0%,#100a0c 60%,#080709 100%);
}
.am-final.am-home .am-hero {
  height:426px;
  border-bottom:1px solid rgba(186,96,64,.75);
  background-position:center 46%;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}
.am-final.am-home .am-hero:before {background:
  radial-gradient(ellipse 340px 185px at 50% 44%,rgba(15,8,13,.44),transparent 78%),
  linear-gradient(0deg,#0b0709 0%,transparent 35%,rgba(9,4,8,.2) 100%);}
.am-final.am-home .am-hero-content{padding-bottom:28px}
.am-final.am-home .am-hero-logo{width:min(640px,68%);margin:auto 0 0;transform:translateY(2px)}
.am-final.am-home .am-hero-kicker{margin:0 0 20px;color:#f2c893;letter-spacing:8px;font-size:17px}
.am-final.am-home .am-hero-buttons{gap:13px;width:min(1010px,100%)}
.am-final.am-home .am-action{height:72px;border-color:rgba(196,139,97,.75);box-shadow:inset 0 1px rgba(255,218,163,.45),0 8px 20px rgba(0,0,0,.5)}
.am-final.am-home .am-action-copy strong{font-size:17px}
.am-final.am-home .am-action-copy small{font-size:9px;letter-spacing:.6px}
.am-final.am-home .am-home-overview {
  display:flex;align-items:end;justify-content:space-between;gap:15px;
  margin-top:30px;margin-bottom:14px;
  padding:0 2px 11px;border-bottom:1px solid var(--am-h-line);
}
.am-final.am-home .am-home-overview .am-home-eyebrow{
  margin:0 0 3px;font:700 10px/1.4 Inter,Arial,sans-serif;
  letter-spacing:3px;color:#d28d65;
}
.am-final.am-home .am-home-overview h1{
  margin:0;font:600 clamp(18px,2vw,26px)/1.3 Cinzel,Georgia,serif;
  color:#f2d09a;letter-spacing:.8px;text-shadow:0 2px 12px rgba(174,68,31,.17)
}
.am-final.am-home .am-home-overview .am-home-overview-note {
  margin:0 0 2px;color:#a99a93;font-size:11px;letter-spacing:.3px;text-align:right;
}
.am-final.am-home .am-home-grid {
  grid-template-columns:minmax(220px,295px) minmax(0,1.65fr) minmax(240px,295px);
  gap:16px;align-items:start;
}
.am-final.am-home .am-home-grid >.am-frame,
.am-final.am-home .am-news-panel {
  background:linear-gradient(160deg,#1b1115 0%,#100d12 22%,#0c0b0e 74%,#170e13 100%);
  border:1px solid rgba(154,86,63,.68);
  box-shadow:inset 0 1px rgba(244,186,115,.08),0 10px 32px rgba(0,0,0,.5);
  overflow:visible;
}
.am-final.am-home .am-card-head,.am-final.am-home .am-panel-head {
  height:61px;
  background:linear-gradient(90deg,rgba(91,38,34,.16),rgba(44,23,25,.38) 50%,rgba(91,38,34,.12));
  border-bottom:1px solid rgba(172,100,68,.46);
}
.am-final.am-home .am-card-head h2,.am-final.am-home .am-panel-head h2 {
  font:600 clamp(15px,1.22vw,18px)/1.2 Cinzel,Georgia,serif;
  letter-spacing:.65px;color:#f0cc95;
}
.am-final.am-home .am-panel-jewel{color:#dd9c68;text-shadow:0 0 12px rgba(225,84,43,.45)}
.am-final.am-home .am-card-head a,.am-final.am-home .am-panel-head >a {
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  font:600 9px/1.3 Inter,Arial,sans-serif;letter-spacing:.2px;color:#c9a181;
}
.am-final.am-home .am-status-body{padding:15px 14px 17px}
.am-final.am-home .am-status-line{min-height:42px;border-bottom-color:rgba(154,105,83,.2);padding-inline:8px}
.am-final.am-home .am-status-line i{color:#bc8c69}
.am-final.am-home .am-status-line strong{font-size:12px;color:#f0dec9}
.am-final.am-home .am-events-grid{padding:14px 14px 10px;gap:10px}
.am-final.am-home .am-event {
  height:96px;gap:10px;
  border-color:rgba(123,82,72,.5);
  background:linear-gradient(115deg,#1b1419,#100f13 75%);
  box-shadow:inset 0 0 0 1px rgba(240,182,128,.018);
}
.am-final.am-home .am-event:hover{border-color:#b87653;background:linear-gradient(115deg,#2c181c,#171116 75%)}
.am-final.am-home .am-event img{width:80px;height:94px;flex-basis:80px;filter:saturate(.87) contrast(1.07)}
.am-final.am-home .am-event-text strong{font-size:11px;color:#f4c38a;letter-spacing:.1px}
.am-final.am-home .am-event-text small{font-size:9px;color:#b29f97}
.am-final.am-home .am-event-countdown{font-size:17px!important;letter-spacing:.25px}
.am-final.am-home .am-event-arrow{margin-right:4px;font-size:24px;color:#ca7653}
.am-final.am-home .am-next-event{margin:13px 14px 0;background:linear-gradient(95deg,#431b1c,#211216 55%,#34151a);border-color:#8a4b3a;min-height:49px}
.am-final.am-home .am-events-note{color:#a79b97;margin:4px 14px 13px}
.am-final.am-home .am-rank-tabs{margin-top:14px;border-color:rgba(152,99,79,.36)}
.am-final.am-home .am-rank-tabs button{height:39px}
.am-final.am-home .am-rank-tabs button[aria-selected=true] {
  background:linear-gradient(#6c2924,#37191d);border-color:#ae6149;
  box-shadow:inset 0 1px rgba(255,194,137,.3);
}
.am-final.am-home .am-rank-link{
  margin-top:11px;border-color:#a65c41;
  background:linear-gradient(180deg,#682523,#32141b);
  font-size:11px;letter-spacing:.4px;
}
.am-final.am-home .am-rank-link:hover{background:linear-gradient(180deg,#81332c,#431d22)!important}
.am-final.am-home .am-home-promo{padding-top:22px}
.am-final.am-home .am-home-promo img {
  border-color:rgba(180,111,70,.62);
  box-shadow:0 0 0 2px rgba(28,14,15,.9),0 13px 35px rgba(0,0,0,.5);
}
.am-final.am-home .am-home-news{margin-top:25px}
.am-final.am-home .am-home-news .am-panel-head{justify-content:flex-start}
.am-final.am-home .am-news-list{padding:10px 17px}
.am-final.am-home .am-news-row{padding:16px 15px;min-height:54px;border-bottom-color:rgba(152,99,79,.29)}
.am-final.am-home .am-news-row:hover{background:rgba(118,48,41,.12)}
.am-final.am-home .am-news-row-title{color:#e3d1bf}
.am-final.am-home .am-news-panel{margin-bottom:46px}
/* Tablet: two panels above, top players across the full second row. */
@media(max-width:1180px){
 .am-final.am-home .am-home-grid {grid-template-columns:minmax(220px,.9fr) minmax(0,1.7fr);gap:15px}
 .am-final.am-home .am-home-grid>.am-rank-panel {grid-column:1/-1}
 .am-final.am-home .am-event-text strong{font-size:12px}
}
@media(max-width:760px){
 .am-final.am-home .am-hero{height:415px;background-position:42% center}
 .am-final.am-home .am-home-overview{margin-top:22px;align-items:flex-start}
 .am-final.am-home .am-home-grid{grid-template-columns:minmax(0,1fr);gap:15px}
 .am-final.am-home .am-home-grid>.am-rank-panel{grid-column:auto}
 .am-final.am-home .am-home-grid>.am-events-panel{order:1}
 .am-final.am-home .am-home-grid>.am-status-card{order:2}
 .am-final.am-home .am-home-grid>.am-rank-panel{order:3}
 .am-final.am-home .am-hero-buttons{gap:9px}
 .am-final.am-home .am-hero-logo{width:min(520px,87%)}
 .am-final.am-home .am-hero-kicker{letter-spacing:5px}
 .am-final.am-home .am-card-head h2,.am-final.am-home .am-panel-head h2{font-size:17px}
 .am-final.am-home .am-event-text strong{font-size:12px}
}
@media(max-width:520px){
 .am-final.am-home .am-hero{height:auto;min-height:460px}
 .am-final.am-home .am-hero-content{min-height:460px;padding:30px 0 18px}
 .am-final.am-home .am-hero-logo{margin:auto 0 0;width:min(400px,94%)}
 .am-final.am-home .am-hero-kicker{font-size:13px;letter-spacing:4px;margin:0 0 19px}
 .am-final.am-home .am-hero-buttons{grid-template-columns:1fr;width:min(390px,100%);gap:9px}
 .am-final.am-home .am-action{height:55px;clip-path:none;transform:none;border-radius:2px;justify-content:center}
 .am-final.am-home .am-action:before{clip-path:none}
 .am-final.am-home .am-action>*{transform:none}
 .am-final.am-home .am-action:hover{transform:translateY(-2px)}
 .am-final.am-home .am-action-copy strong{font-size:14px}
 .am-final.am-home .am-action-copy small{font-size:9px}
 .am-final.am-home .am-home-overview{display:block;margin-bottom:13px}
 .am-final.am-home .am-home-overview .am-home-overview-note{text-align:left;margin-top:6px}
 .am-final.am-home .am-events-grid{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 .am-final.am-home .am-event{height:83px}
 .am-final.am-home .am-event img{height:81px;width:80px;flex-basis:80px}
 .am-final.am-home .am-event-text strong{font-size:12px}
 .am-final.am-home .am-event-countdown{font-size:17px!important}
 .am-final.am-home .am-card-head a{font-size:9px;right:11px}
 .am-final.am-home .am-status-body{padding:8px 13px 14px}
 .am-final.am-home .am-home-promo{padding-top:15px}
 .am-final.am-home .am-home-promo img{min-height:105px;object-position:center}
 .am-final.am-home .am-news-list{padding:6px 8px}
 .am-final.am-home .am-news-row{gap:10px;padding:13px 8px}
 .am-final.am-home .am-news-row time{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .am-final.am-home .am-action{transition:none!important}
}

/* V6 review QA refinements */
@media(max-width:1150px){
 .am-final.am-home .am-menu-toggle .am-menu-bars{background:transparent!important;box-shadow:none!important}
}
.am-final.am-home .am-promo-mobile-title{display:none}
@media(max-width:520px){
 .am-final.am-home .am-events-panel .am-card-head h2{font-size:15px}
 .am-final.am-home .am-events-panel .am-card-head{
   height:auto;min-height:76px;flex-direction:column;justify-content:center;gap:5px;padding:10px 4px 6px;
 }
 .am-final.am-home .am-events-panel .am-card-head a{
   position:static!important;transform:none!important;
   margin:0;font-size:9px;line-height:1.1;
 }
 .am-final.am-home .am-home-promo{position:relative;isolation:isolate;overflow:hidden}
 .am-final.am-home .am-home-promo{background:#210c0e url('../img/ancientmu-hero.webp') center 46%/cover no-repeat}
 .am-final.am-home .am-home-promo img{opacity:0;object-position:center}
 .am-final.am-home .am-promo-mobile-title{
   position:absolute;inset:15px 0 0;display:flex;align-items:center;justify-content:center;
   flex-direction:column;pointer-events:none;text-align:center;
   background:linear-gradient(90deg,rgba(15,8,10,.25),rgba(12,7,9,.46),rgba(15,8,10,.22));
 }
 .am-final.am-home .am-promo-mobile-title small{
   font:700 11px/1.5 Cinzel,Georgia,serif;letter-spacing:3px;color:#f4c48a;
 }
 .am-final.am-home .am-promo-mobile-title strong{
   font:700 clamp(23px,7.4vw,33px)/1.3 Cinzel,Georgia,serif;
   color:#ffe0ac;text-shadow:0 3px 5px #000,0 0 14px rgba(158,40,21,.8);
   letter-spacing:1px;white-space:nowrap;
 }
}
