:root {
  --bg: #f2f8ff;
  --surface: #ffffff;
  --ink: #102433;
  --ink-2: #2c4a60;
  --muted: #6b8497;
  --faint: #93a9ba;
  --line: rgba(18, 64, 100, 0.1);
  --blue: #0a84ff;
  --blue-deep: #0066d6;
  --blue-soft: #eaf4ff;
  --blue-line: #d2e5f6;
  --gold: #ffd34e;
  --gold-deep: #b8860b;
  --gold-soft: #fff8dc;
  --danger: #ff3b30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(900px 620px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 64%),
    radial-gradient(760px 520px at 92% 108%, #d9ecff 0%, rgba(217, 236, 255, 0) 66%),
    linear-gradient(180deg, #f8fcff 0%, #eaf4ff 100%);
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -170px;
  top: -150px;
  background: rgba(151, 206, 255, 0.4);
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: 2%;
  background: rgba(255, 211, 78, 0.13);
}

.orb-c {
  width: 520px;
  height: 520px;
  left: 50%;
  bottom: -200px;
  margin-left: -260px;
  background: rgba(143, 199, 255, 0.42);
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 560px) {
  .app {
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 100px rgba(58, 113, 156, 0.12);
  }
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(13px + env(safe-area-inset-top)) 22px 5px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-mark {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(10, 132, 255, 0));
  flex: 0 0 auto;
}

.brand-text { min-width: 0; }

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.brand-name > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-line2 { font-size: 10.5px; }

.brand-sub {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-dot { margin: 0 4px; color: #b3c7d6; }

.notice-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 14px rgba(31, 87, 133, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.16s ease;
}

.notice-btn[hidden] { display: none; }

.notice-btn:active { transform: scale(0.97); }
.notice-btn:hover { background: #ffffff; }

.notice-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

/* ------------------------------------------------------------------- map */
.map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 1px;
}

.map-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, #f8fcff 6%, rgba(248, 252, 255, 0.55) 54%, transparent);
}

#hall {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floor {
  fill: url(#floorGrad);
  stroke: #c6ddee;
  stroke-width: 1;
}

.grid { fill: url(#gridPattern); }

.stage {
  fill: url(#stageGrad);
  stroke: #cfe3f5;
  stroke-width: 1;
}

.stage-glow { fill: url(#stageGlow); }

.stage-line {
  fill: url(#topLine);
  opacity: 0.8;
  animation: stageLine 5s ease-in-out infinite;
}

@keyframes stageLine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.stage-title {
  fill: #2f5e85;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.42em;
}

.stage-sub {
  fill: #7a9db8;
  font-size: 9.5px;
  letter-spacing: 0.38em;
}

.aisle {
  stroke: #b3d2e9;
  stroke-opacity: 0.85;
  stroke-width: 1;
  stroke-dasharray: 2 10;
  fill: none;
}

.zone-label {
  fill: #5f8098;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.26em;
}

.row-label {
  fill: #8aa6ba;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.door rect {
  fill: #ffffff;
  stroke: #cfe3f5;
  stroke-width: 1;
}

.door path {
  fill: none;
  stroke: var(--blue);
  stroke-opacity: 0.65;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.door text {
  fill: #6f8da2;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.seat {
  opacity: 0;
  animation: seatIn 0.6s ease forwards;
  animation-delay: calc(var(--r) * 30ms + var(--c) * 2.5ms);
}

@keyframes seatIn { to { opacity: 1; } }

.seat rect {
  fill: #d9eafa;
  stroke: #bcd7ea;
  stroke-width: 1;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.seat text {
  fill: #5b7d96;
  font-size: 9px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.app.is-zoomed .seat text { opacity: 0.6; }

/* 预留席：灰底虚线，不参与逐排/逐座计数 */
.seat.reserved rect {
  fill: #dde5ec;
  stroke: #b6c3cf;
  stroke-dasharray: 4 3;
}
.seat.reserved text { fill: #93a3b1; }

.app.is-zoomed .zone-label,
.app.is-zoomed .stage-title,
.app.is-zoomed .stage-sub,
.app.is-zoomed .door text {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* 逐排 / 逐座 引导 */
.seat.row-passed rect { fill: #eef7ff; stroke: #d8e8f5; }
.seat.row-active rect { fill: #ffe08a; stroke: #d9a300; }
.seat.row-target rect { fill: #fff4c2; stroke: #e8c65a; }
.seat.seat-passed rect { fill: #ffdf7a; stroke: #d9a300; }
.seat.seat-active rect { fill: #ffc400; stroke: #a87a00; }

.seat.seat-active text,
.seat.seat-passed text { opacity: 0.9; }

.seat.seat-active text { fill: #5a3a00; }
.seat.seat-passed text { fill: #6b4a00; }

.row-glow {
  fill: none;
  stroke: var(--gold);
  stroke-width: 42;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: url(#softGlow);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.seat-glow {
  fill: url(#seatGlowGrad);
  opacity: 0;
  filter: url(#softGlow);
  transform-box: fill-box;
  transform-origin: center;
  animation: glowBreathe 1.7s ease-in-out infinite;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@keyframes glowBreathe {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.12); }
}

.guide-line {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(255, 211, 78, 0.95)) drop-shadow(0 0 12px rgba(255, 211, 78, 0.5));
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.row-guide {
  stroke-width: 1.8;
  stroke-dasharray: 3 7;
  stroke-opacity: 0.75;
}

.seat-guide { stroke-opacity: 0.85; }

.guide-dot {
  fill: var(--gold);
  stroke: #ffffff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 7px rgba(255, 211, 78, 0.95));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* route */
#routeBase {
  fill: none;
  stroke: var(--gold-deep);
  stroke-opacity: 0;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-opacity 0.45s ease;
}

#routeGlow {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#glow);
}

.app.is-panorama #routeBase { stroke-width: 13; }
.app.is-panorama #routeGlow { stroke-width: 5.5; }

#routeDot {
  fill: #ffffff;
  stroke: var(--gold-deep);
  stroke-width: 2;
  filter: url(#glow);
  opacity: 0;
}

/* target */
.target-seat {
  fill: var(--gold);
  stroke: #ffffff;
  stroke-width: 1.6;
  filter: url(#glow);
  transform-box: fill-box;
  transform-origin: center;
}

.target-core {
  fill: #ffffff;
  opacity: 0.95;
}

.ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.app.impact .ring-1 { animation: ripple 1.2s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.app.impact .ring-2 { animation: ripple 1.2s cubic-bezier(0.2, 0.6, 0.3, 1) 0.15s both; }
.app.impact .ring-3 { animation: ripple 1.2s cubic-bezier(0.2, 0.6, 0.3, 1) 0.3s both; }

.app.impact .target-seat { animation: targetShake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

.app.hit .ring { opacity: 0.16; }

.halo {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.app.hit .halo { opacity: 0.24; }

@keyframes ripple {
  0% { transform: scale(0.35); opacity: 0.9; }
  70% { opacity: 0.25; }
  100% { transform: scale(3.1); opacity: 0; }
}

@keyframes targetShake {
  0%, 100% { transform: translate(0, 0) scale(1); }
  18% { transform: translate(-1.5px, 1px) scale(1.04); }
  36% { transform: translate(1.5px, -1px) scale(1.02); }
  54% { transform: translate(-1px, -1px) scale(1.03); }
  72% { transform: translate(1px, 1px) scale(1.01); }
}

.pin {
  opacity: 0;
  transform: translateY(6px);
  filter: drop-shadow(0 5px 10px rgba(31, 87, 133, 0.18));
  transition: opacity 0.4s ease 0.1s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.app.is-zoomed .pin { opacity: 1; transform: translateY(0); }

.pin rect {
  fill: #ffffff;
  stroke: #ffe08a;
  stroke-width: 1;
}

.pin path {
  fill: #ffffff;
  stroke: #ffe08a;
  stroke-width: 1;
}

.pin text {
  fill: #7a4a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.target-label {
  fill: #5a3a00;
  font-size: 10px;
  font-weight: 700;
}

/* ----------------------------------------------------------------- sheet */
.sheet {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  height: clamp(336px, 43.5vh, 380px);
  margin-top: -26px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 -20px 60px rgba(31, 87, 133, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  transition: height 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 34px;
  height: 4px;
  margin-left: -17px;
  border-radius: 2px;
  background: #dce8f2;
  pointer-events: none;
}

.app.is-result .sheet { height: 342px; }

.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 22px calc(14px + env(safe-area-inset-bottom));
  transition: opacity 0.38s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pane-intro { overflow: visible; }

.app.is-result .pane-intro {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.pane-result {
  padding-top: 18px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition-delay: 0.05s;
}

.app.is-result .pane-result {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--blue);
}

h1 {
  margin: 5px 0 2px;
  font-size: clamp(28px, 8vw, 33px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lede {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field { position: relative; flex: 0 0 auto; }

.field label {
  position: absolute;
  top: 8px;
  left: 15px;
  z-index: 1;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #6f8aa0;
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 20px 14px 5px;
  border: 1px solid rgba(160, 200, 232, 0.52);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(31, 87, 133, 0.03);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #8fa7ba; }

.field input:focus {
  border-color: rgba(10, 132, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.field.invalid input {
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.06);
}

.combo-wrap { position: relative; }

.chev {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7px;
  color: #8aa3b6;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.combo.open .chev { transform: rotate(180deg); }

.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  max-height: 216px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(31, 87, 133, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-overflow-scrolling: touch;
}

.combo-list[hidden] { display: none; }

.combo-list li {
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.3;
  cursor: pointer;
}

.combo-list li .alias {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.combo-list li[aria-selected="true"],
.combo-list li.active {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.combo-list li.empty {
  color: var(--faint);
  font-size: 12px;
  cursor: default;
}

.error {
  height: 14px;
  padding-left: 2px;
  color: var(--danger);
  font-size: 10.5px;
  line-height: 14px;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.error.show { opacity: 1; }

form.shake { animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 1px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  box-shadow: 0 11px 26px rgba(10, 132, 255, 0.24);
  transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit:active { transform: scale(0.985); }

.submit:disabled {
  cursor: default;
  opacity: 0.7;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.14);
}

.submit .arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.submit:hover .arrow { transform: translateX(2px); }

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit.loading .spinner { display: block; }
.submit.loading .arrow { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  min-height: 28px;
}

.demo-row[hidden] { display: none; }

.demo-label {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid rgba(178, 210, 238, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #5e7a90;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: #a9cff0;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

/* ---------------------------------------------------------------- result */
.guide-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.app.ready .guide-status {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.guide-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.guide-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 211, 78, 0.5);
  animation: guidePulse 1.6s ease-out infinite;
}

@keyframes guidePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 211, 78, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 211, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 211, 78, 0); }
}

.guide-step {
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.guide-detail {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.guide-progress {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.guide-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8e7f4;
  transition: background 0.25s ease, transform 0.25s ease;
}

.guide-progress span.on {
  background: var(--gold-deep);
  transform: scale(1.18);
}

.guide-skip {
  margin-top: 10px;
  padding: 7px 13px;
  border: 1px solid #e0ecf6;
  border-radius: 999px;
  background: #ffffff;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.guide-skip:hover { color: var(--blue); border-color: #b9d8f2; }
.guide-skip:disabled { opacity: 0.5; cursor: default; }

.result-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app.ready .result-body { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.26s; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-zone {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.result-zone .slash { margin: 0 6px; color: #b3c7d6; }

.ghost {
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.ghost:hover { color: var(--blue); }

.seat-big {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 5px 0 0;
}

.row-num {
  color: #3c5f78;
  font-size: 39px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.seat-num {
  color: var(--gold-deep);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  filter: drop-shadow(0 0 20px rgba(255, 211, 78, 0.28));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .seat-num {
    background: linear-gradient(180deg, #ffd34e 0%, #e0a800 55%, #a87400 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.unit {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  padding: 3px 7px;
  border: 1px solid #ffe08a;
  border-radius: 5px;
  background: var(--gold-soft);
  color: #8a5a00;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.who {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route {
  margin-top: 6px;
  padding-left: 9px;
  border-left: 2px solid #b9d8f2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.legend span { display: flex; align-items: center; gap: 6px; }

.sw { display: inline-block; flex: 0 0 auto; }

.sw-seat {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.12);
}

.sw-route {
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.save-hint {
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.act {
  flex: 1;
  height: 40px;
  border: 1px solid rgba(167, 205, 236, 0.58);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.act:hover { background: #ffffff; }

.act.primary {
  border-color: rgba(10, 132, 255, 0.24);
  background: rgba(234, 244, 255, 0.88);
  color: var(--blue-deep);
}

.act.primary:hover { background: #dfefff; }

/* ---------------------------------------------------------------- notice */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 41, 67, 0.24);
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notice-overlay[hidden] { display: none; }
.notice-overlay.open { opacity: 1; }

.notice-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  padding: 10px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -24px 70px rgba(12, 41, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
  transform: translateY(26px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notice-overlay.open .notice-sheet { transform: none; }

.notice-grab {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: #dce8f2;
  flex: 0 0 auto;
}

.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4fa;
  flex: 0 0 auto;
}

.notice-kicker {
  color: var(--blue);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.notice-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.notice-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.notice-close:hover { background: rgba(255, 255, 255, 0.8); color: var(--ink); }

.notice-body {
  overflow-y: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f6fb;
}

.notice-item:last-child { border-bottom: 0; }

.notice-item h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.notice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.notice-foot {
  padding-top: 10px;
  border-top: 1px solid #edf4fa;
  color: var(--faint);
  font-size: 10.5px;
  text-align: center;
  flex: 0 0 auto;
}

@media (min-width: 560px) {
  .notice-overlay { align-items: center; padding: 24px; }
  .notice-sheet {
    max-width: 440px;
    max-height: 82vh;
    border-radius: 28px;
    padding-bottom: 18px;
  }
}

/* --------------------------------------------------------------- responsive */
@media (max-height: 720px) {
  .app.is-panorama #routeBase { stroke-width: 16; }
  .app.is-panorama #routeGlow { stroke-width: 7.5; }
  .sheet { height: 320px; }
  .pane { padding-top: 18px; }
  h1 { font-size: 26px; }
  .lede { display: none; }
  .seat-num { font-size: 56px; }
  .row-num { font-size: 34px; }
  .topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
}

@media (max-height: 640px) {
  .sheet { height: 300px; }
  .pane { padding-top: 15px; }
  .eyebrow { display: none; }
  h1 { margin-top: 0; font-size: 24px; }
  .field input { height: 49px; }
  .submit { height: 46px; }
  .demo-row { padding-top: 6px; }
  .guide-step { font-size: 21px; }
}

@media (max-width: 380px) {
  .demo-row { gap: 6px; }
  .demo-label { font-size: 8px; letter-spacing: 0.08em; }
  .chip { font-size: 9.5px; padding: 5px 6px; }
  .notice-btn { padding: 7px 8px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .seat, .stage-line, .guide-kicker::before, .ring, .target-seat { animation: none !important; }
  .seat { opacity: 1; }
  .pin { transition: none; }
  .pane, .result-body, .guide-status, .sheet { transition: none; }
  .guide-line, .guide-dot { transition: none; }
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 200;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff2f1;
  color: #b42318;
  font-size: 13px;
  text-align: center;
}


@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .sheet,
  .notice-sheet,
  .combo-list,
  .field input,
  .chip,
  .act {
    background: rgba(255, 255, 255, 0.96);
  }
}
