/* ===================================================================
   Bulldrop — Shared foundation
   Design tokens, reset, header, footer, modal, buttons, utilities.
   Every page stylesheet is layered on top of this file.
   =================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Involve';
  src: local('Montserrat SemiBold'), local('Segoe UI Semibold');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — near-black neutrals sampled from the reference */
  --bg-root: #0a0a0b;
  --bg-page: #101012;
  --bg-surface: #17171a;
  --bg-surface-2: #1c1c20;
  --bg-surface-3: #222227;
  --bg-elevated: #26262c;
  --bg-header: #131316;
  --bg-inset: #0d0d0f;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #9a9aa5;
  --text-muted: #6a6a75;
  --text-dim: #4d4d56;

  /* Brand */
  --brand-red: #ec1c3c;
  --brand-red-soft: #ff3355;
  --accent-yellow: #ffd426;
  --accent-yellow-hover: #ffdd4d;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #4d8ff8;
  --accent-green: #2ecc71;
  --accent-purple: #a855f7;
  --accent-cyan: #22d3ee;
  --diamond: #38bdf8;

  /* Lines & strokes */
  --border: #26262c;
  --border-soft: #1f1f24;
  --border-strong: #33333b;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  --shadow-glow-red: 0 6px 26px rgba(236, 28, 60, .35);
  --shadow-glow-yellow: 0 6px 26px rgba(255, 212, 38, .3);
  --shadow-glow-blue: 0 6px 26px rgba(59, 130, 246, .35);

  /* Layout */
  --header-h: 64px;
  --shell: 1560px;
  --shell-narrow: 1240px;
  --gutter: 24px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .16s;
  --t: .24s;
  --t-slow: .4s;

  /* Rarity tints (case/skin borders) */
  --rar-common: #6f7683;
  --rar-uncommon: #3b82f6;
  --rar-rare: #a855f7;
  --rar-epic: #ec4899;
  --rar-legend: #f59e0b;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Involve', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2e2e35;
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a43; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* `flex: 1 1 auto` (not 1 0 auto) lets short pages keep the footer tight to
   the content instead of stretching the body to fill the viewport. */
.page__body {
  flex: 1 1 auto;
  padding-top: 28px;
  padding-bottom: 40px;
}

/* Currency glyph — inline SVG coin, so we never depend on emoji fonts */
.tok {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffe9a3, #f0b429 58%, #b47a10 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}

.tok--gold { background: radial-gradient(circle at 34% 30%, #fff0b8, #f5c33c 58%, #b8801a 100%); }

/* Section heading — icon + title, used on every page */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head__icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent-yellow);
}

.section-head__icon svg { width: 100%; height: 100%; }

.section-head__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-head__spacer { flex: 1; }

/* Small caption row above a group of cards */
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 16px;
}

.group-head__icon {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
}

.group-head__title {
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--bg-surface-3);
  --btn-fg: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              filter var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease);
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--yellow {
  --btn-bg: var(--accent-yellow);
  --btn-fg: #1a1508;
  box-shadow: var(--shadow-glow-yellow);
}
.btn--yellow:hover { --btn-bg: var(--accent-yellow-hover); }

.btn--blue {
  --btn-bg: var(--accent-blue);
  --btn-fg: #fff;
  box-shadow: var(--shadow-glow-blue);
}
.btn--blue:hover { --btn-bg: var(--accent-blue-hover); }

.btn--red {
  --btn-bg: var(--brand-red);
  --btn-fg: #fff;
  box-shadow: var(--shadow-glow-red);
}

.btn--white {
  --btn-bg: #f4f4f6;
  --btn-fg: #17171a;
}

