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

body {
    background: #000;
    overflow: hidden;
    font-family: Georgia, 'Times New Roman', serif;
}

canvas {
    display: block;
}

/* ── Začetni zaslon ─────────────────────────────────────── */
#blocker {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background:
        linear-gradient(rgba(10, 5, 0, 0.52), rgba(10, 5, 0, 0.52)),
        url('images/ozadje.jpg') center / cover no-repeat;
}

#instructions {
    text-align: center;
    color: #e8e0d0;
    max-width: 420px;
    padding: 2.5rem;
    border: 1px solid rgba(200, 180, 140, 0.35);
    background: rgba(10, 6, 2, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

#instructions h1 {
    font-size: 2.2rem;
    color: #c8a96e;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.subtitle {
    font-style: italic;
    color: #998877;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.controls-info {
    margin-bottom: 1.8rem;
    line-height: 2;
    color: #bbb;
}

.key {
    display: inline-block;
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: #c8a96e;
    padding: 1px 8px;
    font-size: 0.85rem;
    border-radius: 3px;
    margin-right: 4px;
    font-family: monospace;
}

#enterBtn,
#shopBtn,
#profileBtn,
#googleBtn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #c8a96e;
    color: #c8a96e;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-family: Georgia, serif;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: background 0.2s, color 0.2s;
}

#enterBtn:hover,
#shopBtn:hover,
#profileBtn:hover,
#googleBtn:hover {
    background: #c8a96e;
    color: #111;
}

#shopBtn,
#profileBtn,
#googleBtn {
    margin-top: 0.75rem;
}

#googleBtn {
    border-color: rgba(200, 169, 110, 0.5);
    margin-bottom: 0.5rem;
}

#userStatus {
    font-size: 0.85rem;
    color: #998877;
    min-height: 1.2em;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.start-choice {
    margin-bottom: 1.8rem;
    text-align: left;
}

.start-choice label {
    display: block;
    margin-bottom: 0.35rem;
    color: #c8a96e;
    font-size: 0.95rem;
}

#startSelect {
    width: 100%;
    border: 1px solid rgba(200, 169, 110, 0.4);
    background: rgba(20, 15, 10, 0.85);
    color: #e8e0d0;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
}

#startSelect:focus {
    border-color: rgba(200, 169, 110, 0.8);
}

#movementControls {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: grid;
    gap: 0.6rem;
    z-index: 90;
    pointer-events: none;
}

.arrow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: 230px;
    pointer-events: auto;
}

.move-btn,
.arrow-spacer {
    width: 70px;
    height: 70px;
    border-radius: 16px;
}

.move-btn {
    border: 1px solid rgba(200, 169, 110, 0.45);
    background: rgba(20, 15, 10, 0.82);
    color: #e8e0d0;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    transition: background 0.2s, transform 0.15s;
}

.move-btn:active,
.move-btn.active {
    background: rgba(200, 169, 110, 0.75);
    transform: scale(0.98);
}

@media (max-width: 720px) {
    #movementControls {
        max-width: 280px;
        bottom: 0.8rem;
    }

    .arrow-grid {
        width: 100%;
        gap: 0.35rem;
    }

    .move-btn {
        width: 100%;
        height: 72px;
    }
}

.grave-menu {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.3);
}

.menu-btn {
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: #c8a96e;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-family: Georgia, serif;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-btn:hover {
    background: rgba(200, 169, 110, 0.3);
}

/* ── Križ ────────────────────────────────────────────────── */
#exitBtn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 0.65rem 1rem;
    background: rgba(20, 15, 10, 0.92);
    border: 1px solid rgba(200, 169, 110, 0.7);
    color: #e8e0d0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

#exitBtn:hover {
    background: rgba(200, 169, 110, 0.15);
    transform: translateY(-1px);
}

#lokacijaVrstica {
    position: fixed;
    top: 1rem;
    left: 10rem;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.65rem 1rem;
    background: rgba(20, 15, 10, 0.92);
    border: 1px solid rgba(200, 169, 110, 0.7);
    color: #e8e0d0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.location-btn:hover {
    background: rgba(200, 169, 110, 0.15);
    transform: translateY(-1px);
}

#uporabnikIme {
    color: #c8a96e;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

#startPicker {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#startPicker.hidden {
    display: none;
}

.picker-panel {
    width: min(380px, 90vw);
    background: rgba(20, 15, 10, 0.96);
    border: 1px solid rgba(200, 169, 110, 0.6);
    padding: 1.5rem;
    text-align: center;
    color: #e8e0d0;
    border-radius: 12px;
}

.picker-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: #c8a96e;
}

.picker-panel label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c8a96e;
    font-size: 0.95rem;
}

.picker-panel select {
    width: 100%;
    padding: 0.85rem 0.9rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(200, 169, 110, 0.4);
    background: rgba(20, 15, 10, 0.88);
    color: #e8e0d0;
}

