:root {
  color-scheme: dark;
  --bg: #06100f;
  --bg-deep: #020809;
  --surface: rgba(18, 28, 31, 0.76);
  --surface-2: rgba(25, 35, 39, 0.9);
  --surface-3: rgba(255, 255, 255, 0.055);
  --line: rgba(222, 242, 238, 0.13);
  --line-strong: rgba(124, 246, 209, 0.36);
  --text: #f7faf8;
  --text-soft: #c5cdca;
  --muted: #88939a;
  --accent: #68f0c5;
  --accent-2: #4bd1b7;
  --danger: #ff7085;
  --warn: #f5c86a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --controls-height: 112px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(104, 240, 197, 0.09), rgba(104, 240, 197, 0) 25%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 19%, rgba(255, 255, 255, 0.018) 51%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(145deg, #020809 0%, #07110f 42%, #08161b 100%);
  color: var(--text);
  overflow-x: hidden;
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 9%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 32%);
  mix-blend-mode: screen;
  opacity: 0.38;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.screen {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px 22px;
  display: flex;
  flex-direction: column;
}

.screen--game {
  padding-bottom: calc(var(--controls-height) + env(safe-area-inset-bottom) + 16px);
}

.home-screen {
  justify-content: center;
  gap: clamp(22px, 5vh, 38px);
}

.app-topbar,
.screen-header {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: -4px -4px 4px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(2, 8, 9, 0.92), rgba(2, 8, 9, 0));
  backdrop-filter: blur(12px);
}

.topbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topbar-side--right {
  justify-content: flex-end;
}

.topbar-logo {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 6px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, #ffffff 0 9%, transparent 10%),
    radial-gradient(circle at 48% 48%, #dffdf3 0 16%, #65ecc3 48%, #1eb49e 100%);
  color: #031211;
  box-shadow:
    0 0 0 1px rgba(104, 240, 197, 0.5),
    0 0 20px rgba(104, 240, 197, 0.28);
  overflow: hidden;
}

.brand-b {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(3, 18, 17, 0.6);
}

.brand-dot--one {
  right: 6px;
  top: 7px;
}

.brand-dot--two {
  right: 5px;
  bottom: 8px;
}

.brand-dot--three {
  left: 7px;
  bottom: 5px;
}

.top-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-soft);
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.top-icon svg {
  width: 21px;
  height: 21px;
}

.top-icon:hover,
.top-icon:focus-visible {
  background: var(--surface-3);
  color: var(--text);
}

.top-icon:active,
.btn:active,
.control-btn:active,
.social-btn:active {
  transform: translateY(1px) scale(0.99);
}

.top-icon--empty {
  pointer-events: none;
  opacity: 0;
}

.coin-chip,
.account-chip {
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 750;
}

.coin-chip svg,
.account-chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.coin-chip svg {
  color: var(--accent);
}

