.gmDestiny {
    --destiny-ink: #f6f0ff;
    --destiny-muted: rgba(231, 221, 246, .66);
    --destiny-line: rgba(232, 218, 255, .13);
    --destiny-violet: #a989ff;
    --destiny-violet-rgb: 169, 137, 255;
    --destiny-gold: #e4bd75;
    min-height: 100%;
    isolation: isolate;
    color: var(--destiny-ink);
    background:
        radial-gradient(circle at 50% -12%, rgba(100, 62, 145, .42), transparent 42%),
        linear-gradient(165deg, #100d19 0%, #090811 55%, #06060b 100%);
}

.gmDestinyAtmosphere,
.gmDestinyGlow,
.gmDestinyStars { position: absolute; inset: 0; pointer-events: none; }
.gmDestinyAtmosphere { overflow: hidden; z-index: -1; }
.gmDestinyGlow { filter: blur(80px); opacity: .38; border-radius: 50%; }
.gmDestinyGlow.glow-a { width: 45vw; height: 45vw; left: -18vw; top: 22%; background: #3c236f; }
.gmDestinyGlow.glow-b { width: 38vw; height: 38vw; right: -16vw; bottom: -8%; background: #705120; }
.gmDestinyStars { opacity: .55; background-image: radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px); background-size: 73px 73px; }
.gmDestinyStars.stars-b { opacity: .22; transform: rotate(21deg) scale(1.3); background-size: 113px 113px; }

.gmDestinyScroll { min-height: 0; }
.gmDestinyStage { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 132px; }
.gmDestinyHero { text-align: center; }
.gmDestinyEyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--destiny-gold); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.gmDestinyEyebrowLine { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.gmDestinyEyebrowLine:last-child { transform: scaleX(-1); }
.gmDestinyHero h1 { margin: 15px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 6vw, 54px); line-height: 1; font-weight: 500; letter-spacing: -.035em; text-shadow: 0 8px 32px rgba(0,0,0,.55); }
.gmDestinyLead { width: min(580px, 100%); margin: 0 auto; color: var(--destiny-muted); font-size: 13px; line-height: 1.55; }
.gmDestinyStateBadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.gmDestinyStateBadges > span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--destiny-line); border-radius: 999px; color: var(--destiny-muted); font-size: 9px; letter-spacing: .04em; background: rgba(9,8,15,.5); }
.gmDestinyStateBadges strong { color: var(--destiny-ink); font-weight: 600; }