.picker-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.picker-actions button {
    border: 1px solid rgba(200, 169, 110, 0.6);
    background: rgba(20, 15, 10, 0.92);
    color: #e8e0d0;
    padding: 0.75rem 1.2rem;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}

.picker-actions button:hover {
    background: rgba(200, 169, 110, 0.18);
    transform: translateY(-1px);
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    display: none;
    z-index: 50;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
}

#crosshair::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#crosshair::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Plošča nagrobnika ───────────────────────────────────── */
#gravePanel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 12, 8, 0.94);
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: #e8e0d0;
    padding: 1.5rem 2.5rem;
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    z-index: 80;
    transition: opacity 0.3s;
}

#gravePanel.hidden {
    display: none;
}

#graveId,
.panelGrobId {
    position: absolute;
    top: 0.7rem;
    left: 0.9rem;
    font-size: 0.72rem;
    color: #554433;
    font-family: monospace;
    letter-spacing: 0.04em;
    pointer-events: none;
}

#grobVsebina {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 0.4rem;
}

#grobVsebina::-webkit-scrollbar {
    width: 4px;
}
#grobVsebina::-webkit-scrollbar-track {
    background: transparent;
}
#grobVsebina::-webkit-scrollbar-thumb {
    background: rgba(200, 169, 110, 0.35);
    border-radius: 2px;
}
#grobVsebina::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 169, 110, 0.65);
}

#gravePanel h2 {
    font-size: 1.5rem;
    color: #c8a96e;
    margin-bottom: 0.3rem;
}

#graveDates {
    font-style: italic;
    color: #998877;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

#graveText {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
}

#grobMelodija {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.35rem 0.7rem;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.25);
    border-radius: 2px;
    animation: utrip-pesem 2s ease-in-out infinite alternate;
}

#grobMelodija.hidden { display: none; }

/* ── Predmeti na grobu (sveče, cvetje) ──────────────────────── */
.grobPredmetVrstica {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding: 0.28rem 0.6rem;
    background: rgba(200, 169, 110, 0.06);
    border: 1px solid rgba(200, 169, 110, 0.18);
    border-radius: 2px;
}

.predmetIkona {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.predmetInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.predmetIme {
    font-size: 0.80rem;
    color: #c8a96e;
    font-family: Georgia, serif;
    font-style: italic;
}

.predmetPostavil {
    font-size: 0.66rem;
    color: #665544;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.predmetPoteče {
    font-size: 0.66rem;
    color: #7a6a55;
    font-style: italic;
    white-space: nowrap;
    flex-shrink: 0;
}

.predmetKos {
    background: none;
    border: none;
    font-size: 0.82rem;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s;
    padding: 0 0.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.predmetKos:hover { opacity: 1; color: #cc4444; }

#grobMelodijaIkona {
    color: #c8a96e;
    font-size: 1rem;
}

#grobMelodijaIme {
    font-size: 0.82rem;
    color: #c8a96e;
    font-family: Georgia, serif;
    font-style: italic;
}

#closePanel {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1rem;
    cursor: pointer;
}

#closePanel:hover {
    color: #c8a96e;
}

/* ── Galerija ────────────────────────────────────────────── */
#galerijaOverlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

#galerijaOverlay.hidden { display: none; }

#galerijaPanel {
    position: relative;
    width: min(580px, 94vw);
    background: rgba(18, 13, 9, 0.97);
    border: 1px solid rgba(200, 169, 110, 0.45);
    padding: 2rem 2rem 1.8rem;
    color: #e8e0d0;
    font-family: Georgia, serif;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#galerijaPanel h3 {
    font-size: 1.1rem;
    color: #c8a96e;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
    padding-bottom: 0.6rem;
}

#galerijaZapri {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1.1rem;
    cursor: pointer;
}

#galerijaZapri:hover { color: #c8a96e; }

#galerijanMreza {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.galerijanSličica {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(200, 169, 110, 0.2);
    transition: border-color 0.2s;
}

.galerijanSličica:hover { border-color: rgba(200, 169, 110, 0.7); }

.slika-brisanje {
    position: absolute;
    bottom: 0.3rem;
    right: 0.3rem;
    background: rgba(10, 5, 3, 0.78);
    border: none;
    color: #cc4444;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.18s;
}

.galerijanSličica:hover .slika-brisanje { opacity: 1; }

#galerijaSkrbnikOvoj {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    padding-top: 0.8rem;
}

#galerijaSkrbnikOvoj.hidden { display: none; }

.slika-dodaj {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px dashed rgba(200, 169, 110, 0.45);
    color: #c8a96e;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.slika-dodaj:hover {
    border-color: rgba(200, 169, 110, 0.85);
    background: rgba(200, 169, 110, 0.07);
}

#galerijanSporocilo {
    font-size: 0.82rem;
    color: #887766;
    font-style: italic;
    margin: 0;
}

