/* M1-MAFIA approved cinematic home shortcuts — 2026-11-05.
   Scoped to homepage only; no global page/banner/header changes. */
body[data-page="home"] #page-main.hero.hero-slider{isolation:isolate}
body[data-page="home"] #m1-home-feature-shortcuts{
 position:absolute;left:50%;bottom:clamp(15px,3vh,35px);
 width:min(1500px,calc(100% - 52px));max-width:calc(100% - 52px);transform:translateX(-50%);
 z-index:8;box-sizing:border-box;padding:8px;border:1px solid rgba(174,123,61,.43);
 border-radius:21px;background:linear-gradient(180deg,rgba(17,14,12,.32),rgba(9,9,10,.7));
 box-shadow:0 12px 32px rgba(0,0,0,.28);
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-row{
 display:grid;grid-template-columns:repeat(10,minmax(0,1fr));
 justify-content:center;gap:clamp(3px,.28vw,5px);
 min-width:0;direction:rtl;
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card{
 box-sizing:border-box;position:relative;isolation:isolate;min-width:0;
 --m1-feature-tint:190,139,68;
 width:100%;height:clamp(111px,7.82vw,140px);justify-self:center;padding:6px 4px 7px;
 display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
 gap:2px;overflow:hidden;border-radius:12px;
 border:1px solid rgba(232,200,157,.37);
 /* 20% more glass transparency than the previous 30%-opacity finish (30% -> 24%). */
 background:linear-gradient(145deg,rgba(140,135,125,.24),rgba(32,34,38,.24) 68%,rgba(9,10,11,.24));
 -webkit-backdrop-filter:blur(19px) saturate(135%);
 backdrop-filter:blur(19px) saturate(135%);
 color:#fff0d5;text-align:center;text-decoration:none;
 box-shadow:inset 0 1px 0 rgba(255,245,225,.19),0 7px 16px rgba(0,0,0,.3);
 transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-illustration{
 display:grid;place-items:center;min-height:0;flex:1 1 auto;
 width:100%;max-height:89px;pointer-events:none;
 filter:drop-shadow(0 5px 8px rgba(0,0,0,.4));
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-card-art{
 display:block;width:min(100%,107px);height:min(100%,80px);
 overflow:visible;filter:drop-shadow(0 1px 5px rgba(229,170,87,.14));
}
body[data-page="home"] #m1-home-feature-shortcuts strong{
 display:block;font:700 clamp(9px,.79vw,12px)/1.5 Tahoma,"Segoe UI",Arial,sans-serif;
 white-space:normal;overflow-wrap:anywhere;color:#f9e7c8;
}
body[data-page="home"] #m1-home-feature-shortcuts small{
 display:block;color:#c7a474;letter-spacing:.105em;
 font:500 clamp(7px,.54vw,8.5px)/1.15 Arial,sans-serif;
 white-space:nowrap;
}
/* Each card lights up in its own controlled color ONLY on hover/focus. */
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="roles"]{--m1-feature-tint:157,103,56}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="scenarios"]{--m1-feature-tint:157,94,64}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="division"]{--m1-feature-tint:231,166,69}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="host"]{--m1-feature-tint:180,138,79}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="live"]{--m1-feature-tint:188,51,72}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="cafes"]{--m1-feature-tint:149,107,69}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="shop"]{--m1-feature-tint:155,142,72}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="ranking"]{--m1-feature-tint:134,107,186}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="tournament"]{--m1-feature-tint:171,112,61}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card[data-m1-home-feature="training"]{--m1-feature-tint:85,139,166}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card:is(:hover,:focus-visible){
 transform:translateY(-3px);
 border-color:rgba(var(--m1-feature-tint),.95);
 background:linear-gradient(155deg,rgba(var(--m1-feature-tint),.49),rgba(var(--m1-feature-tint),.2) 48%,rgba(16,18,21,.72));
 box-shadow:inset 0 1px 0 rgba(255,247,233,.3),0 8px 19px rgba(0,0,0,.4),0 0 20px rgba(var(--m1-feature-tint),.36);
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card:focus-visible{
 outline:2px solid #ffe0a8;outline-offset:3px;
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card.is-highlighted{
 border-color:rgba(242,194,112,.61);
 box-shadow:inset 0 0 0 1px rgba(255,221,156,.14),0 6px 14px rgba(0,0,0,.32);
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card.is-highlighted:is(:hover,:focus-visible){
 border-color:rgba(var(--m1-feature-tint),.95);
 background:linear-gradient(155deg,rgba(var(--m1-feature-tint),.49),rgba(var(--m1-feature-tint),.2) 48%,rgba(16,18,21,.72));
 box-shadow:inset 0 1px 0 rgba(255,247,233,.3),0 8px 19px rgba(0,0,0,.4),0 0 20px rgba(var(--m1-feature-tint),.36);
}
body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card.is-highlighted::after{
 content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
 box-shadow:inset 0 0 12px rgba(236,154,45,.09);
}
@media(max-width:1199px){
 body[data-page="home"] #page-main.hero.hero-slider{
  height:auto!important;overflow:visible!important;min-height:0!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts{
  position:relative;left:auto;bottom:auto;transform:none;
  width:min(calc(100% - 28px),100%);max-width:none;margin:14px auto 22px;
  padding:7px;overflow:hidden;
 }
 body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-row{
  display:flex!important;flex-wrap:nowrap;justify-content:flex-start;gap:5px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  scrollbar-width:thin;scrollbar-color:#8d6336 transparent;
  padding:4px 3px 8px;
 }
 body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card{
  flex:0 0 122px;width:122px;height:126px;scroll-snap-align:start;
 }
 body[data-page="home"] #m1-home-feature-shortcuts strong{font-size:11px}
 body[data-page="home"] #m1-home-feature-shortcuts small{font-size:8px}
}
@media(max-width:480px){
 body[data-page="home"] #m1-home-feature-shortcuts{width:calc(100% - 18px);margin:9px auto 18px;border-radius:14px}
 body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card{flex-basis:112px;width:112px;height:116px}
 body[data-page="home"] #m1-home-feature-shortcuts .m1-home-card-art{height:66px}
}
@media(prefers-reduced-motion:reduce){
 body[data-page="home"] #m1-home-feature-shortcuts .m1-home-feature-card{transition:none!important}
}

/* Keep the existing archive logo, heading and CTA entirely above the ten-card strip.
   This applies only to the homepage's ORIGINAL three-character banner; the
   Monopoly slide, global header, navigation, other pages and cards are untouched. */
@media(min-width:1200px){
 body[data-page="home"] #page-main.hero.hero-slider .hero-slide--archive .hero-content--archive{
  padding-top:clamp(20px,3vh,32px);
  padding-bottom:clamp(220px,29vh,290px);
 }
 body[data-page="home"] #page-main.hero.hero-slider .hero-slide--archive .hero-logo{
  width:min(100%,clamp(310px,23vw,390px));
  margin-bottom:clamp(10px,1.6vh,16px);
 }
 body[data-page="home"] #page-main.hero.hero-slider .hero-slide--archive .hero-title{
  margin-bottom:12px;
 }
 body[data-page="home"] #page-main.hero.hero-slider .hero-slide--archive .hero-subtitle{
  margin-bottom:clamp(12px,1.5vh,18px);
 }
}
/* Short desktop windows need a little scroll space rather than overlapping
   the call-to-action with the shortcut strip. Mobile keeps its current layout. */
