* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
    background: #f5f3f0;
}

/* Visa aina */
.scene {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /*
    background: linear-gradient(180deg, #cde7ff 0%, #ffe9c7 40%, #f5f3f0 100%);
     */
        background: linear-gradient(to right, #bd1766, #2438bd);
    overflow: hidden;
    position: relative;
}

.gd-button{
    background: linear-gradient(to right, #bd1766, #2438bd) !important;
}

/* Bilde kā centrālā “istaba” */
.room-wrap {
    position: relative;
    z-index: 2; /* virs mākoņiem */
}
.room {
    position: relative;
    width: min(900px, 90vw);
    aspect-ratio: 1.1 / 1; /* viegli taisnstūrveida */
    border-radius: 32px;
    overflow: hidden;
    background-image: url("../img/bg-trans.png"); /* <- te ieliec savu bildi */
    background-size: cover;
    background-position: center;
}

/* Mīkstāka mala un iekšējā ēna, lai labāk saplūst ar fonu */
.room::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.12),
        inset 0 0 80px rgba(255, 255, 255, 0.25);
}

/* Ārējais vieglais “spalvu” efekts ap istabu */
.room-wrap::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 46px;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,255,255,0.4), rgba(255,255,255,0) 70%);
    filter: blur(12px);
    z-index: 1;
}

/* Viegls stikla efekts virs istabas */
.room-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
}

/* Kompaktāki ievades lauki */
.compact-input {
    max-width: 320px;
    width: 100%;
}

/* Samazinām faktiskos Vuetify lauku augstumus un noņemam kontūru */
.compact-input .v-field {
    min-height: 36px; /* tuvāk “parastam” ievades lauka augstumam */
}
.compact-input .v-field__input {
    padding-top: 6px;
    padding-bottom: 6px;
    min-height: 36px;
    font-size: 14px;
}
.compact-input .v-field__outline { /* droši, ja kaut kur paliek outlined variants */
    display: none !important;
}
.compact-input *:focus { /* noņem pārlūka outline, underline paliek kā fokus indikators */
    outline: none;
}

.bubble .bubble-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    justify-content: center; /* nocentrējam pogu zem lauka */
    width: 100%;
}

@media (max-width: 480px) {
    .compact-input {
        max-width: 100%; /* uz telefoniem lauks aizņem visu pieejamo burbuļa platumu */
    }
}

/* Mākoņi */
.cloud-wrap {
    position: absolute;
    animation: driftX var(--durX, 20s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
    will-change: transform;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0, #f6f6f6 55%, #ececec 80%);
    opacity: var(--op, 0.9);
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.08));
    animation: floatY var(--durY, 16s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
    pointer-events: none;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    background: inherit;
}

.cloud::before {
    width: 70%;
    height: 70%;
    top: -30%;
    left: 10%;
}

.cloud::after {
    width: 60%;
    height: 60%;
    bottom: -25%;
    right: 8%;
}

/* Vecās .cloud-1..5 klases vairs netiek izmantotas */

@keyframes floatY {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(var(--floatY, -20px));
    }
}

@keyframes driftX {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--driftX, 28px));
    }
}

/* Caurspīdīgs “bubulis” centrā */
.bubble-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* lai klikšķi iet tikai uz formu iekšā */
}

.bubble {
    pointer-events: auto;
    width: min(380px, 70vw);
    aspect-ratio: 1/1;
    border-radius: 999px;
    background: radial-gradient(
            circle at 30% 30%,
            rgba(255, 254, 249, 0.95),
            rgba(244, 230, 204, 0.95)
    );
    box-shadow:
            0 0 0 12px rgba(255, 255, 255, 0.35),
            0 30px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 40px;
    text-align: center;
    padding-top:100px;
}

.bubble-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.bubble-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 18px;
}

.bubble-footer {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}

/* Transition, kad parādās burbulis */
.bubble-fade-enter-active,
.bubble-fade-leave-active {
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.bubble-fade-enter-from,
.bubble-fade-leave-to {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    filter: blur(6px);
}

/* Neliels teksts pēc izvēles */
.greeting {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 6px 16px;
    backdrop-filter: blur(4px);
}

.v-input{
    margin-top:40px;
}

.v-input input, .v-input select{
    text-align:center;
}

@media (max-width: 600px) {
    /* ļaujam lapai elpot un ritināties telefonos */
    .scene {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .room-wrap {
        width: 100%;
        padding: 0 12px;
    }

    .room {
        width: 100%;
        aspect-ratio: auto; /* lai istabas augstums pielāgojas saturam */
        border-radius: 24px;
        overflow: visible; /* lai mīkstākas malas netraucē saturam */
    }

    .bubble-wrapper {
        position: static; /* vairs neabsolutēts – saturs var būt garāks par ekrānu */
        inset: auto;
        display: flex;
        align-items: stretch;
        justify-content: center;
        padding: 12px;
        pointer-events: none; /* saglabājam, bet .bubble ir auto */
    }

    .bubble {
        width: min(520px, calc(100vw - 32px));
        aspect-ratio: auto; /* noņemam apaļo formu uz mobilajām ierīcēm */
        border-radius: 20px;
        padding: 20px 16px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.20);
    }

    .bubble-title {
        font-size: 18px;
    }

    .bubble-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .bubble .v-btn {
        width: 100%; /* ērtāka nospiešana */
    }

    .greeting {
        position: static;
        transform: none;
        margin: 8px auto 4px;
        display: inline-block;
    }
}

#kic-log{

    padding:25px;
}

#kic-log img{
    max-width:150px;
}