.galerijanSličica img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.galerijanSličica:hover img { transform: scale(1.04); }

#galerijanVecja {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#galerijanVecja.hidden { display: none; }

#galerijanSlika {
    flex: 1;
    max-height: 55vh;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

#galerijanPrej,
#galerijanNasled {
    background: none;
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: #c8a96e;
    font-size: 2rem;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

#galerijanPrej:hover,
#galerijanNasled:hover { background: rgba(200, 169, 110, 0.15); }

/* ── Žalna knjiga ────────────────────────────────────────── */
#zalnaOverlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

#zalnaOverlay.hidden { display: none; }

#zalnaPanel {
    position: relative;
    width: min(580px, 94vw);
    max-height: 85vh;
    overflow: hidden;
    background: rgba(18, 13, 9, 0.97);
    border: 1px solid rgba(200, 169, 110, 0.45);
    padding: 2rem 2.2rem 1.8rem;
    color: #e8e0d0;
    font-family: Georgia, 'Times New Roman', serif;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#zalnaPanel h3 {
    font-size: 1.1rem;
    color: #c8a96e;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
    padding-bottom: 0.6rem;
}

#zalnaZapri {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1.1rem;
    cursor: pointer;
}

#zalnaZapri:hover { color: #c8a96e; }

#zalnaForma {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#zalnaForma.hidden { display: none; }

#zalnaVnos {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200, 169, 110, 0.3);
    color: #e8e0d0;
    padding: 0.6rem 0.8rem;
    font-family: Georgia, serif;
    font-size: 0.92rem;
    resize: none;
    outline: none;
}

#zalnaVnos:focus { border-color: rgba(200, 169, 110, 0.7); }

#zalnaStevec {
    font-size: 0.78rem;
    color: #665544;
    text-align: right;
}

#zalnaOddaj {
    align-self: flex-end;
    background: transparent;
    border: 1px solid #c8a96e;
    color: #c8a96e;
    padding: 0.45rem 1.2rem;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#zalnaOddaj:hover:not(:disabled) { background: #c8a96e; color: #111; }
#zalnaOddaj:disabled { opacity: 0.5; cursor: default; }

#zalnaPrijava {
    font-size: 0.9rem;
    color: #998877;
    font-style: italic;
    text-align: center;
}

#zalnaPrijava.hidden { display: none; }

#zalnaSeznam {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-top: 1px solid rgba(200, 169, 110, 0.15);
    padding-top: 1rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    padding-right: 0.4rem;
}

#zalnaSeznam::-webkit-scrollbar {
    width: 5px;
}

#zalnaSeznam::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

#zalnaSeznam::-webkit-scrollbar-thumb {
    background: rgba(200, 169, 110, 0.35);
    border-radius: 3px;
}

#zalnaSeznam::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 169, 110, 0.6);
}

.zalnaVrstica {
    border-left: 2px solid rgba(200, 169, 110, 0.3);
    padding-left: 0.9rem;
}

.zalnaAvtor {
    font-size: 0.82rem;
    color: #c8a96e;
    margin-bottom: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: baseline;
}

.zalnaEmail { color: #665544; font-size: 0.78rem; }
.zalnaDatum { color: #554433; font-size: 0.75rem; margin-left: auto; }

.zalnaSporocilo {
    font-size: 0.92rem;
    color: #d0c8b8;
    line-height: 1.6;
}

.zalnaObjava {
    font-size: 0.88rem;
    color: #665544;
    font-style: italic;
    text-align: center;
    padding: 0.5rem 0;
}

/* ── Modal za pismo ─────────────────────────────────────── */
#pismoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

#pismoOverlay.hidden {
    display: none;
}

#pismoPanel {
    position: relative;
    width: min(560px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(18, 13, 9, 0.97);
    border: 1px solid rgba(200, 169, 110, 0.45);
    padding: 2.2rem 2.5rem 2rem;
    color: #e8e0d0;
    font-family: Georgia, 'Times New Roman', serif;
}

#pismoPanel h3 {
    font-size: 1.1rem;
    color: #c8a96e;
    margin-bottom: 1.4rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
    padding-bottom: 0.6rem;
}

#pismoBranje {
    font-size: 0.97rem;
    line-height: 1.85;
    color: #d8d0c0;
    white-space: pre-wrap;
}

#pismoUredi {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#pismoUredi.hidden { display: none; }

#pismoUreditev {
    width: 100%;
    min-height: 200px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200, 169, 110, 0.3);
    color: #e8e0d0;
    padding: 0.8rem 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    resize: vertical;
    outline: none;
}

#pismoUreditev:focus { border-color: rgba(200, 169, 110, 0.7); }

#pismoStevecOvoj {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pismoStevec {
    font-size: 0.78rem;
    color: #665544;
}

#pismoShrani {
    background: transparent;
    border: 1px solid #c8a96e;
    color: #c8a96e;
    padding: 0.4rem 1.1rem;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#pismoShrani:hover:not(:disabled) { background: #c8a96e; color: #111; }
