/* ============================================================
   Barbie Giydirme Oyunu — mobil öncelikli, pastel Barbie teması
   ============================================================ */

:root {
    --pink-500: #ff4f9e;
    --pink-400: #ff6fb4;
    --pink-300: #ff9ecb;
    --pink-200: #ffc9e2;
    --pink-100: #ffe4f1;
    --pink-50:  #fff6fb;
    --lilac:    #b79ce8;
    --ink:      #6b3a56;
    --ink-soft: #a06b88;
    --white:    #ffffff;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-soft: 0 8px 24px rgba(255, 79, 158, 0.14);
    --font-main: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    --font-fancy: 'Great Vibes', 'Segoe Script', cursive;
    --skin: #f6c39e;
    --eye:  #4a3b63;
}

/* Karakter: ten, göz ve makyaj renkleri değişkene bağlı */
.skin-fill    { fill: var(--skin); }
.skin-stroke  { stroke: var(--skin); }
.eye-fill     { fill: var(--eye); }
.lip-stroke   { stroke: var(--lip, #e2557f); }
.blush-fill   { fill: var(--blush, #ffb3c7); }
.shadow-fill  { fill: var(--shadow, transparent); opacity: 0.55; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: var(--font-main);
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%,  rgba(255, 158, 203, 0.35), transparent 40%),
        radial-gradient(circle at 88% 16%, rgba(183, 156, 232, 0.28), transparent 42%),
        radial-gradient(circle at 50% 95%, rgba(255, 111, 180, 0.20), transparent 50%),
        linear-gradient(160deg, #fff0f8 0%, #ffe4f1 45%, #fdeaff 100%);
    background-attachment: fixed;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;   /* mobilde lastik/çekme-yenileme kaymasını engelle */
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Çift dokunma zoom gecikmesini kaldır — dokunmalar anında tepki verir */
button,
.photo-btn,
.polaroid-photo,
input[type="range"] {
    touch-action: manipulation;
}

/* ---------- Genel iskelet ---------- */

.game-shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: env(safe-area-inset-top) 10px env(safe-area-inset-bottom);
}

/* ---------- Üst bar ---------- */

.topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 6px 6px;
}

.topbar h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--pink-500);
    line-height: 1.1;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.topbar h1 span { color: var(--lilac); }

.dedication {
    font-family: var(--font-fancy);
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

.credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-soft);
    opacity: 0.78;
    letter-spacing: 0.2px;
}
.credit-dev strong { color: var(--pink-500); font-weight: 700; }
.credit-ver {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--pink-100);
    color: var(--pink-500);
    font-weight: 700;
}
.credit-sep { opacity: 0.5; }
.credit-note { font-style: italic; }

.dedication .heart {
    color: var(--pink-500);
    display: inline-block;
    animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    12%      { transform: scale(1.25); }
    24%      { transform: scale(1); }
}

.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn:active { transform: scale(0.94); }

.btn-primary {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(255, 79, 158, 0.35);
}

.btn-primary:hover { box-shadow: 0 8px 20px rgba(255, 79, 158, 0.45); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--pink-500);
    box-shadow: inset 0 0 0 2px var(--pink-200);
}

.btn-ghost:hover { background: var(--white); }

/* ---------- Ana düzen (mobil: dikey) ---------- */

.game-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

/* ---------- Karakter sahnesi ---------- */

.stage {
    flex: 0 0 44%;
    min-height: 0;
    position: relative;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.45) 65%),
        linear-gradient(180deg, #fff6fb, #ffe9f4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stage::before,
.stage::after {
    content: '✦';
    position: absolute;
    color: var(--pink-300);
    opacity: 0.6;
    font-size: 1.1rem;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
}

.stage::before { top: 12%; left: 10%; }
.stage::after  { top: 22%; right: 12%; animation-delay: 1.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
    50%      { opacity: 0.9;  transform: scale(1.15) rotate(20deg); }
}

.stage-doll {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.stage-doll svg {
    height: 100%;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(214, 74, 141, 0.15));
}

.stage-doll.pop { animation: doll-pop 0.35s ease; }

@keyframes doll-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.035); }
    100% { transform: scale(1); }
}

/* ---------- Gardırop paneli ---------- */

.wardrobe {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Sekmeler — mobilde yatay kaydırılabilir */

.tabs {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    padding: 10px 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;   /* dokunma hedefi standardı */
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--pink-100);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.82rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tab:active { transform: scale(0.95); }

.tab.active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 79, 158, 0.35);
}

