
/* QMAX V137.4 — Flagship Black Diamond Royal Hero Cards
   Visual-only rebuild. Existing destinations and behavior remain untouched. */

.hmc-first-step-actions {
  --card-height: 94px;
  --card-radius: 22px;
  --card-gap: 16px;
  --card-speed: 145ms;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
  perspective: 1200px;
}

.hmc-first-step-action {
  position: relative;
  min-height: var(--card-height);
  border-radius: var(--card-radius);
  border: 1px solid transparent;
  padding: 17px 48px 17px 20px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  cursor: pointer;
  transform: translate3d(0,0,0);
  transition:
    transform var(--card-speed) cubic-bezier(.2,.7,.2,1),
    box-shadow var(--card-speed) cubic-bezier(.2,.7,.2,1),
    border-color var(--card-speed) ease,
    filter var(--card-speed) ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.hmc-first-step-action::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--card-radius) - 1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.035) 34%, transparent 52%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 35%, transparent 68%);
  opacity: .9;
  pointer-events: none;
  z-index: -1;
}

.hmc-first-step-action::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -45%;
  width: 32%;
  height: 165%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.hmc-first-step-action:hover {
  transform: translateY(-3px);
  filter: saturate(1.03) brightness(1.025);
}

.hmc-first-step-action:hover::after {
  opacity: 1;
  animation: hmc-card-sweep 540ms ease-out 1;
}

.hmc-first-step-action:active {
  transform: translateY(1px);
  filter: brightness(.985);
  transition-duration: 120ms;
}

.hmc-first-step-action:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #050507,
    0 0 0 5px rgba(181,124,255,.88),
    0 16px 34px rgba(0,0,0,.45);
}

.hmc-first-step-action[aria-disabled="true"],
.hmc-first-step-action:disabled {
  cursor: not-allowed;
  filter: grayscale(.25) brightness(.78);
  opacity: .8;
}

@keyframes hmc-card-sweep {
  from { left: -45%; }
  to { left: 118%; }
}

.hmc-first-step-action > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 3;
}

.hmc-first-step-action > span:last-child::after {
  content: "›";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  opacity: .62;
  transition: transform var(--card-speed) ease, opacity var(--card-speed) ease;
}

.hmc-first-step-action:hover > span:last-child::after {
  transform: translate(4px,-50%);
  opacity: 1;
}

.hmc-first-step-action strong {
  display: block;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(14px, .98vw, 17px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: .026em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hmc-first-step-action small {
  display: block;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(11px, .76vw, 13px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: .002em;
  white-space: normal;
}

.hmc-action-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  z-index: 3;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  transform: translateZ(1px);
}

/* AMETHYST CRYSTAL */
.hmc-action-play {
  color: #fff;
  border-color: rgba(234,218,255,.95);
  background:
    radial-gradient(circle at 22% 18%, rgba(236,214,255,.22), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(76,12,118,.85), transparent 58%),
    linear-gradient(180deg, #8e39ea 0%, #6a21b9 48%, #43106b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -14px 24px rgba(35,3,55,.36),
    0 1px 0 rgba(255,255,255,.08),
    0 14px 30px rgba(33,3,52,.46),
    0 0 28px rgba(128,44,211,.23);
}
.hmc-action-play:hover {
  border-color: rgba(250,244,255,1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -14px 24px rgba(35,3,55,.34),
    0 18px 38px rgba(33,3,52,.58),
    0 0 34px rgba(145,62,232,.34);
}
.hmc-action-play .hmc-action-icon {
  color: #fff;
  border: 1px solid rgba(246,235,255,.96);
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,.34), transparent 24%),
    radial-gradient(circle at 50% 58%, #a64df2 0%, #6f20bd 46%, #341052 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -10px 18px rgba(31,0,47,.42),
    0 0 0 5px rgba(122,53,191,.18),
    0 9px 22px rgba(31,0,47,.38),
    0 0 22px rgba(198,127,255,.30);
}
.hmc-action-play small { color: rgba(248,241,255,.94); }

/* OBSIDIAN GLASS */
.hmc-action-gifts {
  color: #fff;
  text-decoration: none;
  border-color: rgba(219,216,225,.92);
  background:
    radial-gradient(circle at 85% 0%, rgba(118,53,170,.18), transparent 28%),
    linear-gradient(180deg, #1d1d24 0%, #101016 48%, #050507 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -14px 24px rgba(0,0,0,.52),
    0 14px 30px rgba(0,0,0,.52),
    0 0 22px rgba(92,35,137,.10);
}
.hmc-action-gifts:hover {
  border-color: rgba(250,250,252,.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.23),
    inset 0 -14px 24px rgba(0,0,0,.48),
    0 18px 38px rgba(0,0,0,.62),
    0 0 28px rgba(109,48,159,.18);
}
.hmc-action-gifts .hmc-action-icon {
  color: #dbaaff;
  border: 1px solid rgba(230,227,235,.88);
  background:
    radial-gradient(circle at 50% 48%, rgba(157,73,222,.36), transparent 22%),
    linear-gradient(180deg, #2a2931 0%, #121218 58%, #07070a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -10px 18px rgba(0,0,0,.55),
    0 0 0 5px rgba(123,63,169,.11),
    0 9px 22px rgba(0,0,0,.38);
}
.hmc-action-gifts small { color: rgba(244,242,247,.94); }

/* PEARL / WHITE DIAMOND */
.hmc-action-start {
  color: #1b1720;
  border-color: rgba(91,80,101,.84);
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.98), transparent 30%),
    radial-gradient(circle at 86% 110%, rgba(137,91,165,.10), transparent 38%),
    linear-gradient(180deg, #fbfafc 0%, #ece8ef 46%, #d4ced9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -14px 24px rgba(66,54,76,.16),
    0 1px 0 rgba(255,255,255,.75),
    0 14px 30px rgba(0,0,0,.36),
    0 0 26px rgba(139,61,255,.15);
}
.hmc-action-start::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.18) 38%, transparent 56%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 7px);
}
.hmc-action-start:hover {
  border-color: rgba(59,49,68,.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -14px 24px rgba(66,54,76,.18),
    0 18px 38px rgba(0,0,0,.46),
    0 0 32px rgba(139,61,255,.22);
}
.hmc-action-start strong { color: #17131b; }
.hmc-action-start small {
  color: #3d3644;
  opacity: 1;
}
.hmc-action-start .hmc-action-icon {
  color: #fff;
  border: 1px solid rgba(70,56,80,.96);
  background:
    radial-gradient(circle at 42% 30%, rgba(201,143,255,.34), transparent 26%),
    linear-gradient(180deg, #42264f 0%, #25142e 52%, #110a16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -10px 18px rgba(0,0,0,.45),
    0 0 0 5px rgba(137,79,178,.12),
    0 9px 22px rgba(0,0,0,.30),
    0 0 18px rgba(139,61,255,.18);
}

@media (max-width: 1080px) {
  .hmc-first-step-action {
    padding: 16px 44px 16px 16px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }
  .hmc-action-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
  }
  .hmc-first-step-action strong {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .hmc-first-step-actions {
    grid-template-columns: 1fr;
  }
  .hmc-first-step-action {
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmc-first-step-action,
  .hmc-first-step-action > span:last-child::after {
    transition: none;
  }
  .hmc-first-step-action:hover,
  .hmc-first-step-action:active {
    transform: none;
  }
  .hmc-first-step-action:hover::after {
    animation: none;
    opacity: 0;
  }
}
