:root {
  --bg: #0d0f12;
  --bg-card: #161a20;
  --surface: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --road: #2d3748;
  --line: #ecc94b;
  --font: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.logo-mascot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--road);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.75) 0%, rgba(13, 15, 18, 0.5) 50%, var(--bg) 100%),
    url("assets/images/welcome.jpg") no-repeat center center;
  background-size: 100% 100%, cover;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 48px 24px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-summary {
  margin: 0 0 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.65;
}

.hero-subtitle {
  margin: 0 0 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--road);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* About */
.about {
  background: var(--bg-card);
}

.about-content p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.about-content p:last-of-type {
  margin-bottom: 1.5em;
}

.about-features {
  margin: 0;
  padding-left: 1.4em;
  color: var(--text-muted);
}

.about-features li {
  margin-bottom: 0.5em;
}

/* First trip interactive */
.first-trip-interactive {
  background: var(--bg);
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}

.first-trip-subtitle {
  margin: 0 0 20px;
  max-width: 760px;
  color: var(--text-muted);
}

.first-trip-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.first-trip-step {
  flex: 1 1 260px;
}

.first-trip-cargo-step {
  margin-top: 14px;
  width: 100%;
  max-width: calc((100% - 14px) / 2);
}

.first-trip-step-highlight {
  box-shadow: none;
}

.first-trip-step select.first-trip-select-attention {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.first-trip-step select.first-trip-select-attention option {
  color: var(--text);
}

.first-trip-hidden {
  display: none;
}

.first-trip-step label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.first-trip-step select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--road);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.first-trip-step select:focus {
  outline: none;
  border-color: var(--accent);
}

.first-trip-result {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--road);
  border-radius: var(--radius);
  background: rgba(28, 33, 40, 0.55);
  color: var(--text);
}

.first-trip-result.is-error {
  color: #ffb4b4;
  border-color: #7f1d1d;
}

.first-trip-result p {
  margin: 0;
}

.first-trip-message {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.1);
  color: var(--text);
}

.first-trip-drive-box {
  margin-top: 16px;
}

#first-trip-start {
  display: block;
  width: 100%;
  max-width: calc((100% - 14px) / 2);
}

.first-trip-driving {
  margin-top: 12px;
  position: relative;
  padding: 8px 0 2px;
  color: var(--text-muted);
}

.first-trip-driving .truck {
  position: absolute;
  left: var(--truck-current, 0%);
  top: -2px;
  font-size: 1.25rem;
  transform: scaleX(-1);
  transition: left var(--truck-duration, 2000ms) linear;
}

.first-trip-driving .road-line {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.2));
}

.first-trip-driving .drive-note {
  display: block;
  margin-top: 8px;
}

.first-trip-driving.is-driving .truck {
  left: var(--truck-target, 55%);
}

.first-trip-driving.arrived .road-line {
  animation: first-trip-arrival-pulse 700ms ease-out 1;
}

.first-trip-driving.arrived .truck {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9));
}

.first-trip-event-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--road);
  border-radius: var(--radius);
  background: rgba(28, 33, 40, 0.75);
}

.first-trip-event-question {
  margin: 0;
}

.first-trip-event-choices {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.first-trip-choice-btn {
  border: 1px solid var(--road);
  background: var(--surface);
  color: var(--text);
}

.first-trip-choice-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.first-trip-outcome {
  margin-top: 12px;
  color: var(--text-muted);
}

.first-trip-event {
  margin-top: 10px;
  color: var(--text-muted);
}

.first-trip-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: calc((100% - 14px) / 2);
}

.first-trip-actions .btn {
  flex: 0 0 calc((100% - 10px) / 2);
  text-align: center;
}

@keyframes first-trip-arrival-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.2));
  }
  35% {
    box-shadow: 0 0 16px 2px rgba(245, 158, 11, 0.75);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 1), rgba(251, 191, 36, 0.5));
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.2));
  }
}

/* HowTo */
.howto-steps {
  margin: 0;
  padding-left: 1.25em;
  color: var(--text-muted);
  max-width: 720px;
}

.howto-steps li {
  margin-bottom: 0.65em;
}

/* FAQ */
.faq {
  background: var(--bg-card);
}

.faq-list {
  margin: 0;
  max-width: 780px;
}

.faq-list dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.faq-list a {
  color: var(--accent);
  text-decoration: none;
}

.faq-list a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.gallery-track {
  display: flex;
  transition: transform 0.35s ease-out;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 70vh;
  background: var(--surface);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  object-position: center;
}

.gallery-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--road);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.gallery-btn:hover {
  color: var(--accent);
  background: var(--bg-card);
  border-color: var(--accent);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dots .dot:hover {
  background: var(--text-muted);
}

.gallery-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* News */
.news {
  background: var(--bg-card);
}

.news-lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.news-lead a {
  color: var(--accent);
  text-decoration: none;
}

.news-lead a:hover {
  text-decoration: underline;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.news-actions-note {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.news-rss:hover {
  color: var(--accent);
}

.news-rss-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.news-latest {
  margin-bottom: 24px;
  min-height: 2em;
}

.news-loading,
.news-error {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--road);
  border-radius: var(--radius);
  padding: 20px;
}

.news-item + .news-item {
  margin-top: 20px;
}

.news-item-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.news-item-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 8px;
}

.news-item-title:hover {
  text-decoration: underline;
}

.news-item-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.news-item-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Play */
.play {
  background: var(--bg-card);
}

.play-lead {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.play-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.play-card {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--road);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.play-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.play-card-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.play-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.play-card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.play-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.play-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.play-note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--surface);
  border-radius: 4px;
}

/* Official links */
.official {
  padding: 48px 0 40px;
}

.official .section-title {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.official-links {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}

.official-links li {
  margin: 0;
}

.official-links a {
  color: var(--accent);
  text-decoration: none;
}

.official-links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--surface);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 24px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 16px;
    background: rgba(13, 15, 18, 0.98);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--surface);
    border-top: none;
    display: none;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .official-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .first-trip-form {
    flex-direction: column;
    align-items: stretch;
  }

  .first-trip-cargo-step {
    max-width: 100%;
  }

  #first-trip-start {
    max-width: 100%;
    width: 100%;
  }

  .first-trip-actions .btn {
    width: 100%;
    text-align: center;
    flex-basis: 100%;
  }

  .first-trip-actions {
    max-width: 100%;
  }

  .first-trip-event-choices .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .official {
    padding: 40px 0 32px;
  }

  .official-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}



