/* Tokens copied from tickets-web (app/assets/css/main.css) so this page
   looks identical to tickets.festival.in.th — keep them in sync by hand. */
:root {
  --font-sans: "Bai Jamjuree", "K2D", "Noto Sans Thai", sans-serif;
  --font-display: "K2D", "Bai Jamjuree", sans-serif;

  --bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --bar-bg: linear-gradient(100deg, #e8f2fb 0%, #dcebf8 42%, #e2e9f8 68%, #ebe6f8 84%, #f5e7f0 94%, #f8eee5 100%);
  --border: #e5e7eb;
  --control-border: #d1d5db;
  --control-text: #4b5563;
  --hdr-ctl-bg: rgba(255, 255, 255, 0.55);
  --hdr-ctl-bg-hover: rgba(255, 255, 255, 0.85);
  --hdr-ctl-border: rgba(15, 23, 42, 0.22);
  --hdr-ctl-text: #1e293b;

  --highlight: #63c15b;
  --highlight-hover: #4fa348;
  --on-highlight: #0f2417;
  --accent-3: #8d73d6;
}

:root.dark {
  --bg: #09090f;
  --text: #f3f4f6;
  --muted: #8888aa;
  --bar-bg: linear-gradient(100deg, #06182b 0%, #0a4f66 28%, #0e7a68 50%, #2d5aa8 72%, #5b3fa6 88%, #b9701f 100%);
  --border: #1f1f2e;
  --control-border: #2d2d40;
  --control-text: #d1d5db;
  --hdr-ctl-bg: rgba(255, 255, 255, 0.12);
  --hdr-ctl-bg-hover: rgba(255, 255, 255, 0.24);
  --hdr-ctl-border: rgba(255, 255, 255, 0.4);
  --hdr-ctl-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.font-display {
  font-family: var(--font-display);
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Header / footer --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 80px;
  background: var(--bar-bg);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gradient-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #173d32, #2b8753, #63c15b, #f4d84a, #fb923c, #8d73d6);
}

.site-header .gradient-line {
  bottom: 0;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

@media (min-width: 360px) {
  .brand img {
    height: 48px;
  }
}

@media (min-width: 640px) {
  .brand img {
    height: 64px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 8px;
  }
}

.control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 1px solid var(--hdr-ctl-border);
  border-radius: 6px;
  background: var(--hdr-ctl-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--hdr-ctl-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.control:hover {
  background: var(--hdr-ctl-bg-hover);
}

.control svg {
  width: 18px;
  height: 18px;
}

.control .flag-img {
  width: 20px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.control .flag-emoji {
  font-size: 16px;
  line-height: 1;
}

.lang-code {
  display: none;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .lang-code {
    display: inline;
  }

  .control.lang {
    padding: 0 10px;
  }
}

.icon-sun {
  display: none;
}

:root.dark .icon-sun {
  display: block;
}

:root.dark .icon-moon {
  display: none;
}

.site-footer {
  position: relative;
  background: var(--bar-bg);
}

.site-footer .gradient-line {
  top: 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 12px;
  color: #374151;
}

:root.dark .site-footer .container {
  color: #e2e8f0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Page --- */
main.container {
  flex: 1 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  max-width: 32rem;
  margin: 8px auto 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card-center {
  justify-content: center;
}

.card-center .actions {
  margin-top: 0;
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.logo-link {
  display: block;
  width: 100%;
}

.card-logo {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 12px;
}

.badge {
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(141, 115, 214, 0.15);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 600;
}

.steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.steps .n {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(99, 193, 91, 0.2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.live {
  align-self: stretch;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(99, 193, 91, 0.5);
  border-radius: 6px;
  background: rgba(99, 193, 91, 0.08);
  font-size: 14px;
}

.live strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.live .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--highlight-hover);
}

.live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  color: var(--accent-3);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.15s;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow:hover svg {
  transform: translate(2px, -2px);
}

@media (min-width: 1024px) {
  .card-logo {
    max-width: 200px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--highlight);
  color: var(--on-highlight);
}

.btn-primary:hover {
  background: var(--highlight-hover);
}

.btn-secondary {
  border: 1px solid var(--control-border);
  color: var(--control-text);
}

.btn-secondary:hover {
  border-color: rgba(141, 115, 214, 0.6);
  color: var(--accent-3);
}

/* Phones keep two columns, so everything shrinks to fit ~165px cards. */
@media (max-width: 639px) {
  .hero h1 {
    font-size: 1.375rem;
  }

  .hero p {
    font-size: 13px;
    margin-top: 6px;
  }

  .cards {
    gap: 8px;
    margin-top: 16px;
  }

  .card {
    padding: 12px;
  }

  .card h2 {
    font-size: 1rem;
  }

  .card p {
    font-size: 13px;
    margin-top: 6px;
  }

  .card-logo {
    margin-bottom: 8px;
  }

  .badge {
    margin-bottom: 8px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .steps {
    display: none;
  }

  .live {
    padding: 6px 8px;
    font-size: 12px;
  }

  .live strong {
    font-size: 0.875rem;
  }

  .actions {
    flex-direction: column;
    align-self: stretch;
    padding-top: 12px;
  }

  .link-arrow {
    height: auto;
    min-height: 36px;
    font-size: 12px;
  }

  .link-arrow svg {
    width: 14px;
    height: 14px;
  }

  .btn {
    width: 100%;
    height: auto;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .site-footer .container {
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
