body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: sans-serif;
    position: fixed;
    touch-action: none;
    background: #e6d0ff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,182,193,0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,182,193,0.2) 0%, transparent 20%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 10 C12 4, 4 12, 8 20 C12 28, 20 36, 20 36 C20 36, 28 28, 32 20 C36 12, 28 4, 20 10" fill="%23ffb6c1" opacity="0.7"/></svg>') repeat;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffe4e1, #ff69b4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 1.2s ease-in-out;
}

.loading-text {
    font-size: 26px;
    color: #fff;
    text-shadow: 0 0 8px #ff1493;
    margin-bottom: 15px;
}

.searching-text {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 8px #ff1493;
}

#successMsg {
    margin-top: 25px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.6s;
    text-shadow: 0 0 8px #ff1493;
}

.hearts-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.heart {
    width: 50px;
    height: 50px;
    background: url('/room/girl/five-hearts.png') no-repeat center/contain;
    animation: bounce 1.2s infinite ease-in-out;
}

.heart:nth-child(1) { animation-delay: 0s; }
.heart:nth-child(2) { animation-delay: 0.15s; }
.heart:nth-child(3) { animation-delay: 0.3s; }
.heart:nth-child(4) { animation-delay: 0.45s; }
.heart:nth-child(5) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.15); }
}

#mainContainer {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

.main-content {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
}

#imageFrame {
    width: 90%;
    max-width: 400px;
    margin-top: 80px;
    height: 70vh;
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255,107,200,0.4);
    position: relative;
    background: #111;
    z-index: 5;
}

#mainImage, #fadeImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-out;
}

#fadeImage {
    opacity: 0;
    z-index: 2;
}

#swipeArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    z-index: 10;
}

#topInfo {
    position: absolute;
    top: 15px;  /* ここは変えなくてOK */
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;  /* 画像より上に！（今まで30だったかも？） */
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* 矢印との間隔狭め */
    padding: 12px 15px;
    max-width: 340px;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#currentGirlName {
    font-size: 26px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.prevHint, .nextHint {
    font-size: 18px;
    color: #ffb6c1;
    opacity: 0.7;
    font-style: italic;
    white-space: nowrap;
}

.prevHint::after {
    content: "←";
    margin-left: 4px;
    opacity: 0.8;
}

.nextHint {
    margin-left: -4px; /* 矢印が自然にくっつく */
}

.swipe-hint {
    position: absolute;
    top: 150px;  /* これを小さくする！（120pxとか100pxまで下げて調整してみて） */
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #ff6bc8;
    opacity: 0;
    font-weight: bold;
    text-shadow: 0 0 8px #ffb6c1;
    animation: fadePulse 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 25;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

#distanceTags {
    margin-top: 6px; /* 名前のすぐ下にぴったり！ */
    width: 100%;
    position: absolute;
    top: 70px;  /* 名前の下くらいにぴったり！ */
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 90%;
    max-width: 340px;
}

#distanceTags div {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
    background: rgba(255,107,200,0.7);
    backdrop-filter: blur(4px);
}

#speechBubble {
    position: absolute;
    bottom: 180px;
    left: 15px;
    z-index: 20;
    max-width: 70%;
    display: none;
}

.bubble-inner {
    position: relative;
    background: rgba(255,107,200,0.85);
    color: white;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.bubble-arrow {
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid rgba(255,107,200,0.85);
}

#meetButton {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 90%;
    max-width: 360px;
    display: none;
}

#meetButton button {
    width: 100%;
    padding: 22px;
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff69b4, #ff1493); /* 甘ピンク→激ピンクに強化！ */
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255,20,147,0.6); /* 影も熱く */
    cursor: pointer;
    transition: all 0.3s ease;
}

#popupTikTok {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-inner {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
}

.popup-inner span {
    font-size: 24px;
    color: #ff6bc8;
    font-weight: bold;
}

.popup-inner button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 20px;
    background: #ff6bc8;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}