:root {
  --bg: #05040c;
  --surface: #0e141c;
  --surface-low: #171c25;
  --surface-high: #252a34;
  --surface-highest: #30353f;
  --surface-lowest: #090e17;
  --panel: rgba(18, 16, 42, 0.6);
  --primary: #cebdff;
  --primary-container: #9d7cff;
  --on-primary-container: #320087;
  --on-primary-fixed: #21005e;
  --inverse-primary: #6845c6;
  --secondary: #4fd7f4;
  --on-secondary: #003640;
  --tertiary: #62dcad;
  --tertiary-fixed: #80f9c8;
  --on-surface: #dee2ef;
  --on-variant: #cac3d5;
  --outline: #948e9f;
  --outline-var: #494553;
  --max: 1280px;
  --gutter: 24px;
  --m-d: 40px;
  --m-m: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Orbitron", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: #05040c;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

body::before, body::after {
  content: "";
  position: fixed;
  width: 80vw;
  height: 80vh;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}
body::before {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, #9d7cff 0%, transparent 70%);
}
body::after {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, #5ce1ff 0%, transparent 70%);
}
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 22% 38%, #cfe8ff, transparent),
    radial-gradient(1.4px 1.4px at 41% 18%, #fff, transparent),
    radial-gradient(1px 1px at 63% 28%, #cebdff, transparent),
    radial-gradient(1.2px 1.2px at 81% 14%, #fff, transparent),
    radial-gradient(1px 1px at 93% 42%, #5ce1ff, transparent),
    radial-gradient(1px 1px at 12% 68%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 34% 82%, #cfe8ff, transparent),
    radial-gradient(1px 1px at 55% 61%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 74% 88%, #cebdff, transparent);
  opacity: 0.55;
}

.glass {
  background: rgba(18, 16, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 124, 255, 0.28);
}
.glow-hover:hover { box-shadow: 0 0 15px rgba(157, 124, 255, 0.4); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(9, 14, 23, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(157, 124, 255, 0.3); border-radius: 4px; }

.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

.ph {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed rgba(157, 124, 255, 0.35);
  background: repeating-linear-gradient(-45deg, rgba(157, 124, 255, 0.07) 0 10px, transparent 10px 20px);
  color: var(--on-variant);
  text-align: center;
  padding: 10px;
}
.ph b { font-family: var(--display); font-size: 11px; color: var(--primary); letter-spacing: 0.04em; }
.ph small { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(14, 20, 28, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(206, 189, 255, 0.2);
  box-shadow: 0 0 15px rgba(157, 124, 255, 0.2);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--m-m);
}
@media (min-width: 768px) {
  .topbar-inner { padding: 16px var(--m-d); }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(206, 189, 255, 0.3);
  flex-shrink: 0;
  background: var(--surface-high);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
}
@media (max-width: 639px) { .brand-name { display: none; } }
@media (min-width: 768px) { .brand-name { font-size: 28px; } }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--primary);
  padding: 8px;
}
@media (max-width: 767px) { .menu-toggle { display: grid; } }

.top-actions { display: flex; align-items: center; gap: 16px; }
.btn {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border-radius: 999px;
  border: 0;
  transition: 0.3s;
}
.btn-ghost {
  background: none;
  color: var(--on-variant);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--primary); }
.btn-primary {
  height: 46px;
  padding: 0 24px;
  background: linear-gradient(90deg, #cebdff, #6845c6);
  color: #21005e;
}
.btn-primary:hover { box-shadow: 0 0 15px rgba(157, 124, 255, 0.4); }
.btn-line {
  height: 36px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 999px;
}
.btn-line:hover { background: var(--secondary); color: var(--on-secondary); }
.btn-soft {
  height: 36px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid rgba(157, 124, 255, 0.5);
  color: var(--primary);
  border-radius: 999px;
}
.btn-soft:hover { background: rgba(206, 189, 255, 0.1); }
.btn-block { width: 100%; }
@media (max-width: 767px) { .top-actions .btn-ghost { display: none; } }

.brand-row { display: flex; align-items: center; gap: 8px; }
.hero.is-off { display: none; }
.chip .material-symbols-outlined { font-size: 18px; }
.tombala-ico .material-symbols-outlined { font-size: 40px; }

/* tabs */
.tabs-wrap {
  border-bottom: 1px solid rgba(206, 189, 255, 0.1);
  margin-bottom: 48px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: visible;
  padding: 16px 0;
}
.nav-btn {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--on-variant);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-btn:hover { color: var(--on-surface); background: var(--surface-high); }
.nav-btn.is-active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: 0 0 15px rgba(157, 124, 255, 0.4);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}
@media (max-width: 767px) {
  .tabs-wrap {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(14, 20, 28, 0.96);
    padding: 0 16px 12px;
    border-bottom: 1px solid rgba(206, 189, 255, 0.2);
  }
  .tabs-wrap.is-open { display: block; }
  .nav { flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .nav-btn { width: 100%; text-align: left; }
  .nav-backdrop.is-on { display: block; }
}

/* layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--m-m) 80px;
  width: 100%;
}
@media (min-width: 768px) { .wrap { padding: 100px var(--m-d) 80px; } }

.page { display: none; animation: fade 0.22s ease; }
.page.is-on { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-bottom: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 7fr 5fr; }
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(157, 124, 255, 0.3);
}
@media (min-width: 768px) {
  .hero h1 { font-size: 48px; letter-spacing: 0.1em; }
}
.hero p {
  margin: 0;
  font-size: 18px;
  color: var(--on-variant);
  max-width: 42rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid rgba(79, 215, 244, 0.3);
}
.chip:hover { background: rgba(79, 215, 244, 0.1); }
.chip.cyan { color: var(--secondary); border-color: rgba(79, 215, 244, 0.3); }
.chip.green { color: var(--tertiary); border-color: rgba(98, 220, 173, 0.3); }
.chip.purple { color: var(--primary); border-color: rgba(206, 189, 255, 0.3); }

.tombala-widget { padding: 24px; border-radius: 16px; position: relative; overflow: hidden; text-align: center; }
.tombala-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(157, 124, 255, 0.1), transparent);
  opacity: 0.5;
}
.tombala-widget > * { position: relative; z-index: 1; }
.tombala-ico {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-highest);
  border: 1px solid rgba(206, 189, 255, 0.4);
  box-shadow: 0 0 30px rgba(157, 124, 255, 0.2);
  color: var(--primary);
  font-size: 40px;
}
.tombala-widget h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}
.tombala-widget p { margin: 0 0 16px; color: var(--on-variant); font-size: 14px; }

/* sponsors */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-surface);
}
.section-title .ms { color: var(--primary); font-size: 32px; }
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
  justify-items: center;
}
@media (min-width: 768px) { .sponsor-grid { grid-template-columns: 1fr 1fr; } }
.sponsor-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 200;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s;
}
.sponsor-card:hover { transform: translateY(-4px); }
.sponsor-card .ph { position: absolute; inset: 0; min-height: 0; }
.slot-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-highest);
  content-visibility: auto;
}
.slot-img.is-off { display: none; }
.sponsor-card .slot-img {
  object-fit: contain;
  background: var(--surface-highest);
}
.banner-slot .slot-img { object-fit: cover; }
.popup-item { position: relative; overflow: hidden; }
.popup-item .ph { position: absolute; inset: 0; }
.event-cover { overflow: hidden; }
.event-cover .slot-img { object-fit: cover; }
.event-ph { position: relative; }
.event-ph .slot-img { object-fit: cover; }
.camp-visual .slot-img { object-fit: cover; }
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 8px #62dcad;
  animation: pulse 2s ease infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

