:root {
  --ink: #102a43;
  --navy: #0f2d49;
  --blue: #176b87;
  --aqua: #46c2b4;
  --green: #14866d;
  --mist: #eaf4f5;
  --paper: #f7faf9;
  --line: #d9e5e7;
  --muted: #627785;
  --danger: #b42318;
  --shadow: 0 22px 70px rgba(15, 45, 73, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(70, 194, 180, .18), transparent 28rem),
    linear-gradient(165deg, #eef7f7 0%, var(--paper) 45%, #edf3f8 100%);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(15,45,73,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,45,73,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.shell {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
}

.event-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 5px 24px;
}

.event-copy {
  min-width: 0;
  flex: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23,107,135,.3);
  border-radius: 50% 50% 50% 12px;
  transform: rotate(-12deg);
}

.brand-mark span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 7px rgba(70,194,180,.15);
}

.event-header h1 {
  margin: 5px 0 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(22px, 5.6vw, 29px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .02em;
}

.event-title-line {
  display: block;
  white-space: nowrap;
}

.event-title-line-secondary {
  margin-top: 2px;
  font-size: .82em;
  letter-spacing: .01em;
}

.event-header .eyebrow {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2em;
}

.event-time, .venue-name {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.event-time { color: var(--blue); font-weight: 700; }

.eyebrow, .step-label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.step-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(23,107,135,.16);
  border-radius: 999px;
  background: rgba(70,194,180,.12);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.location-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
}

.geo-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
}

.geo-visual i {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(23,107,135,.24);
  border-radius: 50%;
}

.geo-visual i:nth-child(2) { width: 48px; height: 48px; }
.geo-visual b {
  width: 17px;
  height: 17px;
  border: 4px solid white;
  border-radius: 50% 50% 50% 0;
  background: var(--aqua);
  box-shadow: 0 7px 18px rgba(20,134,109,.35);
  transform: rotate(-45deg);
}

.geo-visual.is-locating i { animation: pulse 1.4s ease-out infinite; }
.geo-visual.is-locating i:nth-child(2) { animation-delay: .25s; }
.geo-visual.is-ready b { background: var(--green); }

@keyframes pulse {
  from { transform: scale(.65); opacity: .8; }
  to { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .geo-visual.is-locating i { animation: none; }
}

.location-copy h2, .success-panel h2 {
  margin: 5px 0 6px;
  font-size: 20px;
  line-height: 1.35;
}

.success-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.button:active { transform: translateY(1px); }
.button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(70,194,180,.38); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .46; }
.button-location { margin-top: 20px; color: var(--blue); background: var(--mist); font-weight: 900; }
.button-location.is-attention { animation: location-attention 1s ease-in-out infinite; }

@keyframes location-attention {
  0%, 100% {
    color: var(--blue);
    background: var(--mist);
    box-shadow: 0 0 0 0 rgba(23,107,135,0), 0 8px 18px rgba(23,107,135,.08);
    transform: scale(1);
  }
  50% {
    color: #075e72;
    background: #b9ebe5;
    box-shadow: 0 0 0 8px rgba(70,194,180,.24), 0 13px 28px rgba(23,107,135,.22);
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-location.is-attention { animation: none; }
}
.button-primary { margin-top: 18px; color: white; background: linear-gradient(120deg, var(--navy), var(--blue)); box-shadow: 0 12px 26px rgba(15,45,73,.2); }

.status {
  min-height: 20px;
  margin: 10px 2px 0;
  color: var(--green);
  font-size: 13px;
  text-align: center;
}

.status.is-error, .form-error { color: var(--danger); }
.rule { height: 1px; margin: 22px 0; background: var(--line); }

.field { margin-top: 15px; }
.field label { display: block; margin: 0 0 7px 2px; font-size: 14px; font-weight: 700; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfd;
  font: inherit;
  font-size: 16px;
  appearance: none;
}
.field input:focus { border-color: var(--aqua); background: white; }

.usage-note { margin: 15px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-error { min-height: 18px; margin: 12px 2px -8px; font-size: 13px; text-align: center; }

.success-panel { padding: 38px 26px 28px; text-align: center; }
.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 0 0 12px rgba(20,134,109,.1);
  font-size: 38px;
}
.success-panel dl { margin: 28px 0 20px; border-top: 1px solid var(--line); }
.success-panel dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.success-panel dt { color: var(--muted); font-size: 13px; }
.success-panel dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
[hidden] { display: none !important; }

@media (max-width: 380px) {
  .panel { padding: 20px; border-radius: 20px; }
  .location-row { grid-template-columns: 68px 1fr; gap: 12px; }
  .geo-visual { width: 64px; height: 64px; }
  .geo-visual i { width: 60px; height: 60px; }
  .geo-visual i:nth-child(2) { width: 40px; height: 40px; }
}
