:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --ink: #16140f;
  --ink-soft: #5b564c;
  --line: #e4ddd0;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --surface: #16140f;
  --surface-ink: #ffffff;
  --modal-bg: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -18px rgba(22, 20, 15, 0.25);
  --header-bg: rgba(250, 248, 245, 0.85);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1e1b17;
  --ink: #f3efe8;
  --ink-soft: #a89e8f;
  --line: #332e26;
  --accent: #ff6a3d;
  --accent-ink: #16140f;
  --card: #1c1915;
  --surface: #f3efe8;
  --surface-ink: #16140f;
  --modal-bg: #1c1915;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(20, 18, 16, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--accent); }

nav {
  display: flex;
  gap: 28px;
}
nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
nav a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .header-inner nav { display: none; }
  .header-inner { height: 60px; }
  .wordmark { font-size: 16px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--surface);
  color: var(--surface-ink);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-small { padding: 9px 16px; font-size: 13px; }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-sub a { color: var(--ink); text-decoration-color: var(--accent); }
.hero-cta { display: flex; gap: 14px; margin-bottom: 56px; }

.countdown-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  margin-bottom: 28px;
}
.countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.countdown-clock {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  max-width: 640px;
}
.stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-size: 15px;
}

/* Bag spot map */
.bag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .bag-layout { grid-template-columns: 1fr; }
}

.spot-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .spot-maps { grid-template-columns: 1fr; }
}

.spot-map-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.spot-map-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 10px;
  text-align: center;
}

.spot-map {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
.spot-map--narrow {
  max-width: 68%;
  margin: 0 auto;
}
.spot-map-inner {
  position: relative;
  width: 100%;
  transition: transform 0.2s ease;
}
.spot-map-inner.mirrored { transform: scaleX(-1); }
.spot-map-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.side-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.side-toggle button {
  width: 30px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.side-toggle button.active {
  background: var(--surface);
  color: var(--surface-ink);
  border-color: var(--ink);
}

.spot-pin {
  position: absolute;
  border: 1.5px dashed var(--accent);
  background: rgba(255, 90, 31, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.spot-pin:hover,
.spot-pin.active {
  background: rgba(255, 90, 31, 0.22);
}
.spot-pin-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--surface-ink);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.spot-pin.claimed .spot-pin-badge { background: var(--accent); }
.spot-pin.has-logo {
  border-style: solid;
  background: transparent;
}
.spot-pin-logo {
  position: absolute;
  object-fit: contain;
  padding: 8%;
  box-sizing: border-box;
  cursor: pointer;
}

.spot-sticker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6%;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}
.spot-sticker-logo {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
}
.spot-sticker-name {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spot-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.spot-list-item:hover,
.spot-list-item.active { border-color: var(--accent); }
.spot-list-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--surface-ink);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spot-list-item.claimed .spot-list-num { background: var(--accent); }
.spot-list-info { flex-grow: 1; }
.spot-list-info h4 { margin: 0; font-size: 14px; }
.spot-list-info span { font-size: 12px; color: var(--ink-soft); }
.spot-list-price { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Spots */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.spot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.spot-tier {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.spot-card h3 { margin: 4px 0 0; font-size: 17px; }
.spot-size { font-size: 12px; color: var(--ink-soft); }
.spot-note { font-size: 13px; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.spot-bid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.spot-bid-value { font-size: 20px; font-weight: 800; }
.spot-bid-label { font-size: 11px; color: var(--ink-soft); }
.spot-card .btn { width: 100%; margin-top: 4px; }

.history-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
}
.history-row.current {
  background: rgba(255, 90, 31, 0.1);
  font-weight: 700;
}
.history-row.outbid {
  color: var(--ink-soft);
  text-decoration: line-through;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--surface-ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.how-step h3 { margin: 0 0 8px; font-size: 17px; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-inner a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-legal a { font-weight: 500; text-decoration: underline; }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22,20,15,0.45);
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--modal-bg);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal.modal-wide { max-width: 460px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal h3 { margin: 0 0 10px; font-size: 19px; }
.modal p { color: var(--ink-soft); font-size: 14px; }
.modal .btn { width: 100%; margin: 14px 0 8px; }
.modal-note { font-size: 12px; text-align: center; }

.preview-wrap { margin: 4px 0 16px; }
.preview-full {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.preview-full.mirrored { transform: scaleX(-1); }
.preview-full img#preview-bg {
  display: block;
  width: 100%;
  height: auto;
}
.preview-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(255,255,255,0.8);
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
}
.preview-overlay img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}
.spot-sticker-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 65%;
  height: 65%;
}
.spot-sticker-preview .spot-sticker-logo {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
#preview-placeholder {
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  text-align: center;
  padding: 2px;
  line-height: 1.1;
}
.preview-upload {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

/* Visitor bar */
.visitor-bar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Application form */
.modal-gateway-note {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
.modal-status {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}
.modal-status.held { color: var(--accent); }
.modal-status.open { color: var(--ink-soft); }
#application-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
}
#application-form input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--card);
  color: var(--ink);
}
#application-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  cursor: pointer;
}
#application-form .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.checkbox-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin: -4px 0 4px;
}
#application-form .btn {
  width: 100%;
  margin-top: 8px;
}
.form-error {
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 0;
}
.application-success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.application-success p {
  font-size: 14px;
  color: var(--ink);
}
