:root {
  --bg: #050506;
  --bg-elev: #0c0e14;
  --card: rgba(16, 18, 24, 0.88);
  --card-strong: linear-gradient(145deg, rgba(38, 27, 14, 0.92), rgba(14, 16, 22, 0.94));
  --amber: #f2a030;
  --amber-soft: rgba(242, 160, 48, 0.14);
  --amber-border: rgba(242, 160, 48, 0.38);
  --bronze: #a77c45;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #ef4444;
  --text: #ffffff;
  --text-2: #d1d5db;
  --muted: #9ca3af;
  --btn-dark: #081424;
  --radius: 18px;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.45;
}

h1, h2, h3, .font-display {
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

/* Ambient HBF 2026 Background */
.hbf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(167, 124, 69, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 22%, rgba(242, 160, 48, 0.12) 0%, transparent 42%),
    linear-gradient(160deg, #040405 0%, #090b10 55%, #050507 100%);
}

.hbf-crystal-art {
  position: fixed;
  right: -90px;
  bottom: -60px;
  width: min(760px, 85vw);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(242, 160, 48, 0.2));
}

.hbf-crystal-twinkle {
  position: fixed;
  right: -90px;
  bottom: -60px;
  width: min(760px, 85vw);
  opacity: 0.22;
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
  animation: twinklePulse 4.5s ease-in-out infinite;
}

@keyframes twinklePulse {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.38; }
}

.app-shell {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  min-height: 100vh;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(242, 160, 48, 0.24);
  margin-bottom: 18px;
}

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

.topbar-hbf-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.topbar-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-libra-logo {
  height: 26px;
  width: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--amber-border);
  background: rgba(18, 20, 26, 0.85);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

/* Cards & Badges */
.glass-card {
  background: var(--card);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.glass-card-strong {
  background: var(--card-strong);
  border: 1.5px solid rgba(242, 160, 48, 0.72);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.65), 0 0 32px rgba(242, 160, 48, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(242, 160, 48, 0.42);
}

.pill-green {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.45);
}

/* Hero Typography & Buttons matching hotel-forum.biz */
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--amber);
}

.hero-desc {
  color: var(--text-2);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.hero-crystal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 16px;
}

.hero-crystal-img {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(242, 160, 48, 0.48));
  animation: floatCrystal 4.2s ease-in-out infinite;
}

@keyframes floatCrystal {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.main-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 6px;
  border: 1.5px solid var(--amber);
  background: #ffffff;
  color: var(--btn-dark);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(242, 160, 48, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}

.main-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(242, 160, 48, 0.38);
}

.main-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--amber);
  background: rgba(0, 0, 0, 0.35);
  color: var(--amber);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sec-btn:hover {
  background: rgba(242, 160, 48, 0.14);
  transform: translateY(-1px);
}

/* Stats Grid */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-box {
  background: rgba(11, 13, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 3.6vw, 22px);
  color: var(--amber);
}

.kpi-value.green { color: var(--green); }

/* 6-Facet Crystal Progress */
.crystal-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(14, 16, 22, 0.9);
  border: 1px solid rgba(242, 160, 48, 0.3);
  margin-bottom: 16px;
}

.crystal-svg-wrap {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.crystal-facet {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(242, 160, 48, 0.35);
  stroke-width: 1.5;
  transition: fill 0.35s ease, filter 0.35s ease;
}

.crystal-facet.lit {
  fill: #f2a030;
  stroke: #ffd180;
  filter: drop-shadow(0 0 8px rgba(242, 160, 48, 0.8));
}

.timer-bar-wrap {
  flex: 1;
}

.timer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timer-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #f2a030, #ffd180);
  transition: width 0.25s linear;
}

/* Case Options */
.case-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  margin: 10px 0 8px;
  line-height: 1.22;
}

.case-situation {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 16px;
}

.options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 17, 24, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--amber);
  background: rgba(242, 160, 48, 0.1);
  transform: translateY(-1px);
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--amber-soft);
  border: 1px solid rgba(242, 160, 48, 0.45);
  color: var(--amber);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-btn.chosen-best {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.14);
}

.option-btn.chosen-mid {
  border-color: var(--amber);
  background: rgba(242, 160, 48, 0.14);
}

.option-btn.chosen-low {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.14);
}

.insight-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border-left: 4px solid var(--amber);
  background: rgba(242, 160, 48, 0.08);
}

.insight-box.best {
  border-left-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

/* Lead Form & Chips */
.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 6px;
}

.text-input, .select-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 11, 16, 0.95);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus, .select-input:focus {
  border-color: var(--amber);
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 17, 24, 0.9);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip-btn.active {
  background: var(--amber);
  color: #081424;
  border-color: #ffd180;
  font-weight: 700;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 18px;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
  margin-top: 2px;
  flex-shrink: 0;
}

.error-banner {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* Interactive Crack Crystal Stage */
.crack-stage {
  text-align: center;
  padding: 24px 16px;
}

.crack-crystal-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  transition: transform 0.15s ease;
}

.crack-crystal-btn:active {
  transform: scale(0.95);
}

.crack-crystal-svg {
  width: 210px;
  height: 230px;
  filter: drop-shadow(0 0 34px rgba(242, 160, 48, 0.65));
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(242, 160, 48, 0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 46px rgba(242, 160, 48, 0.92)); transform: scale(1.04); }
}

/* Golden Ticket */
.ticket-card {
  position: relative;
  border-radius: 22px;
  padding: 24px 20px;
  background: linear-gradient(145deg, #1b140a 0%, #0d1017 65%, #161108 100%);
  border: 2px solid var(--amber);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 36px rgba(242, 160, 48, 0.22);
  text-align: center;
}

.ticket-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 7vw, 52px);
  color: var(--amber);
  letter-spacing: 0.04em;
  margin: 8px 0;
}

.promo-code-box {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px dashed var(--green);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
}

/* Leaderboard */
.leader-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

.leader-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(242, 160, 48, 0.14);
  color: var(--amber);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}
