/* Velaris University - (c) 2026 Velaria */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Oswald:wght@300;400;600&display=swap');

* {
    scrollbar-width: thin;
    scrollbar-color: #f0a1c2 #1a1a1a;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: #1a1a1a; }
*::-webkit-scrollbar-thumb {
    background-color: #f0a1c2;
    border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover { background-color: #f5d76e; }

body {
    margin: 0;
    padding: 0;
    height: 100%;
    user-select: none;
    background-color: #000;
}

#game-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#main-content {
    flex: 1;
    background-color: #1a1a1a;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}
#story-container, #map-container {
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

#left-bar {
    width: 280px;
    background-color: #111;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#game-name {
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#vDisplay {
    color: #666666;
    font-family: monospace;
    font-size: 14px;
    padding: 4px 8px;
    background: transparent;
}

#stats-card {
    background-color: #1c1c1c;
    color: #fff;
    font-family: sans-serif;
    margin: 20px 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
#stats-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    text-align: center;
    color: #f5d76e;
}
.stat {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-bottom: none; }
.stat-name  { font-weight: 500; color: #f0a1c2; }
.stat-value { font-weight: bold; }

#dev-reset-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background 0.2s;
}
#dev-reset-btn:hover { background-color: #c0392b; }

#girls-container { margin: 10px; }
.girl-card {
    background-color: #1c1c1c;
    color: #fff;
    font-family: sans-serif;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255,255,255,0.08);
     position: relative;
    overflow: hidden;
    isolation: isolate;
}
.girl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--rose-angle),
        rgba(255, 122, 196, 0.08),
        rgba(240, 161, 194, 0.42),
        rgba(255, 79, 216, 0.16),
        rgba(255, 199, 230, 0.36),
        rgba(255, 122, 196, 0.08)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.75;
    pointer-events: none;
    animation: roseRgbSpin 14s linear infinite;
    z-index: 0;
}
.girl-card::after {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle, rgba(255, 130, 205, 0.09), transparent 52%);
    transform: translate3d(-8%, -4%, 0) rotate(0deg);
    animation: roseGlowDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
.girl-card > * {
    position: relative;
    z-index: 1;
}
@property --rose-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes roseRgbSpin {
    to { --rose-angle: 360deg; }
}
@keyframes roseGlowDrift {
    to { transform: translate3d(8%, 5%, 0) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .girl-card::before,
    .girl-card::after {
        animation: none;
    }
}
.girl-card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    text-align: center;
    color: #f0a1c2;
}
.girl-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.girl-portrait {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #000;
}
.girl-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.girl-info { flex: 1; }
.girl-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    text-align: center;
    color: #f0a1c2;
}

#day-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto 4px auto;
    padding: 8px 0;
    background: rgba(245,215,110,0.1);
    border-radius: 8px;
    border: 1px solid rgba(245,215,110,0.3);
    width: 90%;
}

#time-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px auto 15px auto;
    padding: 8px 0;
    background: rgba(240,161,194,0.1);
    border-radius: 8px;
    border: 1px solid rgba(240,161,194,0.3);
    width: 90%;
}

#cash-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    padding: 8px 0;
    background: rgba(34,197,94,0.1);
    border-radius: 8px;
    border: 1px solid rgba(74,222,128,0.4);
    width: 90%;
}

#story-container {
    width: 95%;
    max-width: 980px;
    min-width: 400px;
    min-height: 220px;
    max-height: none;
    overflow: visible;
    margin: 20px auto;
    padding: 15px;
    background-color: #1c1c1c;
    color: #fff;
    font-family: sans-serif;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    position: relative;
}

#story-next-btn {
    align-self: center;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #f5d76e;
    color: #000;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}
#story-next-btn:hover {
    background-color: #6a5e2e;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#6a5e2e, #6a5e2e),
        linear-gradient(90deg, transparent, #ff4fd8, transparent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 100%;
    animation: borderLightMove 2s linear infinite;
}
@keyframes borderLightMove {
    from { background-position: 0 0, 0% 0; }
    to   { background-position: 0 0, 200% 0; }
}

#resize-handle {
    width: 100%;
    height: 8px;
    background: #333;
    cursor: ns-resize;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 8px 8px;
}

#speaker-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    flex: 1;
}
#speaker-portrait {
    width: 130px;
    height: 190px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f0a1c2;
    display: none;
}
#speaker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 0;
}
#speaker-name {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 8px;
}
#story-text {
    font-size: 17px;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
}

.patreon-card {
    transition: background-color 0.5s ease;
    cursor: pointer;
    padding: 5px;
    width: fit-content;
    margin-left: 10px;
    display: block;
}
.patreon-card:hover { background-color: #373737; }
.patreon-logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
}
.patreon-card:hover .patreon-logo {
    transform: scale(1.1);
    filter: brightness(1.2);
}

