:root {
    --brand-red-dark: var(--theme-brand-red-dark, #86001f);
    --brand-red: var(--theme-brand-red, #b1002b);
    --brand-red-soft: var(--theme-brand-red-soft, #c61d48);
    --brand-red-deep: var(--theme-brand-red-deep, #650016);
    --text-inverse: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.82);
    --text-muted: rgba(255, 255, 255, 0.68);
    --panel: rgba(93, 0, 26, 0.18);
    --panel-strong: rgba(110, 0, 28, 0.26);
    --panel-border: rgba(255, 255, 255, 0.16);
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-text: #6a2236;
    --shadow: 0 24px 60px rgba(42, 0, 12, 0.28);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-sans: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: var(--brand-red-dark);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-inverse);
    background: var(--theme-background-color, var(--brand-red-dark));
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

strong {
    color: #fff8dd;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-shell {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.public-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 119, 154, 0.14), transparent 24%),
        radial-gradient(circle at left 20%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at right 22%, rgba(255, 172, 192, 0.12), transparent 18%),
        linear-gradient(180deg, var(--brand-red-dark) 0%, var(--brand-red) 50%, #9f0026 100%);
    z-index: 0;
}

.public-frame {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(100%, 76rem);
    margin: 0 auto;
    padding: 1rem 1rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.55rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.public-main {
    flex: 1;
    display: grid;
    align-items: center;
    padding: 1.5rem 0 1rem;
}

.public-stage,
.compact-panel,
.result-panel,
.regulation-panel {
    width: min(100%, 42rem);
    margin: 0 auto;
}

.public-stage {
    text-align: center;
}

.compact-panel,
.result-panel,
.regulation-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
    padding: 1.35rem;
    backdrop-filter: blur(14px);
}

.public-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.public-brand-small {
    margin-bottom: 1rem;
}

.hero-logo {
    width: clamp(12rem, 36vw, 18rem);
    filter: drop-shadow(0 12px 28px rgba(68, 0, 17, 0.22));
}

.panel-logo {
    width: clamp(9.5rem, 32vw, 13rem);
}

.public-copy h1,
.compact-panel h1,
.result-panel h1,
.regulation-panel h1 {
    margin: 0;
    font-size: clamp(2.3rem, 9vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.public-copy p,
.panel-heading p,
.result-panel p,
.regulation-content p,
.site-footer p,
.form-note {
    color: var(--text-soft);
    line-height: 1.6;
}

.public-copy p {
    margin: 1rem 0 0;
    font-size: 1.2rem;
}

.panel-heading {
    margin-bottom: 1rem;
}

.panel-heading-center,
.result-panel {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.84);
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.landing-form {
    margin-top: 1.6rem;
}

.field {
    display: grid;
    gap: 0.45rem;
    text-align: left;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: var(--input-bg);
    color: var(--input-text);
    border-radius: var(--radius-sm);
    padding: 1rem 1rem;
    font: inherit;
    min-height: 3.45rem;
    box-shadow: 0 10px 28px rgba(58, 0, 16, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(106, 34, 54, 0.8);
}

.field textarea {
    resize: vertical;
    min-height: 10rem;
}

.coupon-input {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.3rem;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    border: none;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--brand-red-soft) 0%, var(--brand-red-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(70, 0, 16, 0.34);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
}

.alert {
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    font-weight: 600;
    text-align: left;
    margin: 0.85rem 0;
}

.alert-success {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.alert-error {
    background: rgba(77, 0, 19, 0.34);
    color: #fff4f4;
}

.alert-info {
    background: #e87300;
    color: #fff;
}

.form-note {
    margin: 0;
    font-size: 0.95rem;
}

.form-note a {
    font-weight: 700;
    text-decoration: underline;
}

.result-panel.result-winner {
    background: linear-gradient(180deg, rgba(124, 0, 28, 0.28), rgba(95, 0, 24, 0.24));
}

.result-prize {
    width: min(100%, 18rem);
    margin: 0 auto 1rem;
}

.result-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.regulation-content {
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.regulation-content p {
    margin: 0;
    padding: 1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.regulation-content a {
    text-decoration: underline;
}

.site-footer {
    margin-top: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    text-align: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 100;
    color: #F0E6D8;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(177, 0, 43, 0.28);
}

@media (min-width: 48rem) {
    .public-frame {
        padding: 1.5rem 1.5rem 1.8rem;
    }

    .site-header {
        justify-content: flex-end;
        padding-top: 0.8rem;
    }

    .public-main {
        padding: 2rem 0 1.2rem;
    }

    .compact-panel,
    .result-panel,
    .regulation-panel {
        padding: 2rem 2.2rem;
    }

    .landing-form {
        margin-top: 2rem;
    }
}