:root {
  color-scheme: dark;
  --body: #212529;
  --panel: #2b3035;
  --card: #343a40;
  --card-soft: #3b424a;
  --text: #f8f9fa;
  --muted: #adb5bd;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--body);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.icon-sprite {
  display: none;
}

.page-wrap {
  width: min(100% - 2rem, 1140px);
  margin: 1.5rem auto 0;
}

.hero-panel {
  width: 100%;
  padding: 4.25rem 3rem 2.75rem;
  text-align: center;
  background: var(--panel);
  border-radius: 0.5rem;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  width: min(50%, 250px);
  min-width: 160px;
  height: auto;
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  margin-top: 3rem;
  color: var(--text);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 1.36rem + 0.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.25rem;
}

.ticket-card {
  max-width: 570px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.ticket-status {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.ticket-note {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.1rem;
}

.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.price {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 0.9rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.buy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.buy-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.buy-button svg {
  width: 20px;
  height: 20px;
}

.legal-panel {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.legal-panel h1 {
  margin-top: 0;
}

.back-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
  padding: 0.55rem 1.2rem;
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  text-decoration: none;
}

.back-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0 0.25rem;
  color: var(--muted);
  text-align: left;
}

.legal-content h2 {
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
  font-size: 1.45rem;
}

.legal-content p {
  margin-bottom: 0;
}

.legal-content a {
  color: #6ea8fe;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 1140px);
  margin: 0.9rem auto 0;
  padding: 0.5rem 0 0.65rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 680px) {
  .page-wrap {
    width: min(100% - 1.5rem, 1140px);
    margin-top: 1rem;
  }

  .hero-panel {
    padding: 2.75rem 1.15rem 1.5rem;
  }

  .brand img {
    width: min(68%, 220px);
    min-width: 132px;
  }

  h1 {
    margin-top: 2.25rem;
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .intro {
    font-size: 1.08rem;
  }

  .ticket-card {
    padding: 1.15rem;
    border-radius: 0.85rem;
  }

  .ticket-status {
    font-size: 1.12rem;
  }

  .ticket-note {
    font-size: 1rem;
  }

  .ticket-actions {
    align-items: center;
    flex-direction: column;
  }

  .price {
    width: 100%;
  }

  .legal-panel {
    padding-top: 1.75rem;
  }

  .legal-content {
    font-size: 0.98rem;
  }

  .legal-content h2 {
    font-size: 1.22rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: min(100% - 1.5rem, 1140px);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
