:root {
    --purple-deep: #170528;
    --purple: #3b0d60;
    --purple-soft: #5a1a8a;
    --maroon: #5c1222;
    --maroon-light: #7d1b30;
    --dark: #121218;
    --gold: #d8b25c;
    --ink: #1d2030;
    --ink-soft: #5c6278;
    --line: #c3c7d4;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: var(--purple-deep);
    color: #fff;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.stage {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Artwork */

.artwork {
    position: relative;
    flex: 0 0 44%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, var(--purple-soft), var(--purple) 55%, var(--purple-deep) 100%);
}

.artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artwork-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    text-align: left;
}

.artwork-kicker {
    margin: 0 0 18px;
    font-size: clamp(0.75rem, 1.3vw, 1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.artwork-title {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.artwork-year {
    margin: 14px 0 0;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.3em;
}

.artwork-logo {
    position: absolute;
    left: 6%;
    bottom: 6%;
    width: clamp(70px, 13%, 150px);
    height: auto;
    object-fit: contain;
}

/* Right panel */

.panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 3.2vw, 48px);
    background:
        linear-gradient(135deg, rgba(90, 26, 138, 0.55), transparent 60%),
        linear-gradient(200deg, var(--purple) 0%, var(--purple-deep) 70%);
}

.screen {
    display: none;
    width: 100%;
    max-width: 640px;
}

.screen.is-active {
    display: flex;
    flex-direction: column;
    animation: rise 0.28s ease;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Home cards */

.choice {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: left;
    padding: clamp(22px, 3vw, 34px);
    margin-bottom: clamp(14px, 2vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.choice-primary { background: linear-gradient(120deg, var(--maroon-light), var(--maroon)); }
.choice-dark { background: linear-gradient(120deg, #1d1d26, var(--dark)); }

.choice:active {
    transform: scale(0.985);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
    .choice:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
}

.choice-text { flex: 1; }

.choice-title {
    display: block;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.choice-note {
    display: block;
    margin-top: 12px;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

.choice-icon {
    flex: 0 0 auto;
    width: clamp(56px, 8vw, 86px);
    height: auto;
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choice-icon .tick { stroke: var(--gold); }

.brandline {
    margin: 8px 0 0;
    text-align: right;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Form sheet */

.sheet {
    background: rgba(240, 241, 246, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: clamp(24px, 3.4vw, 44px);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.sheet-title {
    margin: 0 0 clamp(18px, 2.4vw, 30px);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--maroon);
}

.field-row {
    display: flex;
    gap: clamp(14px, 2vw, 26px);
}

.field-row .field { flex: 1; }

.field {
    display: block;
    margin-bottom: clamp(18px, 2.4vw, 28px);
}

.field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.field > span em {
    font-style: normal;
    font-weight: 400;
    color: #8c92a5;
}

.field input {
    width: 100%;
    height: 54px;
    padding: 0 2px;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.field input:focus { border-bottom-color: var(--maroon); }
.field input::placeholder { color: #a9aebd; }

.notice {
    display: none;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.98rem;
    line-height: 1.45;
    background: #fdecef;
    color: #8a1226;
}

.notice.is-visible { display: block; }

/* Buttons */

.actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn {
    min-height: 62px;
    padding: 0 30px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn-solid {
    flex: 1;
    border: 0;
    color: #fff;
    background: linear-gradient(120deg, var(--maroon-light), var(--maroon));
}

@media (hover: hover) {
    .btn-solid:hover { filter: brightness(1.12); }
}

.btn-ghost {
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 4, 26, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10;
}

.modal[hidden] { display: none; }

.modal-card {
    width: 100%;
    max-width: 520px;
    padding: clamp(30px, 4vw, 46px);
    text-align: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    animation: pop 0.25s ease;
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: none; }
}

.modal-dots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 22px;
}

.modal-dots span {
    display: block;
    border-radius: 50%;
}

.modal-dots span:nth-child(1) { width: 16px; height: 16px; background: var(--gold); }
.modal-dots span:nth-child(2) { width: 12px; height: 12px; background: var(--purple-soft); }
.modal-dots span:nth-child(3) { width: 26px; height: 26px; background: var(--maroon-light); }

.modal-message {
    margin: 0 0 28px;
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--maroon);
}

.btn-pill {
    border: 1.5px solid #e2e4ec;
    border-radius: 999px;
    background: #fff;
    color: var(--maroon);
    min-height: 56px;
    padding: 0 44px;
}

@media (hover: hover) {
    .btn-pill:hover { background: #faf7f8; }
}

/* Tablets and phones */

@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
    body { overflow: auto; }

    .stage { flex-direction: column; height: auto; min-height: 100%; }

    .artwork { flex: 0 0 auto; height: 32vh; min-height: 200px; }

    .artwork-fallback { padding: 0 24px; align-items: flex-start; }

    .artwork-logo { width: 64px; left: 24px; bottom: 16px; }

    .panel { padding: 22px 18px 34px; }

    .screen { max-width: 560px; }
}

@media (max-width: 560px) {
    .choice { flex-direction: row; gap: 14px; padding: 20px; }
    .choice-icon { width: 52px; }
    .field-row { flex-direction: column; gap: 0; }
    .actions { flex-direction: column-reverse; align-items: stretch; }
    .btn { width: 100%; }
    .brandline { text-align: center; }
}
