:root {
  --bg: #240a30;
  --surface: rgba(255, 255, 255, .07);
  --surface-hover: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .16);
  --text: #fff;
  --muted: #cdb8d6;
  --pink: #ff2e8f;
  --pink-hover: #f01f80;
  --pink-ink: #b0126a;
  --menu: #34123f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (min-height: 100dvh) { body { min-height: 100dvh; } }
img { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.topbar {
  display: flex; justify-content: flex-end;
  padding: 16px 20px 0;
  padding-top: max(16px, env(safe-area-inset-top));
}
.lang-switch { position: relative; z-index: 120; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
  font: 600 15px/1 var(--font);
}
.lang-btn:hover { background: var(--surface); }
.lang-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.lang-btn .chev { font-size: 11px; opacity: .8; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; max-height: min(62vh, 440px); overflow-y: auto;
  list-style: none; padding: 6px;
  background: var(--menu);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 2, 16, .5);
}
.lang-menu button {
  display: block; width: 100%; padding: 9px 12px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text); cursor: pointer; text-align: left;
  font: 500 15px/1.2 var(--font);
}
.lang-menu button:hover,
.lang-menu button:focus-visible { background: var(--surface-hover); outline: none; }
.lang-menu button[aria-selected="true"] { font-weight: 700; color: var(--pink); }

.hero {
  flex: 1 0 auto;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.mark { width: 80px; height: 80px; object-fit: contain; }
.brand {
  margin-top: 14px;
  font: 800 clamp(40px, 9vw, 58px) / 1 var(--font);
  letter-spacing: -.01em;
}
.brand .accent { color: var(--pink); }
.tagline { margin-top: 10px; font: 400 18px/1.4 var(--font); color: var(--muted); }

.actions { width: 100%; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.act {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 66px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  color: var(--text); text-decoration: none; text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.act:hover { background: var(--surface-hover); }
.act:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.act .ic { width: 26px; height: 26px; flex: none; fill: currentColor; }
.act-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.act-title { font: 700 17px/1.2 var(--font); }
.act-sub { font: 400 13.5px/1.3 var(--font); color: var(--muted); }
.rec {
  flex: none; padding: 4px 9px;
  font: 700 11.5px/1 var(--font);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--pink-ink); background: var(--text);
  border-radius: 999px;
}
.act.is-primary { background: var(--pink); border-color: var(--pink); }
.act.is-primary:hover { background: var(--pink-hover); border-color: var(--pink-hover); }
.act.is-primary .act-sub { color: rgba(255, 255, 255, .88); }

.ic-win { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 9%; padding: 1px; }
.ic-win i { background: currentColor; border-radius: 1px; }

.discord {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 8px;
  font: 600 15px/1.2 var(--font);
  color: var(--muted); text-decoration: none;
  border-radius: 8px;
}
.discord svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.discord:hover { color: var(--text); }
.discord:hover span { text-decoration: underline; text-underline-offset: 3px; }
.discord:focus-visible { outline: 3px solid var(--text); }

.site-footer {
  flex: none;
  padding: 18px 16px 22px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font: 500 13.5px/1.8 var(--font);
  color: var(--muted);
}
.site-footer .sep { opacity: .5; margin: 0 7px; }
.site-footer .legal a { color: var(--text); text-decoration: none; white-space: nowrap; }
.site-footer .legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fine { font-size: 12.5px; opacity: .85; }

.notice-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(16, 4, 22, .78);
  animation: fadeIn .2s ease-out;
}
.notice-card {
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 2, 16, .5);
}
@supports (height: 100dvh) { .notice-card { max-height: calc(100dvh - 32px); } }
.notice-head { flex: none; padding: 24px 24px 4px; text-align: center; }
.notice-kicker {
  display: inline-block;
  font: 700 12.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink-ink);
}
.notice-card h2 { margin-top: 8px; font: 800 clamp(22px, 5vw, 27px) / 1.15 var(--font); color: var(--bg); }
#fanNoticeText {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 24px 4px; color: #3a2743;
}
.notice-card p { margin: 12px 0 0; font: 400 15px/1.55 var(--font); }
.notice-card strong { font-weight: 700; color: var(--bg); }
.notice-card a { color: var(--pink-ink); font-weight: 700; text-underline-offset: 3px; }
.notice-fine { font-size: 12.5px !important; line-height: 1.5 !important; color: #6f5a78; }
.notice-contact { padding-top: 12px; border-top: 1px solid #eadcef; }
.notice-foot { flex: none; display: flex; justify-content: center; padding: 18px 24px 22px; }
.notice-close {
  min-width: 200px; height: 46px; padding: 0 24px;
  border: 0; border-radius: 12px;
  background: var(--pink); color: #fff; cursor: pointer;
  font: 700 16px/1 var(--font);
}
.notice-close:hover { background: var(--pink-hover); }
.notice-close:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .notice-overlay { animation: none; }
  .act { transition: none; }
}
@media (max-width: 520px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 12px; }
  .mark { width: 64px; height: 64px; }
  .tagline { font-size: 16.5px; }
  .actions { margin-top: 26px; }
  .act { padding: 12px 14px; gap: 12px; }
  .site-footer { font-size: 12.5px; }
}
