*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #050608;
    color: #f5e6c8;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    overflow-x: hidden;
}

.page {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
}

.slide {
    position: relative;
    min-height: 100vh;
    padding: 60px 8vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-inner {
    max-width: 1080px;
    width: 100%;
}

.slide-hero {
    background: radial-gradient(circle at top, #3b2a12 0, #050608 58%);
    color: #fbe9c6;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 0, rgba(255,215,128,0.22), transparent 55%),
        radial-gradient(circle at 90% 0, rgba(255,215,128,0.14), transparent 55%);
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 210, 120, 0.6);
}

.hero-sublogo {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    margin-bottom: 24px;
    color: #ffdd99;
}

.hero-tagline {
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-cta {
    border: none;
    padding: 14px 40px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background-image: linear-gradient(135deg, #ffd87a, #f2b84b);
    color: #1b1308;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 230, 180, 0.45), 0 12px 30px rgba(0, 0, 0, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.2s ease;
    background-size: 180% 180%;
    background-position: 0 50%;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 230, 180, 0.65), 0 18px 38px rgba(0, 0, 0, 0.8);
    background-position: 100% 50%;
}

.hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8);
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 3.2vw, 36px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.subtitle {
    margin: 0 0 32px;
    max-width: 640px;
    color: #e1d0aa;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.dept-card {
    position: relative;
    padding: 20px 20px 22px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(255, 216, 122, 0.14), rgba(10, 8, 4, 0.98));
    border: 1px solid rgba(255, 219, 149, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dept-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 232, 189, 0.9);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.95);
}

.dept-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f7d184;
    margin-bottom: 6px;
}

.dept-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.dept-desc {
    font-size: 13px;
    opacity: 0.9;
}

.slide-vote {
    background: radial-gradient(circle at top, #2c2111 0, #050608 55%);
}

.vote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.vote-column h3 {
    margin: 0 0 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.list {
    list-style: none;
    padding: 10px;
    margin: 0;
    border-radius: 14px;
    background: rgba(10, 8, 4, 0.92);
    border: 1px solid rgba(160, 124, 60, 0.7);
    min-height: 180px;
}

.list-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 219, 149, 0.1), rgba(80, 54, 24, 0.7));
    border: 1px solid rgba(255, 219, 149, 0.7);
    margin-bottom: 8px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.list-item:last-child {
    margin-bottom: 0;
}

.list-item.dragging {
    opacity: 0.8;
    transform: scale(1.01);
}

.list-item-rank {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f3d28d;
}

.vote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-form label {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 360px;
}

input[type="email"] {
    border-radius: 999px;
    border: 1px solid rgba(192, 152, 88, 0.8);
    padding: 10px 14px;
    background: rgba(6, 5, 3, 0.95);
    color: #f8e6c9;
    outline: none;
    font-size: 14px;
}

input[type="email"]:focus {
    border-color: #ffd87a;
    box-shadow: 0 0 0 1px rgba(255, 216, 122, 0.45);
}

.form-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-image: linear-gradient(135deg, #ffd87a, #f2b84b);
    color: #1b1308;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    color: #f5e6c8;
    border: 1px solid rgba(204, 170, 105, 0.9);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

.message {
    min-height: 18px;
    font-size: 13px;
    margin-top: 2px;
}

.message.error {
    color: #ff9c9c;
}

.message.success {
    color: #a0ffbf;
}

.slide-summary {
    background: radial-gradient(circle at top, #20150b 0, #050608 55%);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.summary-card {
    border-radius: 18px;
    padding: 18px 18px 20px;
    background: radial-gradient(circle at top, rgba(255, 216, 122, 0.08), rgba(10, 8, 4, 0.98));
    border: 1px solid rgba(204, 170, 105, 0.9);
}

.summary-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.summary-list li {
    margin-bottom: 4px;
}

.summary-list li span {
    color: #f3d28d;
}

@media (max-width: 768px) {
    .slide {
        padding: 40px 20px;
    }

    .vote-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}


