@font-face {
  font-family: "Mistrully";
  src: url(Mistrully.ttf) format("truetype");
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  touch-action: manipulation;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
html * {
  transition: all 0.25s;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
html {
  background-color: var(--bg-2);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
html, body { margin: 0; }
:root {
  --bg-2: #1b1f2b;
  --text: #fff;
  --peach: #f5cba7;
  --neon: #b6cbe8;
  --text-muted: color-mix(in srgb, var(--text) 60%, transparent);
  --header-bg: #131313;
  --header-glass: 35%;
  --border: #aaaaaa;
  --shadow: 0 0 1px var(--border);
  --backdrop: blur(16px) saturate(120%);
}
body {
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: url(bg.JPG) center / cover no-repeat;
  filter: blur(4px) brightness(0.45);
  transform: scale(1.02);
}
button { padding: 0; border: none; background: none; color: inherit; font-family: inherit; cursor: pointer; }
i { pointer-events: none; }

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  background-color: color-mix(in srgb, var(--header-bg) var(--header-glass), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
}
#logo { display: block; height: 40px; }
#logo img { display: block; width: auto; height: 40px; }
#header-right { display: flex; align-items: center; gap: 5px; }
#help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}
#help-btn i { font-size: 1em; opacity: 0.5; }

@media (hover: hover) and (pointer: fine) {
  #logo:hover { transform: scale(0.9); }
  #help-btn:hover { color: var(--text); }
  #help-btn:hover i { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  #logo:active { transform: scale(0.9); }
}


#event,
#program,
#about {
  font-family: "Times New Roman", Times, serif;
}
.screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  padding: 80px 20px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text);
}
.screen > * { margin: 0; }
#event-neon,
#program-neon,
#about-neon {
  display: block;
  width: min(48vw, 270px);
  height: auto;
  margin: 0 auto -4px;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--neon) 70%, transparent)) drop-shadow(0 0 1px color-mix(in srgb, var(--neon) 50%, transparent));
}
#event-title,
#program-title,
#about-title {
  font-size: clamp(3.4rem, 16vw, 6rem);
  font-weight: bold;
  line-height: 1;
  color: var(--peach);
  text-shadow: 0 0 2px var(--peach), 0 0 10px color-mix(in srgb, var(--peach) 80%, transparent), 0 0 40px color-mix(in srgb, var(--peach) 60%, transparent), 0 0 80px color-mix(in srgb, var(--peach) 40%, transparent);
  margin-top: -33px;
  letter-spacing: -5px;
}
#event-sub,
#program-sub {
  margin-top: 6px;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: bold;
}
#event-info {
  margin-top: 70px;
  font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  line-height: 1.3;
}
#event-note {
  margin-top: 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
}
#event-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 20px 40px;
  border-radius: 999px;
  background-color: var(--peach);
  color: #1a1a1a;
  font-size: 1.7rem;
  font-weight: bold;
  text-decoration: none;
  animation: buy-glow 3s ease-in-out infinite;
}
@keyframes buy-glow {
  0%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--peach) 40%, transparent), 0 0 30px color-mix(in srgb, var(--peach) 22%, transparent), 0 0 56px color-mix(in srgb, var(--peach) 10%, transparent); }
  50% { box-shadow: 0 0 16px color-mix(in srgb, var(--peach) 70%, transparent), 0 0 44px color-mix(in srgb, var(--peach) 42%, transparent), 0 0 80px color-mix(in srgb, var(--peach) 22%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  #event-buy { animation: none; }
}
@media (hover: hover) and (pointer: fine) {
  #event-buy:hover { transform: scale(0.95); }
}
@media (hover: none), (pointer: coarse) {
  #event-buy:active { transform: scale(0.95); }
}
#program-list,
#price-flow {
  --time-col: 5ch;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.1rem, 4.6vw, 1.4rem);
  text-align: left;
}
#program-list::before,
#price-flow::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: calc(var(--time-col) + 9px);
  width: 1px;
  background: var(--neon);
  opacity: 0.5;
}
#program-list li,
#price-flow li {
  display: grid;
  grid-template-columns: var(--time-col) 21px auto;
  align-items: center;
  padding: 11px 0;
}
#program-list li::before,
#price-flow li::before {
  content: "";
  grid-area: 1 / 2;
  justify-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px color-mix(in srgb, var(--neon) 100%, transparent);
}
#program-list time,
#price-flow time {
  grid-area: 1 / 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--neon) 80%, #888);
}
#program-list span,
#price-flow span {
  grid-area: 1 / 3;
  padding-left: 6px;
}
#help-btn { text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#to-top {
  position: fixed;
  left: 20px;
  top: calc(100dvh - 68px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--header-bg) var(--header-glass), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  color: var(--text-muted);
  font-size: 19px;
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  will-change: transform;
  transition: transform 0.25s, visibility 0.25s, color 0.25s;
}
#to-top[data-show="true"] {
  transform: none;
  visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
  #to-top:hover { color: var(--text); }
}

