@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap");

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #fff7cb;
    background: #260d18;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    overflow-x: hidden;
}

.page {
    min-height: 100svh;
    overflow-x: hidden;
    background: url("asset/background.png") center top / cover no-repeat;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: end;
    padding: 28px 18px 78px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(38, 13, 24, .95), transparent);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #ffde59;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
.theme {
    margin: 0;
}

h1 {
    max-width: 100%;
    color: #ffef8a;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(3.4rem, 21vw, 10rem);
    line-height: .84;
    text-shadow: 0 7px 0 #a62626, 0 14px 24px rgba(0, 0, 0, .45);
}

.theme {
    color: #ffe178;
    font-size: 1.2rem;
    font-weight: 800;
}

.contest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.contest-list span {
    border: 1px solid rgba(255, 239, 138, .38);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(115, 23, 33, .66);
    font-weight: 800;
}

.decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.decor-bat {
    top: -90px;
    right: -260px;
    width: min(620px, 150vw);
    opacity: .86;
}

.decor-stone {
    left: -250px;
    bottom: -390px;
    width: min(700px, 170vw);
    opacity: .92;
}

.content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 18px;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 18px 32px;
}

.intro,
.upload-card {
    border: 1px solid rgba(255, 225, 120, .28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 239, 138, .12), rgba(255, 122, 46, .06)),
        rgba(42, 13, 24, .56);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.intro {
    padding: 20px;
}

.intro h2,
.upload-card h2 {
    color: #ffde59;
    font-size: 1.35rem;
}

.intro p {
    margin: 12px 0 0;
    color: #ffeec0;
    line-height: 1.7;
}

.upload-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.form-head {
    margin-bottom: 4px;
}

.choice-list {
    display: grid;
    gap: 12px;
}

.choice-button,
.back-link {
    color: inherit;
    text-decoration: none;
}

.choice-button {
    display: grid;
    min-height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 239, 138, .38);
    border-radius: 8px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 230, 111, .24), rgba(255, 157, 46, .18));
    color: #fff7cb;
    font-weight: 900;
}

.back-link {
    color: #ffde59;
    font-size: .9rem;
    font-weight: 800;
}

.form-page {
    padding-top: 26px;
}

.single-content {
    width: min(100%, 620px);
    max-width: 620px;
}

.form-head h1 {
    font-size: clamp(3rem, 18vw, 5.5rem);
}

@media (max-width: 360px) {
    h1 {
        font-size: 19vw;
    }
}

label {
    display: grid;
    gap: 8px;
    color: #fff0bf;
    font-size: .94rem;
    font-weight: 800;
}

input,
select,
button {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font: inherit;
}

input,
select {
    border: 1px solid rgba(255, 225, 120, .34);
    padding: 12px 16px;
    color: #241016;
    background: #fff7db;
}

.float-field {
    position: relative;
    display: block;
}

.float-field input {
    padding: 16px 16px 8px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.float-field span {
    position: absolute;
    left: 16px;
    top: 50%;
    padding: 0 6px;
    color: #6e3b23;
    background: #fff7db;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top .18s ease, transform .18s ease, font-size .18s ease, color .18s ease;
}

.float-field input:focus {
    border-color: #ffde59;
    box-shadow: 0 0 0 4px rgba(255, 222, 89, .22);
    outline: 0;
}

.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span {
    top: 0;
    color: #ffde59;
    background: rgba(42, 13, 24, .96);
    font-size: .78rem;
    transform: translateY(-50%);
}

small {
    color: #ffd98a;
    font-weight: 600;
    line-height: 1.5;
}

.upload-progress {
    display: grid;
    gap: 8px;
}

.upload-progress[hidden] {
    display: none;
}

.progress-bar {
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 225, 120, .28);
    border-radius: 999px;
    background: rgba(255, 247, 219, .14);
}

.progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffe66f, #ff9d2e);
    transition: width .16s ease;
}

button {
    border: 0;
    margin-top: 6px;
    color: #3a1116;
    background: linear-gradient(180deg, #ffe66f, #ff9d2e);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(100, 22, 23, .72);
    transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
}

button:hover {
    filter: brightness(.86) saturate(.95);
    transform: translateY(3px);
    box-shadow: 0 5px 0 rgba(100, 22, 23, .72);
}

button:active {
    filter: brightness(.72) saturate(.9);
    transform: translateY(7px);
    box-shadow: 0 1px 0 rgba(100, 22, 23, .72);
}

button:disabled {
    cursor: wait;
    filter: grayscale(.25) brightness(.78);
}

.confirm-modal {
    width: min(calc(100% - 32px), 420px);
    border: 1px solid rgba(255, 225, 120, .22);
    border-radius: 8px;
    padding: 0;
    color: #fff7cb;
    background:
        linear-gradient(135deg, rgba(255, 239, 138, .12), rgba(255, 122, 46, .06)),
        rgba(42, 13, 24, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.confirm-modal[open] {
    animation: modal-pop .18s ease-out;
}

.confirm-modal[open].is-closing {
    animation: modal-out .16s ease-in forwards;
}

.confirm-modal::backdrop {
    background: rgba(18, 5, 12, .72);
    animation: backdrop-fade .18s ease-out;
}

.confirm-modal.is-closing::backdrop {
    animation: backdrop-out .16s ease-in forwards;
}

.confirm-box {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.confirm-box h2,
.confirm-box p {
    margin: 0;
}

.confirm-box h2 {
    color: #ffde59;
}

.confirm-box p:not(.eyebrow) {
    color: #ffeec0;
    line-height: 1.55;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.secondary-button {
    border: 1px solid rgba(255, 225, 120, .22);
    color: #fff7cb;
    background: rgba(255, 247, 219, .12);
    box-shadow: 0 8px 0 rgba(18, 5, 12, .72);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes backdrop-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }
}

@keyframes backdrop-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.alert {
    margin: 0;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
}

.success {
    color: #173b22;
    background: #b9f5c8;
}

.error {
    color: #4a1010;
    background: #ffd0c2;
}

@media (min-width: 780px) {
    .hero {
        min-height: 76svh;
        padding: 48px 52px 88px;
    }

    .content {
        grid-template-columns: .9fr 1.1fr;
        align-items: start;
        padding: 0 28px 56px;
    }

    .single-content {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
        padding-top: 42px;
    }

    .intro,
    .upload-card {
        padding: 26px;
    }

    .single-content .upload-card {
        padding: 30px;
    }

    .form-head h1 {
        font-size: clamp(3.8rem, 7vw, 5.75rem);
    }

    .decor-bat {
        right: -170px;
    }

    .decor-stone {
        left: -160px;
    }
}
