:root {
    --gold: #c9a659;
    --gold-light: #e8d9b0;
    --ink: #2b2420;
    --paper: #fbf7ef;
    --error: #b3413c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--paper);
    color: var(--ink);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
}

.title {
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    margin: 0;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin: 0.35rem 0 2rem;
}

.card {
    background: #fff;
    border: 1px solid var(--gold-light);
    border-radius: 14px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
    background: #b3903f;
    transform: translateY(-1px);
}

.btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--gold-light);
}

input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.75rem 0 1.25rem;
    border: 1px solid var(--gold-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.error {
    color: var(--error);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.hint {
    font-size: 0.85rem;
    color: #7a6f63;
    margin-top: 0.5rem;
}

.upload-results {
    text-align: left;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}

.upload-results li {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.upload-results li.ok {
    background: #eef7ec;
    color: #2f6b2a;
}

.upload-results li.fail {
    background: #fbeceb;
    color: var(--error);
}

.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gold-light);
}

/* Slideshow */

.slideshow-body {
    margin: 0;
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.slide-layer {
    position: fixed;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-layer.visible {
    opacity: 1;
}

.watermark {
    position: fixed;
    bottom: 1.25rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    z-index: 5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.empty-state {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-family: Georgia, serif;
    text-align: center;
    padding: 1.5rem;
}

.fullscreen-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

body.idle .fullscreen-btn {
    opacity: 0;
    pointer-events: none;
}

body.slideshow-body.idle {
    cursor: none;
}

.fullscreen-btn {
    transition: opacity 0.4s ease;
}