#about-list {
  width: fit-content;
  max-width: min(100%, 16em);
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.3;
  text-align: left;
}
#about-list li {
  position: relative;
  padding: 5px 0 5px 1.6em;
}
#about-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--peach);
  opacity: 0.8;
}
#about-more {
  display: block;
  width: min(72vw, 330px);
  height: auto;
  margin-top: -59px;
  margin-left: 209px;
  transform: rotate(-15deg);
}
.menu {
  position: relative;
  width: 340px;
  max-width: calc(90vw - 30px);
  font-family: "Times New Roman", Times, serif;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background-color: color-mix(in srgb, var(--header-bg) 80%, transparent);
  color: var(--text);
  box-shadow: inset var(--shadow);
  opacity: 0;
  transform: scale(0.95);
}
.menu[open] { opacity: 1; transform: scale(1); }
.menu::backdrop {
  background: transparent;
  -webkit-backdrop-filter: blur(0) saturate(100%);
  backdrop-filter: blur(0) saturate(100%);
  transition: all 0.25s;
}
.menu[open]::backdrop {
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
}
.menu[data-closing] { opacity: 0; transform: scale(0.95); }
.menu[data-closing]::backdrop {
  -webkit-backdrop-filter: blur(0) saturate(100%);
  backdrop-filter: blur(0) saturate(100%);
}
@starting-style {
  .menu[open] { opacity: 0; transform: scale(0.95); }
  .menu[open]::backdrop {
    -webkit-backdrop-filter: blur(0) saturate(100%);
    backdrop-filter: blur(0) saturate(100%);
  }
}
html:has(dialog[open]) { overflow: hidden; }
.menu-title { margin: 0 0 10px; padding: 10px; text-align: center; font-size: 1em; font-weight: bold; }
.menu-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  font-size: 22px;
}
@media (hover: hover) and (pointer: fine) { .menu-close:hover { transform: scale(0.9); } }
.menu-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  border-radius: 15px;
  background-color: color-mix(in srgb, var(--header-bg) 50%, transparent);
  box-shadow: inset var(--shadow);
}
.menu-field { display: flex; flex-direction: column; gap: 8px; }
.menu-field input,
.menu-field select {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--text) 8%, transparent);
  box-shadow: inset var(--shadow);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
  outline: none;
}
.menu-field input:focus,
.menu-field select:focus { box-shadow: inset 0 0 0 1px var(--peach); }
html input { -webkit-user-select: text; user-select: text; }
.menu-check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.menu-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--peach); cursor: pointer; }
.menu-submit {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 16px;
  border-radius: 999px;
  background-color: var(--peach);
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: bold;
}
.menu-submit:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .menu-submit:not(:disabled):hover { transform: scale(0.97); } }
#payment-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  background-color: #fff;
}
.payment-rows { display: flex; flex-direction: column; gap: 10px; }
.payment-row[hidden] { display: none; }
.payment-row { display: flex; justify-content: space-between; gap: 15px; font-size: 0.95rem; }
.payment-row span { color: var(--text-muted); }
.payment-row b { text-align: right; overflow-wrap: anywhere; }

#price-flow {
  --time-col: 7ch;
  margin-top: 40px;
  font-size: clamp(1.1rem, 4.4vw, 1.3rem);
}
#price-flow li { padding: 14px 0; }
#price-flow span { color: var(--peach); font-weight: bold; }
#price-flow small { font-size: 0.7em; font-weight: normal; color: var(--text-muted); }

#price-flow::before {
  top: var(--line-top, 14px);
  bottom: var(--line-bottom, 14px);
  left: calc(var(--time-col) + 9.5px);
  width: 2px;
  opacity: 0.4;
  transition: none;
  background: linear-gradient(#777 calc(var(--progress, 0px) - 18px), var(--neon) calc(var(--progress, 0px) + 18px), var(--neon) calc(var(--seg-end, 0px) - 8px), #777 calc(var(--seg-end, 0px) + 8px));
}
#price-flow li:not([data-state="current"])::before { background: #777; box-shadow: none; }
#price-flow li:not([data-state="current"]) time,
#price-flow li:not([data-state="current"]) span { color: #777; }
#price-flow li::before { position: relative; z-index: 1; }
#price-flow li:not([data-state="current"]) { opacity: 0.5; }#price-flow { --dim: 0.75; }
#price-flow li:not([data-state="current"]) time,
#price-flow li:not([data-state="current"]) span { opacity: var(--dim); }

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060708;
  --hole: 96px;
  -webkit-mask: linear-gradient(#000 0 0), url(favicon.svg) center / var(--hole) var(--hole) no-repeat;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0), url(favicon.svg) center / var(--hole) var(--hole) no-repeat;
  mask-composite: exclude;
}
@property --hole { syntax: "<length>"; inherits: true; initial-value: 96px; }
#loader img {
  width: 96px;
  height: 96px;
  transition: opacity 0.25s linear;
}
#loader[data-hide] img { opacity: 0; }
#loader[data-zoom] {
  --hole: 9600px;
  opacity: 0;
  pointer-events: none;
  transition: --hole 0.25s ease-in, opacity 0.25s linear;
}
#price-flow { --small: 0.6667; }
#price-flow li:not([data-state="current"]) time,
#price-flow li:not([data-state="current"]) span { font-size: calc(1em * var(--small)); }
