/**
 * Ahimsa 100/100 Bingo — image card with interactive overlays.
 */

#jaevc-bingo-app {
    --ab-gold: #d4af37;
    --ab-gold-dark: #9a7b1a;
    --ab-teal: #1b6b6b;
    --ab-magenta: #e91e63;
    --ab-muted: #5a5a5a;
    --ab-border: #d6893e;
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px 28px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #2f2f2f;
    box-sizing: border-box;
}

#jaevc-bingo-app *,
#jaevc-bingo-app *::before,
#jaevc-bingo-app *::after {
    box-sizing: border-box;
}

.ab-save-panel {
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid #e6ddd4;
    border-radius: 12px;
    background: #fffaf6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.ab-save-panel button#ab-save-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--ab-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ab-save-panel button#ab-save-btn:hover {
    background: #145656;
}

.ab-save-status {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--ab-teal);
    min-height: 1.2em;
}

.ab-save-panel input[type="email"] {
    min-width: min(280px, 100%);
    padding: 10px 12px;
    border: 2px solid #e6ddd4;
    border-radius: 8px;
    font-size: 15px;
}

.ab-save-panel label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ab-muted);
}

.ab-save-status.is-error {
    color: #b71c1c;
}

.ab-missing-card {
    padding: 20px;
    border: 2px dashed #c45a2c;
    border-radius: 8px;
    background: #fffaf6;
    text-align: center;
    line-height: 1.6;
}

.ab-stage {
    position: relative;
    width: 100%;
    line-height: 0;
}

.ab-card-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.ab-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ab-overlay > * {
    pointer-events: auto;
}

.ab-score-mask {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1%;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
}

.ab-score-line {
    margin: 0;
    font-family: "Playfair Display", "Times New Roman", Times, Georgia, serif;
    font-size: clamp(26px, 6.2vw, 54px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    color: var(--ab-gold);
    -webkit-text-stroke: 0.6px var(--ab-gold-dark);
    text-shadow:
        0.5px 0.5px 0 var(--ab-gold-dark),
        -0.5px -0.5px 0 rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.ab-hotspot {
    position: absolute;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ab-hotspot:focus-visible {
    outline: 3px solid var(--ab-teal);
    outline-offset: 1px;
}

.ab-hotspot::before {
    content: "";
    position: absolute;
    top: 6%;
    left: 5%;
    width: 14%;
    height: 0;
    padding-bottom: 14%;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ab-hotspot.is-checked::before {
    border-color: var(--ab-magenta);
    background: var(--ab-magenta);
    box-shadow: 0 0 0 1px var(--ab-magenta);
}

.ab-hotspot.is-checked::after {
    content: "";
    position: absolute;
    top: calc(6% + 3.5%);
    left: calc(5% + 3.5%);
    width: 5%;
    height: 2.5%;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translate(-15%, -35%);
}

.ab-sanctuaries-btn {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 8px;
    border: 2px solid var(--ab-teal);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #edf7f6 100%);
    color: var(--ab-teal);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 3px 10px rgba(27, 107, 107, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    line-height: 1.25;
}

.ab-sanctuaries-btn:hover,
.ab-sanctuaries-btn:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #dff0ef 100%);
    box-shadow: 0 5px 14px rgba(27, 107, 107, 0.28);
    transform: translateY(-1px);
    outline: 3px solid rgba(27, 107, 107, 0.35);
    outline-offset: 2px;
}

.ab-sanctuaries-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ab-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ab-sanctuaries-btn__label {
    font-size: clamp(10px, 2.1vw, 12px);
    font-weight: 700;
    max-width: 11em;
}

.ab-win-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #e8f8f4;
    border: 2px solid var(--ab-teal);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.ab-win-banner.is-visible {
    display: block;
}

.ab-win-banner a {
    color: var(--ab-teal);
    font-weight: 600;
}

@media (max-width: 480px) {
    .ab-score-line {
        font-size: clamp(20px, 6.5vw, 32px);
    }

    .ab-sanctuaries-btn__label {
        font-size: 10px;
    }
}
