@import url('styles.css');

/* Capçalera neta i centrada */
.app-header {
    text-align: center;
    padding: 6px 16px;
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 1.2px;
    margin: 2px 0;
}

.app-header .subtitle {
    font-size: 0.72rem;
    color: var(--accent-blue);
    font-weight: 400;
    margin: 0;
}

/* --- TARGETA CONTENIDORA DE L'ESTANY (SENSE SCROLL) --- */
.pond-background {
    margin: 0 16px !important;
    background-color: #F7F4EF !important;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    height: calc(100dvh - 120px);
    max-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* MARC DE LA IMATGE REAL DE L'ESTANY */
.pond-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.real-pond-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

/* --- CONTENIDOR DEL CAMÍ --- */
/* --- CONTENIDOR ADAPTATIU PER A TOTS ELS MÒBILS --- */
.stones-container, .compact-path {
    position: absolute;
    bottom: 50px !important; /* Situat just per damunt dels botons inferiors de l'estany */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 240px !important;
    height: calc(100% - 110px) !important; /* S'adapta dinàmicament a l'alçada de cada pantalla */
    display: flex;
    flex-direction: column;
    justify-content: flex-end !important; /* Força l'inici des de baix de tot */
    align-items: center;
    padding: 0 !important;
    box-sizing: border-box;
    gap: 0px !important;
}

/* Distribució fluida i proporcional de les 14 pedres segons l'alçada del mòbil */
.compact-path .stone-wrapper {
    width: 100%;
    display: flex;
    position: relative;
    flex-grow: 1; /* Fa que les pedres s'estirin de manera elàstica omplint tot l'espai de baix a dalt */
    align-items: center;
}
}/* --- CONTENIDOR DEL CAMÍ --- */
.stones-container, .compact-path {
    position: relative;
    z-index: 10 !important;
    width: 100%;
    max-width: 240px !important;
    margin: 0 auto !important;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end !important;
    align-items: center;
    padding: 10px 0 !important;
    box-sizing: border-box;
    gap: 4px !important; /* Petit espai natural entre pedra i pedra */
}

/* Treure el marge negatiu perquè no es superposin tant i s'estirin pel camí */
.compact-path .stone-wrapper {
    width: 100%;
    display: flex;
    position: relative;
    margin-bottom: 0px !important; 
}

/* --- TOTES LES PEDRES DE LA MIDA DE LA VERDA --- */
.stone-img {
    width: 44px !important;
    height: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

/* --- ONA SINUOSA I RELAXADA (Amb posicions intermèdies) --- */
.stone-wrapper.pos-center {
    justify-content: center !important;
    transform: translateX(0px);
}

.stone-wrapper.pos-mid-left {
    justify-content: center !important;
    transform: translateX(-20px);
}

.stone-wrapper.pos-left {
    justify-content: center !important;
    transform: translateX(-40px);
}

.stone-wrapper.pos-mid-right {
    justify-content: center !important;
    transform: translateX(20px);
}

.stone-wrapper.pos-right {
    justify-content: center !important;
    transform: translateX(40px);
}

.stone-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stone-item:hover .stone-img {
    transform: scale(1.05);
}

/* Icona de check per a les completades */
.check-icon {
    position: absolute;
    font-size: 10px;
    color: white;
    font-weight: bold;
    background: rgba(107, 122, 88, 0.9);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 2px;
    right: 4px;
}

.check-icon.hidden {
    display: none;
}

/* Brillo per a la pedra activa (la verda) */
.stone-glow {
    position: absolute;
    width: 52px;
    height: 52px;
    background: radial-gradient(circle, rgba(139,157,119,0.6) 0%, rgba(139,157,119,0) 70%);
    border-radius: 50%;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* --- BOTONS INFERIORS DINS LA FOTO DEL FONS --- */
.circle-shortcuts-section {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 20 !important;
}

.img-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-custom-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    background: transparent !important;
    border: none !important;
}