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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #2d1f0e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #f5f0e8;
  position: relative;
  overflow: hidden;
}

/* Mountain silhouettes background */
body::before, body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

body::before {
  height: 45%;
  background:
    linear-gradient(125deg, transparent 18%, #1a3a2a 18%, #1a3a2a 22%, transparent 22%),
    linear-gradient(135deg, transparent 32%, #1a3a2a 32%, #1a3a2a 38%, transparent 38%),
    linear-gradient(140deg, transparent 55%, #1a3a2a 55%, #1a3a2a 62%, transparent 62%),
    linear-gradient(130deg, transparent 72%, #1a3a2a 72%, #1a3a2a 80%, transparent 80%);
  opacity: 0.5;
  z-index: 0;
}

body::after {
  height: 35%;
  background:
    linear-gradient(128deg, transparent 10%, #2e6b4a 10%, #2e6b4a 16%, transparent 16%),
    linear-gradient(138deg, transparent 25%, #2e6b4a 25%, #2e6b4a 33%, transparent 33%),
    linear-gradient(132deg, transparent 48%, #2e6b4a 48%, #2e6b4a 57%, transparent 57%),
    linear-gradient(126deg, transparent 65%, #2e6b4a 65%, #2e6b4a 75%, transparent 75%),
    linear-gradient(142deg, transparent 82%, #2e6b4a 82%, #2e6b4a 92%, transparent 92%);
  opacity: 0.35;
  z-index: 0;
}

.card {
  background: rgba(45, 31, 14, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 170, 80, 0.25);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* Mountain icon */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6eaa50;
}

.subtitle {
  color: #a89478;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b7355;
  margin-bottom: 6px;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

input[type="text"] {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #5a4230;
  background: rgba(0,0,0,0.25);
  color: #f5f0e8;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]::placeholder { color: #6b5a45; }
input[type="text"]:focus { border-color: #6eaa50; }

.btn {
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
  background: #4a8c2a;
  color: #fff;
}

.btn:hover { background: #5a9e35; }
.btn:active { background: #3d7522; }

.examples {
  font-size: 0.72rem;
  color: #6b5a45;
}

.result {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #5a4230;
  background: rgba(0,0,0,0.2);
}

.result.success { border-color: rgba(110,170,80,0.4); background: rgba(74,140,42,0.1); }
.result.error   { border-color: rgba(180,80,60,0.4);  background: rgba(180,80,60,0.1); }

.result-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.result.success .result-title { color: #6eaa50; }
.result.error   .result-title { color: #c45a3c; }

.track-id-display {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.95rem;
  color: #6eaa50;
  background: rgba(0,0,0,0.3);
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid #3a5a28;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #4a8c2a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.dl-btn:hover { background: #5a9e35; }

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #5a4230;
  color: #a89478;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.83rem;
  transition: border-color 0.15s;
}

.link-secondary:hover { border-color: #8b7355; color: #c4ad90; }

.divider {
  border: none;
  border-top: 1px solid #3d2e1a;
  margin: 24px 0;
}

.how {
  font-size: 0.8rem;
  color: #7a6548;
  line-height: 1.7;
}

.how strong { color: #a89478; }
.how ol { padding-left: 16px; }

.note {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(110,170,80,0.08);
  border: 1px solid rgba(110,170,80,0.2);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #8aaa6e;
  line-height: 1.5;
}

.error-msg {
  font-size: 0.85rem;
  color: #c4ad90;
  line-height: 1.5;
}