/* Hello Kitty sekmesi — özel kırmızı-pembe vurgu */
.tab[data-cat="hellokitty"] {
    background: linear-gradient(135deg, #ffffff, #ffe0ee);
    color: #ff3b6b;
    box-shadow: inset 0 0 0 2px #ffb3cd;
}

.tab[data-cat="hellokitty"].active {
    background: linear-gradient(135deg, #ff6f92, #ff3b6b);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 59, 107, 0.4);
}

.tab-icon { font-size: 1.05rem; }

/* Kıyafet kartları */

.panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 10px 14px;
}

.items-grid[hidden] { display: none; }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 3px 10px rgba(214, 74, 141, 0.10), inset 0 0 0 2px var(--pink-100);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.item-card:hover { transform: translateY(-2px); }
.item-card:active { transform: scale(0.94); }

.item-card.selected {
    box-shadow: 0 5px 14px rgba(255, 79, 158, 0.35), inset 0 0 0 3px var(--pink-500);
    background: var(--pink-50);
}

.item-card.selected .item-name { color: var(--pink-500); }

.item-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, #fff3f9, #ffe6f2);
    border-radius: 12px;
    overflow: hidden;
}

.item-thumb svg {
    width: 82%;
    height: 82%;
    display: block;
}

.item-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.15;
}

.load-error {
    padding: 24px;
    text-align: center;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ---------- Masaüstü düzeni: yan yana ---------- */

@media (min-width: 880px) {
    .game-shell { padding: 12px 20px 20px; }

    .topbar { padding: 12px 8px 14px; }
    .topbar h1 { font-size: 2rem; }
    .dedication { font-size: 1.5rem; }
    .btn { font-size: 0.95rem; padding: 12px 20px; }

    .game-main {
        flex-direction: row;
        gap: 18px;
    }

    .stage {
        flex: 0 0 42%;
        height: 100%;
    }

    .wardrobe { flex: 1 1 auto; }

    .tabs { padding: 16px 16px 10px; flex-wrap: wrap; overflow-x: visible; }
    .tab { font-size: 0.85rem; padding: 7px 14px; min-height: 44px; }

    .panels { padding: 6px 16px 18px; }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 14px;
    }

    .item-name { font-size: 0.8rem; }
}

/* Kısa yatay mobil ekranlar: sahneyi daralt */
@media (max-height: 560px) and (max-width: 879px) {
    .stage { flex: 0 0 38%; }
    .topbar h1 { font-size: 1.05rem; }
    .dedication { font-size: 0.9rem; }
}

/* ============================================================
   Sahneler (arka planlar)
   ============================================================ */
.stage[data-scene="beach"] {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 236, 150, 0.9), transparent 26%),
        linear-gradient(180deg, #bfeaff 0%, #d9f2ff 52%, #ffe9c7 52%, #ffdca6 100%);
}
.stage[data-scene="party"] {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.8), transparent 30%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 14px, transparent 14px 28px),
        linear-gradient(180deg, #efdcff 0%, #ffd6ec 100%);
}
.stage[data-scene="room"] {
    background:
        radial-gradient(circle at 50% 12%, rgba(255,255,255,0.85), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0 22px, rgba(255,214,236,0.25) 22px 44px),
        linear-gradient(180deg, #efe6ff 0%, #ffe1f2 100%);
}
.stage[data-scene="podium"] {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,241,200,0.95), transparent 55%),
        linear-gradient(180deg, #fff6e6 0%, #ffe6ee 60%, #ffd0e0 100%);
}
.stage[data-scene="disco"] {
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 0, 128, 0.45), transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.35), transparent 45%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px),
        linear-gradient(180deg, #180030 0%, #3a005c 100%);
}
.stage[data-scene="galaxy"] {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 80%),
        radial-gradient(circle at 20% 30%, rgba(255, 180, 220, 0.15), transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(180, 220, 255, 0.15), transparent 25%),
        linear-gradient(180deg, #090014 0%, #1c0035 100%);
}
.stage[data-scene="forest"] {
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 245, 184, 0.55), transparent 22%),
        radial-gradient(circle at 78% 22%, rgba(255, 220, 245, 0.35), transparent 24%),
        radial-gradient(circle at 15% 78%, rgba(180, 240, 200, 0.4), transparent 30%),
        radial-gradient(circle at 85% 82%, rgba(200, 255, 220, 0.4), transparent 30%),
        linear-gradient(180deg, #d8f4e0 0%, #e6f8ea 50%, #c8e8d0 100%);
}
.stage[data-scene="underwater"] {
    background:
        radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.5), transparent 30%),
        radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.3), transparent 20%),
        radial-gradient(circle at 20% 80%, rgba(255, 180, 220, 0.35), transparent 30%),
        radial-gradient(circle at 80% 85%, rgba(180, 240, 220, 0.4), transparent 32%),
        linear-gradient(180deg, #b8e8ff 0%, #7ecfff 50%, #4a9ac8 100%);
}
.stage[data-scene="snow"] {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9), transparent 18%),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.7), transparent 15%),
        radial-gradient(circle at 45% 12%, rgba(255, 255, 255, 0.85), transparent 12%),
        radial-gradient(circle at 68% 60%, rgba(255, 255, 255, 0.6), transparent 10%),
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.55), transparent 10%),
        linear-gradient(180deg, #e0efff 0%, #c8dcf0 50%, #a8c4e0 100%);
}