.gmDestinyPath { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(590px, 100%); margin: 28px auto 0; }
.gmDestinyPathStep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; color: rgba(230,220,245,.32); font-family: inherit; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: none; cursor: pointer; appearance: none; }
.gmDestinyPathStep:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 22px); width: calc(100% - 44px); height: 1px; background: var(--destiny-line); }
.gmDestinyPathStep.complete:not(:last-child)::after { background: linear-gradient(90deg, var(--destiny-violet), rgba(var(--destiny-violet-rgb), .3)); }
.gmDestinyPathIcon { width: 30px; height: 30px; border: 1px solid var(--destiny-line); border-radius: 50%; background: rgba(11,9,18,.82); }
.gmDestinyPathIcon::before,
.gmDestinyNoticeIcon::before,
.gmDestinyCardFallback::before,
.gmDestinyCardType > span::before,
.gmDestinyAlly > span::before,
.gmDestinyCardSelected > span::before,
.gmDestinyEmpty > span::before,
.gmDestinyCommandIcon::before,
.gmDestinyButtonIcon::before { content: ''; display: block; width: 100%; height: 100%; background: currentColor; mask: var(--gmDestinyIcon) center / contain no-repeat; -webkit-mask: var(--gmDestinyIcon) center / contain no-repeat; }
.gmDestinyPathIcon::before { width: 14px; height: 14px; margin: 7px; }
.gmDestinyPathStep.complete, .gmDestinyPathStep.current { color: var(--destiny-ink); }
.gmDestinyPathStep.current .gmDestinyPathIcon { color: #130e20; border-color: var(--destiny-violet); background: var(--destiny-violet); box-shadow: 0 0 24px rgba(var(--destiny-violet-rgb), .42); }
.gmDestinyPathStep.complete .gmDestinyPathIcon { color: var(--destiny-violet); border-color: rgba(var(--destiny-violet-rgb), .55); }
.gmDestinyPathStep.current .gmDestinyPathLabel { color: var(--destiny-violet); }
.gmDestinyPathStep small { display: block; width: min(150px, 100%); min-height: 12px; overflow: hidden; color: var(--destiny-muted); font-size: 8px; font-weight: 400; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.gmDestinyPathStep:disabled { cursor: default; opacity: .48; }
.gmDestinyPathStep:not(:disabled):hover .gmDestinyPathIcon { border-color: var(--destiny-violet); transform: translateY(-1px); }

.gmDestinyMeta { display: inline-flex; margin-top: 26px; border: 1px solid var(--destiny-line); border-radius: 999px; overflow: hidden; background: rgba(9,8,15,.62); backdrop-filter: blur(12px); }
.gmDestinyMeta > div { display: flex; align-items: baseline; gap: 7px; min-width: 80px; padding: 10px 16px; border-left: 1px solid var(--destiny-line); }
.gmDestinyMeta > div:first-child { border-left: 0; }
.gmDestinyMeta span { color: var(--destiny-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.gmDestinyMeta strong { font: 500 17px/1 Georgia, serif; color: var(--destiny-gold); }

.gmDestinyStats { width: min(930px, 100%); box-sizing: border-box; margin: 34px auto 0; padding: 20px; border: 1px solid var(--destiny-line); border-radius: 16px; background: linear-gradient(145deg, rgba(28,21,43,.78), rgba(10,9,16,.78)); box-shadow: 0 18px 55px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
.gmDestinyStatsHeading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gmDestinyStatsHeading h2 { margin: 0; font: 500 21px/1.2 Georgia, serif; }
.gmDestinyActProgress { padding: 6px 10px; border: 1px solid rgba(var(--destiny-violet-rgb), .26); border-radius: 999px; color: #d9cdff; font-size: 9px; background: rgba(var(--destiny-violet-rgb), .08); }
.gmDestinyStatCards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gmDestinyStatCards > div { position: relative; display: flex; flex-direction: column; min-height: 62px; box-sizing: border-box; padding: 10px 12px; overflow: hidden; border: 1px solid var(--destiny-line); border-radius: 10px; background: rgba(255,255,255,.025); }
.gmDestinyStatCards > div::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--stat-accent, var(--destiny-violet)); }
.gmDestinyStatCards small { color: var(--destiny-muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.gmDestinyStatCards strong { margin-top: 5px; color: var(--stat-accent, var(--destiny-ink)); font: 500 24px/1 Georgia, serif; }
.gmDestinyStatCards span { margin-top: 4px; color: var(--destiny-muted); font-size: 8px; }
.gmDestinyStatCards .accent-insight { --stat-accent: #ccb8ff; }
.gmDestinyStatCards .accent-light { --stat-accent: #f3d68b; }
.gmDestinyStatCards .accent-dark { --stat-accent: #b28af1; }
.gmDestinyStatCards .accent-story { --stat-accent: #7edba1; }
.gmDestinyAlignment { margin-top: 14px; }
.gmDestinyAlignmentLabels { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--destiny-muted); font-size: 9px; }
.gmDestinyAlignmentLabels span { display: flex; gap: 5px; color: #c7b1e7; }
.gmDestinyAlignmentLabels span:last-child { color: #efdba0; }
.gmDestinyAlignmentLabels small { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.gmDestinyAlignmentTrack { position: relative; display: flex; height: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #0a0810; }
.gmDestinyAlignmentTrack > span { width: 50%; }
.gmDestinyAlignmentDark { border-radius: 999px 0 0 999px; background: linear-gradient(90deg, rgba(107,64,158,.72), rgba(107,64,158,.12)); }
.gmDestinyAlignmentLight { border-radius: 0 999px 999px 0; background: linear-gradient(90deg, rgba(234,204,121,.12), rgba(234,204,121,.75)); }
.gmDestinyAlignmentTrack i { position: absolute; top: 50%; width: 13px; height: 13px; border: 2px solid #16101f; border-radius: 50%; background: #f3ecff; box-shadow: 0 0 12px rgba(255,255,255,.38); transform: translate(-50%, -50%); }
.gmDestinyRunes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.gmDestinyRunes > div { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; padding: 6px; border: 1px solid var(--destiny-line); border-radius: 8px; background: rgba(255,255,255,.018); }
.gmDestinyRunes > div > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(var(--destiny-violet-rgb), .28); border-radius: 50%; color: #cfbdff; font: 600 9px/1 Georgia, serif; background: rgba(var(--destiny-violet-rgb), .09); }
.gmDestinyRunes .rune-dark_rune > span { color: #e3c6ff; border-color: rgba(177,106,235,.45); background: rgba(93,35,133,.3); }
.gmDestinyRunes small { overflow: hidden; color: var(--destiny-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.gmDestinyRunes strong { font-size: 11px; }
.gmDestinyAllTraits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--destiny-line); }
.gmDestinyAllTraits > span { display: flex; align-items: center; gap: 6px; padding: 4px 5px 4px 8px; border-radius: 999px; color: var(--destiny-muted); font-size: 8px; background: rgba(255,255,255,.04); }
.gmDestinyAllTraits strong { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; color: var(--destiny-ink); background: rgba(255,255,255,.08); }

.gmDestinyBoard { margin-top: 44px; }
.gmDestinyBoardHeading { display: flex; align-items: end; justify-content: space-between; margin: 0 auto 16px; width: min(930px, 100%); }
.gmDestinyKicker { display: block; margin-bottom: 3px; color: var(--destiny-violet); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.gmDestinyBoardHeading h2 { margin: 0; font: 500 22px/1.2 Georgia, serif; }
.gmDestinyCardCount { padding: 6px 10px; border: 1px solid var(--destiny-line); border-radius: 999px; color: var(--destiny-muted); font-size: 10px; }
.gmDestinyThreadSummary { display: flex; flex-wrap: wrap; gap: 6px; width: min(930px, 100%); margin: -4px auto 14px; }
.gmDestinyThreadSummary > div { display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 9px; border: 1px solid var(--destiny-line); border-radius: 999px; color: var(--destiny-muted); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; background: rgba(11,9,18,.58); }
.gmDestinyThreadSummary strong { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; color: var(--destiny-ink); font-size: 9px; background: rgba(255,255,255,.08); }
.gmDestinyThreadSummary .status-acquired strong { color: #d7c8ff; background: rgba(var(--destiny-violet-rgb), .18); }
.gmDestinyThreadSummary .status-resolved_success strong { color: #b9efc8; background: rgba(105,207,134,.16); }
.gmDestinyThreadSummary .status-resolved_failure strong { color: #ffb5bd; background: rgba(229,89,105,.16); }

.gmDestinyCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); width: min(930px, 100%); margin: 0 auto; perspective: 1200px; }
.gmDestinyCards.empty { display: block; }
.gmDestinyCard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--destiny-line); border-radius: 16px; color: inherit; text-align: left; font: inherit; background: rgba(19,15,29,.88); box-shadow: 0 20px 55px rgba(0,0,0,.28); cursor: pointer; appearance: none; transform: translateY(12px); opacity: 0; animation: gmDestinyCardEnter .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--gmDestinyOrder) * 80ms); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.gmDestinyCard:hover { transform: translateY(-5px); border-color: rgba(var(--destiny-violet-rgb), .48); box-shadow: 0 28px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--destiny-violet-rgb), .08); }
.gmDestinyCard.sel { transform: translateY(-7px); border-color: var(--destiny-violet); box-shadow: 0 26px 75px rgba(0,0,0,.52), 0 0 32px rgba(var(--destiny-violet-rgb), .2); }
.gmDestinyCardArt { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, rgba(var(--destiny-violet-rgb), .3), #11101c 70%); }
.gmDestinyCardArt img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .3s ease; }
.gmDestinyCard:hover .gmDestinyCardArt img { transform: scale(1.035); }
.gmDestinyCardShade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,3,8,.04) 35%, rgba(8,6,13,.94) 100%); }
.gmDestinyCardFallback { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; color: rgba(255,255,255,.18); transform: translate(-50%, -50%); }
.gmDestinyCardNumber { position: absolute; top: 12px; right: 13px; font: 500 11px/1 Georgia, serif; color: rgba(255,255,255,.55); transition: opacity .2s ease; }
.gmDestinyThreadStatus { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.82); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(8,7,13,.7); backdrop-filter: blur(8px); }
.gmDestinyThreadStatus.status-acquired { color: #d7c8ff; border-color: rgba(var(--destiny-violet-rgb), .35); background: rgba(46,31,79,.72); }
.gmDestinyThreadStatus.status-resolved_success { color: #b9efc8; border-color: rgba(105,207,134,.35); background: rgba(24,75,42,.72); }
.gmDestinyThreadStatus.status-resolved_failure { color: #ffb5bd; border-color: rgba(229,89,105,.35); background: rgba(82,25,35,.72); }
.gmDestinyThreadStatus.status-used,
.gmDestinyThreadStatus.status-sacrificed,
.gmDestinyThreadStatus.status-discarded,
.gmDestinyThreadStatus.status-removed { color: rgba(235,229,243,.62); }
.gmDestinyCardType { position: absolute; left: 12px; bottom: 11px; display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.84); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gmDestinyCardType > span { width: 14px; height: 14px; color: var(--destiny-gold); }
.gmDestinyCardBody { display: flex; flex-direction: column; flex: 1; min-height: 152px; padding: 16px; }
.gmDestinyCardTitle { display: block; font: 500 20px/1.12 Georgia, serif; }
.gmDestinyCardSubtitle { display: -webkit-box; margin-top: 7px; overflow: hidden; color: var(--destiny-muted); font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gmDestinyCardAction { display: block; margin-top: auto; padding-top: 16px; color: var(--destiny-violet); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gmDestinyAlly { display: flex; align-items: center; gap: 6px; margin-top: 11px; padding: 7px 9px; border: 1px solid rgba(228,189,117,.2); border-radius: 7px; color: var(--destiny-gold); font-size: 10px; background: rgba(228,189,117,.06); }
.gmDestinyAlly > span { width: 13px; height: 13px; }
.gmDestinyCardSelected { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #100b1d; background: var(--destiny-violet); box-shadow: 0 6px 18px rgba(0,0,0,.4); opacity: 0; transform: scale(.65); transition: .2s ease; }
.gmDestinyCardSelected > span { width: 14px; height: 14px; }
.gmDestinyCard.sel .gmDestinyCardSelected { opacity: 1; transform: scale(1); }
.gmDestinyCard.sel .gmDestinyCardNumber { opacity: 0; }

.gmDestinyEmpty { display: flex; flex-direction: column; align-items: center; padding: 54px 20px; border: 1px dashed var(--destiny-line); border-radius: 16px; color: var(--destiny-muted); background: rgba(15,12,23,.52); }
.gmDestinyEmpty > span { width: 36px; height: 36px; margin-bottom: 14px; color: var(--destiny-violet); }
.gmDestinyEmpty strong { color: var(--destiny-ink); font: 500 18px/1.2 Georgia, serif; }
.gmDestinyEmpty small { margin-top: 6px; }
.gmDestinyNotice { display: flex; align-items: center; gap: 14px; width: min(620px, 100%); box-sizing: border-box; margin: 42px auto 0; padding: 18px; border: 1px solid rgba(224,83,100,.28); border-radius: 12px; background: rgba(79,20,31,.22); }
.gmDestinyNoticeIcon { width: 26px; height: 26px; flex: none; color: #ef7a8a; }
.gmDestinyNotice div { display: flex; flex-direction: column; gap: 4px; }
.gmDestinyNotice span { color: var(--destiny-muted); font-size: 11px; }

.gmDestinyCommand { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; gap: 20px; width: min(620px, calc(100% - 24px)); box-sizing: border-box; padding: 10px 10px 10px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(15,12,23,.86); box-shadow: 0 20px 60px rgba(0,0,0,.55); backdrop-filter: blur(20px); transform: translateX(-50%); }
.gmDestinyCommandText { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.gmDestinyCommandText > div { display: flex; flex-direction: column; min-width: 0; }
.gmDestinyCommandText small { color: var(--destiny-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.gmDestinyCommandText strong { overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gmDestinyCommandIcon { width: 24px; height: 24px; flex: none; color: var(--destiny-violet); }
.gmDestinyPrimaryAction { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; color: #110b1d; font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; background: var(--destiny-violet); cursor: pointer; transition: .2s ease; }
.gmDestinyPrimaryAction:disabled { color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); cursor: default; }
.gmDestinyPrimaryAction:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(var(--destiny-violet-rgb), .28); }
.gmDestinyButtonIcon { width: 15px; height: 15px; }
.gmDestiny.request-in-progress .gmDestinyCard,
.gmDestiny.request-in-progress .gmDestinyPathStep,
.gmDestiny.request-in-progress .gmDestinyPrimaryAction { pointer-events: none; }
.gmDestiny.request-in-progress .gmDestinyCommand { opacity: .72; }
.gmDestiny.request-in-progress .gmDestinyButtonIcon { animation: gmDestinyRequestSpin .8s linear infinite; }

@keyframes gmDestinyCardEnter { to { opacity: 1; transform: translateY(0); } }
@keyframes gmDestinyRequestSpin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
    .gmDestinyStage { width: 100%; padding: 30px 0 124px; }
    .gmDestinyHero, .gmDestinyBoardHeading { padding-left: 16px; padding-right: 16px; }
    .gmDestinyStats { width: calc(100% - 32px); padding: 15px; }
    .gmDestinyStatCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gmDestinyRunes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gmDestinyRunes > div:last-child { grid-column: 1 / -1; }
    .gmDestinyThreadSummary { width: auto; margin-left: 16px; margin-right: 16px; }
    .gmDestinyLead { box-sizing: border-box; padding: 0 18px; }
    .gmDestinyPath { width: calc(100% - 32px); }
    .gmDestinyCards { display: flex; width: 100%; box-sizing: border-box; gap: 12px; padding: 0 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .gmDestinyCards::-webkit-scrollbar { display: none; }
    .gmDestinyCard { flex: 0 0 min(78vw, 292px); scroll-snap-align: center; }
    .gmDestinyCard:first-child { margin-left: calc((100vw - min(78vw, 292px)) / 2 - 16px); }
    .gmDestinyCard:last-child { margin-right: calc((100vw - min(78vw, 292px)) / 2 - 16px); }
    .gmDestinyCards.empty { display: block; padding-bottom: 0; }
    .gmDestinyEmpty { margin: 0 16px; }
    .gmDestinyCommand { gap: 10px; }
    .gmDestinyPrimaryAction { padding: 0 13px; }
}

@media (max-width: 420px) {
    .gmDestinyHero h1 { font-size: 32px; }
    .gmDestinyPathStep { font-size: 8px; }
    .gmDestinyCommandText small { display: none; }
    .gmDestinyPrimaryAction > span:first-child { max-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .gmDestinyCard { animation: none; opacity: 1; transform: none; }
    .gmDestinyCard, .gmDestinyCardArt img, .gmDestinyPrimaryAction { transition: none; }
}