.btn--ghost {
  --btn-bg: transparent;
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { --btn-bg: var(--bg-surface-2); }

.btn--soft { --btn-bg: var(--bg-surface-3); }

.btn--pill { border-radius: var(--r-pill); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* ---------- Currency / value pills ---------- */
.coin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.coin__icon {
  width: 14px;
  height: 14px;
  flex: none;
  object-fit: contain;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-surface-3);
  font-size: 12.5px;
  font-weight: 700;
}

/* Badge — NEW / -30% / VIP etc. */
.badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: var(--r-xs);
  background: var(--brand-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.badge--yellow { background: var(--accent-yellow); color: #1a1508; }
.badge--blue { background: var(--accent-blue); }
.badge--green { background: var(--accent-green); color: #06281a; }
.badge--purple { background: var(--accent-purple); }
.badge--dark { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }

/* ---------- Auth-required placeholder (guest state) ---------- */
.auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px 24px;
}

.auth-gate__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-gate--plain .auth-gate__text {
  color: var(--text-secondary);
  font-weight: 600;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform var(--t) var(--ease);
}
.logo:hover { transform: scale(1.04); }

.logo__mark {
  display: block;
  width: 136px;
  height: 44px;
  object-fit: contain;
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav__link:hover { background: var(--bg-surface-2); }
.nav__link.is-active { color: var(--accent-yellow); }

.nav__link > svg:first-child {
  width: 17px;
  height: 17px;
  flex: none;
}

.nav__caret {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform var(--t) var(--ease);
}

.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 208px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility var(--t) var(--ease);
}

.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav__menu-link:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}

.nav__menu-link img,
.nav__menu-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}

.header__spacer { flex: 1; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Language switcher */
.lang {
  position: relative;
  flex: none;
}

.lang__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast) var(--ease);
}

.lang__toggle:hover { background: var(--bg-surface-2); }

.lang__flag {
  width: 22px;
  height: 16px;
  flex: none;
  border-radius: 3px;
  object-fit: cover;
}

.lang__caret {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
  transition: transform var(--t) var(--ease);
}

.lang.is-open .lang__caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility var(--t) var(--ease);
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.lang__option:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}

.lang__option.is-active { color: var(--accent-yellow); }

/* Burger (mobile) */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  place-items: center;
  color: var(--text-primary);
  transition: background-color var(--t-fast) var(--ease);
}

.burger:hover { background: var(--bg-surface-2); }
.burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--bg-page);
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow) var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer__group + .drawer__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.drawer__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 10px 6px;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  transition: background-color var(--t-fast) var(--ease);
}

.drawer__link:hover { background: var(--bg-surface-2); }
.drawer__link.is-active { color: var(--accent-yellow); }
.drawer__link svg { width: 19px; height: 19px; flex: none; }

/* =====================================================
   LIVE DROPS STRIP (top of home / boss / bonuses)
   ===================================================== */
/* The whole strip is a modal trigger, so it reads as interactive */
.livedrops {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 92px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  cursor: pointer;
  transition: background-color var(--t) var(--ease);
}

.livedrops:hover { background-color: #17171b; }

.livedrops:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
}

.livedrops__meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  width: 128px;
  padding: 0 10px;
  background: linear-gradient(180deg, #2b1f42, #1d1630);
  border-right: 1px solid var(--border-soft);
}

.livedrops__meter-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 212, 38, .3);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-yellow);
}

.livedrops__meter-value img { width: 13px; height: 13px; }

.livedrops__meter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.livedrops__track {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent);
}

/* The rail holds the set twice; scrolling exactly one set width (10 cards
   x 132px + 1px border each) makes the loop seamless with no visible jump. */
.livedrops__rail {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: ld-scroll 60s linear infinite;
  will-change: transform;
}

.livedrops__track:hover .livedrops__rail { animation-play-state: paused; }

@keyframes ld-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-133px * 10)); }
}

/* Drop card — a 3-row grid: user / artwork / labels.
   Rows are explicit so nothing overlaps and long names always truncate. */
.drop {
  position: relative;
  display: grid;
  grid-template-rows: 13px 1fr auto;
  align-content: start;
  gap: 3px;
  flex: none;
  width: 132px;
  padding: 7px 9px 8px;
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(59, 130, 246, .16), transparent 78%);
  overflow: hidden;
  transition: background-color var(--t) var(--ease);
}

.drop:hover { background-color: rgba(255, 255, 255, .05); }

.drop--rare { background-image: linear-gradient(180deg, rgba(168, 85, 247, .18), transparent 78%); }
.drop--epic { background-image: linear-gradient(180deg, rgba(236, 72, 153, .18), transparent 78%); }
.drop--legend { background-image: linear-gradient(180deg, rgba(245, 158, 11, .18), transparent 78%); }
.drop--common { background-image: linear-gradient(180deg, rgba(111, 118, 131, .16), transparent 78%); }

/* Rarity accent line along the top edge */
.drop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
}

.drop--rare::before { background: var(--accent-purple); }
.drop--epic::before { background: var(--rar-epic); }
.drop--legend::before { background: var(--rar-legend); }
.drop--common::before { background: var(--rar-common); }

