* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #0e0f14;
  color: #f2f2f5;
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.init-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.init-gate[hidden] {
  display: none;
}

.init-card {
  width: 420px;
  max-width: 100%;
  background: #171821;
  border: 1px solid #2b2d3a;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.init-card h2 {
  margin-bottom: 8px;
}

.init-sub {
  color: #b9bac6;
  font-size: 13px;
  margin-bottom: 20px;
}

.init-card label {
  display: block;
  color: #b9bac6;
  font-size: 13px;
  margin-bottom: 12px;
}

.init-card input,
.init-card select {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  background: #0e0f14;
  color: #f2f2f5;
  border: 1px solid #2b2d3a;
  border-radius: 10px;
  font: 14px 'Montserrat', sans-serif;
}

.init-card button {
  width: 100%;
  margin-top: 8px;
  font: 600 15px 'Montserrat', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #a25cff);
  border: 0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.site-header {
  border-bottom: 1px solid #23242e;
  position: sticky;
  top: 0;
  background: rgba(14, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

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

.logo {
  font-weight: 800;
  letter-spacing: 2px;
}

.logo span {
  color: #8c7bff;
}

.nav a {
  color: #b9bac6;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.hero {
  padding: 96px 0 72px;
  background: radial-gradient(ellipse at 30% 0%, #2b2450 0%, #0e0f14 65%);
  text-align: center;
}

.hero-kicker {
  color: #8c7bff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
}

.hero-sub {
  color: #b9bac6;
  margin: 12px 0 32px;
}

.buy-btn {
  font: 600 16px 'Montserrat', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #a25cff);
  border: 0;
  border-radius: 14px;
  padding: 14px 36px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.buy-btn:hover {
  transform: translateY(-1px);
}

.buy-btn:disabled {
  opacity: 0.4;
  cursor: wait;
}

.event-section {
  padding: 56px 20px;
}

.event-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #171821;
  border: 1px solid #23242e;
  border-radius: 20px;
  padding: 28px;
}

.event-poster {
  border-radius: 14px;
  min-height: 260px;
  background: linear-gradient(160deg, #7c5cff 0%, #2b2450 60%, #171821 100%);
}

.event-info h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.event-meta {
  color: #8c7bff;
  font-weight: 600;
  margin-bottom: 16px;
}

.event-info p {
  color: #b9bac6;
  margin-bottom: 24px;
}

.about-section {
  padding: 0 20px 72px;
  max-width: 760px;
}

.about-section h3 {
  margin-bottom: 12px;
}

.about-section p {
  color: #b9bac6;
}

code {
  background: #23242e;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid #23242e;
  padding: 24px 0;
  color: #6c6d78;
  font-size: 13px;
  text-align: center;
}

.panel {
  position: fixed;
  bottom: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #171821;
  border: 1px solid #2b2d3a;
  border-radius: 14px;
  font-size: 13px;
  z-index: 20;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.config-panel {
  right: 16px;
}

.log-panel {
  left: 16px;
}

.panel summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  list-style: none;
}

.panel summary::-webkit-details-marker {
  display: none;
}

.panel form,
.panel-hint,
#event-log {
  padding: 0 16px 14px;
}

.panel label {
  display: block;
  color: #b9bac6;
  margin-bottom: 10px;
}

.panel input,
.panel select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: #0e0f14;
  color: #f2f2f5;
  border: 1px solid #2b2d3a;
  border-radius: 8px;
  font: 13px 'Montserrat', sans-serif;
}

.panel form button {
  font: 600 13px 'Montserrat', sans-serif;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 6px 8px 0 0;
  cursor: pointer;
  background: #7c5cff;
  color: #fff;
}

.panel form button#config-reset {
  background: #2b2d3a;
  color: #b9bac6;
}

.panel-hint {
  color: #6c6d78;
}

#event-log {
  max-height: 220px;
  overflow-y: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
}

.log-empty {
  color: #6c6d78;
}

.log-row {
  padding: 3px 0;
  border-bottom: 1px dashed #23242e;
}

.log-row time {
  color: #6c6d78;
  margin-right: 8px;
}

.log-row.success {
  color: #6fdb8f;
}

.log-row.failure {
  color: #ff7a7a;
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .panel {
    width: calc(100vw - 32px);
  }

  .log-panel {
    bottom: 76px;
  }
}