/* ============================================================
   Stüdyo paneli
   ============================================================ */
.studio { padding: 4px 4px 20px; }

.studio-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 14px 4px 8px;
    letter-spacing: 0.3px;
}
.studio-title:first-child { margin-top: 4px; }

.swatch-row, .scene-row { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 6px rgba(214, 74, 141, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch:active { transform: scale(0.9); }
.swatch.active {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--pink-500), 0 3px 8px rgba(255, 79, 158, 0.4);
    transform: scale(1.08);
}

/* Makyaj kutucukları — "yok" durumu için özel */
.makeup-row .swatch-makeup { width: 44px; height: 44px; }
.swatch-none {
    background: #ffffff;
    position: relative;
    box-shadow: inset 0 0 0 2px #f0d9e4, 0 2px 6px rgba(214, 74, 141, 0.15);
}
.swatch-none-line {
    position: absolute;
    top: 50%; left: 4px; right: 4px;
    height: 2px;
    background: var(--pink-400);
    transform: rotate(-40deg);
    transform-origin: center;
    border-radius: 2px;
}
.swatch-none.active {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--pink-500);
}

.scene-chip {
    min-height: 44px;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--pink-100);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.8rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.scene-chip:active { transform: scale(0.95); }
.scene-chip.active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 79, 158, 0.35);
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink-500);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--pink-200);
    transition: transform 0.15s ease, background 0.15s ease;
}
.photo-btn:hover { background: var(--white); }
.photo-btn:active { transform: scale(0.96); }
.photo-note { font-weight: 600; font-size: 0.68rem; color: var(--ink-soft); opacity: 0.8; }

/* Polaroid Kombin Galeri Tasarımı */
.saved-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 10px;
    min-height: 20px;
}
.saved-empty { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; text-align: center; grid-column: 1 / -1; width: 100%; padding: 10px 0; }

.polaroid-card {
    background: var(--white);
    padding: 8px 8px 12px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 79, 158, 0.08);
    border: 1px solid rgba(255, 79, 158, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 8px 24px rgba(255, 79, 158, 0.16);
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 0.72;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
    background: #fff6fb;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.polaroid-photo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.polaroid-info {
    width: 100%;
    padding-top: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.polaroid-title-input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-fancy);
    font-size: 1.15rem;
    color: var(--pink-500);
    outline: none;
    padding: 2px 0;
    transition: background 0.15s ease;
    border-radius: 4px;
}

.polaroid-title-input:hover, .polaroid-title-input:focus {
    background: var(--pink-50);
}

.polaroid-date {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--ink-soft);
    opacity: 0.8;
}

.polaroid-del {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--pink-400);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 79, 158, 0.25);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.polaroid-del:hover {
    background: var(--pink-500);
    transform: scale(1.1);
}

/* Silme butonu görünüşte küçük kalsın ama dokunma alanı ~44px olsun */
.polaroid-del::before {
    content: '';
    position: absolute;
    inset: -11px;
}

.studio-save { margin-top: 12px; width: 100%; }

/* Bildirim balonu */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(255, 79, 158, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Ses / Müzik Kontrolleri
   ============================================================ */
.music-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px var(--pink-200);
    padding: 2px 10px 2px 2px;
}

.music-controls .btn-audio {
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 0.82rem;
    box-shadow: none;
    background: none;
    color: var(--pink-500);
    font-weight: 700;
}

.volume-slider {
    width: 60px;
    height: 6px;
    border-radius: 999px;
    background: var(--pink-100);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--pink-200);
    border-radius: 999px;
}

.volume-slider::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--pink-500);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 680px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 8px 6px 12px;
    }
    .topbar-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .topbar-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .topbar-actions .btn {
        flex: 1 1 calc(25% - 6px);
        min-width: 75px;
        justify-content: center;
        min-height: 44px;
        height: 44px;
        padding: 0 10px;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
    }
    .volume-slider {
        display: none; /* Mobilde yer kazanmak için kaydırıcı gizlenir, sadece buton kalır */
    }
    .music-controls {
        padding: 2px;
        flex: 1 1 calc(25% - 6px);
        min-width: 75px;
        justify-content: center;
    }
    .music-controls .btn-audio {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   AI Stil Danışmanı Balonu & Kontrolleri
   ============================================================ */
.ai-bubble {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--pink-300);
    border-radius: var(--radius-md);
    padding: 14px 34px 14px 16px;
    box-shadow: 0 10px 25px rgba(255, 79, 158, 0.15);
    z-index: 10;
    animation: slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slide-in {
    0% { transform: translateY(-25px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.ai-bubble-content {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink);
}

.ai-bubble-content strong {
    color: var(--pink-500);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.ai-bubble-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.ai-bubble-close:hover {
    background: var(--pink-100);
    color: var(--pink-500);
}

.ai-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.ai-actions-row .photo-btn {
    margin-top: 0;
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
}

.rate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--lilac);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--pink-200);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    flex: 1 1 calc(50% - 4px);
    white-space: nowrap;
}

.rate-btn:hover {
    background: var(--white);
    color: var(--pink-500);
    box-shadow: inset 0 0 0 2px var(--pink-300);
}

.rate-btn:active {
    transform: scale(0.96);
}

/* ============================================================
   PODYUM ŞOV MODU (Catwalk Mode)
   ============================================================ */
.catwalk-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 5, 20, 0.45);
    z-index: 5;
    pointer-events: none; /* Üzerine tıklanabilsin, ancak altındaki Barbie'yi engellemesin */
    animation: fade-in-catwalk 0.8s ease forwards;
}