#pismoShrani:disabled { opacity: 0.5; cursor: default; }

#pismoZapri {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

#pismoZapri:hover {
    color: #c8a96e;
}

/* ── Profil ──────────────────────────────────────────────── */
#profilStran {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem 2rem;
    gap: 1.5rem;
    overflow-y: auto;
}

#profilKartica {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    width: min(520px, 100%);
    background: rgba(20, 15, 10, 0.85);
    border: 1px solid rgba(200, 169, 110, 0.35);
    padding: 1.8rem 2rem;
}

#profilSlika {
    flex-shrink: 0;
}

#avatarImg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(200, 169, 110, 0.5);
    display: none;
    object-fit: cover;
}

#avatarGost {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(200, 169, 110, 0.4);
    background: rgba(200, 169, 110, 0.1);
    color: #c8a96e;
    font-size: 2rem;
    font-family: Georgia, serif;
    display: none;
    align-items: center;
    justify-content: center;
}

#profilInfo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#profilIme {
    font-size: 1.4rem;
    color: #c8a96e;
    font-family: Georgia, serif;
}

#profilEmail {
    font-size: 0.88rem;
    color: #998877;
}

#profilPrijavaBtn {
    margin-top: 0.6rem;
    display: inline-block;
    border: 1px solid #c8a96e;
    color: #c8a96e;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-family: Georgia, serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#profilPrijavaBtn:hover {
    background: #c8a96e;
    color: #111;
}

#mojeStvari {
    width: min(520px, 100%);
    background: rgba(20, 15, 10, 0.85);
    border: 1px solid rgba(200, 169, 110, 0.35);
    padding: 1.5rem 2rem;
    min-height: 200px;
}

.stvariGlava {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

.stvariDesno {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kos-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    cursor: default;
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.2s, filter 0.2s;
}

.kos-btn.aktiven {
    opacity: 0.85;
    pointer-events: auto;
    cursor: pointer;
    filter: sepia(1) saturate(3) hue-rotate(-20deg);
}

.kos-btn.aktiven:hover {
    opacity: 1;
    filter: sepia(1) saturate(5) hue-rotate(-20deg);
}

/* ── Seznam nakupov ──────────────────────────────────────── */
#nakupiSeznam {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nakupIzdelek {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(200, 169, 110, 0.12);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.nakupIzdelek:hover {
    background: rgba(200, 169, 110, 0.05);
    border-color: rgba(200, 169, 110, 0.25);
}

.nakupIzdelek.izbran {
    background: rgba(200, 169, 110, 0.1);
    border-color: rgba(200, 169, 110, 0.45);
}

.nakupIkona {
    font-size: 1.1rem;
    color: #c8a96e;
    flex-shrink: 0;
}

.nakupInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nakupIme {
    font-size: 0.88rem;
    color: #c8a96e;
    font-family: Georgia, serif;
}

.nakupAvtor {
    font-size: 0.73rem;
    color: #776655;
    font-style: italic;
}

.nakupPoteče {
    font-size: 0.7rem;
    color: #554433;
    white-space: nowrap;
    flex-shrink: 0;
}

#mojeStvari h3 {
    font-size: 1.1rem;
    color: #c8a96e;
    font-family: Georgia, serif;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#zetonStevilo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.zetonIkona {
    font-size: 1.1rem;
    line-height: 1;
}

#zetonCount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c8a96e;
    font-family: Georgia, serif;
    min-width: 1.5ch;
    text-align: right;
}

.zetonBes {
    font-size: 0.82rem;
    color: #998877;
    font-family: Georgia, serif;
}

.praznoSporocilo {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

/* ── Trgovina ────────────────────────────────────────────── */
#trgovinaStran {
    min-height: 100vh;
    padding: 4.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

#trgovinaGlava {
    text-align: center;
    width: min(700px, 100%);
}

#trgovinaGlavaVrstica {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

#trgovinaGlava h1 {
    font-size: 2rem;
    color: #c8a96e;
    font-family: Georgia, serif;
    margin-bottom: 0;
}

#trgovinaGlava p {
    color: #998877;
    font-style: italic;
    font-size: 0.95rem;
}

#trgovinaVsebina {
    width: min(700px, 100%);
    border: 1px solid rgba(200, 169, 110, 0.35);
    background: rgba(20, 15, 10, 0.85);
}

#zavihkiVrstica {
    display: flex;
    border-bottom: 1px solid rgba(200, 169, 110, 0.35);
}

