:root {
  color-scheme: light;
  --brand: #1b67e3;
  --brand-rgb: 27, 103, 227;
  --brand-dark: #1047b7;
  --accent: #38c996;
  --ink: #0f1b2d;
  --hero-text: #0f1b2d;
  --hero-muted: rgba(15, 27, 45, 0.72);
  --muted: #5c677e;
  --card: rgba(255, 255, 255, 0.94);
  --glass-light: rgba(255, 255, 255, 0.76);
  --line: rgba(13, 21, 36, 0.12);
  --bg: #edf2fb;
  --page-bg-image: none;
  --page-overlay: rgba(255, 255, 255, 0.06);
  --shadow: 0 26px 60px rgba(9, 24, 52, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius: 20px;
  --text: #0f1b2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--page-overlay), var(--page-overlay)),
    var(--page-bg-image),
    linear-gradient(180deg, #f6f9ff 0%, #eef3fb 45%, #e7edf9 100%);
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-attachment: scroll, fixed, scroll;
  color: var(--ink);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

h1,
.brand__name,
.token__title,
.hint__title {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
}

.bg-orb--one {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(27, 103, 227, 0.32), transparent 70%);
  top: -90px;
  right: -70px;
}

.bg-orb--two {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 201, 150, 0.25), transparent 70%);
  bottom: -80px;
  left: -90px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.topbar__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid rgba(var(--brand-rgb), 0.2);
  overflow: hidden;
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
}

.brand__subtitle {
  font-size: 13px;
  color: var(--muted);
}

.tag {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand-dark);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.lang-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(15, 30, 60, 0.08);
}

.lang-mini__icon {
  font-size: 13px;
  line-height: 1;
}

.lang-mini__select {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  cursor: pointer;
}

.entry-gate {
  display: none;
  margin: 2px 0 22px;
  padding: 20px 16px 16px;
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  box-shadow: 0 18px 36px rgba(15, 42, 93, 0.12);
}

.entry-gate__kicker {
  margin: 0 auto 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  background: rgba(var(--brand-rgb), 0.08);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1d4fa8;
  font-weight: 700;
}

.entry-gate.hidden {
  display: none;
}

.entry-gate__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  color: var(--hero-text);
  text-align: center;
}

.entry-gate__subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--hero-muted);
  text-align: center;
}

.entry-gate__actions {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.entry-gate-btn {
  width: min(100%, 640px);
  margin: 0 auto;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 30px;
  color: #ffffff;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 20px 24px;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(13, 30, 60, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.entry-gate-btn__icon {
  width: clamp(48px, 14vw, 64px);
  height: clamp(48px, 14vw, 64px);
  display: inline-flex;
}

.entry-gate-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-gate-btn__label {
  display: inline-block;
  text-align: center;
  font-size: clamp(34px, 9.5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.entry-gate-btn:active {
  transform: scale(0.98);
}

.entry-gate-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.entry-gate-btn--web {
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 18px 28px rgba(var(--brand-rgb), 0.28);
}

.entry-gate-btn--app {
  background: #3aae6c;
  color: #ffffff;
  border-color: rgba(45, 139, 87, 0.45);
  box-shadow: 0 18px 28px rgba(50, 154, 95, 0.26);
}

.entry-gate__info {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--glass-light);
  border-radius: var(--radius);
}

.entry-gate__info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.entry-gate__info-icon {
  font-size: 1.25rem;
}

.entry-gate__info-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.entry-gate__info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.entry-gate-cancel {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #dc3545;
  background: transparent;
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.entry-gate-cancel:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.5);
}

.entry-gate-cancel:active {
  background: rgba(220, 53, 69, 0.15);
}

body.entry-gate-active .entry-gate {
  display: block;
}

body.entry-gate-active .hero,
body.entry-gate-active .actions,
body.entry-gate-active .name-visibility-warning,
body.entry-gate-active .site-content,
body.entry-gate-active .hint {
  display: none !important;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--brand-rgb), 0.08);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  width: 100%;
  min-width: 0;
}

.position-highlight {
  border-radius: 26px;
  background: rgba(var(--brand-rgb), 0.1);
  border: 2px solid rgba(var(--brand-rgb), 0.2);
  padding: 18px 12px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.position-highlight.hidden {
  display: none;
}

.position-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--hero-muted);
  margin-bottom: 6px;
}

.position-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.position-sub {
  margin-top: 6px;
  color: var(--hero-muted);
  font-size: 13px;
}

.position-sub:empty {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--hero-text);
}

.muted {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}

.muted.hidden {
  display: none;
}

.token {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.token > div:last-child {
  min-width: 0;
  flex: 1;
}

.token__emoji {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), 0.12);
}

.token__title {
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  color: var(--hero-text);
}

.token__subtitle {
  font-size: 14px;
  color: var(--hero-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e8f6ef;
  color: #1a6a52;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 201, 150, 0.2);
}

.actions {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.notify-compact {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27, 103, 227, 0.18);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: 0 14px 28px rgba(27, 103, 227, 0.1);
}

.flow-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.flow-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  min-width: 0;
}

.flow-stat__value {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--hero-text);
  overflow-wrap: anywhere;
}

.flow-stat__label {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--hero-muted);
}

.flow-only-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  background: linear-gradient(
    180deg,
    rgba(var(--brand-rgb), 0.05) 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
}

.flow-only-note__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.flow-only-note__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #2f4265;
}

.notify-compact__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a4d9f;
}

.notify-compact__copy {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #2f4265;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 103, 227, 0.24);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.store-link:hover {
  background: #ffffff;
  border-color: rgba(var(--brand-rgb), 0.44);
}

.notify-compact__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  color: #6a7aa3;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notify-compact__divider::before,
.notify-compact__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(var(--brand-rgb), 0.2);
}