.catwalk-overlay * {
    pointer-events: auto; /* İçindeki butonlar tıklanabilsin */
}

@keyframes fade-in-catwalk {
    0% { background: rgba(15, 5, 20, 0); }
    100% { background: rgba(15, 5, 20, 0.45); }
}

/* Spot Işıkları */
.spotlight {
    position: absolute;
    top: -50px;
    width: 250px;
    height: 150%;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.4) 0%, rgba(255, 111, 180, 0.15) 40%, transparent 70%);
    transform-origin: top center;
    mix-blend-mode: screen;
    animation: swing-spotlight 3s ease-in-out infinite alternate;
}

.spotlight-1 {
    left: -20px;
    animation-delay: 0s;
}

.spotlight-2 {
    right: -20px;
    animation: swing-spotlight-reverse 3.5s ease-in-out infinite alternate;
}

@keyframes swing-spotlight {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(15deg); }
}

@keyframes swing-spotlight-reverse {
    0% { transform: rotate(25deg); }
    100% { transform: rotate(-15deg); }
}

/* Konfeti Yağmuru */
.confetti-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 6;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff4f9e;
    border-radius: 2px;
    animation: fall-confetti 4s linear infinite;
}

@keyframes fall-confetti {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(620px) rotate(720deg);
        opacity: 0;
    }
}

/* Kapatma Butonu */
.btn-catwalk-exit {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4f9e, #ff6fb4);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 79, 158, 0.4);
    z-index: 10;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-catwalk-exit:active {
    transform: translateX(-50%) scale(0.95);
}

/* Bebek Yürüyüş Animasyonları */
.catwalk-walk {
    animation: catwalk-runway 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: bottom center;
}

.catwalk-pose {
    animation: catwalk-pose-pulse 2s ease-in-out infinite alternate;
}

/* 7 Saniyelik Podyum Koreografisi */
@keyframes catwalk-runway {
    /* 1. Giriş ve Yürüme (0s - 3.5s) */
    0% {
        transform: translateY(160px) scale(0.3) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    15% {
        transform: translateY(120px) scale(0.5) rotate(-3deg);
    }
    30% {
        transform: translateY(70px) scale(0.7) rotate(3deg);
    }
    45% {
        /* Podyumun ucuna varış */
        transform: translateY(0) scale(1) rotate(0deg);
    }

    /* 2. Havalı Dönüş (360 Spin) (45% - 75%) */
    48% {
        transform: translateY(0) scale(1) scaleX(1);
    }
    54% {
        transform: translateY(-5px) scale(1) scaleX(0); /* Profilden görünüş */
    }
    60% {
        transform: translateY(0) scale(1.02) scaleX(-1); /* Arkasını döndü */
    }
    66% {
        transform: translateY(-5px) scale(1) scaleX(0); /* Diğer profilden görünüş */
    }
    72% {
        transform: translateY(0) scale(1) scaleX(1); /* Tekrar önünü döndü */
    }

    /* 3. Kameraya Doğru Son Adım & Poz (72% - 100%) */
    78% {
        transform: translateY(-20px) scale(1.08) rotate(-4deg); /* Havalı bir duruşa geçiş */
    }
    85% {
        transform: translateY(-25px) scale(1.1) rotate(4deg);
    }
    100% {
        transform: translateY(-20px) scale(1.1) rotate(0deg); /* Kilit poz */
    }
}

/* Poz verme anındaki hafif pırıltılı nefes alma efekti */
@keyframes catwalk-pose-pulse {
    0% { transform: translateY(-20px) scale(1.1) rotate(-1deg); filter: drop-shadow(0 6px 12px rgba(255, 79, 158, 0.3)); }
    100% { transform: translateY(-23px) scale(1.12) rotate(1deg); filter: drop-shadow(0 15px 30px rgba(255, 79, 158, 0.6)); }
}