/* banners */
.banners { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.banner-slot {
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.banner-slot .ph { min-height: 88px; position: absolute; inset: 0; }
.banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: linear-gradient(90deg, rgba(14, 20, 28, 0.9), rgba(14, 20, 28, 0.4), transparent);
  pointer-events: none;
}
.banner-copy h4 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; color: var(--secondary); }
.banner-copy.alt h4 { color: var(--primary); }
.banner-copy p { margin: 0; font-size: 13px; color: var(--on-variant); }

/* category */
.page-head { margin-bottom: 32px; }
.page-head h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--primary);
}
@media (min-width: 768px) { .page-head h2 { font-size: 48px; letter-spacing: 0.1em; } }
.page-head p { margin: 0; color: var(--on-variant); max-width: 40rem; font-size: 18px; }

.filters { display: flex; gap: 16px; margin-bottom: 40px; overflow-x: auto; }
.filter-btn {
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid var(--outline-var);
  background: transparent;
  color: var(--on-variant);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-btn.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(157, 124, 255, 0.1);
}

.campaign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}
@media (min-width: 1024px) { .campaign-grid { grid-template-columns: 1fr 1fr; } }

.camp-card {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.camp-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
}
.camp-visual .ph { min-height: 0; aspect-ratio: 1 / 1; }
.camp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camp-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 16, 42, 0.85), transparent 55%);
  pointer-events: none;
}
.camp-list .dot { font-size: 16px; color: var(--secondary); }
.camp-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(48, 53, 63, 0.8);
  border: 1px solid var(--tertiary-fixed);
  color: var(--tertiary-fixed);
  font-size: 12px;
  font-weight: 700;
}
.camp-body { padding: 24px 32px; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(157, 124, 255, 0.3);
  background: rgba(157, 124, 255, 0.12);
  color: #e8ddff;
}
.tag.mute {
  background: rgba(48, 53, 63, 0.5);
  border-color: var(--outline-var);
  color: var(--on-variant);
}
.camp-body h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
}
.camp-body > p { margin: 0 0 16px; color: var(--on-variant); }
.camp-list { list-style: none; margin: 0 0 20px; padding: 0; }
.camp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(206, 189, 255, 0.1);
  font-size: 14px;
}
.camp-list li span.dot { color: var(--secondary); }
.btn-fill {
  margin-top: auto;
  height: 46px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #cebdff, #9d7cff);
  color: var(--on-primary-container);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-fill:hover { box-shadow: 0 0 15px rgba(157, 124, 255, 0.4); }

.layout-list .camp-card,
.layout-ticket .camp-card,
.layout-cark .camp-card { flex-direction: column; min-height: 0; }
.layout-list .camp-visual,
.layout-ticket .camp-visual,
.layout-cark .camp-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 0;
  margin: 0;
}

