/* Yugimon V80 — Home only: faithful composition of seven individually approved assets.
   All four items remain actual, focusable buttons; styling never replaces their click handlers. */
.yg-auth-gate[data-view="home"]{
  --yg-v80-logo-width: min(520px, 47vw);
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow: auto;
  padding: 0 !important;
  background: #0c3060 !important;
  isolation: isolate;
}
.yg-auth-gate[data-view="home"]::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/visual-v80/home-pc.webp") center center / cover no-repeat !important;
  transform: none !important;
  animation: none !important;
}
.yg-auth-gate[data-view="home"]::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #081b4500 0%, #0a255007 50%, #08173735 100%) !important;
  animation: none !important;
}
.yg-auth-gate[data-view="home"] .yg-auth-wrap {
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: clamp(15px, 2.3vh, 32px) 18px clamp(20px, 3vh, 34px) !important;
  gap: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: space-between !important;
}
.yg-auth-gate[data-view="home"] .yg-auth-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--yg-v80-logo-width) !important;
  height: clamp(185px, 31vh, 305px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
  text-shadow: none !important;
}
.yg-auth-gate[data-view="home"] .yg-auth-top::before{ display: none !important }
.yg-auth-gate[data-view="home"] .yg-auth-top b{
  background: url("/visual-v80/yugimon-official-logo.webp") center / contain no-repeat !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  filter: drop-shadow(0px 6px 13px #06192e99) !important;
}
.yg-auth-gate[data-view="home"] .yg-auth-top b span,.yg-auth-gate[data-view="home"] .yg-auth-top small {display:none !important}
.yg-auth-gate[data-view="home"] .yg-auth-card,
.yg-auth-gate[data-view="home"] #ygAuthContent{
  max-width: none !important;
  width: min(470px, 88vw) !important;
  margin: auto auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  background: none !important;
  animation: none !important;
}
.yg-auth-gate[data-view="home"] #ygAuthContent::before{ display:none !important }
.yg-auth-gate[data-view="home"] .yg-home-buttons{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:center !important;
  gap: clamp(2px, .95vh, 12px) !important;
  width:100% !important;
  padding:0 !important;
}
.yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button{
  flex:none !important;
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:clamp(62px, 9vh, 86px) !important;
  min-height:0 !important;
  max-height:none !important;
  background-color:transparent !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-size:contain !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  font-size:0 !important;
  color:transparent !important;
  padding:0 !important;
  margin:0 !important;
  outline-offset:2px;
  cursor:pointer;
  filter:drop-shadow(0px 4px 5px #05111b6e) !important;
  transition:transform .14s ease,filter .14s ease !important;
}
.yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button *,
.yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button span {
  font-size:0 !important;
  color:transparent !important;
}
.yg-auth-gate[data-view="home"] #ygHomeLogin{background-image:url('/visual-v80/home-login.webp') !important}
.yg-auth-gate[data-view="home"] #ygHomeRegister{background-image:url('/visual-v80/home-register.webp') !important}
.yg-auth-gate[data-view="home"] #ygHomeGuest{background-image:url('/visual-v80/home-guest.webp') !important}
.yg-auth-gate[data-view="home"] .yg-home-buttons button[disabled]{
  background-image:url('/visual-v80/home-story.webp') !important;
  opacity:.8 !important;
  cursor:not-allowed !important;
}
.yg-auth-gate[data-view="home"] .yg-home-buttons button:hover:not(:disabled){
  transform:translateY(-3px) !important;
  filter:brightness(1.13) drop-shadow(0px 5px 9px #1476c2a6) !important;
}
.yg-auth-gate[data-view="home"] .yg-home-buttons button:active:not(:disabled){
  transform:translateY(2px) scale(.985) !important;
  filter:brightness(.90) !important;
}
.yg-auth-gate[data-view="home"] .yg-home-buttons button:focus-visible{
  outline:3px solid #ffdf88 !important;
  border-radius:12px !important;
}
@media(max-width:700px){
 .yg-auth-gate[data-view="home"]{ --yg-v80-logo-width:min(350px, 91vw) }
 .yg-auth-gate[data-view="home"]::before {
   background-image:url('/visual-v80/home-mobile.webp') !important;
   background-position:center center !important;
   background-size:cover !important;
 }
 .yg-auth-gate[data-view="home"] .yg-auth-wrap{
   min-height:100dvh !important;
   padding:clamp(16px,3.5vh,40px) 12px clamp(13px,4.1vh,40px) !important;
   justify-content:space-between !important;
 }
 .yg-auth-gate[data-view="home"] .yg-auth-top{
   height:clamp(170px, 24vh, 225px) !important;
 }
 .yg-auth-gate[data-view="home"] #ygAuthContent{
   width:min(420px,91vw) !important;
   margin:auto auto 0 !important;
 }
 .yg-auth-gate[data-view="home"] .yg-home-buttons{gap:clamp(1px,.6vh,7px) !important}
 .yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button{
   height:clamp(63px, 8.7vh, 82px) !important;
 }
}
@media(max-width:380px) and (max-height:720px){
 .yg-auth-gate[data-view="home"] .yg-auth-top {height:140px !important}
 .yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button {height:59px !important}
}
@media(prefers-reduced-motion:reduce){
 .yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button{transition:none !important}
}

/* Final V80 priority: never let legacy V79 art override the approved locked button. */
html body .yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button.secondary[disabled] {
  background-image: url('/visual-v80/home-story.webp') !important;
  background-size: contain !important;
  min-height: 0 !important;
  opacity: .83 !important;
}

/* Higher specificity than inherited V79 locked-button style. */
.yg-auth-gate[data-view="home"] .yg-home-buttons .yg-auth-button[disabled]{background-image:url('/visual-v80/home-story.webp')!important;opacity:.82!important;}