#map-container {
    background: rgba(20,20,20,0.85);
    border: 1px solid rgba(240,161,194,0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    width: 95%;
    max-width: 800px;
    color: white;
    font-family: 'Verdana', sans-serif;
}
#map-header {
    border-bottom: 1px solid #f0a1c2;
    margin-bottom: 12px;
    padding-bottom: 5px;
    font-size: 0.9em;
    color: #f5d76e;
}
#map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.map-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    padding: 15px 5px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em;
    transition: all 0.3s;
    text-transform: uppercase;
}
.map-btn:hover {
    background: rgba(240,161,194,0.2);
    color: white;
    border-color: #f0a1c2;
}
.map-btn.active {
    background: #f0a1c2;
    color: black;
    font-weight: bold;
}
.map-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}

#save-menu-btn {
    background-color: #1a1a1a;
    border: 1px solid rgba(167,139,250,0.4);
    border-radius: 8px;
    margin: 15px 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #a78bfa;
    opacity: 0.75;
}
#save-menu-btn:hover {
    background-color: rgba(167,139,250,0.15);
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(167,139,250,0.2);
    transform: translateY(-2px);
}
.dimmed {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.save-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(240,161,194,0.05);
    border: 1px solid rgba(240,161,194,0.2);
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
}
.slot-actions { display: flex; gap: 8px; }
.slot-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.btn-save   { background: #4ade80; color: #064e3b; }
.btn-load   { background: #f0a1c2; color: #1a1a1a; }
.btn-delete { background: #ef4444; color: white;   }

.work-btn {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #0a2a1a;
    color: #4ade80;
    border: 2px solid #16a34a;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.work-btn:hover { background: #14532d; }

.cash-floating-indicator {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10001;
    animation: floatUpFade 2.5s ease-out forwards;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
@keyframes floatUpFade {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    20%  { opacity: 1; transform: translate(-50%, -80%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -180%) scale(1); }
}
.affinity-floating-indicator {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10001;
    animation: floatUpFade 2.5s ease-out forwards;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.strength-floating-indicator {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10001;
    animation: floatUpFade 2.5s ease-out forwards;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.9), 0 0 20px rgba(251,146,60,0.8);
    color: #fb923c;
}

.completion-banner {
    display: none;
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
    max-width: 400px;
    padding: 12px 20px;
    background-color: #ffb0b7;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    pointer-events: none;
}

#name-input-inline {
    background: rgba(255,255,255,0.08);
    border: 1px solid #f0a1c2;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    padding: 6px 14px;
    text-align: center;
    outline: none;
    width: 180px;
    font-family: sans-serif;
    letter-spacing: 1px;
}
#name-input-inline:focus { border-color: #f5d76e; }
#name-confirm-btn {
    padding: 8px 20px;
    background: #f5d76e;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
}
#name-confirm-btn:hover { background: #e0c040; }

#speaker-name.narrator-thoughts {
    font-style: italic;
}
.sleep-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #1a2035;
    color: #93c5fd;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.sleep-btn-style:hover { background: #1e3a5f; }

.rest-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #1a1a2e;
    color: #a78bfa;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.rest-btn-style:hover { background: #2d1b69; }

.pc-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #0d1117;
    color: #58a6ff;
    border: 2px solid #1f6feb;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.pc-btn-style:hover { background: #161b22; }

#pc-overlay {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    flex-direction: column;
    justify-content: space-between;
}
#pc-overlay.active { display: flex; }

#pc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#pc-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px 24px 20px 24px;
}

#pc-apps {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding-top: 20px;
}
.pc-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.15s;
}
.pc-app:hover { background: rgba(255,255,255,0.1); }

.pc-app img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}

.pc-app span {
    font-family: sans-serif;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

#pc-shutdown-btn {
    align-self: flex-end;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,80,80,0.5);
    color: #ff6b6b;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
#pc-shutdown-btn:hover { background: rgba(180,30,30,0.4); }

#pc-subpanel {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,0.82);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}
#pc-subpanel.active { display: flex; }

#pc-subpanel-close {
    align-self: flex-end;
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 5px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 16px;
}
#pc-subpanel-close:hover { background: #222; }

#dev-log-btn:hover {
    background-color: rgba(34,211,238,0.15);
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34,211,238,0.2);
    transform: translateY(-2px);
    opacity: 1;
}

/* CLASSROOM SIT BUTTONS */
.sit-btn {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
    border-width: 2px;
    border-style: solid;
}