@media(min-width:1200px) and (max-height:740px){
 body[data-page="home"] #page-main.hero.hero-slider,
 body[data-page="home"] #page-main.hero.hero-slider .hero-slider-shell,
 body[data-page="home"] #page-main.hero.hero-slider .hero-slides{
  min-height:690px;
 }
 body[data-page="home"] #page-main.hero.hero-slider .hero-slide--archive .hero-content--archive{
  min-height:690px;
 }
}

/* Homepage MOBILE ONLY: the ten existing shortcuts fold into one golden
   floating launcher. The hero, background, slider and desktop cards stay intact. */
body[data-page="home"] #m1-home-feature-launcher{display:none}
@media (max-width:760px){
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating{
  position:fixed!important;left:50%!important;right:auto!important;
  bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
  transform:translateX(-50%)!important;
  box-sizing:border-box;width:min(422px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  margin:0!important;padding:12px!important;
  border:1px solid rgba(220,172,104,.67)!important;
  border-radius:24px!important;
  background:linear-gradient(165deg,rgba(29,25,23,.97),rgba(10,11,13,.98))!important;
  /* On lower-end mobile GPUs, a 15px full-panel blur forced a costly repaint
     on every tap. Opaque charcoal keeps the approved black-and-gold look. */
  box-shadow:0 9px 24px rgba(0,0,0,.56),inset 0 1px 0 rgba(255,232,190,.12)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  z-index:50!important;overflow-x:hidden!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  max-height:calc(100dvh - 116px - env(safe-area-inset-bottom,0px));
  /* Immediate no-animation toggle: do not composite a blurred, animated
     10-card layer on every tap, especially on low-end Android browsers. */
  display:none!important;visibility:hidden;opacity:1;
  pointer-events:none;transition:none!important;animation:none!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating.is-open{
  display:block!important;visibility:visible;opacity:1;pointer-events:auto;
  transform:translateX(-50%)!important;transition:none!important;animation:none!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-row{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  justify-content:stretch!important;gap:8px!important;
  width:100%;min-width:0;padding:0!important;
  overflow:visible!important;scroll-snap-type:none!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-card{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-rows:auto auto;align-content:center;align-items:center;
  column-gap:8px;row-gap:1px;
  flex:none!important;width:100%!important;min-width:0!important;
  height:78px!important;min-height:78px;max-height:none;
  padding:8px 9px!important;scroll-snap-align:none;
  text-align:right;direction:rtl;border-radius:14px;
  background:linear-gradient(135deg,rgba(115,93,69,.24),rgba(19,20,23,.52));
  -webkit-backdrop-filter:none;backdrop-filter:none;
  transition:none!important;touch-action:manipulation;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-illustration{
  grid-column:1;grid-row:1/3;display:grid;place-items:center;
  width:42px!important;height:46px!important;
  max-height:46px!important;min-width:0;flex:none!important;
  filter:none!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-card-art{
  width:42px!important;height:43px!important;max-width:100%;
  filter:none!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating strong{
  grid-column:2;grid-row:1;font-size:11.5px!important;
  line-height:1.4!important;text-align:right;white-space:normal;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating small{
  grid-column:2;grid-row:2;
  font-size:8px!important;letter-spacing:.025em!important;
  line-height:1.25;text-align:right;white-space:normal;
 }
 body[data-page="home"] #m1-home-feature-launcher{
  box-sizing:border-box;position:fixed;display:grid;
  /* Keep the trigger beside the viewport edge, clear of centered hero CTAs. */
  left:calc(16px + env(safe-area-inset-left,0px));right:auto;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  transform:none;z-index:51;
  place-items:center;width:64px;height:64px;min-width:64px;min-height:64px;
  padding:13px;border-radius:50%;
  border:1px solid #d7a762;
  background:radial-gradient(circle at 28% 20%,#86633a 0%,#42301f 48%,#1c1b1a 100%);
  color:#f1c98a;box-shadow:0 10px 25px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,231,188,.45),0 0 17px rgba(201,151,76,.24);
  cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  user-select:none;-webkit-user-select:none;
 }
 body[data-page="home"] #m1-home-feature-launcher.is-open{
  border-color:#ffe0a5;box-shadow:0 4px 12px rgba(0,0,0,.48),
    inset 0 0 6px rgba(250,206,140,.14);
 }
 body[data-page="home"] #m1-home-feature-launcher:focus-visible{
  outline:2px solid #ffe6af;outline-offset:4px;
 }
 body[data-page="home"] .m1-feature-launcher-grid{
  display:grid;grid-template-columns:repeat(2,13px);
  grid-template-rows:repeat(2,13px);gap:4px;
 }
 body[data-page="home"] .m1-feature-launcher-grid i{
  display:block;border:2px solid #f1ca8d;
  border-radius:4px;box-shadow:0 0 6px rgba(242,194,112,.24);
 }
}
@media(max-width:350px){
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-card{
  grid-template-columns:34px minmax(0,1fr);column-gap:5px;padding:7px 6px!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-illustration{
  width:34px!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-card-art{
  width:34px!important;
 }
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating strong{font-size:10.5px!important}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating{transition:none!important}
}

/* Pointer/keyboard feedback for the floating shortcut tiles only. */
@media(max-width:760px){
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-card:is(:hover,:focus-visible){
  border-color:rgba(var(--m1-feature-tint),.95)!important;
  background:linear-gradient(155deg,rgba(var(--m1-feature-tint),.46),rgba(18,19,21,.8))!important;
  box-shadow:inset 0 1px 0 rgba(255,247,233,.23),0 0 15px rgba(var(--m1-feature-tint),.23)!important;
 }
}

/* Avoid mobile hover sticking after touch and costly card glow repaints. */
@media(max-width:760px) and (hover:none){
 body[data-page="home"] #m1-home-feature-shortcuts.is-floating .m1-home-feature-card:hover{
  transform:none!important;filter:none!important;box-shadow:none!important;
 }
 body[data-page="home"] #m1-home-feature-launcher{
  box-shadow:0 4px 12px rgba(0,0,0,.45)!important;
 }
}