.account-chip span {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero {
  display: grid;
  gap: 13px;
  justify-items: center;
  padding: 0;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(2.5rem, 12vw, 4.6rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  animation: logo-rise 520ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.hero-tagline {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.hero-tagline::first-letter {
  text-transform: lowercase;
}

.hero-tagline strong,
.hero-tagline span {
  color: var(--accent);
}

.hero-logo .brand-mark {
  width: clamp(35px, 10vw, 54px);
  height: clamp(35px, 10vw, 54px);
  box-shadow:
    0 0 0 1px rgba(104, 240, 197, 0.58),
    0 0 34px rgba(104, 240, 197, 0.34),
    0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-logo .brand-b {
  font-size: clamp(1.35rem, 4vw, 2.15rem);
}

.hero-logo > span:last-child,
.topbar-logo > span:last-child {
  background: linear-gradient(180deg, #ffffff, #d9e1de);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats {
  width: min(100%, 370px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card {
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  animation: soft-rise 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  text-align: center;
}

.stat-icon {
  color: var(--text-soft);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-card span,
.stat-side span,
.setting-label,
.leader-meta,
.result-line span:last-child,
.bonus-card em,
.capture-note,
.shop-panel p,
.app-version {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.stat-card strong {
  color: var(--text);
  font-size: clamp(1rem, 5vw, 1.32rem);
  line-height: 1;
}

.home-actions {
  width: min(100%, 370px);
  display: grid;
  gap: 12px;
  padding-bottom: 4px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-weight: 800;
  text-transform: lowercase;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.btn::after,
.control-btn::after,
.bonus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.btn:hover::after,
.btn:focus-visible::after,
.control-btn:hover::after,
.control-btn:focus-visible::after,
.bonus-card:hover::after,
.bonus-card:focus-visible::after {
  transform: translateX(130%);
}

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

.btn:hover,
.btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.085);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7af7ce, #55d9bd);
  color: #031211;
  box-shadow: 0 22px 52px rgba(85, 217, 189, 0.2);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--play {
  min-height: 58px;
  font-size: 1rem;
}

.auth-area {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 6px;
}

.signin-divider {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.signin-divider span {
  height: 1px;
  background: rgba(222, 242, 238, 0.1);
}

.signin-divider em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  text-transform: lowercase;
}

.auth-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.social-btn svg {
  width: 24px;
  height: 24px;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.28);
}

.signed-in {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.signed-in svg {
  width: 24px;
  height: 24px;
}

.signed-in span {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  padding: 6px 8px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: lowercase;
}

.app-version {
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
}

.game-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
}

.stat-side {
  display: grid;
  gap: 4px;
}

.stat-side--right {
  text-align: right;
}

.stat-side strong {
  color: var(--accent);
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  line-height: 1;
}

.stat-side--right strong {
  color: var(--text-soft);
}

.timer-pill {
  min-width: 116px;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(222, 242, 238, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 48px rgba(0, 0, 0, 0.2);
  animation: timer-settle 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.ball-stage {
  display: grid;
  place-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.ball-card {
  position: relative;
  width: min(42vw, 186px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #030b11;
  background:
    radial-gradient(circle at 36% 29%, #ffffff 0 10%, rgba(255, 255, 255, 0) 11%),
    radial-gradient(circle at 48% 42%, #ffffff 0 21%, #e5ebe8 48%, #b7c2c0 73%, #7e918f 100%);
  border: 2px solid rgba(104, 240, 197, 0.7);
  box-shadow:
    0 0 0 3px rgba(104, 240, 197, 0.06),
    0 0 28px rgba(104, 240, 197, 0.22),
    0 20px 52px rgba(0, 0, 0, 0.36);
  user-select: none;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}

.ball-card--enter {
  animation: ball-enter 120ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.ball-card--keep {
  animation: ball-keep-out 180ms ease both;
}

.ball-card--drop {
  animation: ball-drop-out 180ms ease both;
}

.ball-card--bad {
  border-color: rgba(255, 112, 133, 0.72);
  box-shadow:
    0 0 0 5px rgba(255, 112, 133, 0.08),
    0 0 26px rgba(255, 112, 133, 0.22),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(3, 11, 17, 0.13);
}

.ball-text {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  line-height: 1;
}

.ball-letter {
  font-size: clamp(1.15rem, 5vw, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ball-number {
  font-size: clamp(3.1rem, 16vw, 5.35rem);
  font-weight: 950;
  letter-spacing: 0;
}

.feedback {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--accent);
  text-align: center;
  animation: feedback-pop 180ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.feedback strong {
  font-size: 1.3rem;
  line-height: 1;
}

.feedback span {
  min-height: 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.feedback--bad {
  color: var(--danger);
}

.feedback--drop {
  color: var(--text-soft);
}

.feedback--wrong {
  animation: feedback-wrong 300ms ease both;
}

.board-wrap {
  width: min(100%, 430px);
  display: grid;
  gap: 8px;
  margin: 0 auto;
}

.board-letters,
.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.board-letters {
  gap: 5px;
  padding: 0 4px;
}

.board-letters span {
  color: var(--text-soft);
  text-align: center;
  font-size: clamp(0.78rem, 3.2vw, 0.94rem);
  font-weight: 700;
  text-transform: uppercase;
}

.board {
  width: 100%;
  aspect-ratio: 1 / 1;
  gap: 5px;
  padding: 5px;
  border-radius: var(--radius);
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(206, 228, 224, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 250, 248, 0.72);
  font-size: clamp(1rem, 6vw, 1.55rem);
  font-weight: 760;
  line-height: 1;
  overflow: hidden;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.board-wrap--board .cell {
  animation: board-cell-in 360ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(var(--cell) * 13ms);
}

.board-wrap--drop .board {
  animation: board-drop-ok 320ms ease both;
}

.board-wrap--wrong .board {
  animation: board-wrong 260ms ease both;
}

.cell span,
.cell svg {
  position: relative;
  z-index: 2;
}

.cell svg {
  width: 30%;
  height: 30%;
  color: var(--accent);
}

.cell--marked {
  color: var(--text);
  border-color: rgba(104, 240, 197, 0.86);
  background: rgba(104, 240, 197, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(104, 240, 197, 0.2),
    0 0 20px rgba(104, 240, 197, 0.14);
  animation: mark-settle 260ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.cell--marked::after {
  content: "";
  position: absolute;
  width: 64%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(104, 240, 197, 0.9);
  background: rgba(104, 240, 197, 0.05);
  box-shadow:
    0 0 18px rgba(104, 240, 197, 0.46),
    inset 0 0 18px rgba(104, 240, 197, 0.18);
}

.cell--free {
  color: var(--accent);
}

.cell--free::after {
  display: none;
}

.cell--hit {
  animation: hit-pop 180ms ease;
}

.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 12px max(14px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(2, 8, 9, 0), rgba(2, 8, 9, 0.86) 20%, rgba(2, 8, 9, 0.98));
  backdrop-filter: blur(18px);
}

.controls-inner {
  width: min(100%, 480px);
  height: calc(var(--controls-height) - 18px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.control-btn {
  position: relative;
  overflow: hidden;
  height: 78px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  align-content: center;
  column-gap: 10px;
  row-gap: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055));
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition:
    transform 80ms ease,
    border-color 80ms ease,
    box-shadow 80ms ease,
    background 80ms ease;
}

.control-btn:disabled {
  cursor: default;
  pointer-events: none;
}

.control-btn svg {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  align-self: center;
}

.control-btn strong {
  font-size: clamp(1.1rem, 5vw, 1.45rem);
  line-height: 1;
  text-align: left;
  text-transform: lowercase;
}

.control-btn span {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: left;
}

.control-btn--keep {
  border-color: transparent;
  background: linear-gradient(135deg, #76f4ca, #55d9bd);
  color: #031211;
}

.control-btn:hover,
.control-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.control-btn--pressed {
  transform: translateY(2px) scale(0.985);
}

.control-btn--keep span {
  color: rgba(3, 18, 17, 0.76);
}

.binglo-panel {
  min-height: 272px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.spark-burst {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  filter: drop-shadow(0 0 18px rgba(104, 240, 197, 0.42));
  animation: sparkle-spin 1300ms ease-in-out infinite;
}

.spark-burst svg {
  width: 35px;
  height: 35px;
}

.binglo-panel h1 {
  margin: 0;
  font-size: clamp(3.6rem, 16vw, 5.8rem);
  font-weight: 920;
  line-height: 0.9;
  letter-spacing: 0;
  animation: binglo-title 480ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.binglo-panel p {
  margin: 0;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 820;
}

.new-board-card {
  width: min(100%, 330px);
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  text-align: left;
  animation: soft-rise 380ms 140ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.new-board-card strong {
  display: block;
  font-size: 1.35rem;
}

.new-board-card span {
  color: var(--text-soft);
}

.mini-board-icon {
  width: 48px;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mini-board-icon span {
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 11px rgba(104, 240, 197, 0.28);
}

.result-screen,
.sub-screen,
.leaderboard-screen {
  gap: 18px;
}

.sub-screen {
  justify-content: center;
}

.result-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: clamp(24px, 6vh, 52px);
  text-align: center;
}

.result-hero h1,
.screen-header h1,
.leader-hero h1,
.shop-panel h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
}

.avatar-score {
  position: relative;
  width: 112px;
  height: 112px;
}

.avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(247, 250, 248, 0.65);
  background: rgba(255, 255, 255, 0.065);
}

.avatar svg {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.avatar-score > span {
  position: absolute;
  right: -5px;
  bottom: 10px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #10201f;
  color: var(--accent);
  font-weight: 900;
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
}

.result-score strong {
  font-size: clamp(3rem, 15vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
}

.result-score span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

.result-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  animation: soft-rise 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.result-line {
  display: grid;
  grid-template-columns: 36px 72px 1fr;
  align-items: center;
  gap: 12px;
}

.result-icon {
  color: var(--text-soft);
}

.result-icon svg {
  width: 26px;
  height: 26px;
}

.result-line strong {
  color: var(--text);
  font-size: 1.45rem;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.screen-header {
  grid-template-columns: 40px 1fr 40px;
}

.screen-header h1 {
  text-align: center;
  font-size: clamp(1.7rem, 8vw, 2.3rem);
}

.settings-list {
  display: grid;
  gap: 12px;
}

.setting-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.setting-row--button svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.setting-title {
  color: var(--text);
  font-weight: 820;
  text-transform: lowercase;
}

.toggle {
  position: relative;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 160ms ease;
}

.toggle[aria-pressed="true"] {
  background: rgba(104, 240, 197, 0.24);
  border-color: rgba(104, 240, 197, 0.46);
}

.toggle[aria-pressed="true"]::after {
  transform: translateX(22px);
  background: var(--accent);
}

.slider {
  width: min(150px, 42vw);
  accent-color: var(--accent);
}

.key-pill {
  min-width: 78px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(104, 240, 197, 0.28);
  background: rgba(104, 240, 197, 0.09);
  color: var(--accent);
  font-weight: 820;
}

.capture-note {
  min-height: 18px;
  margin: 2px 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: clamp(24px, 7vh, 70px) 0 6px;
  text-align: center;
}

.leader-hero > span {
  color: #a7b4ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-list {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.leader-row--hot {
  border-color: rgba(104, 240, 197, 0.36);
}

.leader-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #031211;
  font-weight: 900;
}

.leader-name {
  color: var(--text);
  font-weight: 820;
}

.leader-score {
  color: var(--text);
  font-weight: 900;
}

.shop-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  text-align: center;
}

.shop-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #76f4ca, #55d9bd);
  color: #031211;
  box-shadow: 0 22px 54px rgba(85, 217, 189, 0.2);
}

.shop-icon svg {
  width: 36px;
  height: 36px;
}

.shake {
  animation: shake 260ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timer-settle {
  from {
    transform: scale(0.97);
    border-color: rgba(104, 240, 197, 0.38);
  }
  to {
    transform: scale(1);
    border-color: rgba(222, 242, 238, 0.28);
  }
}

@keyframes ball-enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ball-keep-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(42px) rotate(92deg) scale(0.93);
  }
}

@keyframes ball-drop-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-42px) rotate(-92deg) scale(0.93);
  }
}

@keyframes ball-wrong-out {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  40% {
    transform: translateX(-7px) scale(0.98);
  }
  80% {
    transform: translateX(7px) scale(0.98);
  }
  100% {
    opacity: 0.28;
    transform: translateX(0) scale(0.94);
  }
}

@keyframes feedback-pop {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes feedback-wrong {
  0%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-5px);
  }
  70% {
    transform: translateX(4px);
  }
}

@keyframes board-cell-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes board-drop-ok {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(0.992);
    filter: brightness(1.08);
  }
}

@keyframes board-wrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

@keyframes mark-settle {
  from {
    transform: scale(0.92);
    filter: brightness(1.32);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes sparkle-spin {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes binglo-title {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hit-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-7px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
}

@media (min-width: 720px) {
  .app-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
  }

  .screen {
    width: min(100%, 560px);
    min-height: min(900px, calc(100dvh - 64px));
    padding-left: 22px;
    padding-right: 22px;

    /* mer floydle-känsla: ingen stor synlig ruta */
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-screen {
    min-height: calc(100dvh - 64px);
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .home-hero,
  .home-actions {
    width: 100%;
    max-width: 370px;
    margin-inline: auto;
  }

  .home-actions {
    justify-items: stretch;
  }

  .home-actions > .btn,
  .quick-actions,
  .auth-area {
    width: 100%;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-icons {
    justify-content: center;
  }

  .screen--game {
    width: min(100%, 640px);
    padding-bottom: 22px;
    justify-content: flex-start;
  }

  .board-wrap {
    width: min(100%, 470px);
  }

  .controls {
    position: static;
    margin-top: auto;
    padding: 14px 0 0;
    background: transparent;
    backdrop-filter: none;
  }

  .controls-inner {
    width: min(100%, 560px);
    height: 78px;
  }
}

@media (max-height: 790px) {
  .screen--game {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .game-stats {
    margin: 10px 0 12px;
  }

  .timer-pill {
    min-height: 56px;
    min-width: 104px;
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .ball-card {
    width: min(35vw, 138px);
  }

  .feedback {
    min-height: 38px;
  }

  .board-wrap {
    width: min(100%, 372px);
  }

  .control-btn {
    height: 70px;
  }
}

@media (max-width: 370px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-stats,
  .game-stats,
  .quick-actions,
  .result-actions {
    gap: 7px;
  }

  .timer-pill {
    min-width: 96px;
    padding: 0 14px;
  }

  .board {
    gap: 4px;
    padding: 4px;
  }

  .control-btn {
    column-gap: 7px;
  }
}

/* cleaner centered home layout */
.home-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-inline: 20px;
}

.home-hero,
.home-actions {
  width: 100%;
  max-width: 370px;
  margin-inline: auto;
}

.home-hero {
  justify-items: center;
}

.hero-logo {
  justify-content: center;
}

.hero-stats {
  width: 100%;
  margin-inline: auto;
}

.home-actions {
  justify-items: stretch;
}

.home-actions > .btn,
.quick-actions,
.auth-area {
  width: 100%;
}

.quick-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-area {
  justify-items: center;
}

.signin-divider,
.auth-icons {
  width: 100%;
}

.auth-icons {
  justify-content: center;
}

.app-version {
  width: 100%;
  text-align: center;
}

/* remove boxed feeling from game screen */
.screen--game {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* make desktop game feel like it floats on the background */
@media (min-width: 720px) {
  .app-shell {
    display: block;
    padding: 0;
  }

  .screen--game {
    width: min(100%, 620px);
    min-height: 100dvh;
    margin: 0 auto;
    padding-top: 22px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 28px;
    justify-content: flex-start;
  }

  .screen--game .app-topbar {
    background: transparent;
    backdrop-filter: none;
  }

  .controls {
    position: static;
    margin-top: 22px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .controls-inner {
    width: min(100%, 520px);
    height: 74px;
  }
}

/* cleaner bingo board */
.board {
  background: transparent;
  padding: 0;
  gap: 6px;
}

.cell {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(222, 242, 238, 0.11);
  box-shadow: none;
}

.cell--marked {
  background: rgba(104, 240, 197, 0.065);
  box-shadow: 0 0 16px rgba(104, 240, 197, 0.11);
}

/* classic bingo ball colors */
.ball-card--b {
  border-color: rgba(93, 167, 255, 0.9);
  box-shadow:
    0 0 0 5px rgba(93, 167, 255, 0.08),
    0 0 30px rgba(93, 167, 255, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--i {
  border-color: rgba(255, 104, 104, 0.9);
  box-shadow:
    0 0 0 5px rgba(255, 104, 104, 0.08),
    0 0 30px rgba(255, 104, 104, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--n {
  border-color: rgba(235, 235, 235, 0.95);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 255, 255, 0.18),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--g {
  border-color: rgba(88, 219, 130, 0.9);
  box-shadow:
    0 0 0 5px rgba(88, 219, 130, 0.08),
    0 0 30px rgba(88, 219, 130, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--o {
  border-color: rgba(255, 196, 77, 0.95);
  box-shadow:
    0 0 0 5px rgba(255, 196, 77, 0.08),
    0 0 30px rgba(255, 196, 77, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--b .ball-letter { color: #2d7fe8; }
.ball-card--i .ball-letter { color: #e25555; }
.ball-card--n .ball-letter { color: #5d666d; }
.ball-card--g .ball-letter { color: #31b85b; }
.ball-card--o .ball-letter { color: #d89a18; }

/* classic bingo ball colors, but clean */
.ball-card--b {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 42%, #ffffff 0 18%, #d9ecff 43%, #5da7ff 100%);
  border-color: rgba(93, 167, 255, 0.9);
  box-shadow:
    0 0 0 4px rgba(93, 167, 255, 0.08),
    0 0 34px rgba(93, 167, 255, 0.3),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--i {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 42%, #ffffff 0 18%, #ffe1e1 43%, #ff6868 100%);
  border-color: rgba(255, 104, 104, 0.9);
  box-shadow:
    0 0 0 4px rgba(255, 104, 104, 0.08),
    0 0 34px rgba(255, 104, 104, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--n {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 42%, #ffffff 0 20%, #eeeeee 48%, #c5ccd0 100%);
  border-color: rgba(235, 235, 235, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.055),
    0 0 28px rgba(255, 255, 255, 0.18),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--g {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 42%, #ffffff 0 18%, #dfffea 43%, #58db82 100%);
  border-color: rgba(88, 219, 130, 0.9);
  box-shadow:
    0 0 0 4px rgba(88, 219, 130, 0.08),
    0 0 34px rgba(88, 219, 130, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.ball-card--o {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 42%, #ffffff 0 18%, #fff1c8 43%, #ffc44d 100%);
  border-color: rgba(255, 196, 77, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 196, 77, 0.08),
    0 0 34px rgba(255, 196, 77, 0.28),
    0 22px 58px rgba(0, 0, 0, 0.42);
}
.ball-card--b .ball-letter { color: #2f7bd8; }
.ball-card--i .ball-letter { color: #d95050; }
.ball-card--n .ball-letter { color: #5f686d; }
.ball-card--g .ball-letter { color: #2fad5a; }
.ball-card--o .ball-letter { color: #c78613; }

/* cleaner result screen */
.result-screen {
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding-inline: 20px;
}

.result-screen .app-topbar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  width: auto;
  background: transparent;
  backdrop-filter: none;
}

.result-hero {
  width: min(100%, 420px);
  margin-top: 0;
  gap: 12px;
}

.result-hero h1 {
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

/* make avatar subtle, or almost remove it */
.avatar-score {
  width: 72px;
  height: 72px;
  opacity: 0.72;
  margin: 2px 0 4px;
}

.avatar {
  border-width: 1px;
  border-color: rgba(222, 242, 238, 0.24);
  background: rgba(255, 255, 255, 0.035);
}

.avatar svg {
  width: 34px;
  height: 34px;
}

.avatar-score > span {
  min-width: 28px;
  height: 28px;
  right: -3px;
  bottom: 2px;
  font-size: 0.82rem;
  border-width: 1px;
}

/* score should feel like the hero */
.result-score {
  margin: 0 0 6px;
  gap: 8px;
}

.result-score strong {
  font-size: clamp(4.2rem, 18vw, 6.8rem);
  letter-spacing: -0.06em;
}

.result-score span {
  font-size: 1rem;
}

/* smaller, cleaner stat card */
.result-panel {
  width: min(100%, 420px);
  gap: 0;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.result-line {
  min-height: 52px;
  grid-template-columns: 34px 72px 1fr;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(222, 242, 238, 0.075);
}

.result-line:last-child {
  border-bottom: 0;
}

.result-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.88;
}

.result-icon svg {
  width: 20px;
  height: 20px;
}

.result-line strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.result-line span:last-child {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* buttons */
.result-actions {
  width: min(100%, 420px);
  gap: 12px;
}

.result-actions .btn {
  min-height: 58px;
}

.result-screen > .btn--ghost {
  width: min(100%, 420px);
  min-height: 54px;
  border-color: rgba(222, 242, 238, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

/* fix clipped g in binglo wordmark */
.hero-logo,
.topbar-logo {
  overflow: visible;
}

.hero-logo {
  line-height: 1.04;
  padding-bottom: 0.12em;
}

.hero-logo > span:last-child,
.topbar-logo > span:last-child {
  display: inline-block;
  line-height: 1.04;
  padding-bottom: 0.08em;
}

/* classic binglo icon closer to the earlier mockup */
.brand-mark {
  position: relative;
  overflow: visible;
}

.brand-mark--classic {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 48% 46%, #c8fff0 0 18%, #69ecc8 52%, #1db49e 100%);
  box-shadow:
    0 0 0 1px rgba(104, 240, 197, 0.55),
    0 0 22px rgba(104, 240, 197, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid rgba(7, 29, 25, 0.9);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-28deg);
  opacity: 0.9;
}

.brand-b {
  position: relative;
  z-index: 2;
  color: #041312;
  font-weight: 950;
  line-height: 1;
}

.brand-spark {
  position: absolute;
  z-index: 3;
  width: 10%;
  height: 10%;
  background: #d9fff4;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  box-shadow: 0 0 10px rgba(104, 240, 197, 0.45);
}

.brand-spark--one {
  top: 10%;
  right: 16%;
}

.brand-spark--two {
  top: 24%;
  right: 6%;
  transform: scale(0.72);
}

/* ===== binglo home page - closer to mockup ===== */

/* background glow / atmosphere */
body {
  background:
    radial-gradient(circle at 18% 92%, rgba(104, 240, 197, 0.22) 0%, rgba(104, 240, 197, 0.08) 14%, transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(104, 240, 197, 0.12) 0%, rgba(104, 240, 197, 0.04) 18%, transparent 34%),
    linear-gradient(180deg, rgba(104, 240, 197, 0.08), rgba(104, 240, 197, 0) 24%),
    linear-gradient(90deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 18%, rgba(255,255,255,0.018) 50%, rgba(255,255,255,0) 82%),
    linear-gradient(145deg, #020809 0%, #06110f 42%, #08161b 100%);
}

/* softer overall home alignment */
.home-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding-inline: 22px;
}

.home-hero,
.home-actions {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.home-hero {
  gap: 10px;
  justify-items: center;
}

/* logo */
.hero-logo {
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: clamp(2.7rem, 12vw, 4.8rem);
  font-weight: 880;
  line-height: 1.04;
  padding-bottom: 0.12em;
  text-shadow: 0 12px 34px rgba(0,0,0,0.25);
}

.hero-logo > span:last-child,
.topbar-logo > span:last-child {
  display: inline-block;
  line-height: 1.04;
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* tagline */
.hero-tagline {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: rgba(235, 242, 239, 0.78);
  font-weight: 600;
}

.hero-tagline span,
.hero-tagline strong {
  color: var(--accent);
}

/* classic icon */
.brand-mark {
  position: relative;
  overflow: visible;
}

.brand-mark--classic {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.96) 0 10%, transparent 11%),
    radial-gradient(circle at 48% 46%, #c9fff1 0 18%, #67ecc7 52%, #1cb39d 100%);
  box-shadow:
    0 0 0 1px rgba(104, 240, 197, 0.55),
    0 0 22px rgba(104, 240, 197, 0.34),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.brand-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid rgba(5, 23, 21, 0.92);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-28deg);
  opacity: 0.92;
}

.brand-b {
  position: relative;
  z-index: 2;
  color: #041312;
  font-weight: 950;
  line-height: 1;
}

.brand-spark {
  position: absolute;
  z-index: 3;
  width: 10%;
  height: 10%;
  background: #d9fff4;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  box-shadow: 0 0 10px rgba(104,240,197,0.45);
}

.brand-spark--one {
  top: 10%;
  right: 16%;
}

.brand-spark--two {
  top: 24%;
  right: 6%;
  transform: scale(0.72);
}

/* bigger homepage icon only */
.hero-logo .brand-mark {
  width: clamp(44px, 11vw, 64px);
  height: clamp(44px, 11vw, 64px);
}

.hero-logo .brand-b {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

/* stat cards */
.hero-stats {
  width: 100%;
  margin-top: 14px;
  gap: 10px;
}

.stat-card {
  min-height: 80px;
  padding: 12px 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(222,242,238,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 30px rgba(0,0,0,0.16);
}

.stat-card strong {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.stat-card span {
  color: rgba(198, 208, 205, 0.72);
}

/* buttons */
.home-actions {
  gap: 11px;
}

.btn {
  min-height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
  border: 1px solid rgba(222,242,238,0.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 12px 28px rgba(0,0,0,0.15);
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.05));
  border-color: rgba(124,246,209,0.25);
}

.btn--primary {
  min-height: 58px;
  background: linear-gradient(180deg, #79f0ce 0%, #65e2c5 100%);
  color: #041312;
  border: 0;
  box-shadow:
    0 0 0 1px rgba(122, 247, 206, 0.15),
    0 12px 30px rgba(85,217,189,0.2);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(180deg, #86f5d5 0%, #70e7cb 100%);
}

/* auth */
.auth-area {
  gap: 12px;
}

.signin-divider {
  gap: 12px;
}

.signin-divider span {
  background: rgba(222, 242, 238, 0.08);
}

.signin-divider em {
  color: rgba(198, 208, 205, 0.66);
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(222,242,238,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 10px 24px rgba(0,0,0,0.14);
}

/* footer version */
.app-version {
  color: rgba(170, 180, 178, 0.62);
  font-size: 0.74rem;
}

/* top logo smaller but matching */
.topbar-logo {
  gap: 8px;
}

.topbar-logo .brand-mark {
  width: 28px;
  height: 28px;
}

/* make homepage tighter on phone */
@media (max-width: 480px) {
  .home-screen {
    gap: 22px;
  }

  .hero-stats {
    gap: 9px;
  }

  .quick-actions {
    gap: 10px;
  }
}

/* fix clipped "g" in binglo wordmark */
.hero-logo {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  line-height: 1.08 !important;
  overflow: visible;
}

.hero-logo > span:last-child {
  display: inline-block;
  line-height: 1.08 !important;
  padding-bottom: 0.14em;
  margin-bottom: -0.04em;
  overflow: visible;
}

/* also fix in top bar logo just in case */
.topbar-logo {
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.topbar-logo > span:last-child {
  display: inline-block;
  line-height: 1.06;
  padding-bottom: 0.08em;
  overflow: visible;
}

.hero-logo,
.hero-logo * {
  overflow: visible !important;
}