.btn {
  padding: 18px 20px;
  font-size: 16px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 16px 28px rgba(var(--brand-rgb), 0.25);
}

.btn--notify {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(var(--brand-rgb), 0.26);
}

.btn--secondary {
  background: #ffffff;
  color: #6a7aa3;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.08);
}

.btn--danger {
  background: #f04b4b;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(240, 75, 75, 0.25);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.actions__hint {
  margin: 0 2px 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.actions__guide-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #2657aa;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 12px;
  cursor: pointer;
}

.actions__guide-toggle::after {
  content: "▾";
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.actions__guide-toggle.is-open::after {
  transform: rotate(180deg) translateY(1px);
}

.actions__guide {
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.actions__guide.hidden {
  display: none;
}

.actions__guide p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #3c4f72;
}

.name-visibility-warning {
  margin: -6px 0 22px;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  background: linear-gradient(
    180deg,
    rgba(var(--brand-rgb), 0.05) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.name-visibility-warning.hidden {
  display: none;
}

.name-visibility-warning__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.name-visibility-warning p {
  margin: 0;
  color: #2f4265;
  font-size: 14px;
  line-height: 1.5;
}

.hint {
  background: #0b1326;
  color: #e8f0ff;
  border: none;
}

.ad-card {
  margin: 6px 0 16px;
  padding: 8px 10px 8px;
}

.ad-card.hidden {
  display: none;
}

.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 6px;
}

.ad-slot-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  background: linear-gradient(180deg, #f8faff 0%, #f2f6ff 100%);
  min-height: 72px;
  height: 72px;
  max-height: 72px;
}

.ad-slot {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 72px !important;
  height: 72px !important;
  max-height: 72px !important;
  max-width: 100%;
  overflow: hidden;
}

.ad-slot iframe,
.ad-slot-wrap iframe {
  height: 72px !important;
  max-height: 72px !important;
}

.ad-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  text-align: center;
  color: #5f6f8e;
  font-size: 12px;
  font-weight: 600;
}

.ad-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(var(--brand-rgb), 0.03) 20%,
    rgba(var(--brand-rgb), 0.1) 50%,
    rgba(var(--brand-rgb), 0.03) 80%
  );
  transform: translateX(-120%);
  animation: ad-shimmer 2.2s ease-in-out infinite;
}

.ad-fallback.hidden {
  display: none;
}

.ad-card--filled .ad-slot-wrap {
  border-color: rgba(13, 21, 36, 0.08);
  background: #ffffff;
}

@keyframes ad-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.hint__title {
  font-size: 16px;
  margin-bottom: 6px;
}

.hint p {
  margin: 0;
  color: rgba(232, 240, 255, 0.8);
  font-size: 14px;
}

.site-content {
  margin: 6px 0 22px;
  display: grid;
  gap: 12px;
}

.site-content.hidden {
  display: none;
}

.site-content h2 {
  margin: 0;
  font-size: 28px;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
}

.site-content h3 {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--brand-dark);
}

.site-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #25314a;
}

.site-content ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.site-content li {
  color: #25314a;
  line-height: 1.5;
}

.site-content__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.site-content__links a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.site-content__links a:hover {
  text-decoration: underline;
}

.debug {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.debug summary {
  cursor: pointer;
  font-weight: 600;
}

.debug pre {
  white-space: pre-wrap;
  background: #f4f6fb;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  font-size: 14px;
  max-width: calc(100vw - 24px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 540px) {
  .page {
    padding: 22px 18px 40px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .topbar__controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 26px;
  }

  .btn {
    font-size: 15px;
  }

  .entry-gate__title {
    font-size: 28px;
  }

  .entry-gate-btn {
    min-height: 180px;
    border-radius: 24px;
  }

  .entry-gate-btn__label {
    font-size: clamp(28px, 10vw, 44px);
  }
}

@media (max-width: 420px) {
  .page {
    max-width: 360px;
    padding: 24px 22px 40px;
  }

  .card {
    padding: 18px;
  }

  .flow-stats-grid {
    grid-template-columns: 1fr;
  }

  .position-number {
    font-size: 56px;
  }
}

@media (min-width: 900px) {
  body {
    display: grid;
    place-items: start center;
  }
}

/* ── Push Prompt Banner ──────────────────────────────── */
.push-prompt {
  background: var(--card);
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(9, 24, 52, 0.08);
  animation: push-prompt-in 0.28s ease;
}

.push-prompt.hidden {
  display: none;
}

@keyframes push-prompt-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.push-prompt p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.push-prompt__btns {
  display: flex;
  gap: 8px;
}

.btn--sm {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn--ghost:active {
  background: rgba(var(--brand-rgb), 0.05);
}

/* ── Queue profile image next to queue name ─────────── */
.hero__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(var(--brand-rgb), 0.18);
}

.queue-profile-img.hidden {
  display: none;
}

/* ── Ping Alert Banner ───────────────────────────────── */
.ping-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(9, 24, 52, 0.22);
  animation: ping-alert-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ping-alert.hidden {
  display: none;
}

@keyframes ping-alert-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ping-alert__icon {
  font-size: 26px;
  flex-shrink: 0;
  animation: ping-bell 0.5s ease infinite alternate;
}

@keyframes ping-bell {
  from { transform: rotate(-12deg) scale(1); }
  to   { transform: rotate(12deg) scale(1.15); }
}

.ping-alert__body {
  flex: 1;
  min-width: 0;
}

.ping-alert__title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}

.ping-alert__msg {
  font-size: 13px;
  opacity: 0.88;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ping-alert__close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.ping-alert__close:active {
  background: rgba(255, 255, 255, 0.32);
}
