
/* =========================================================
   COLLECTIBLE REVEAL POPUP — copied from battle.css for pages that do not load it
========================================================= */
.gold-tooth-reveal-layer {
    position: fixed;
    inset: 0;
    z-index: 1200000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 40%, rgba(224,184,76,.1), rgba(2,3,5,.88) 62%);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .35s ease;
}
.gold-tooth-reveal-layer.is-open { opacity: 1; }

.gold-tooth-reveal-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.gold-tooth-reveal-confetti i {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 7px;
    height: 14px;
    border-radius: 2px;
    background: var(--confetti, #e0b84c);
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: goldToothConfetti 1.6s cubic-bezier(.14,.7,.25,1) forwards;
    animation-delay: var(--delay, 0ms);
}

.gold-tooth-reveal-card {
    position: relative;
    isolation: isolate;
    width: min(440px, 100%);
    padding: 36px 30px 30px;
    border: 1px solid rgba(224,184,76,.5);
    border-radius: 26px;
    text-align: center;
    color: #f8f4e6;
    background:
        radial-gradient(circle at 50% 0%, rgba(224,184,76,.22), transparent 55%),
        linear-gradient(165deg, #211a0e, #0a0906 72%);
    box-shadow:
        0 40px 100px rgba(0,0,0,.6),
        0 0 0 1px rgba(255,255,255,.03) inset,
        0 0 90px rgba(224,184,76,.16);
    transform: translateY(16px) scale(.92);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2,1.1,.3,1), opacity .4s ease;
}
.gold-tooth-reveal-layer.is-open .gold-tooth-reveal-card { transform: translateY(0) scale(1); opacity: 1; }

.gold-tooth-reveal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
}

.gold-tooth-reveal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd86b;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255,216,107,.6);
}
.gold-tooth-reveal-kicker::before,
.gold-tooth-reveal-kicker::after {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.gold-tooth-reveal-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    margin: 22px auto 18px;
}
.gold-tooth-reveal-aura {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(224,184,76,.55), transparent 35%, rgba(181,128,255,.28), transparent 70%);
    filter: blur(16px);
    animation: goldToothAuraSpin 5s linear infinite;
}
.gold-tooth-reveal-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(224,184,76,.4);
    box-shadow: 0 0 0 6px rgba(224,184,76,.08), inset 0 0 30px rgba(224,184,76,.1);
    animation: goldToothRingPulse 2.4s ease-in-out infinite;
}
.gold-tooth-reveal-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #3a2c11, #0c0a06 72%);
    border: 2px solid rgba(224,184,76,.65);
    box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 40px rgba(224,184,76,.3), inset 0 1px rgba(255,255,255,.1);
    animation: goldToothIconFloat 3.2s ease-in-out infinite;
    overflow: hidden;
}
.gold-tooth-reveal-icon img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}

.gold-tooth-reveal-name {
    margin: 4px 0 6px;
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.01em;
    background: linear-gradient(90deg, #ffe9ad, #e0b84c 45%, #ffd86b 70%, #ffe9ad);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldToothTextShine 3s linear infinite;
}

.gold-tooth-reveal-rarity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(224,184,76,.4);
    border-radius: 999px;
    color: #ffe9ad;
    background: rgba(224,184,76,.1);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gold-tooth-reveal-copy {
    margin: 16px 0 0;
    color: #cbbfa0;
    font-size: .86rem;
    line-height: 1.6;
}

.gold-tooth-reveal-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.gold-tooth-reveal-continue {
    min-width: 200px;
    min-height: 48px;
    border: 1px solid rgba(255,217,107,.8);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffe9ad, #d4a531);
    color: #1c1404;
    font-weight: 900;
    letter-spacing: .02em;
    box-shadow: 0 12px 30px rgba(224,184,76,.28);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.gold-tooth-reveal-continue:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(224,184,76,.4); }

@keyframes goldToothAuraSpin { to { transform: rotate(360deg); } }
@keyframes goldToothRingPulse { 50% { box-shadow: 0 0 0 12px rgba(224,184,76,.03), inset 0 0 44px rgba(224,184,76,.18); } }
@keyframes goldToothIconFloat { 50% { transform: translateY(-6px); } }
@keyframes goldToothTextShine { to { background-position: -220% 0; } }
@keyframes goldToothConfetti {
    0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--spin)); }
}

@media (prefers-reduced-motion: reduce) {
    .gold-tooth-reveal-aura,
    .gold-tooth-reveal-ring,
    .gold-tooth-reveal-icon,
    .gold-tooth-reveal-name { animation: none; }
    .gold-tooth-reveal-confetti { display: none; }
}

@media (max-width: 520px) {
    .gold-tooth-reveal-card { padding: 28px 20px 24px; border-radius: 20px; }
    .gold-tooth-reveal-stage { width: 140px; height: 140px; }
    .gold-tooth-reveal-icon { width: 100px; height: 100px; }
}