.drop__user {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.drop__user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop__vip {
  flex: none;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 212, 38, .16);
  color: var(--accent-yellow);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.drop__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
  transition: transform var(--t) var(--ease);
}

.drop:hover .drop__img { transform: scale(1.07); }

.drop__type {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop__name {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  position: relative;
  margin-top: auto;
  padding-top: 60px;
  overflow: hidden;
}

.footer__mascots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer__mascot {
  position: absolute;
  bottom: 0;
  width: clamp(180px, 21vw, 330px);
  object-fit: contain;
  opacity: .96;
}

.footer__mascot--left { left: clamp(-40px, 2vw, 90px); }
.footer__mascot--right { right: clamp(-40px, 2vw, 90px); }

.footer__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 90px 0 40px;
  text-align: center;
}

.footer__logo {
  display: block;
  width: 152px;
  height: 49px;
  object-fit: contain;
}

.footer__copy {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.footer__social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  transition: background-color var(--t) var(--ease),
              color var(--t) var(--ease),
              transform var(--t) var(--ease);
}

.footer__social:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.footer__social svg { width: 19px; height: 19px; }

/* Footer bottom bar */
.footer__bar {
  position: relative;
  z-index: 1;
  max-width: calc(var(--shell) - 80px);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  background: var(--bg-surface);
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 62px;
  padding: 12px 0;
}

.footer__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.footer__lang .lang__flag { width: 20px; height: 15px; }
.footer__lang .lang__caret { width: 11px; height: 11px; }

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 56px);
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover { color: var(--text-primary); }

/* =====================================================
   AUTH MODAL  (all CTAs open this)
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, .76);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 34px 32px 30px;
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.97);
  transition: transform var(--t-slow) var(--ease-out);
}

.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.modal__close:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}

.modal__close svg { width: 17px; height: 17px; }

.modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 24px;
}

.modal__logo {
  display: block;
  width: 150px;
  height: 48px;
  object-fit: contain;
}

/* Mascot sits between the logo and the title (see reference).
   The source render is a tall portrait on a dark studio background, so it is
   cropped to a wide band and faded at the edges to blend into the dialog. */
.modal__mascot {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  height: 150px;
  margin: 6px -32px 0;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--r-md);
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, #000 58%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, #000 58%, transparent);
          mask-composite: intersect;
}

.modal__title {
  font-size: 20px;
  font-weight: 800;
}

.modal__subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 330px;
}

.modal__cta {
  height: 52px;
  font-size: 15.5px;
  border-radius: var(--r-md);
}

.modal__providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.modal__provider {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background-color var(--t) var(--ease),
              color var(--t) var(--ease),
              transform var(--t) var(--ease);
}

.modal__provider:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.modal__provider svg { width: 20px; height: 20px; }

.modal__note {
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: center;
}

.modal__note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__note a:hover { color: var(--text-primary); }

body.is-locked { overflow: hidden; }

/* =====================================================
   MOTION UTILITIES
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1180px) {
  :root { --gutter: 18px; }
  .footer__mascot { width: clamp(140px, 18vw, 220px); opacity: .5; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__inner { gap: 14px; }
  .section-head__title { font-size: 22px; }
  .footer__bar { max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 14px; --header-h: 58px; }
  body { font-size: 13.5px; }
  .logo__mark { font-size: 23px; }
  .page__body { padding-top: 20px; padding-bottom: 44px; }
  .section-head__title { font-size: 19px; }
  .group-head { margin: 26px 0 12px; }
  .group-head__title { font-size: 15px; }
  .livedrops { height: 82px; }
  .livedrops__meter { width: 100px; }
  .drop { width: 116px; padding: 6px 8px 7px; }
  /* keep the loop distance in sync with the narrower card */
  @keyframes ld-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-117px * 10)); }
  }
  .footer__mascots { display: none; }
  .footer__center { padding: 30px 0 28px; }
  .footer__bar-inner { justify-content: center; text-align: center; }
  .footer__links { justify-content: center; gap: 14px 22px; }
  .modal__dialog { padding: 30px 20px 24px; }
  .modal__title { font-size: 18px; }
}

@media (max-width: 480px) {
  .footer__links { gap: 10px 16px; }
  .footer__link { font-size: 12px; }
  .modal__providers { gap: 8px; }
}
