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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.art-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.art-container::-webkit-scrollbar {
    display: none;
}

.art-card {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 100%);
    overflow: hidden;
}

.art-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.art-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 4px;
}

.art-image.loaded {
    opacity: 1;
}

.art-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    pointer-events: none;
}

.art-overlay > * {
    pointer-events: auto;
}

.art-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.art-artist {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 2px;
}

.art-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 12px;
}

.art-credit {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 10px;
}

.art-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.print-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fe2c55, #ff6b35);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(254, 44, 85, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.print-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.55);
}

.museum-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.museum-badge {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    left: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 10px;
    backdrop-filter: blur(4px);
}

.card-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.95rem;
}

/* About modal */
.about-button {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.about-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-modal.open {
    display: flex;
}

.about-modal-content {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    line-height: 1.5;
}

.about-modal-content h2 {
    margin-bottom: 12px;
}

.about-modal-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ddd;
}

.about-modal-content a {
    color: #25f4ee;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Loading / error states */
.loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 50;
    color: #aaa;
    font-size: 1rem;
}

.loading.hidden {
    display: none;
}

.feed-message {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: #bbb;
    text-align: center;
    padding: 24px;
}

.feed-message button {
    background: #fe2c55;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 768px) {
    .art-image-wrap {
        padding: 40px 120px;
    }

    .art-overlay {
        padding: 28px 40px;
    }

    .art-title {
        font-size: 1.6rem;
    }
}
