.draw-page { background: #f8f9fe; }
.draw-shell { flex: 1; display: grid; align-content: center; padding-block: clamp(40px, 8vh, 96px); }
.draw-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 28px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--paper);
    box-shadow: 0 16px 48px #2735750a;
}
.draw-intro { padding: clamp(24px, 4.7vw, 65px) clamp(16px, 3.2vw, 46px); min-width: 0; align-self: center; }
.event-state { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: .88rem; border-radius: 60px; background: var(--blue-wash); padding: 5px 10px; }
.event-state i { width: 6px; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.draw-intro h1 { font-size: clamp(2.15rem, 4.4vw, 4.1rem); line-height: 1.08; letter-spacing: -.06em; margin: 19px 0 12px; }
.draw-description { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.draw-form { margin-top: 32px; }
.draw-form > label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 8px; }
.draw-controls { display: flex; gap: 8px; }
.draw-controls input { flex: 1 1 auto; min-height: 52px; }
.draw-controls .button { flex: 0 0 auto; min-height: 52px; }
.draw-form > .muted { margin-top: 11px; }
.result { margin-top: 30px; padding: 15px 18px; border-radius: 11px; display: grid; gap: 4px; background: var(--blue-wash); color: var(--blue-dark); }
.result span { font-size: .9rem; }
.result strong { font-size: clamp(1.35rem, 4vw, 2.1rem); }
.next-draw { display: inline-block; margin-top: 14px; font-size: .91rem; }

.ticket-art {
    min-height: 420px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background: #e9ecff radial-gradient(ellipse at 48% 47%, #f2f4ff 0%, #e4e8ff 76%);
    display: grid;
    place-items: center;
    container-type: inline-size;
}
.ticket-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#6878ff13 1px, transparent 1px), linear-gradient(90deg, #6878ff13 1px, transparent 1px);
    background-position: center;
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse, #000 10%, transparent 82%);
}
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid #6979ef46; border-radius: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.orbit-one { width: 53%; }
.orbit-two { width: 73%; }
.orbit-three { width: 93%; }
.art-ticket {
    position: absolute;
    width: min(60%, 285px);
    aspect-ratio: 1.9;
    border-radius: clamp(9px, 3cqw, 15px);
}
.ticket-back { background: #bfc9ff; border: 1px solid #94a2f6; transform: translate(0, -10%) rotate(14deg); box-shadow: 0 12px 25px #293a8426; }
.ticket-front {
    display: grid;
    grid-template-columns: 73% 27%;
    color: #fff;
    background: #2a3af0;
    box-shadow: 0 17px 30px #16289746, inset 0 0 0 1px #ffffff40;
    transform: translate(-4%, 8%) rotate(-13deg);
}
.ticket-face { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12%; padding: 13%; }
.ticket-star, .art-spark { display: block; aspect-ratio: 1; background: currentColor; clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%); }
.ticket-star { width: clamp(28px, 13cqw, 68px); }
.ticket-lines { height: 19%; width: 90%; align-self: center; opacity: .8; border-block: 2px solid #fff; position: relative; }
.ticket-lines::after { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 67%; border-top: 2px solid #fff; }
.ticket-stub { border-left: 1px dashed #ffffffa1; border-radius: 0 15px 15px 0; background: #ffffff1b; }
.ticket-stub::after { content: ""; position: absolute; right: 8%; top: 33%; width: 10%; height: 34%; opacity: .85; background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 3px, #fff 3px 5px, transparent 5px 7px); }
.art-spark { position: absolute; color: #4152ef; }
.art-spark-top { width: 34px; top: 20%; right: 15%; }
.art-spark-bottom { width: 18px; bottom: 20%; left: 17%; }


@media (max-width: 780px) {
    .draw-card { gap: 11px; padding: 10px; }
    .ticket-art { min-height: 350px; }
    .draw-controls { flex-direction: column; }
}
@media (max-width: 620px) {
    .draw-shell { align-content: start; padding-block: 24px 36px; }
    .draw-card { grid-template-columns: minmax(0, 1fr); border-radius: 19px; }
    .draw-intro { padding: 20px 12px 12px; }
    .ticket-art { min-height: unset; aspect-ratio: 1.45; border-radius: 12px; }
    .draw-form { margin-top: 24px; }
}
