:root {
  --navy: #0d2340;
  --blue: #1f6fd1;
  --blue-soft: #e6effb;
  --stone: #f6f3ec;
  --ink: #1b1f27;
  --muted: #5b6474;
  --line: #ddd6c8;
  --white: #ffffff;
  --ok: #1d7a46;
  --warn: #9a5b00;
  --err: #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--stone);
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; color: var(--navy); }
a { color: var(--blue); }
img { max-width: 100%; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 18px; }
.brand img { border-radius: 50%; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.lang-btn {
  font: 600 14px/1 Inter, system-ui, sans-serif; color: var(--navy); background: var(--white);
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.lang-btn:hover { background: var(--blue-soft); }
.topbar nav a.nav-cta { background: var(--blue); color: var(--white); padding: 7px 16px; border-radius: 999px; }

.hero {
  background:
    linear-gradient(180deg, rgba(13,35,64,.0) 70%, rgba(13,35,64,.06)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(13,35,64,.035) 46px 48px),
    var(--white);
  border-bottom: 6px solid var(--navy);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 56px 20px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 240px; height: auto; border-radius: 50%; box-shadow: 0 10px 40px rgba(13,35,64,.15); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--blue); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 8px 0 12px; }
.when { margin: 0 0 12px; font-size: 18px; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 0 22px; }

.spaces { max-width: 440px; margin-bottom: 22px; }
.spaces-bar { height: 10px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.spaces-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .6s ease; }
.spaces p { margin: 8px 0 0; font-weight: 600; color: var(--navy); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white); text-decoration: none;
  font: 600 17px/1 Inter, system-ui, sans-serif; padding: 16px 28px; border-radius: 999px;
}
.btn:hover { background: var(--blue); }
.btn:disabled { opacity: .55; cursor: not-allowed; background: var(--navy); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0 8px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 20px; }
.note, .sub { color: var(--muted); }

.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.route::before { content: ""; position: absolute; top: 11px; left: 12.5%; right: 12.5%; border-top: 3px dashed var(--blue); }
.route li { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.route .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 5px solid var(--navy); position: relative; z-index: 1; margin-bottom: 8px; }
.route li:first-child .dot, .route li:last-child .dot { background: var(--blue); }
.route strong { font-family: Fraunces, Georgia, serif; font-size: 22px; color: var(--navy); }
.route small { color: var(--muted); font-size: 14px; }

.map-box { margin-top: 36px; display: flex; gap: 28px; align-items: center; justify-content: space-between; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.map-box h3 { margin: 0 0 6px; font-size: 22px; }
.map-box p { margin: 0; color: var(--muted); max-width: 52ch; }
.map-actions { flex: none; }
.map-box img { width: 160px; height: auto; flex: none; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .map-box { flex-direction: column; text-align: center; padding: 20px 16px; }
  .map-box .btn { width: 100%; text-align: center; }
  .map-actions { width: 100%; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.enter form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row .narrow { max-width: none; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--muted); font-weight: 400; }
input[type=text], input:not([type]), input[type=email] {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
#reg { text-transform: uppercase; letter-spacing: .06em; }
.choices { display: flex; gap: 24px; }
.choices label, .check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.field.invalid input:not([type=radio]):not([type=checkbox]) { border-color: var(--err); }
.field .err { color: var(--err); font-size: 14px; margin: 6px 0 0; }

.email-note { background: var(--blue-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; color: var(--navy); font-size: 15px; }

.dup-panel { background: #fdf1dc; border: 1.5px solid #e9b864; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.dup-panel p { margin: 0; color: #5a3a00; }
.dup-panel.ok { background: var(--blue-soft); border-color: #a9c6ee; }
.dup-panel.ok p { color: var(--navy); }
.dup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn.small { padding: 11px 18px; font-size: 15px; }
.btn.ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--blue-soft); }

.privacy-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.footer { flex-wrap: wrap; }
.footer p + p { flex-basis: 100%; text-align: center; font-size: 14px; }
.legal { max-width: 760px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 40px 0 4px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal li { margin-bottom: 4px; }

.pay { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.price { margin: 0; font-size: 20px; font-weight: 600; color: var(--navy); }

.status { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 500; }
.status.info { background: var(--blue-soft); color: var(--navy); }
.status.warn { background: #fdf1dc; color: var(--warn); }
.status.error { background: #fbe6e4; color: var(--err); }
.status.ok { background: #dff3e6; color: var(--ok); }
.enter-like, .cancel-confirm { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.cancel-confirm { border-color: #e9b864; }
.cancel-confirm h2 { margin-top: 0; }
.btn.danger { background: var(--err); }
.btn.danger:hover { background: #8e1d17; }
@media (max-width: 760px) { .enter-like, .cancel-confirm { padding: 20px 16px; } }
.waitlist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.waitlist h3 { margin: 0 0 8px; font-size: 24px; }
.waitlist > p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 760px) { .waitlist { padding: 20px 16px; } }

details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

.footer { margin-top: 64px; background: var(--navy); color: #dfe7f3; padding: 32px 20px; display: flex; gap: 16px; align-items: center; justify-content: center; }
.footer img { border-radius: 50%; }
.footer a { color: #fff; }
.footer p { margin: 0; }

/* Simple result pages */
.page { max-width: 640px; margin: 56px auto; padding: 0 20px; text-align: center; }
.page img { border-radius: 50%; }
.ticket { background: var(--white); border: 2px dashed var(--navy); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.ticket .code { font-family: Fraunces, Georgia, serif; font-size: 44px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }

.email-note, .status, .dup-panel, .footer p { overflow-wrap: anywhere; }

/* Language welcome screen (first visit only) */
.lang-splash { display: none; }
html.choose-lang body > :not(.lang-splash) { display: none !important; }
html.choose-lang .lang-splash {
  display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(13,35,64,.035) 46px 48px),
    var(--stone);
}
.splash-card {
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--navy);
  border-radius: var(--radius); padding: 36px 28px; max-width: 460px; width: 100%; text-align: center;
  box-shadow: 0 10px 40px rgba(13,35,64,.12);
}
.splash-card img { border-radius: 50%; }
.splash-card h1 { font-size: clamp(30px, 7vw, 42px); margin: 16px 0 6px; }
.splash-sub { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.splash-ask { margin: 0 0 14px; font-weight: 600; color: var(--navy); }
.splash-buttons { display: grid; gap: 12px; }
.splash-buttons .btn { text-align: center; font-size: 19px; padding: 18px 24px; }

@media (max-width: 760px) {
  .topbar { padding: 8px 12px; }
  .topbar nav { gap: 8px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .topbar nav a.nav-cta { padding: 7px 12px; }
  .brand { font-size: 16px; min-width: 0; }
  .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 36px 16px; }
  .hero-logo { width: 160px; margin: 0 auto; }
  .spaces { margin-left: auto; margin-right: auto; }
  main { padding: 0 16px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .route { grid-template-columns: 1fr; gap: 18px; }
  .route::before { top: 12px; bottom: 12px; left: 11px; right: auto; border-top: 0; border-left: 3px dashed var(--blue); }
  .route li { flex-direction: row; text-align: left; flex-wrap: wrap; column-gap: 12px; }
  .route .dot { margin: 0; }
  .route small { flex-basis: 100%; padding-left: 36px; margin-top: -4px; }
  .enter form { padding: 20px 16px; }
  .pay .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; gap: 10px; }
}
