/* kin-gear.css */
.kin-gear-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kg-stage {
    position: relative;
    width: 640px;
    height: 640px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    background: transparent;
}
/* 全卡片星空背景 */
.kg-stage .kg-stage-stars {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
}
.kg-stage .kg-stage-stars .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: kg-twinkle 3s ease-in-out infinite alternate;
}
.kg-stage .kg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.kg-stage .kg-layer img { position: absolute; max-width: none; }
.kg-stage .kg-layer .back-img { width: 640px; }
.kg-stage .kg-layer .front-img { width: 440px; }

.kg-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 240px; height: 240px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
    border: 1px solid rgba(255,215,0,0.08);
    
}
.kg-center .kg-stars {
    position: absolute; inset: 0;
    pointer-events: none;
}
.kg-center .kg-stars .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: kg-twinkle 3s ease-in-out infinite alternate;
}
@keyframes kg-twinkle {
    0%   { opacity: 0.2; }
    100% { opacity: 1; }
}
.kg-center .kg-num {
    position: relative; z-index: 1;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,0.8), 0 0 20px rgba(255,215,0,0.5), 0 0 40px rgba(255,215,0,0.3), 0 0 80px rgba(167,139,250,0.2);
    line-height: 1.2;
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
}
.kg-center .kg-name {
    position: relative; z-index: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.4), 0 0 16px rgba(167,139,250,0.3);
    line-height: 1.2;
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
}
@keyframes zoomRotateIn {
    from { opacity: 0; transform: scale(0.3) rotate(180deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.kg-center .kg-num.animate-in {
    animation: zoomRotateIn 0.5s ease-out forwards;
}
.kg-center .kg-name.animate-in {
    animation: zoomRotateIn 0.5s ease-out 0.12s forwards;
}
.kg-marker {
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255,107,107,0.8);
    z-index: 10;
    pointer-events: none;
}

@media(max-width:520px){
    .kg-stage { width: 100%; height: auto; aspect-ratio: 1; }
    .kg-stage .kg-layer .back-img { width: 100%; }
    .kg-stage .kg-layer .front-img { width: 68.75%; }
    .kg-center { width: 37.5%; height: 37.5%; }
    .kg-center .kg-num { font-size: 1.2rem; }
    .kg-center .kg-name { font-size: 0.88rem; }
}