.sit-ruby-btn {
    background: #0c2a3a;
    color: #7dd3fc;
    border-color: #0369a1;
}
.sit-ruby-btn:hover { background: #0e3d56; }

.sit-amelia-btn {
    background: #1e1e1e;
    color: #d1d5db;
    border-color: #4b5563;
}
.sit-amelia-btn:hover { background: #2a2a2a; }

.sit-amber-btn {
    background: #0a2a1a;
    color: #4ade80;
    border-color: #166534;
}
.sit-amber-btn:hover { background: #14532d; }




/* ── NIGHT TALK BUTTONS ── */
.talk-btn {
    display: block;
    margin: 8px auto;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 0.5px;
}
.talk-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.talk-ruby-btn   { background:#2a0a14; border:1px solid #ff7090; color:#ff7090; }
.talk-amelia-btn { background:#1a0a1a; border:1px solid #f0a1c2; color:#f0a1c2; }
.talk-amber-btn  { background:#1a1000; border:1px solid #ffb850; color:#ffb850; }
.talk-ruby-btn:hover:not(:disabled)   { background:#3a0f1f; }
.talk-amelia-btn:hover:not(:disabled) { background:#2a0f2a; }
.talk-amber-btn:hover:not(:disabled)  { background:#2a1a00; }




















.openmap-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #1a0d2e;
    color: #c084fc;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.openmap-btn-style:hover { background: #2d1654; }

.event-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #062a2a;
    color: #22d3ee;
    border: 2px solid #0891b2;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.event-btn-style:hover { background: #0e3d3d; }

.worldmap-point {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid #f0a1c2;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #fff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.worldmap-point:hover { background: rgba(240,161,194,0.25); transform: translate(-50%, -50%) scale(1.05); }
.worldmap-point-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0a1c2;
    pointer-events: none;
}
.worldmap-point-label {
    pointer-events: none;
}




.fx-paused .girl-card::before,
.fx-paused .girl-card::after {
    animation-play-state: paused !important;
}




















/* ── STORE BUTTON ── */
.store-btn-style {
    display: none;
    width: 100%;
    padding: 13px;
    margin: 4px 0 2px 0;
    background: #2a1a05;
    color: #fbbf24;
    border: 2px solid #b45309;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.store-btn-style:hover { background: #432a08; }

/* ── STORE OVERLAY ── */
#store-overlay {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    background: rgba(10,10,10,0.96);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#store-overlay.active { display: flex; }

#store-content {
    width: 90%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#store-title {
    text-align: center;
    color: #fbbf24;
    font-family: sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
}

#store-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    padding: 12px 16px;
}

.store-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(251,191,36,0.4);
    flex-shrink: 0;
    background: #000;
}

.store-item-info {
    flex: 1;
    font-family: sans-serif;
}
.store-item-name {
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}
.store-item-desc {
    color: #999;
    font-size: 12px;
    margin: 2px 0;
}
.store-item-price {
    color: #4ade80;
    font-weight: bold;
    font-size: 13px;
}
.store-item-owned {
    color: #777;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.store-buy-btn {
    background: #14532d;
    color: #4ade80;
    border: 1px solid #16a34a;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.15s;
    flex-shrink: 0;
}
.store-buy-btn:hover { background: #166534; }
.store-buy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#store-leave-btn {
    align-self: center;
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
}
#store-leave-btn:hover { background: #222; }

/* ── INVENTORY (PC app) ── */
.inv-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 16px;
}
.inv-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #000;
    flex-shrink: 0;
}
.inv-item-name {
    font-family: sans-serif;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}
.inv-item-count {
    margin-left: auto;
    font-family: sans-serif;
    color: #f0a1c2;
    font-weight: bold;
    font-size: 16px;
}












/* ── GIVE FLOWERS BUTTON ── */
.flower-btn {
    display: block;
    margin: 6px auto;
    padding: 9px 26px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 0.5px;
    background: #1a0a14;
    border: 1px solid #f0a1c2;
    color: #f0a1c2;
}
.flower-btn:hover { background: #2a0f1f; }












/* ── GALLERY VIEWER (fullscreen sobre el PC) ── */
#gallery-viewer-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(0,0,0,0.97);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#gallery-viewer-overlay.active { display: flex; }

#gallery-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
#gallery-viewer-close:hover { background: rgba(255,255,255,0.18); }

#gallery-viewer-img,
#gallery-viewer-video {
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* ── GALLERY GRID ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.gallery-item.locked {
    cursor: default;
    opacity: 0.45;
}
.gallery-item-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}
.gallery-item-thumb img,
.gallery-item-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item.locked .gallery-item-thumb {
    background: #000;
}
.gallery-item.locked .gallery-item-thumb img {
    object-fit: contain;
    padding: 18%;
    filter: grayscale(1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    box-sizing: border-box;
}
.gallery-item:not(.locked) .gallery-item-thumb {
    transition: transform 0.15s;
}
.gallery-item:not(.locked):hover .gallery-item-thumb {
    transform: scale(1.04);
    border-color: rgba(240,161,194,0.5);
}
.gallery-item-title {
    font-family: sans-serif;
    font-size: 11px;
    color: #ccc;
    text-align: center;
}