:root {
  --navy: #263442;
  --navy-soft: #536171;
  --coral: #df5b5f;
  --coral-dark: #bd4249;
  --cream: #f7f5f1;
  --paper: #ffffff;
  --line: #e5e8ec;
  --gold: #d5a72d;
  --green: #3d8767;
  --shadow: 0 20px 60px rgba(38, 52, 66, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, rgba(223, 91, 95, .07), transparent 30rem), var(--cream); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.snow { position: absolute; inset: 12px 3% auto; color: rgba(38, 52, 66, .15); letter-spacing: 1.8rem; text-align: center; pointer-events: none; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 30px 28px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--coral); color: white; border-radius: 11px; font-size: 1.3rem; font-weight: 850; }
.brand-mark span { color: #ffd977; }
.brand-dot { color: var(--coral); }
.season-label { color: var(--navy-soft); font-size: .86rem; letter-spacing: .02em; }
.season-label strong { color: var(--coral); margin-left: 5px; }
.lights { max-width: 1220px; margin: 0 auto; display: flex; justify-content: space-around; height: 18px; padding: 0 30px; border-top: 1px solid rgba(38, 52, 66, .12); }
.lights i { width: 7px; height: 11px; border-radius: 2px 2px 5px 5px; background: var(--coral); box-shadow: 0 0 12px rgba(223, 91, 95, .35); }
.lights i:nth-child(3n+2) { background: var(--gold); box-shadow: 0 0 12px rgba(213, 167, 45, .4); }
.lights i:nth-child(3n) { background: var(--green); box-shadow: 0 0 12px rgba(61, 135, 103, .35); }
.page-shell { width: min(1184px, calc(100% - 40px)); margin: 30px auto 54px; }
.site-footer { max-width: 1184px; margin: 0 auto; padding: 22px 20px 32px; display: flex; justify-content: space-between; color: var(--navy-soft); font-size: .8rem; border-top: 1px solid var(--line); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 36px 0 42px; }
.hero-copy { max-width: 730px; }
.eyebrow { display: block; color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 20px; }
h1 em { color: var(--coral); font-style: normal; }
.hero-copy > p { max-width: 620px; color: var(--navy-soft); line-height: 1.7; font-size: 1.04rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--navy-soft); font-size: .86rem; }
.hero-facts strong { color: var(--navy); font-size: 1.08rem; margin-right: 4px; }
.hero-ornament { flex: 0 0 166px; aspect-ratio: 1; border-radius: 50%; background: var(--coral); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 18px 45px rgba(223, 91, 95, .23); transform: rotate(5deg); border: 7px solid #fff5ef; }
.hero-ornament span { color: #ffd977; font-size: 1.4rem; }
.hero-ornament strong { font-size: 2.5rem; line-height: 1.05; letter-spacing: -.06em; }
.hero-ornament small { margin-top: 4px; opacity: .85; }
.card { background: var(--paper); border: 1px solid rgba(38, 52, 66, .07); border-radius: 22px; box-shadow: var(--shadow); }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, .85fr); gap: 24px; align-items: start; }
.selection-card, .random-card { padding: 30px; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 25px; }
.section-heading h2 { margin: 0 0 5px; font-size: 1.3rem; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--navy-soft); font-size: .86rem; line-height: 1.5; }
.step { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fff0ed; color: var(--coral); font-size: .72rem; font-weight: 850; }
.series-tabs { display: none; gap: 7px; overflow-x: auto; padding: 2px 2px 12px; }
.js .series-tabs { display: flex; }
.series-tab { --series: var(--coral); min-width: 63px; border: 1px solid var(--line); border-top: 3px solid var(--series); border-radius: 10px; background: white; padding: 8px 9px; color: var(--navy-soft); }
.series-tab strong, .series-tab span { display: block; }
.series-tab strong { font-size: .95rem; }
.series-tab span { font-size: .59rem; margin-top: 2px; }
.series-tab.active { background: #f6f8fa; border-color: var(--series); color: var(--navy); box-shadow: 0 3px 10px rgba(38, 52, 66, .06); }
.series-tab.blue, .ticket.blue { --series: #4b83c3; }
.series-tab.green, .ticket.green { --series: #58a16d; }
.series-tab.yellow, .ticket.yellow { --series: #d5a72d; }
.series-tab.white, .ticket.white { --series: #a8b0b9; }
.series-tab.red, .ticket.red { --series: #df5b5f; }
.number-panel { padding: 5px 0 10px; }
.js .number-panel.is-hidden { display: none; }
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.ticket { --series: var(--coral); position: relative; min-width: 0; }
.ticket input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ticket span { display: grid; place-items: center; height: 35px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #4a5866; font-size: .75rem; font-weight: 650; transition: border-color .12s, background .12s, transform .12s; }
.ticket.available:hover span { border-color: var(--series); transform: translateY(-1px); }
.ticket input:focus-visible + span { outline: 3px solid rgba(75, 131, 195, .25); outline-offset: 1px; }
.ticket input:checked + span { background: var(--series); border-color: var(--series); color: white; box-shadow: 0 3px 8px rgba(38, 52, 66, .14); }
.ticket.reserved span, .ticket.sold span { background: #f0f1f2; color: #a1a8ae; text-decoration: line-through; cursor: not-allowed; }
.selection-summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 16px 0 22px; padding: 13px 15px; border-radius: 10px; background: #f6f7f9; color: var(--navy-soft); font-size: .83rem; }
.selection-summary output { color: var(--navy); font-weight: 800; }
.buyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; margin: 0 0 7px; color: var(--navy-soft); font-size: .76rem; font-weight: 700; }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dce1e6; border-radius: 9px; background: white; color: var(--navy); outline: none; }
.field input:focus, .field select:focus { border-color: #8099b4; box-shadow: 0 0 0 3px rgba(75, 131, 195, .11); }
.form-note { color: var(--navy-soft); font-size: .7rem; line-height: 1.55; margin: -3px 0 17px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 45px; padding: 0 20px; border: 0; border-radius: 10px; text-decoration: none; font-weight: 750; font-size: .85rem; }
.primary-button { background: var(--coral); color: white; box-shadow: 0 8px 18px rgba(223, 91, 95, .18); }
.primary-button:hover { background: var(--coral-dark); }
.secondary-button { background: var(--navy); color: white; }
.secondary-button:hover { background: #18232e; }
.primary-button.compact, .secondary-button.compact { min-height: 38px; padding: 0 14px; }
.random-card { position: relative; }
.gift-illustration { text-align: center; padding: 4px 0 18px; }
.gift-illustration div { font-size: 3.5rem; filter: saturate(.8); }
.gift-illustration span { position: absolute; color: var(--gold); margin: -8px 0 0 48px; }
.gift-illustration small { display: block; color: var(--navy-soft); font-size: .68rem; margin-top: 5px; }
.random-controls { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.random-total { display: flex; justify-content: space-between; padding: 12px 2px 18px; color: var(--navy-soft); font-size: .8rem; }
.random-total output { color: var(--coral); font-size: 1.15rem; font-weight: 850; }
.random-card form > button { width: 100%; }
.how-it-works { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.how-it-works h3 { font-size: .85rem; }
.how-it-works ol { margin: 0; padding-left: 20px; color: var(--navy-soft); font-size: .76rem; line-height: 1.9; }
.reservation-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 24px; align-items: start; }
.reservation-card { padding: clamp(25px, 4vw, 42px); }
.reservation-card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.status-badge, .payment-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f0f2f4; color: var(--navy-soft); font-size: .65rem; font-weight: 750; white-space: nowrap; }
.status-badge.pending { background: #fff2d6; color: #87610e; }
.status-badge.confirmed, .payment-badge.paid { background: #e2f3e9; color: #28734b; }
.status-badge.expired, .status-badge.cancelled { background: #f0f2f4; color: #78818a; }
.payment-badge.unpaid { background: #fff0ed; color: #a24a4c; }
.reservation-card > .status-badge { float: right; }
.muted { color: var(--navy-soft); line-height: 1.6; }
.ticket-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.ticket-chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 8px; border: 1px solid #dfe4e8; border-radius: 7px; background: #f7f8f9; font-size: .74rem; font-weight: 750; }
.ticket-chips.small { max-width: 330px; margin: 9px 0 0; }
.ticket-chips.small span { min-width: 38px; height: 24px; font-size: .64rem; }
.reservation-meta { display: flex; flex-wrap: wrap; gap: 30px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reservation-meta small, .reservation-meta strong { display: block; }
.reservation-meta small { color: var(--navy-soft); font-size: .7rem; margin-bottom: 4px; }
.reservation-meta strong { font-size: 1.15rem; }
.notice { padding: 13px 15px; border-radius: 10px; background: #fff4da; color: #765715; font-size: .8rem; line-height: 1.55; margin: 22px 0; }
.notice.success { background: #e6f5eb; color: #276b47; }
.notice.error { background: #fff0ed; color: #9f4448; }
.text-link { color: var(--coral); font-weight: 700; font-size: .82rem; text-decoration: none; }
.payment-card { display: flex; gap: 20px; padding: 28px; border-radius: 22px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.payment-card .eyebrow { color: #f6bf80; }
.payment-card h2 { font-size: 2.8rem; margin-bottom: 10px; }
.payment-card p { color: #cbd3da; font-size: .8rem; line-height: 1.65; margin: 0; }
.payment-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border: 1px dashed #8794a0; border-radius: 10px; color: #f6bf80; font-size: 1.8rem; }
.confirmation-card { text-align: left; }
.confirmation-star { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: #e2f3e9; color: #28734b; font-size: 1.6rem; font-weight: 850; }
.error-card, .login-card { max-width: 560px; margin: 50px auto; padding: 38px; }
.error-card p { color: var(--navy-soft); line-height: 1.6; }
.error-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; background: #fff0ed; color: var(--coral); font-size: 1.3rem; font-weight: 850; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-header h1 { font-size: 2.4rem; margin: 0; }
.admin-actions { display: flex; align-items: center; gap: 13px; }
.text-button { border: 0; background: transparent; color: var(--navy-soft); text-decoration: underline; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-stats div { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.admin-stats strong, .admin-stats span { display: block; }
.admin-stats strong { font-size: 1.45rem; }
.admin-stats span { color: var(--navy-soft); font-size: .67rem; margin-top: 3px; }
.status-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.status-filters a { padding: 7px 11px; border-radius: 8px; color: var(--navy-soft); text-decoration: none; font-size: .74rem; }
.status-filters a.active { background: var(--navy); color: white; }
.admin-table-wrap { overflow-x: auto; padding: 5px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.admin-table th { padding: 13px 12px; text-align: left; color: var(--navy-soft); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid #edf0f2; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td > strong, .admin-table td > small, .admin-table td > code { display: block; margin-bottom: 4px; }
.admin-table td > small { color: var(--navy-soft); }
.admin-table td > code { color: #9aa3ac; font-size: .62rem; }
.admin-table summary { color: var(--coral); cursor: pointer; font-size: .7rem; }
.actions { min-width: 125px; }
.actions form { margin-bottom: 5px; }
.small-button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f9; color: var(--navy); font-size: .64rem; }
.small-button.danger { color: var(--coral-dark); }
.empty { text-align: center; color: var(--navy-soft); padding: 35px !important; }
@media (max-width: 900px) {
  .shop-grid, .reservation-layout { grid-template-columns: 1fr; }
  .random-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .random-card .section-heading, .random-card .how-it-works { grid-column: 1 / -1; }
  .gift-illustration { grid-column: 2; grid-row: 2; }
  .random-card form { grid-column: 1; grid-row: 2; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1184px); margin-top: 18px; }
  .site-header { padding: 24px 15px 18px; }
  .season-label { display: none; }
  .hero { padding: 20px 0 28px; }
  .hero-ornament { display: none; }
  .hero-copy > p { font-size: .94rem; }
  .selection-card, .random-card { padding: 21px 17px; }
  .random-card { display: block; }
  .gift-illustration { display: none; }
  .buyer-grid { grid-template-columns: 1fr; gap: 0; }
  .number-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
  .ticket span { height: 31px; font-size: .68rem; }
  .selection-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .payment-card { padding: 22px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