/* events */
.events-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}
@media (min-width: 1024px) { .events-layout { grid-template-columns: 7fr 5fr; } }
.event-hero { border-radius: 12px; overflow: hidden; }
.event-cover { height: 256px; position: relative; }
@media (min-width: 768px) { .event-cover { height: 320px; } }
.event-cover .ph { min-height: 256px; }
.live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 20, 28, 0.8);
  border: 1px solid rgba(128, 249, 200, 0.3);
  color: var(--tertiary-fixed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.event-hero .pad { padding: 24px; position: relative; margin-top: -64px; }
.event-hero h3 { margin: 12px 0 8px; font-family: var(--display); font-size: 28px; }
.event-hero p { margin: 0 0 20px; color: var(--on-variant); }
.event-prize { font-family: var(--display); font-size: 28px; color: var(--secondary); text-shadow: 0 0 10px rgba(157, 124, 255, 0.5); }
.event-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.event-cta-label { display: block; font-size: 12px; font-weight: 600; color: var(--on-variant); }
.upcoming-card { border-radius: 12px; padding: 24px; margin-top: 24px; }
.upcoming-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(206, 189, 255, 0.1);
}
.event-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.event-ph { flex: 1; min-width: 0; height: 56px; }
.event-ph .ph { min-height: 56px; }
.event-ico {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-high);
  border: 1px solid var(--outline-var);
  color: var(--primary);
  flex-shrink: 0;
}
.event-row-prize { font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.events-layout .bingo-board { max-width: none; }
.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(206, 189, 255, 0.1);
}
.event-row h4 { margin: 0; font-size: 14px; font-weight: 600; }
.event-row p { margin: 0; font-size: 13px; color: var(--on-variant); }
.muted-block { opacity: 0.7; }

