
.char-pair-stage {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #1a1230;
}
.char-pair-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: none;
    cursor: grab;
}
.char-pair-image.is-ready {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: fill;
    will-change: transform;
}
.char-pair-image.is-panning { cursor: grabbing; }
.char-pair-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.28);
}
.char-pair-empty i { font-size: 48px; }
.char-pair-head {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
    padding: 28px 72px 56px;
    background: linear-gradient(to bottom, rgba(12, 8, 24, .78) 0%, transparent 100%);
    text-align: center;
    pointer-events: none;
}
.char-pair-name {
    color: #fff;
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.char-pair-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.char-pair-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.char-pair-tokens {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0;
    padding: 72px 24px 10px;
    background: linear-gradient(to top, rgba(12, 8, 24, .82) 0%, transparent 100%);
    pointer-events: none;
}
.char-pair-token-wrap {
    position: relative;
    z-index: 1;
    max-width: none;
    outline: none;
    pointer-events: auto;
}
.char-pair-token-wrap:hover,
.char-pair-token-wrap:focus-visible { z-index: 6; }
.char-pair-token {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.char-pair-token img {
    display: block;
    width: auto;
    height: auto;
    max-height: 260px;
    max-width: 220px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
    pointer-events: none;
}
.char-pair-token-fallback {
    display: flex;
    height: 260px;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.char-pair-source {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
    z-index: 3;
    max-width: 30%;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    word-break: break-all;
}
.char-pair-source a {
    color: rgba(255,255,255,.78);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.char-pair-source a:hover { color: #fff; }

@media (max-width: 900px) {
    .char-pair-token img { max-height: 176px; max-width: 148px; }
    .char-pair-token-fallback { height: 176px; }
    .char-pair-tokens { padding: 48px 12px 8px; }
    .char-pair-head { padding: 20px 14px 40px; }
    .char-pair-name { font-size: 24px; }
    .char-pair-stage { min-height: 360px; }
}

.char-pair-tooltip {
    white-space: normal;
    max-width: min(280px, 70vw);
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}