/* SHOCKER_V37_CHARACTER_PORTRAIT_AND_ABILITY_FIX */

.battle-character.has-large-battle-art {
    position: absolute !important;
    z-index: 90 !important;
    pointer-events: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter:
        drop-shadow(0 12px 16px rgba(0, 0, 0, .72))
        drop-shadow(0 0 8px var(--char-glow)) !important;
}

.battle-character.has-large-battle-art::before,
.battle-character.has-large-battle-art .battle-character-mark,
.battle-character.has-large-battle-art .battle-character-name {
    display: none !important;
}

#player-battle-character.has-large-battle-art,
#opponent-battle-character.has-large-battle-art {
    right: auto !important;
    bottom: auto !important;
}

#v37-ability-choice {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(3px);
}

#v37-ability-choice.show {
    display: flex;
}

.v37-choice-panel {
    width: min(94vw, 620px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #d4af37;
    border-radius: 15px;
    color: #f5ecd4;
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .16), transparent 40%),
        linear-gradient(155deg, #242019, #0d0c0a 72%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .8), 0 0 24px rgba(212, 175, 55, .22);
}

.v37-choice-kicker {
    color: #bca86f;
    font: 700 9px/1.2 "Courier New", monospace;
    letter-spacing: .22em;
}

#v37-choice-title {
    margin: 5px 0 7px;
    color: #fff3cf;
    font: 700 22px/1.25 Georgia, serif;
}

#v37-choice-message {
    margin: 0 0 13px;
    color: #cfc5af;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.v37-choice-group {
    margin-top: 12px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.v37-choice-group-title {
    margin-bottom: 8px;
    color: #d9c68f;
    font-size: 11px;
    font-weight: 800;
}

.v37-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
}

.v37-card-choice {
    min-height: 54px;
    padding: 7px 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    color: #f4ead0;
    background: linear-gradient(#363129, #171512);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.v37-card-choice small {
    display: block;
    margin-top: 3px;
    color: #a99f89;
    font-size: 8px;
    font-weight: 500;
}

.v37-card-choice.is-selected {
    border-color: #ffe18a;
    color: #171006;
    background: linear-gradient(#ffe18a, #b98b28);
    box-shadow: 0 0 0 2px rgba(255, 225, 138, .18), 0 0 18px rgba(255, 211, 89, .3);
}

.v37-choice-empty {
    color: #8f8778;
    font-size: 11px;
}

.v37-choice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.v37-choice-actions.single {
    grid-template-columns: 1fr;
}

.v37-choice-actions button {
    min-height: 45px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #f6ecd1;
    background: linear-gradient(#39342c, #171512);
    font-weight: 800;
    cursor: pointer;
}

#v37-choice-confirm {
    border-color: #e4c35f;
    color: #171006;
    background: linear-gradient(#f2d477, #a87d22);
}

#v37-choice-confirm:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .42;
}

/* ササラ覚醒：裏向きの状態は維持したまま、所有者側だけ中身を確認できる。 */
#opponent-field .card.card-back.sasara-inspected-card {
    color: #18130a !important;
    border-color: #63baff !important;
    background:
        linear-gradient(rgba(255, 255, 255, .86), rgba(214, 232, 246, .9)),
        repeating-linear-gradient(135deg, #295f85 0 8px, #17364d 8px 16px) !important;
    box-shadow: 0 0 0 2px rgba(58, 167, 255, .22), 0 0 14px rgba(58, 167, 255, .38) !important;
}

#opponent-field .card.card-back.sasara-inspected-card::after {
    content: "確認中";
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 1px 3px;
    border-radius: 3px;
    color: #eaf7ff;
    background: rgba(12, 66, 102, .82);
    font-size: 6px;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .v37-choice-panel {
        padding: 14px;
    }

    #v37-choice-title {
        font-size: 18px;
    }

    .v37-choice-cards {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
    }

    .v37-card-choice {
        min-height: 48px;
        font-size: 10px;
    }
}