/* tombala */
.bingo-board {
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.bingo-board::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 256px;
  height: 256px;
  transform: translate(-50%, -50%);
  background: rgba(157, 124, 255, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.bingo-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; position: relative; z-index: 1; align-items: flex-start; }
.bingo-head h2 { margin: 0 0 4px; font-family: var(--display); font-size: 24px; }
.bingo-head p { margin: 0; color: var(--on-variant); font-size: 14px; }
.bingo-last {
  min-width: 76px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(157, 124, 255, 0.15);
  border: 1px solid rgba(157, 124, 255, 0.4);
}
.bingo-last small { display: block; font-size: 11px; color: var(--on-variant); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bingo-last strong { font-family: var(--display); font-size: 28px; color: var(--primary); }
.bingo-drawn {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 16px;
  position: relative;
  z-index: 1;
  min-height: 0;
}
.bingo-drawn span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-var);
  font-size: 12px;
  font-weight: 700;
}
.bingo-drawn span.is-last {
  background: rgba(157, 124, 255, 0.25);
  border-color: #9d7cff;
  color: var(--primary);
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.bingo-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--outline-var);
  background: var(--surface-lowest);
  color: var(--on-surface);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: 0.3s;
  cursor: default;
}
.bingo-cell.is-hit {
  background: rgba(157, 124, 255, 0.2);
  border-color: #9d7cff;
  box-shadow: inset 0 0 15px rgba(157, 124, 255, 0.4);
}
.bingo-cell.star {
  background: rgba(79, 215, 244, 0.1);
  border-color: #4fd7f4;
  color: var(--secondary);
  font-size: 20px;
  box-shadow: 0 0 15px rgba(79, 215, 244, 0.3);
}
.bingo-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.bingo-meta div {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: rgba(48, 53, 63, 0.5);
  border: 1px solid rgba(73, 69, 83, 0.4);
  font-size: 14px;
  font-weight: 600;
}
.bingo-tools { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.bingo-tools .btn-soft { flex-shrink: 0; }
.btn-tg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.filters[hidden] { display: none !important; }

/* aff + auth page */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  align-items: start;
}
@media (min-width: 768px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.form-card { border-radius: 12px; padding: 32px; position: relative; overflow: hidden; }
.form-card h2 { margin: 8px 0; font-family: var(--display); font-size: 28px; text-align: center; }
.form-card .lead { text-align: center; color: var(--on-variant); margin: 0 0 16px; }
.form-card label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-variant);
}
.form-card label:first-of-type { margin-top: 0; }
.auth-guest.is-off,
.profile-wrap.is-off,
#aff-auth-card.is-off { display: none !important; }
.auth-grid.auth-single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.profile-wrap { position: relative; }
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(157, 124, 255, 0.4);
  background: rgba(157, 124, 255, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.profile-btn .material-symbols-outlined { font-size: 26px; }
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  border-radius: 12px;
  padding: 8px;
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.profile-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-surface);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}
.profile-menu button:hover { background: var(--surface-high); }
.profile-menu button.danger { color: #ffb4ab; }
.profile-menu .material-symbols-outlined { font-size: 20px; }
.profile-body label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-variant);
}
.profile-body input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(148, 142, 159, 0.3);
  background: rgba(9, 14, 23, 0.8);
  color: var(--on-surface);
  outline: none;
  margin-bottom: 4px;
}
.profile-body input:focus {
  border-color: #5ce1ff;
  box-shadow: 0 0 10px rgba(92, 225, 255, 0.2);
}
.profile-body input[readonly] { opacity: 0.85; cursor: default; }
.profile-hint {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(206, 189, 255, 0.1);
  font-size: 13px;
  color: var(--on-variant);
}
.profile-body .btn-fill { margin-top: 16px; }
@media (max-width: 767px) {
  .profile-btn span:last-child { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.form-card input,
.form-card select,
.form-card textarea,
.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(148, 142, 159, 0.3);
  background: rgba(9, 14, 23, 0.8);
  color: var(--on-surface);
  outline: none;
  font-size: 16px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.auth-field input:focus {
  border-color: #5ce1ff;
  box-shadow: 0 0 10px rgba(92, 225, 255, 0.2);
}
.form-card textarea { min-height: 90px; resize: vertical; }
.form-card select option { background: var(--surface); }
.rocket { font-size: 48px; color: var(--secondary); text-align: center; display: block; }

.tab-line { display: flex; border-bottom: 1px solid rgba(73, 69, 83, 0.3); margin-bottom: 16px; }
.tab-line button {
  flex: 1;
  padding: 12px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--on-variant);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tab-line button.is-active {
  border-bottom-color: #9d7cff;
  color: #cebdff;
  text-shadow: 0 0 8px rgba(157, 124, 255, 0.5);
}
.auth-field { margin-bottom: 12px; }
.or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  color: var(--on-variant);
  font-size: 12px;
  font-weight: 600;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(73, 69, 83, 0.3); }
.btn-tg {
  height: 46px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #229ed9;
  background: rgba(34, 158, 217, 0.1);
  color: #229ed9;
  font-weight: 700;
}
.btn-tg:hover { background: rgba(34, 158, 217, 0.2); }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px var(--m-m);
  background: var(--surface-lowest);
  border-top: 1px solid rgba(206, 189, 255, 0.1);
  text-align: center;
}
.site-footer .warn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(202, 195, 213, 0.7);
  font-size: 14px;
  max-width: 28rem;
  margin: 0 auto 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 16px;
}
.site-footer a { font-size: 14px; font-weight: 600; color: var(--outline); }
.site-footer a:hover { color: var(--primary); }
.site-footer .copy { color: rgba(148, 142, 159, 0.5); font-size: 14px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 16, 0.72);
  backdrop-filter: blur(10px);
}
.overlay.is-on { display: flex; }
.sheet, .modal {
  width: min(640px, 100%);
  border-radius: 12px;
  background: rgba(18, 16, 42, 0.92);
  border: 1px solid rgba(157, 124, 255, 0.28);
  max-height: 90vh;
  overflow: auto;
}
.modal { width: min(440px, 100%); }
.modal.wide { width: min(640px, 100%); }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(206, 189, 255, 0.1);
  font-family: var(--display);
  font-weight: 700;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--on-variant);
  font-size: 22px;
}
.popup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.popup-item { aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: pointer; }
.modal-body { padding: 20px; color: var(--on-variant); }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 90;
  background: var(--surface-high);
  border: 1px solid rgba(157, 124, 255, 0.35);
  color: var(--on-surface);
  padding: 12px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  font-weight: 600;
  transition: 0.2s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { color: var(--on-variant); padding: 40px 0; text-align: center; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.ms-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
