:root {
  --bg: #17130f;
  --surface: #241d17;
  --text: #f3e9dc;
  --text-muted: #b8a996;
  --accent: #4FA678;
  --error: #e2917a;
  --line: #3a3128;

  --font-display: 'Carlito', sans-serif;
  --font-body: 'Carlito', sans-serif;
  --font-script: 'Carlito', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.marquee {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-size: 2.2rem;
  margin: 0 0 0.25rem;
  text-align: center;
}
.marquee.small { font-size: 1.3rem; text-align: left; margin: 0; }

/* Login */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-card { width: 100%; max-width: 360px; text-align: center; }
.tagline { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label { text-align: left; font-size: 0.85rem; color: var(--text-muted); }
.login-form input {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}
.error { color: var(--error); font-size: 0.9rem; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-accent { background: var(--accent); color: #0f1d16; }
.btn-accent:active { opacity: 0.85; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.link-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Gallery */
.gallery { padding: 20px; }
.empty-state { color: var(--text-muted); text-align: center; margin-top: 3rem; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ticket {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #000;
  display: block;
  pointer-events: none;
}
.ticket-title {
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 1px dashed var(--line);
}

/* Scene view */
.scene-view { max-width: 480px; margin: 0 auto; padding: 24px 20px 60px; }
.scene-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  margin: 1.25rem 0;
  display: block;
}
.script-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-script);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

/* Form */
.scene-form { max-width: 480px; margin: 0 auto; padding: 24px 20px 60px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 1.5rem; }
.form label { font-size: 0.85rem; color: var(--text-muted); }
.form input, .form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}
.form textarea { font-family: var(--font-script); resize: vertical; }