.zavihek {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(200, 169, 110, 0.2);
    color: #998877;
    padding: 0.8rem 0.5rem;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.zavihek:last-child { border-right: none; }

.zavihek:hover { color: #c8a96e; background: rgba(200, 169, 110, 0.06); }

.zavihek.aktivni {
    color: #c8a96e;
    background: rgba(200, 169, 110, 0.1);
    border-bottom: 2px solid #c8a96e;
    margin-bottom: -1px;
}

#zavihkiVsebina {
    padding: 1.8rem;
    min-height: 300px;
}

.tab-panel { display: none; }
.tab-panel.aktivni { display: block; }

/* ── Izdelki ─────────────────────────────────────────────── */
.izdelkiMreza {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.izdelek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200, 169, 110, 0.2);
    padding: 1.4rem 1rem 1rem;
    width: 110px;
    transition: border-color 0.2s;
}

.izdelek:hover { border-color: rgba(200, 169, 110, 0.55); }

.izdelekIme {
    font-size: 0.82rem;
    color: #c8a96e;
    text-align: center;
    font-family: Georgia, serif;
}

.izdelekCena {
    font-size: 0.8rem;
    color: #998877;
}

.kupiBtn {
    background: transparent;
    border: 1px solid rgba(200, 169, 110, 0.5);
    color: #c8a96e;
    padding: 0.3rem 0.8rem;
    font-family: Georgia, serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.kupiBtn:hover { background: #c8a96e; color: #111; }

.trajanje {
    font-size: 0.7rem;
    color: #665544;
    text-align: center;
    font-style: italic;
    margin-top: -0.2rem;
}

/* ── CSS Sveče ───────────────────────────────────────────── */
.svecaOvoj {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 110px;
    justify-content: flex-end;
}

/* Plamen */
.svecaPlamen {
    position: absolute;
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 25% 25% / 55% 55% 45% 45%;
    animation: utripanje 1.8s ease-in-out infinite alternate;
}

@keyframes utripanje {
    from { transform: translateX(-50%) scaleY(1) rotate(-2deg); opacity: 1; }
    to   { transform: translateX(-50%) scaleY(0.88) rotate(2deg); opacity: 0.85; }
}

.svecaStenj {
    position: absolute;
    width: 2px;
    height: 7px;
    background: #2a1a0a;
    border-radius: 1px;
    z-index: 2;
}

/* Telesa sveč */
.svecaTelo {
    border-radius: 3px 3px 2px 2px;
    position: relative;
}

/* 1. Bela sveča – visoka, tanka */
.bela-sveca {
    width: 22px;
    height: 80px;
    background: linear-gradient(to right, #ddd8cc, #f5f2ec, #ddd8cc);
}
.plamen-bela {
    background: radial-gradient(ellipse at 50% 80%, #fff 10%, #ffe066 40%, #ff9900 80%);
    top: 0px;
    left: 50%;
}

/* 2. Rdeča sveča – srednje visoka */
.rdeca-sveca {
    width: 26px;
    height: 65px;
    background: linear-gradient(to right, #8b1a1a, #cc2222, #8b1a1a);
}
.plamen-rdeca {
    background: radial-gradient(ellipse at 50% 80%, #fff8 10%, #ffcc44 40%, #ff6600 80%);
    top: 2px;
    left: 50%;
}

/* 3. Zlata sveča – elegantna */
.zlata-sveca {
    width: 20px;
    height: 75px;
    background: linear-gradient(to right, #8a6a00, #c8a96e, #d4af37, #c8a96e, #8a6a00);
}
.plamen-zlata {
    background: radial-gradient(ellipse at 50% 80%, #fffde0 10%, #ffe066 50%, #ff9900 85%);
    top: 1px;
    left: 50%;
    width: 10px;
    height: 16px;
}

/* 4. Čajna svečka – nizka, široka */
.cajna-sveca {
    width: 36px;
    height: 18px;
    background: linear-gradient(to right, #e8e0d0, #f5f0e8, #e8e0d0);
    border-radius: 2px;
}
.cajnaPosodicа {
    width: 44px;
    height: 6px;
    background: linear-gradient(to right, #888, #bbb, #888);
    border-radius: 0 0 4px 4px;
    margin-top: 1px;
}
.plamen-cajna {
    background: radial-gradient(ellipse at 50% 80%, #fff 10%, #ffe066 45%, #ff8800 85%);
    top: 2px;
    left: 50%;
    width: 10px;
    height: 15px;
}

/* 5. Steklena sveča – v kozarcu */
.steklena-notranjost {
    width: 34px;
    height: 50px;
    background: linear-gradient(to right, #c8b87a, #e8d898, #c8b87a);
    border-radius: 0;
    margin-bottom: 0;
}
.steklenaKos {
    width: 40px;
    height: 8px;
    background: linear-gradient(to right,
        rgba(180,200,220,0.4),
        rgba(220,235,245,0.7),
        rgba(180,200,220,0.4));
    border: 1px solid rgba(200,220,240,0.5);
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.plamen-steklena {
    background: radial-gradient(ellipse at 50% 80%, #fff 10%, #aaddff 40%, #4499ff 80%);
    top: 5px;
    left: 50%;
    width: 11px;
    height: 17px;
}

/* ── CSS Cvetje ──────────────────────────────────────────── */
.cvetOvoj {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 110px;
    justify-content: flex-end;
}

.zeleno-stebelce {
    width: 4px;
    height: 55px;
    background: linear-gradient(to bottom, #5aaa30, #3a7a18);
    border-radius: 2px;
}

/* 1. Rdeča vrtnica */
.cvet-vrtnica {
    width: 34px;
    height: 34px;
    background: radial-gradient(ellipse at 40% 38%, #ff9999 5%, #cc1111 55%, #880000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow:
        -13px 2px 0 -5px #aa0000,
        13px 2px 0 -5px #aa0000,
        -8px -10px 0 -6px #cc2222,
        8px -10px 0 -6px #cc2222,
        0 -13px 0 -6px #dd3333;
}
.cvet-vrtnica::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,180,180,0.65), rgba(200,30,30,0.55));
    border-radius: 50%;
    top: 6px;
    left: 5px;
}

/* 2. Rumeni tulipan */
.cvet-tulipan {
    width: 26px;
    height: 34px;
    background: linear-gradient(to bottom, #ffe566 0%, #ffb800 65%, #dd8800 100%);
    border-radius: 50% 50% 30% 30% / 55% 55% 45% 45%;
    position: relative;
}
.cvet-tulipan::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 30px;
    background: linear-gradient(to bottom, #ffee88, #ffcc22);
    border-radius: 50% 10% 20% 50% / 55% 30% 45% 55%;
    left: -9px;
    top: 5px;
    transform: rotate(-15deg);
}
.cvet-tulipan::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 30px;
    background: linear-gradient(to bottom, #ffee88, #ffcc22);
    border-radius: 10% 50% 50% 20% / 30% 55% 55% 45%;
    right: -9px;
    top: 5px;
    transform: rotate(15deg);
}

/* 3. Bela lilija – 6 venčnih listov */
.cvet-lilija {
    width: 22px;
    height: 22px;
    background: #fff8e8;
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 -20px 0 -6px #f5f0e2,
        17px -10px 0 -6px #f5f0e2,
        17px 10px 0 -6px #f5f0e2,
        0 20px 0 -6px #f5f0e2,
        -17px 10px 0 -6px #f5f0e2,
        -17px -10px 0 -6px #f5f0e2;
}
.cvet-lilija::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #ffe066, #ffcc00);
}

/* 4. Vijolica – 5 venčnih listov */
.cvet-vijolica {
    width: 18px;
    height: 18px;
    background: #9933cc;
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 -17px 0 -5px #8822bb,
        16px -5px 0 -5px #8822bb,
        10px 14px 0 -5px #8822bb,
        -10px 14px 0 -5px #8822bb,
        -16px -5px 0 -5px #8822bb;
}
.cvet-vijolica::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #ffffaa, #ffee44);
}

/* 5. Bela krizantema – 12 venčnih listov */
.cvet-krizo {
    width: 18px;
    height: 18px;
    background: #f0ece0;
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 -18px 0 -5px #e8e4d4,
        9px -16px 0 -5px #e8e4d4,
        16px -9px 0 -5px #e8e4d4,
        18px 0 0 -5px #e8e4d4,
        16px 9px 0 -5px #e8e4d4,
        9px 16px 0 -5px #e8e4d4,
        0 18px 0 -5px #e8e4d4,
        -9px 16px 0 -5px #e8e4d4,
        -16px 9px 0 -5px #e8e4d4,
        -18px 0 0 -5px #e8e4d4,
        -16px -9px 0 -5px #e8e4d4,
        -9px -16px 0 -5px #e8e4d4;
}
.cvet-krizo::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #ffe066;
}

/* ── CSS Nagrobniki ──────────────────────────────────────── */
.nagrobnikOvoj {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 110px;
    justify-content: flex-end;
    gap: 0;
}

.nagrobnikPodnozje {
    width: 54px;
    height: 8px;
    background: linear-gradient(to bottom, #888, #666);
    border-radius: 0 0 3px 3px;
}

.podnozje-svetlo { background: linear-gradient(to bottom, #ccc, #aaa); }
.podnozje-temno  { background: linear-gradient(to bottom, #333, #222); }
.podnozje-sodobni { background: linear-gradient(to bottom, #8a7a6a, #6a5a4a); width: 72px; }

/* 1. Klasični – siv, zaobljen vrh */
.nagrobnik-klasicni {
    width: 44px;
    height: 72px;
    background: linear-gradient(to right, #777, #aaa, #777);
    border-radius: 50% 50% 0 0 / 22% 22% 0 0;
    position: relative;
}
.nagrobnik-klasicni::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 22px;
    background: rgba(0,0,0,0.15);
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
}
.nagrobnik-klasicni::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 3px;
    background: rgba(0,0,0,0.15);
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* 2. Marmornati – svetel, zaobljen vrh */
.nagrobnik-marmorni {
    width: 40px;
    height: 68px;
    background:
        repeating-linear-gradient(
            130deg,
            transparent 0px, transparent 10px,
            rgba(150,150,150,0.1) 10px, rgba(150,150,150,0.1) 11px
        ),
        linear-gradient(to right, #d0cac0, #f0ede6, #d0cac0);
    border-radius: 45% 45% 0 0 / 18% 18% 0 0;
}

/* 3. Križ – geometrični križ */
.nagrobnik-kriz {
    width: 14px;
    height: 75px;
    background: linear-gradient(to right, #666, #999, #666);
    position: relative;
    border-radius: 1px;
}
.nagrobnik-kriz::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 14px;
    background: linear-gradient(to right, #666, #999, #666);
    top: 18px;
    left: -15px;
    border-radius: 1px;
}

/* 4. Črni granit – polirani črni kamen */
.nagrobnik-granit {
    width: 46px;
    height: 74px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 40%, #111 100%);
    border-radius: 5px 5px 0 0;
    position: relative;
}
.nagrobnik-granit::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    bottom: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 2px;
}
.nagrobnik-granit::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 8px;
    height: 22px;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent);
    border-radius: 2px;
}

/* 5. Sodobni – horizontalna plošča */
.nagrobnik-sodobni {
    width: 72px;
    height: 44px;
    background: linear-gradient(to bottom, #b0a898, #8a8078);
    border-radius: 4px 4px 0 0;
    position: relative;
}
.nagrobnik-sodobni::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: rgba(255,255,255,0.25);
}
.nagrobnik-sodobni::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* ── CSS Ostalo (Ikebana + Pesmi) ────────────────────────── */
.ikebanaOvoj {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 110px;
    justify-content: flex-end;
}

/* Ikebana Nagare – visoka, tekoča kompozicija */
.ikebana-nagare {
    width: 50px;
    height: 90px;
    position: relative;
}
.ikebana-nagare::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 13px;
    width: 24px;
    height: 22px;
    background: linear-gradient(to right, #6a4a2a, #a07850, #6a4a2a);
    border-radius: 3px 3px 6px 6px;
}
.ikebana-nagare::before {
    content: '';
    position: absolute;
    bottom: 21px;
    left: 24px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0px -4px 0 0 #5a8a28,
        0px -8px 0 0 #5a8a28,
        0px -12px 0 0 #5a8a28,
        0px -16px 0 0 #5a8a28,
        0px -20px 0 0 #5a8a28,
        0px -24px 0 0 #5a8a28,
        0px -28px 0 0 #5a8a28,
        0px -32px 0 0 #5a8a28,
        0px -36px 0 0 #5a8a28,
        0px -40px 0 0 #5a8a28,
        0px -44px 0 0 #5a8a28,
        -4px -22px 0 0 #5a8a28,
        -8px -25px 0 0 #5a8a28,
        -12px -28px 0 0 #5a8a28,
        0px -48px 0 6px #cc2233,
        -14px -30px 0 5px #ee9900,
        7px -33px 0 3px #336a10;
}

/* Ikebana Moribana – nizka, prostrana kompozicija */
.ikebana-moribana {
    width: 56px;
    height: 55px;
    position: relative;
}
.ikebana-moribana::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 13px;
    background: linear-gradient(to right, #4a3a2a, #7a6a5a, #4a3a2a);
    border-radius: 5px 5px 8px 8px;
}
.ikebana-moribana::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 27px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 -4px 0 0 #5a8a28,
        0 -8px 0 0 #5a8a28,
        0 -12px 0 0 #5a8a28,
        -4px -3px 0 0 #5a8a28,
        -8px -5px 0 0 #5a8a28,
        -12px -6px 0 0 #5a8a28,
        4px -3px 0 0 #5a8a28,
        8px -5px 0 0 #5a8a28,
        12px -6px 0 0 #5a8a28,
        0 -18px 0 5px #cc1133,
        -14px -8px 0 4px #ffaa00,
        14px -8px 0 4px #9933cc,
        -6px -14px 0 3px #f8f8f0,
        5px -14px 0 3px #ffccdd;
}

/* Pesmi */
.pesemIkona {
    font-size: 2.2rem;
    color: #c8a96e;
    line-height: 1;
    text-shadow: 0 0 14px rgba(200, 169, 110, 0.5);
    margin-bottom: 0.2rem;
}

.pesemOpis {
    font-size: 0.72rem;
    color: #776655;
    text-align: center;
    font-style: italic;
}

.pesemNaslov {
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.pesemNaslov:hover {
    color: #e8c980;
}

.pesemNaslov.predvaja {
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 169, 110, 0.7);
}

.pesemNaslov.predvaja::before {
    content: '▶ ';
    font-size: 0.65em;
    vertical-align: middle;
    color: #c8a96e;
}

@keyframes utrip-pesem {
    from { opacity: 1; }
    to   { opacity: 0.6; }
}

.pesemNaslov.predvaja {
    animation: utrip-pesem 1.2s ease-in-out infinite alternate;
}

/* ── Panel "Moje stvari" (klik na vrt) ───────────────────── */
#vrtOverlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

#vrtOverlay.hidden { display: none; }

#vrtPanel {
    position: relative;
    width: min(480px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(18, 13, 9, 0.97);
    border: 1px solid rgba(200, 169, 110, 0.45);
    padding: 2rem 2.2rem 1.8rem;
    color: #e8e0d0;
    font-family: Georgia, 'Times New Roman', serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#vrtNaslov {
    font-size: 1.2rem;
    color: #c8a96e;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
    padding-bottom: 0.6rem;
    margin: 0;
}

#vrtZapri {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: color 0.2s;
}

#vrtZapri:hover { color: #c8a96e; }

#vrtSeznam {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vrtSporocilo {
    color: #776655;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.vrtNakupItem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(200, 169, 110, 0.12);
    border-radius: 2px;
}

.vrtNakupIkona {
    font-size: 1.1rem;
    color: #c8a96e;
    flex-shrink: 0;
}

.vrtNakupInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vrtNakupIme {
    font-size: 0.9rem;
    color: #c8a96e;
}

.vrtNakupAvtor {
    font-size: 0.73rem;
    color: #776655;
    font-style: italic;
}

.vrtNakupPoteče {
    font-size: 0.7rem;
    color: #554433;
    white-space: nowrap;
    flex-shrink: 0;
}

.vrtNakupItem {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.vrtNakupItem:hover {
    background: rgba(200, 169, 110, 0.05);
    border-color: rgba(200, 169, 110, 0.25);
}

.vrtNakupItem.izbrana {
    background: rgba(200, 169, 110, 0.1);
    border-color: rgba(200, 169, 110, 0.45);
}

#dajNaGrobOvoj {
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    padding-top: 0.9rem;
    margin-top: 0.2rem;
}

#dajNaGrobOvoj.hidden { display: none; }

#dajNaGrobBtn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(200, 169, 110, 0.12);
    border: 1px solid rgba(200, 169, 110, 0.5);
    color: #c8a96e;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

#dajNaGrobBtn:hover:not(:disabled) {
    background: #c8a96e;
    color: #111;
}

#dajNaGrobBtn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ── Datum poteka in smetnjak za izdelek na grobu ───────────── */
#grobMelodijaPoteče {
    font-size: 0.68rem;
    color: #7a6a55;
    font-style: italic;
    margin-left: 0.4rem;
    opacity: 0.85;
}

#grobMelodijaKos {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: #7a6a55;
    padding: 0 0 0 0.35rem;
    opacity: 0.65;
    vertical-align: middle;
    transition: opacity 0.15s, color 0.15s;
}
#grobMelodijaKos:hover {
    opacity: 1;
    color: #cc4444;
}

/* ── Dialog nakup parcele ───────────────────────────────────── */
#parcelaOverlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
}
#parcelaOverlay.hidden { display: none; }

#parcelaPanel {
    position: relative;
    background: rgba(15, 12, 8, 0.97);
    border: 1px solid rgba(200, 169, 110, 0.45);
    color: #e8e0d0;
    font-family: Georgia, serif;
    padding: 2rem 2.5rem 1.5rem;
    width: 340px;
    max-width: 92vw;
    text-align: center;
}

#parcelaPanel h3 {
    font-size: 1.25rem;
    color: #c8a96e;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.parcelaOpis {
    font-size: 0.85rem;
    color: #998877;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}
.parcelaOpis strong { color: #c8a96e; }

#parcelaForma {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#parcelaForma input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 169, 110, 0.35);
    color: #e8e0d0;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
#parcelaForma input:focus {
    border-color: rgba(200, 169, 110, 0.65);
}
#parcelaForma input::placeholder { color: #665544; }

.parcelaLeta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.parcelaLeta input { flex: 1; }
.parcelaLeta span  { color: #998877; flex-shrink: 0; }

#parcelaKupiBtn {
    margin-top: 0.4rem;
    padding: 0.65rem 1rem;
    background: transparent;
    border: 1px solid rgba(200, 169, 110, 0.6);
    color: #c8a96e;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}
#parcelaKupiBtn:hover:not(:disabled) { background: #c8a96e; color: #111; }
#parcelaKupiBtn:disabled { opacity: 0.5; cursor: default; }

#parcelaSporocilo {
    min-height: 1.3rem;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    color: #cc6644;
}

#parcelaZapri {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #998877;
    font-size: 1rem;
    cursor: pointer;
}
#parcelaZapri:hover { color: #c8a96e; }

/* ── Skrbnik groba ──────────────────────────────────────────── */
#graveSkrbnik {
    font-size: 0.68rem;
    color: #7a6a55;
    font-style: italic;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}
