/* Ver.1.0.3: CSS order ONLY. Other game scripts keep their own DOM nodes and click handlers. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:14px !important;
  width:340px !important;
  min-width:0 !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a {
  box-sizing:border-box !important;
  flex-shrink:0 !important;
  width:100% !important;
  min-height:78px !important;
  border-radius:24px !important;
  padding:16px 18px !important;
  margin:0 !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  text-align:center !important;
  letter-spacing:.01em !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  z-index:1 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  border:3px solid #85b9ec !important;
  box-shadow:0 7px 16px rgba(55,91,143,.14),inset 0 1px 0 rgba(255,255,255,.7) !important;
  transition:transform .12s ease,box-shadow .12s ease !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button::before,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button::after,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a::before,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a::after {
  pointer-events:none !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button:hover,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a:hover {
  transform:translateY(-1px);
  box-shadow:0 9px 20px rgba(55,91,143,.19),inset 0 1px 0 rgba(255,255,255,.78) !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button:focus-visible,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a:focus-visible {
  outline:3px solid #183e76 !important;
  outline-offset:3px !important;
}
/* Stable display order, irrespective of game launch-button attachment order. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="grow"],
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-1 { order:1 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="collection"],
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-2 { order:2 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="gacha"],
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-3 { order:3 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #lvbt-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-4 { order:4 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvpq-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-5 { order:5 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-6 { order:6 !important; }
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msb-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-7 { order:7 !important; }

.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="grow"],
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="collection"] {
  background:linear-gradient(180deg,#fcfdff 0%,#e9f4ff 100%) !important;
  border-color:#77b5eb !important;
  color:#075a9d !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > [data-open="gacha"] {
  background:linear-gradient(180deg,#e4f5a5 0%,#c7e36f 100%) !important;
  border-color:#87c738 !important;
  color:#325600 !important;
}
/* Same exact paint on adjacent solo and pair buttons. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #lvbt-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvpq-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-4,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-5 {
  background:linear-gradient(105deg,#ffba79 0%,#ff7194 42%,#a349e1 100%) !important;
  border-color:#c16cf5 !important;
  color:#fff !important;
  text-shadow:0 1px 1px rgba(30,15,63,.22) !important;
}
/* Strong, vivid three-stop blue-purple gradient like the quest buttons. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-6 {
  background:linear-gradient(105deg,#59d8f4 0%,#3a8bee 35%,#505bda 68%,#8646d8 100%) !important;
  border-color:#5e90f1 !important;
  color:#fff !important;
  text-shadow:0 1px 1px rgba(17,44,98,.3) !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msb-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-7 {
  background:linear-gradient(105deg,#95e4fc 0%,#60b8ff 30%,#7785f2 70%,#9b5edb 100%) !important;
  border-color:#89b7ff !important;
  color:#fff !important;
  text-shadow:0 1px 1px rgba(25,44,89,.26) !important;
}
@media (max-width:1100px) {
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced { width:100% !important; }
}
@media (max-width:767px) {
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > button,
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > a {
    min-height:68px !important;
    font-size:18px !important;
    border-radius:20px !important;
    padding:14px 12px !important;
  }
}

/* Ver 1.0.4: fixed uniform dimensions; all seven buttons have the same box size. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced{
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  align-self:stretch !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(button,a){
  box-sizing:border-box !important;
  display:flex !important;
  flex:0 0 78px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:78px !important;
  min-height:78px !important;
  max-height:78px !important;
  margin:0 !important;
  padding:0 16px !important;
  border-radius:22px !important;
  font-size:20px !important;
  line-height:1.12 !important;
  transform:none;
}
@media(max-width:767px){
 .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(button,a){
   flex:0 0 65px !important;
   height:65px !important;
   min-height:65px !important;
   max-height:65px !important;
   font-size:17px !important;
   padding:0 10px !important;
   border-radius:18px !important;
 }
}


/* Ver.1.0.5: use ID-level specificity for consistent game button typography.
   Misakki Road's own stylesheet uses #msr-launch.msr-launch + !important,
   so ordinary >button rules could not override it. Avoid touching JS. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(
  [data-open="grow"],
  [data-open="collection"],
  [data-open="gacha"],
  #lvbt-launch,
  .lvpq-launch,
  #msr-launch,
  #msb-launch,
  .lvmp-position-1,.lvmp-position-2,.lvmp-position-3,
  .lvmp-position-4,.lvmp-position-5,.lvmp-position-6,.lvmp-position-7
) {
  font-size:22px !important;
  font-weight:900 !important;
  font-family:inherit !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  box-sizing:border-box !important;
  border-style:solid !important;
  border-width:3px !important;
  width:100% !important;
  height:78px !important;
  min-height:78px !important;
  max-height:78px !important;
  flex:0 0 78px !important;
  border-radius:22px !important;
  padding:0 12px !important;
  white-space:nowrap !important;
}
/* Road's own rules set a thin border; show the same 3px frame as others. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch.msr-launch,
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-6 {
  border:3px solid #718af5 !important;
  border-radius:22px !important;
  background:linear-gradient(105deg,#59d8f4 0%,#3a8bee 35%,#505bda 68%,#8646d8 100%) !important;
}
@media(max-width:767px) {
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(
    [data-open="grow"], [data-open="collection"], [data-open="gacha"],
    #lvbt-launch,.lvpq-launch,#msr-launch,#msb-launch,
    .lvmp-position-1,.lvmp-position-2,.lvmp-position-3,
    .lvmp-position-4,.lvmp-position-5,.lvmp-position-6,.lvmp-position-7
  ) {
    font-size:18px !important;
    height:65px !important;
    min-height:65px !important;
    max-height:65px !important;
    flex-basis:65px !important;
    border-radius:18px !important;
  }
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch.msr-launch,
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > .lvmp-position-6 {
    border-radius:18px !important;
  }
}


/* Ver.1.0.7: compact layout, visual dimensions ONLY. Keep all JS/click handlers unchanged.
   Smaller, equal height for seven buttons: 58px desktop / 54px small screens. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced {
  gap:8px !important;
}
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(
  [data-open="grow"], [data-open="collection"], [data-open="gacha"],
  #lvbt-launch, .lvpq-launch, #msr-launch, #msb-launch,
  .lvmp-position-1,.lvmp-position-2,.lvmp-position-3,
  .lvmp-position-4,.lvmp-position-5,.lvmp-position-6,.lvmp-position-7
) {
  box-sizing:border-box !important;
  flex:0 0 58px !important;
  height:58px !important;
  min-height:58px !important;
  max-height:58px !important;
  margin:0 !important;
  padding:0 12px !important;
  border-radius:18px !important;
}
/* Include explicit road ID/class rule because the Road plugin has its own !important styling. */
.lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch.msr-launch {
  flex:0 0 58px !important;
  height:58px !important;
  min-height:58px !important;
  max-height:58px !important;
  border-radius:18px !important;
}
@media(max-width:767px) {
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced {
    gap:8px !important;
  }
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > :is(
    [data-open="grow"], [data-open="collection"], [data-open="gacha"],
    #lvbt-launch, .lvpq-launch, #msr-launch, #msb-launch,
    .lvmp-position-1,.lvmp-position-2,.lvmp-position-3,
    .lvmp-position-4,.lvmp-position-5,.lvmp-position-6,.lvmp-position-7
  ),
  .lvg-hub[data-lvg-hub="1"] .lvg-actions.lvmp-balanced > #msr-launch.msr-launch {
    flex:0 0 54px !important;
    height:54px !important;
    min-height:54px !important;
    max-height:54px !important;
    border-radius:16px !important;
  }
}
