@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #fbf7ff;
  --muted: #d9cfe5;
  --cyan: #69e3f4;
  --lime: #b4ff77;
  --pink: #ff9bdf;
  --violet: #140c25;
  --line: #89769a;
  font-family: "Jost", system-ui, sans-serif;
  background: #090512;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #090512; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 50% -10%, #3a1d4f 0, #140b25 44rem, #090512 75rem);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
::selection { color: #180e2c; background: var(--pink); }
[hidden] { display: none !important; }

.page-shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 28px 0 36px; }
.wall {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  padding: clamp(22px, 4vw, 42px);
  background-image: linear-gradient(#1109238a, #110923e8), url("assets/meup-brick.png");
  background-color: var(--violet);
  background-size: auto, 750px 630px;
  box-shadow: 0 22px 70px #0008;
}
.wall::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid #8feaff38;
  box-shadow: inset 0 0 32px #120520b3;
  content: "";
  pointer-events: none;
}

.brand-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-row { flex-wrap: wrap; align-items: flex-start; }
.brand-mark { display: flex; flex: 1 1 220px; align-items: center; min-width: 0; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; }
.event-date { flex: 0 0 auto; margin: 0; color: var(--ink); font-size: 14px; line-height: 1.35; text-align: right; font-variant-numeric: tabular-nums; }

.identity { position: relative; margin: clamp(28px, 6vw, 48px) 0 30px; padding: 16px 38px 12px; }
.wordmark { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.tubes { position: absolute; top: 16px; bottom: 16px; left: 0; display: flex; align-items: center; gap: 7px; }
.tubes.right { right: 0; left: auto; flex-direction: row-reverse; }
.tubes i { display: block; width: 2px; height: 100%; background: #e3ffff; box-shadow: 0 0 5px #5cdcff, 0 0 12px #38bdff; }
.tubes i:nth-child(2) { height: 76%; background: #fff3cf; box-shadow: 0 0 5px #ffe290, 0 0 10px #ffb749; }
.tubes i:nth-child(3) { height: 51%; background: #ffd0f8; box-shadow: 0 0 5px #ff78ea, 0 0 9px #f235d9; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 15ch; margin-bottom: 16px; font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.04; letter-spacing: -.035em; }
.warning { margin-bottom: 10px; color: var(--pink); font-size: clamp(1.15rem, 3vw, 1.35rem); font-weight: 700; line-height: 1.25; }
.copy-block, .copy-block p { font-size: 1rem; line-height: 1.48; }
.copy-block { max-width: 62ch; }
.english { margin-bottom: 0; color: var(--muted); }
.lang { display: inline-block; margin-right: 6px; color: var(--cyan); font-size: .75em; font-weight: 700; letter-spacing: .08em; }

.voucher-panel { margin-top: 28px; padding: 18px 0 20px; border-block: 1px solid #9a84aa; }
.voucher-panel label { display: block; margin-bottom: 9px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.voucher-line { display: flex; align-items: stretch; gap: 10px; }
.voucher-line input { min-width: 0; flex: 1; min-height: 48px; padding: 8px 11px; border: 1px solid #bca7ca; border-radius: 0; color: var(--ink); background: #10091eeb; font-size: 1rem; }
.copy-button { flex: 0 0 48px; min-width: 48px; min-height: 48px; border: 1px solid var(--cyan); color: var(--cyan); background: #160d2c; }
.copy-button:hover { background: #24334a; }
.help { margin: 10px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.status { min-height: 1.4em; margin: 8px 0 0; color: var(--pink); font-size: .88rem; line-height: 1.4; }

.shop-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; margin-top: 20px; padding: 12px 16px; border: 0; border-radius: 2px; color: #132507; background: var(--lime); font-size: 1.08rem; font-weight: 700; line-height: 1.2; text-align: left; }
.shop-button:hover { background: #d1ffa9; }
.shop-button small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 400; }
.shop-note { margin: 9px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; text-align: center; }
.external-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.event-list { display: grid; gap: 14px; margin: 26px 0 0; }
.event-row { padding-top: 16px; border-top: 1px solid #8f7ba0; }
.event-row:first-child { padding-top: 0; border-top: 0; }
.event-row h2 { margin-bottom: 4px; font-size: 1.22rem; line-height: 1.2; }
.event-meta { margin-bottom: 10px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.event-row .shop-button { margin-top: 4px; }
.pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pending-label { color: var(--pink); font-size: .95rem; font-weight: 600; }
.pending a, .footer-row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-size: .9rem; }

.no-js { margin: 24px 0 0; padding: 12px 14px; border: 1px solid #ff9bdf99; color: var(--pink); font-size: .86rem; line-height: 1.45; }
.footer-row { align-items: end; margin-top: 30px; padding-top: 22px; border-top: 1px solid #8f7ba0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.footer-details { min-width: 0; }
.footer-row p { margin: 0; }
.footer-contact { margin-top: 8px !important; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; color: var(--cyan); white-space: nowrap; }
.copyright { margin: 18px 0 0; color: #cdbedb; font-size: .75rem; line-height: 1.4; }

.legal-intro { margin: clamp(28px, 6vw, 48px) 0 22px; padding-bottom: 20px; border-bottom: 1px solid #8f7ba0; }
.legal-page h1 { max-width: 100%; margin-bottom: 12px; overflow-wrap: anywhere; }
.legal-orientation { max-width: 62ch; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.legal-back { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 30px; }
.legal-page a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); overflow-wrap: anywhere; }
.legal-content { max-width: 68ch; }
.legal-content h2 { margin: 30px 0 10px; color: var(--cyan); font-size: 1.35rem; line-height: 1.25; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0; padding-left: 1.25rem; }
.legal-content code { color: var(--ink); font-family: inherit; }
.legal-content .placeholder { color: var(--pink); font-weight: 700; }
.legal-sources { margin-top: 34px; padding-top: 22px; border-top: 1px solid #8f7ba0; }

@media (max-width: 420px) {
  .page-shell { width: 100%; padding: 0; }
  .wall { min-height: 100vh; padding: 24px 22px 28px; }
  .wall::before { inset: 8px; }
  .brand-mark { font-size: 12px; }
  .brand-mark img { width: 38px; height: 38px; }
  .event-date { font-size: 12px; }
  .identity { margin-top: 28px; padding-inline: 28px; }
  .tubes { gap: 5px; }
  h1 { font-size: 2.05rem; }
  .footer-row { align-items: start; flex-wrap: wrap; }
  .footer-links { width: 100%; justify-content: flex-end; }
  .footer-links a { white-space: normal; text-align: right; }
  .legal-content p, .legal-content li { font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
