:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: rgba(9, 15, 19, 0.92);
  --panel-strong: rgba(6, 11, 15, 0.97);
  --text: #fff6d8;
  --muted: #d89f56;
  --acid: #ffd21a;
  --acid-soft: rgba(255, 138, 22, 0.2);
  --line: rgba(255, 194, 26, 0.44);
  --danger: #ff6f2d;
  --button-text: #130b02;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Noto Sans TC",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 210, 26, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(255, 111, 45, 0.2), transparent 32rem),
    radial-gradient(circle at top left, rgba(20, 96, 128, 0.2), transparent 38rem),
    var(--bg);
  background-size: 100% 6px, auto, auto, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 3px,
    transparent 7px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
}

.hero__media {
  position: relative;
  min-width: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 941 / 1672;
  object-fit: contain;
  background: #05080b;
  box-shadow: var(--shadow);
  filter: contrast(1.04) saturate(1.08);
}

.hero__content {
  padding: 18px 0;
  min-width: 0;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 194, 26, 0.58);
  margin-bottom: 18px;
}

.language-switch__button {
  min-width: 74px;
  min-height: 34px;
  border: 0;
  border-right: 1px solid rgba(255, 194, 26, 0.58);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch__button:last-child {
  border-right: 0;
}

.language-switch__button.is-active {
  background: var(--acid);
  color: var(--button-text);
}

.eyebrow,
.section-heading p,
.partners > span,
h1,
h2 {
  margin: 0;
  color: var(--acid);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 138, 22, 0.36);
}

h1 {
  margin-top: 18px;
  font-size: 2.45rem;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero__lead {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.quick-facts div,
.event-panel,
.register-panel,
.bank-transfer,
.notice-section,
.payment-modal__panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 194, 26, 0.08) inset;
}

.quick-facts div {
  padding: 14px;
  min-height: 86px;
}

.quick-facts span,
.quick-facts strong {
  display: block;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-facts strong {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.25;
}

.quick-facts .location-note {
  font-size: 10pt;
}

.hero__cta,
.submit-button,
.secondary-button,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--button-text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.hero__cta {
  width: min(260px, 100%);
}

.hero__cta:hover,
.submit-button:hover,
.secondary-button:hover,
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 138, 22, 0.34);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  padding-top: 32px;
}

.event-panel,
.register-panel {
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.event-panel .section-heading h2,
.register-panel .section-heading h2 {
  font-size: 25pt;
}

.section-heading--small h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.lineup-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lineup-list li {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 194, 26, 0.22);
}

.lineup-list time {
  color: var(--muted);
  font-size: 0.92rem;
}

.lineup-list span {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 194, 26, 0.72);
  border-radius: 50%;
  color: var(--acid);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--acid);
  color: var(--button-text);
  box-shadow: 0 0 22px rgba(255, 138, 22, 0.3);
}

.market-area {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 194, 26, 0.28);
}

.market-area h3,
.market-area p {
  margin: 0;
}

.market-area h3 {
  color: var(--acid);
  font-size: 1.35rem;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 138, 22, 0.3);
}

.market-area p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.follow-panel {
  margin: -6px 0 24px;
  display: grid;
  gap: 12px;
}

.follow-panel div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.follow-panel span {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
}

.follow-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 194, 26, 0.5);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.follow-panel a:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.bank-transfer p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.registration-payment-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.registration-closed-message {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 18px;
}

.registration-closed-message[hidden] {
  display: none;
}

.registration-closed-message h3,
.registration-closed-message p {
  margin: 0;
}

.registration-closed-message h3 {
  color: var(--acid);
  font-size: 1.35rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.registration-closed-message p {
  color: var(--text);
  line-height: 1.7;
}

.partners,
.notice-section {
  display: grid;
  gap: 14px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.partner-logos img,
.partner-placeholder {
  width: auto;
  height: 46px;
  max-width: 180px;
  object-fit: contain;
  padding: 0;
}

.partner-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.registration-form {
  display: grid;
  gap: 16px;
}

.registration-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.registration-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 194, 26, 0.4);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
}

.payment-last5 input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 194, 26, 0.4);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
}

.registration-form input:focus,
.payment-last5 input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(255, 138, 22, 0.18);
}

.submit-button {
  width: 100%;
  margin-top: 8px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 28px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.form-status.is-error {
  color: var(--danger);
}

.bank-transfer {
  margin: 0;
  padding: 0;
  background: var(--panel-strong);
}

.bank-transfer dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bank-transfer dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 194, 26, 0.18);
}

.bank-transfer dt {
  color: var(--muted);
}

.bank-transfer dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.notice-section {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.notice-section {
  font-size: 7pt;
}

.notice-section .section-heading p,
.notice-section .section-heading h2 {
  font-size: 12pt;
  line-height: 1.3;
}

.notice-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.notice-columns ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.7;
}

.contact-line {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-line a {
  color: var(--acid);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 194, 26, 0.6);
}

.partners--footer {
  margin-top: 26px;
  padding: 4px 0 0;
  justify-items: center;
}

.payment-modal {
  width: min(620px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.payment-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.payment-modal__panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 5vw, 34px);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  border-color: rgba(255, 194, 26, 0.5);
  background: rgba(0, 0, 0, 0.8);
  color: var(--acid);
  text-transform: uppercase;
}

.payment-note {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.payment-last5 {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.payment-last5 small {
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.secondary-button {
  min-height: 52px;
  border-color: rgba(255, 194, 26, 0.5);
  background: transparent;
  color: var(--acid);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 620px);
    padding-top: 12px;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 22px;
  }

  .hero__content {
    padding-bottom: 16px;
  }

  .language-switch {
    width: 100%;
  }

  h1 {
    white-space: normal;
  }

  .hero__cta {
    width: 100%;
  }

  .quick-facts,
  .notice-columns {
    grid-template-columns: 1fr;
  }

  .follow-panel div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .follow-panel a {
    width: 100%;
  }

  .partner-logos {
    gap: 14px;
  }

  .partner-logos img,
  .partner-placeholder {
    height: 34px;
    max-width: 96px;
  }

  .lineup-list li {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px 0;
  }

  .lineup-list time {
    grid-column: 1 / -1;
  }

  .lineup-list .social-icon {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.15rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.95rem;
  }

  .event-panel,
  .register-panel {
    padding: 18px;
  }

  .bank-transfer dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}
