/* Obsidian & Gold inflation musou theme — clean, icon-driven layout */
body[data-mini="survivor"] {
    --accent: #ffd86b;
    --surface: #121b33;
    background: #060a14;
}

.panel-status {
    margin: 0;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid #ffd86b44;
    background: #0a1224aa;
    color: #ffe399;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    letter-spacing: 0.08em;
}

.run-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 8px 0;
    border-block: 1px solid #ffd86b38;
    background: #080f2099;
}
.run-summary > div { min-width: 0; text-align: center; }
.run-summary > div + div { border-left: 1px solid #ffd86b30; }
.run-summary dt { color: #9fb0cc; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.run-summary dd {
    margin: 3px 0 0;
    color: #fff6db;
    font-size: 19px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

/* Visual 3-Choice Level-Up Modal inside stage */
.skill-modal {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: radial-gradient(circle at 50% 35%, #261e0f99, #050914e6 75%);
    backdrop-filter: blur(5px);
}
.skill-modal__box {
    width: min(100%, 348px);
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 12px;
    border: 1.5px solid #ffd86b;
    border-radius: 22px;
    background: linear-gradient(170deg, #232d4c, #0c1324 85%);
    box-shadow: 0 0 28px #ffd86b33, inset 0 1px #fff6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}
.skill-modal__title {
    margin: 0;
    padding: 4px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffe596, #eab046);
    color: #231705;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 10px #ffd86b44;
}
.skill-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}
.skill-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: 'icon name' 'icon level' 'icon desc';
    align-items: center;
    gap: 3px 10px;
    min-height: 100px;
    padding: 10px 12px;
    text-align: left;
    border: 1.5px solid color-mix(in srgb, var(--skill-color, #ffd86b) 55%, #ffd86b33);
    border-radius: 16px;
    background: radial-gradient(circle at 50% 20%, #24355c, #0f172b 82%);
    box-shadow: inset 0 1px #ffffff29, 0 6px 14px #0007;
}
.skill-card:hover, .skill-card:focus-visible {
    border-color: #ffe79e;
    background: radial-gradient(circle at 50% 20%, #314778, #15203b 82%);
}
.skill-card:active {
    transform: translateY(2px);
}
.skill-card__icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--skill-color, #ffd86b);
    background: radial-gradient(circle, #30436e, #0e1628);
    font-size: 26px;
    color: var(--skill-color, #ffd86b);
    box-shadow: 0 0 16px color-mix(in srgb, var(--skill-color, #ffd86b) 42%, transparent);
}
.skill-card__name {
    grid-area: name;
    min-width: 0;
    color: #fff6dc;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: -0.02em;
}
.skill-card__desc {
    grid-area: desc;
    color: #cad8ec;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre-line;
}
.skill-card__lv {
    grid-area: level;
    justify-self: start;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #ffd86b55;
    background: #080e1c;
    color: #ffd86b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.skill-card[data-new="true"] .skill-card__lv {
    color: #b9ffe3;
    border-color: #76f7bf88;
}
.skill-loadout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: 100%;
}
.skill-loadout__item {
    min-width: 35px;
    padding: 5px;
    border: 1px solid #53617b;
    border-radius: 7px;
    background: #080e1c;
    color: var(--skill-color);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.skill-loadout__item[data-offered="true"] {
    border-color: var(--skill-color);
    box-shadow: inset 0 -2px var(--skill-color);
}

.mini-overlay[data-mode="result"] .mini-hero { height: 96px; width: 116px; }
.mini-overlay[data-mode="result"] .panel-portrait { height: 96px; width: 96px; }
.mini-overlay[data-mode="result"] .mini-hero::before { height: 82px; width: 82px; }
.mini-overlay[data-mode="pause"] .mini-hero { display: none; }
.mini-overlay[data-mode="result"] .mini-hint { display: none; }
.mini-overlay[data-record="true"] .mini-best {
    color: #ffe299;
    border: 1px solid #ffd86b77;
    padding: 4px 12px;
    border-radius: 6px;
    background: #6e521e38;
}
.mini-overlay[data-celebrate="true"] .mini-message {
    color: #ffe69c;
    text-shadow: 0 0 18px #ffd86b66;
}

.result-sparkles {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.mini-overlay[data-rain="true"] .result-sparkles { display: block; }
.result-sparkles span {
    position: absolute;
    top: -32px;
    left: 10%;
    font-size: 22px;
    opacity: 0;
    animation: survivor-sparkle 1.25s ease-out both;
}
.result-sparkles span:nth-child(2) { left: 26%; animation-delay: 0.08s; }
.result-sparkles span:nth-child(3) { left: 42%; animation-delay: 0.16s; }
.result-sparkles span:nth-child(4) { left: 58%; animation-delay: 0.04s; }
.result-sparkles span:nth-child(5) { left: 74%; animation-delay: 0.12s; }
.result-sparkles span:nth-child(6) { left: 89%; animation-delay: 0.22s; }

@keyframes survivor-sparkle {
    0% { transform: translateY(0) rotate(-12deg); opacity: 0; }
    18% { opacity: 0.95; }
    100% { transform: translateY(190px) rotate(32deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skill-modal { backdrop-filter: none; }
    .mini-overlay[data-rain="true"] .result-sparkles { display: none; }
}
