@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lalezar';
  src: url('./assets/fonts/Lalezar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('./assets/fonts/Estedad-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('./assets/fonts/Estedad-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('./assets/fonts/Sahel.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('./assets/fonts/Sahel-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bp-bg: #160E2E;
  --bp-bg-2: #1A0D3A;
  --bp-bg-mid: #2A1152;
  --bp-bg-deep: #0E0824;
  --bp-board: #170D33;
  --bp-surface: #241A40;
  --bp-surface-2: #2E2150;
  --bp-surface-3: #3A2A66;
  --bp-stroke: #3B2C62;
  --bp-text-primary: #F6F2FF;
  --bp-text-secondary: #A99AD1;
  --bp-text-muted: #7C6EA6;
  --bp-text-soft: #C9B8F0;
  --bp-white: #FFFFFF;
  --bp-accent: #C6FF3D;
  --bp-accent-hi: #E8FF8A;
  --bp-accent-2: #95D611;
  --bp-accent-ink: #111409;
  --bp-gold: #FFC64B;
  --bp-gold-hi: #FFD56A;
  --bp-gold-2: #FF9E3D;
  --bp-gold-ink: #2A1A08;
  --bp-gold-deep: #4A2600;
  --bp-cyan: #3DE0FF;
  --bp-cyan-hi: #8BEBFF;
  --bp-cyan-2: #2A9BE0;
  --bp-cyan-ink: #06364A;
  --bp-magenta: #FF3D8B;
  --bp-magenta-hi: #FF7FB5;
  --bp-magenta-2: #B01458;
  --bp-magenta-ink: #3A0018;
  --bp-violet: #8A4BFF;
  --bp-violet-hi: #C6A6FF;
  --bp-violet-2: #6B2ED1;
  --bp-violet-ink: #1B0742;
  --bp-success: #57C08A;
  --bp-success-hi: #7BE0A8;
  --bp-success-2: #2E9E68;
  --bp-success-ink: #0B3A24;
  --bp-warning: #FF7A2A;
  --bp-warning-2: #E03A1A;
  --bp-warning-ink: #FFF6E0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  direction: rtl;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bp-bg-deep);
  color: var(--bp-text-primary);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}

#app {
  height: 100dvh;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  background: linear-gradient(160deg, #2A1152 0%, #1A0D3A 50%, #0E0824 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

@media (min-width: 480px) and (min-height: 940px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #app {
    height: min(100dvh - 48px, 900px);
    border-radius: 36px;
    border: 1px solid #3B2C62;
  }
}

button {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: inherit;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

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

.g-key:focus-visible,
.bp-tab:focus-visible,
.bp-lb-row:focus-visible,
.bp-avatar-option:focus-visible {
  outline-offset: 1px;
}

.bp-arcade-btn:focus-visible,
.bp-submit-btn:focus-visible,
.bp-cta-primary:focus-visible {
  outline-color: #111409;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--bp-accent);
}

.bp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.bp-share-note {
  margin: 0;
  min-height: 18px;
  text-align: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-cyan-hi);
}

.bp-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: linear-gradient(160deg, #2A1152 0%, #1A0D3A 50%, #0E0824 100%);
}

.bp-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.75;
  z-index: 0;
}

.bp-glow-magenta {
  width: 280px;
  height: 280px;
  top: 40px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.45) 0%, rgba(255, 61, 139, 0) 70%);
}

.bp-glow-cyan {
  width: 300px;
  height: 300px;
  top: 220px;
  left: -80px;
  background: radial-gradient(circle, rgba(61, 224, 255, 0.4) 0%, rgba(61, 224, 255, 0) 70%);
}

.bp-glow-violet {
  width: 320px;
  height: 320px;
  top: 430px;
  right: -40px;
  background: radial-gradient(circle, rgba(138, 75, 255, 0.4) 0%, rgba(138, 75, 255, 0) 70%);
}

.bp-screen-win .bp-glow-magenta {
  background: radial-gradient(circle, rgba(255, 198, 75, 0.5) 0%, rgba(255, 198, 75, 0) 70%);
}

.bp-status-bar {
  height: calc(14px + env(safe-area-inset-top, 0px));
  flex: none;
  z-index: 2;
}

.bp-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 0 20px;
  z-index: 10;
  flex: none;
  direction: ltr;
}

.bp-audio-controls {
  position: relative;
  display: flex;
  flex: none;
  direction: rtl;
}

.bp-audio-trigger {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(169, 154, 209, 0.24);
  border-radius: 14px;
  background: rgba(36, 26, 64, 0.62);
  color: var(--bp-text-soft);
  box-shadow: 0 4px 12px rgba(14, 8, 36, 0.2);
}

.bp-audio-trigger:hover,
.bp-audio-trigger[aria-expanded="true"] {
  background: rgba(58, 42, 102, 0.78);
  color: var(--bp-white);
}

.bp-audio-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(169, 154, 209, 0.3);
  border-radius: 14px;
  background: rgba(31, 19, 59, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  color: var(--bp-text-primary);
}

.bp-audio-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 4px 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-audio-close {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--bp-text-secondary);
}

.bp-audio-close:hover {
  background: rgba(169, 154, 209, 0.14);
  color: var(--bp-white);
}

.bp-audio-option {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  justify-content: space-between;
  color: var(--bp-text-soft);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-audio-option:hover {
  background: rgba(169, 154, 209, 0.14);
}

.bp-audio-option span:last-child {
  color: var(--bp-text-muted);
  font-size: 11px;
}

.bp-audio-option[aria-pressed="true"] span:last-child {
  color: var(--bp-success-hi);
}

.bp-audio-option:disabled {
  cursor: default;
}

.bp-coin-pill {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, rgba(58, 42, 102, 0.85) 0%, rgba(27, 16, 56, 0.85) 100%);
  border: 1.5px solid var(--bp-gold);
  box-shadow: 0 4px 12px rgba(255, 198, 75, 0.35);
  border-radius: 22px;
  min-height: 44px;
  padding: 6px 10px 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-coin-pill-low {
  border-color: var(--bp-magenta);
  box-shadow: 0 4px 12px rgba(255, 61, 139, 0.35);
}

.bp-coin-val {
  color: var(--bp-gold-hi);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.bp-coin-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  border: 1.5px solid #FFF3C4;
  box-shadow: 0 0 8px rgba(255, 198, 75, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-gold-ink);
}

.bp-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.bp-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.bp-profile-name {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bp-text-primary);
  line-height: 1;
}

.bp-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
}

.bp-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 23px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-avatar-initial {
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.bp-level-badge {
  position: absolute;
  bottom: -4px;
  left: -3px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 10px;
  border: 1.5px solid #FFE9B0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.bp-hero {
  padding: 12px 20px 6px 20px;
  z-index: 2;
  flex: none;
}

.bp-board-box {
  position: relative;
  background: var(--bp-board);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 28px;
  padding: 18px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bp-board-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0.35;
}

.bp-board-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(23, 13, 51, 0.3) 0%, rgba(23, 13, 51, 0.9) 100%);
}

.bp-logo-tiles {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  direction: ltr;
}

.bp-tile-base {
  padding-bottom: 6px;
  border-radius: 18px;
}

.bp-tile-base-gold { background: #A85E06; }
.bp-tile-base-magenta { background: #B01458; }
.bp-tile-base-cyan { background: #0B7FB0; }
.bp-tile-base-lime { background: #6E9C0E; }
.bp-tile-base-violet { background: #5A24C4; }

.bp-tile-face {
  width: 54px;
  height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bp-tile-face-gold { background: linear-gradient(180deg, #FFD56A 0%, #FF9E3D 100%); color: #3A1E00; }
.bp-tile-face-magenta { background: linear-gradient(180deg, #FF7FB5 0%, #FF3D8B 100%); color: #3A0018; }
.bp-tile-face-cyan { background: linear-gradient(180deg, #8BEBFF 0%, #3DE0FF 100%); color: #032838; }
.bp-tile-face-lime { background: linear-gradient(180deg, #E8FF8A 0%, #C6FF3D 100%); color: #1B2600; }
.bp-tile-face-violet { background: linear-gradient(180deg, #C6A6FF 0%, #8A4BFF 100%); color: #1B0742; }

.bp-tile-glyph {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.bp-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: var(--bp-text-soft);
  text-align: center;
  font-weight: 500;
}

.bp-home-content {
  padding: 8px 20px 8px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-lb-card {
  background: linear-gradient(180deg, rgba(46, 33, 80, 0.8) 0%, rgba(27, 16, 56, 0.9) 100%);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 24px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-lb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: ltr;
}

.bp-lb-countdown {
  background: #3A2A66;
  border-radius: 11px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bp-text-primary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.bp-lb-title-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bp-gold-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.bp-lb-title {
  color: var(--bp-text-primary);
}

.bp-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bp-lb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.bp-lb-row {
  width: 100%;
  min-height: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(42, 26, 74, 0.6);
  border: 1px solid var(--bp-stroke);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  direction: ltr;
  transition: background 0.15s ease;
}

.bp-lb-row:hover {
  background: rgba(58, 42, 102, 0.8);
}

.bp-lb-row-you {
  border: 1.5px solid var(--bp-cyan);
  box-shadow: 0 0 10px rgba(61, 224, 255, 0.35);
  background: rgba(36, 42, 80, 0.85);
}

.bp-lb-prize {
  background: #3A2A66;
  border-radius: 8px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--bp-text-soft);
  flex: none;
}

.bp-lb-prize-gold {
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
}

.bp-lb-prize-cyan {
  background: #E8F7FF;
  color: #0B3A54;
}

.bp-lb-prize-orange {
  background: linear-gradient(135deg, #FFB86A 0%, #FF8A3D 100%);
  color: #3A1500;
}

.bp-lb-score {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-text-soft);
}

.bp-lb-player {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bp-lb-name {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-violet-hi);
}

.bp-lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #3A2A66;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--bp-text-primary);
}

.bp-lb-rank-gold {
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
}

.bp-lb-rank-cyan {
  background: #E8F7FF;
  color: #0B3A54;
}

.bp-lb-rank-orange {
  background: linear-gradient(135deg, #FFB86A 0%, #FF8A3D 100%);
  color: #3A1500;
}

.bp-treasure {
  background: linear-gradient(180deg, rgba(46, 33, 80, 0.85) 0%, rgba(27, 16, 56, 0.95) 100%);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-treasure-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bp-treasure-art {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 198, 75, 0.5);
}

.bp-treasure-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.bp-treasure-copy h3 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-treasure-copy p {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-secondary);
}

.bp-treasure-streak {
  background: rgba(255, 61, 139, 0.2);
  border: 1px solid var(--bp-magenta);
  border-radius: 9px;
  padding: 2px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--bp-magenta-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.bp-treasure-claim {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 50%, var(--bp-accent-2) 100%);
  color: var(--bp-accent-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(198, 255, 61, 0.35);
}

.bp-treasure-days {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  direction: ltr;
}

.bp-treasure-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.bp-treasure-dot {
  width: 34px;
  height: 36px;
  border-radius: 11px;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-muted);
}

.bp-treasure-day-current .bp-treasure-dot {
  border-color: var(--bp-accent);
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.5);
  color: var(--bp-accent);
}

.bp-treasure-day-done .bp-treasure-dot {
  background: linear-gradient(135deg, var(--bp-success-hi) 0%, var(--bp-success) 100%);
  color: var(--bp-success-ink);
  border-color: #D6FFE4;
}

.bp-treasure-day-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-text-muted);
}

.bp-arcade-shell {
  width: 100%;
  padding-bottom: 8px;
  background: #4E7A0E;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.bp-arcade-btn {
  position: relative;
  width: 100%;
  min-height: 88px;
  height: 88px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 45%, var(--bp-accent-2) 100%);
  border: 2px solid #F4FFB8;
  color: var(--bp-accent-ink);
  overflow: hidden;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.7), 0 4px 16px rgba(198, 255, 61, 0.4);
}

.bp-arcade-btn:active:not(:disabled) {
  transform: translateY(4px);
}

.bp-arcade-btn-searching {
  background: linear-gradient(180deg, #FFE870 0%, #FFD026 50%, #D49D08 100%);
  border-color: #FFF6C4;
}

.bp-arcade-btn-ready {
  background: linear-gradient(180deg, #95FFB8 0%, #46E87F 50%, #1FB853 100%);
  border-color: #D6FFE4;
}

.bp-arcade-shine {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.bp-arcade-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.bp-arcade-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bp-arcade-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.bp-btn-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  padding-inline-start: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #232B12 0%, #111409 100%);
  border: 1px solid rgba(255, 213, 106, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.35);
  color: var(--bp-gold-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.bp-btn-cost-val {
  padding-top: 1px;
}

.bp-btn-cost-icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  border: 1px solid #FFF3C4;
  box-shadow: 0 0 6px rgba(255, 198, 75, 0.6);
  color: var(--bp-gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-btn-cost-lg {
  gap: 8px;
  padding: 4px;
  padding-inline-start: 14px;
  font-size: 17px;
}

.bp-btn-cost-lg .bp-btn-cost-icon {
  width: 28px;
  height: 28px;
}

.bp-spin {
  animation: bpSpinner 1s linear infinite;
}

@keyframes bpSpinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bp-tab-wrap {
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  z-index: 3;
  flex: none;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 8, 36, 0.55) 40%);
}

.bp-tab-bar {
  height: 72px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(44, 29, 85, 0.9) 0%, rgba(23, 14, 51, 0.95) 100%);
  border: 1.5px solid var(--bp-stroke);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.bp-tab {
  flex: 1;
  height: 100%;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--bp-text-soft);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.bp-tab-active {
  background: linear-gradient(135deg, #D8FF5A 0%, #A8E62A 100%);
  color: var(--bp-accent-ink);
  box-shadow: 0 4px 12px rgba(198, 255, 61, 0.35);
}

.bp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 20, 0.82);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bp-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-secondary);
}

.bp-arena-card {
  position: relative;
  width: min(100%, 372px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-accent);
  border-radius: 40px;
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(198, 255, 61, 0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-arena-aura {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.25) 0%, rgba(198, 255, 61, 0) 70%);
  pointer-events: none;
}

.bp-arena-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: ltr;
}

.bp-arena-close {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-secondary);
}

.bp-arena-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-arena-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--bp-accent);
  box-shadow: 0 0 8px var(--bp-accent);
}

.bp-arena-status-text {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--bp-text-primary);
}

.bp-arena-frac {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--bp-accent);
}

.bp-arena-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-arena-row {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.bp-arena-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
}

.bp-arena-av-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-arena-av-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 75, 255, 0.4) 0%, rgba(138, 75, 255, 0) 70%);
}

.bp-arena-av-pic {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--bp-violet-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.bp-arena-av-lvl {
  position: absolute;
  bottom: -2px;
  right: 6px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 7px;
  border: 1px solid #FFE9B0;
}

.bp-arena-who {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--bp-text-primary);
}

.bp-arena-rank {
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  border-radius: 8px;
  padding: 2px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--bp-gold-deep);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.bp-arena-rank-waiting {
  background: var(--bp-surface);
  color: var(--bp-text-muted);
}

.bp-arena-ghost-hole {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--bp-surface);
  border: 2px dashed var(--bp-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-muted);
}

.bp-arena-scan-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 61, 139, 0.45);
  animation: bpScanPulse 1.4s ease-in-out infinite;
}

@keyframes bpScanPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 1; }
}

.bp-ticket {
  background: linear-gradient(135deg, #1B2B4D 0%, #151A3B 100%);
  border: 1.5px solid var(--bp-gold);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(255, 198, 75, 0.25);
}

.bp-ticket-icon {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-gold-ink);
}

.bp-ticket-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-ticket-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-secondary);
}

.bp-ticket-amount {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--bp-gold-hi);
}

.bp-arena-action-btn {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.bp-arena-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bp-countdown-ring {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-countdown-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bp-countdown-circle-bg {
  fill: none;
  stroke: var(--bp-surface);
  stroke-width: 4;
}

.bp-countdown-circle-fg {
  fill: none;
  stroke: var(--bp-accent);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s linear;
}

.bp-countdown-num {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--bp-accent);
}

.bp-countdown-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--bp-accent);
}

.bp-coin-alert {
  width: 100%;
  max-width: 350px;
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-magenta);
  border-radius: 32px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 61, 139, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-alert-close-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.bp-alert-close {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-secondary);
}

.bp-empty-vault {
  width: 86px;
  height: 86px;
  border-radius: 43px;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.3) 0%, rgba(255, 61, 139, 0) 70%);
  border: 2px solid var(--bp-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-magenta);
  box-shadow: 0 0 20px rgba(255, 61, 139, 0.4);
}

.bp-alert-title {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-alert-body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  color: var(--bp-text-secondary);
  line-height: 1.5;
}

.bp-need-row {
  display: flex;
  gap: 10px;
  width: 100%;
  direction: ltr;
}

.bp-need-chip {
  flex: 1;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bp-need-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-muted);
}

.bp-need-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.bp-need-value-low { color: var(--bp-magenta-hi); }
.bp-need-value-req { color: var(--bp-gold-hi); }

.bp-buy-coins-btn {
  width: 100%;
  min-height: 44px;
  background: linear-gradient(180deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  border: 1.5px solid #FFF3C4;
  border-radius: 18px;
  padding: 12px;
  color: var(--bp-gold-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 15px;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 198, 75, 0.4);
}

.bp-later-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bp-surface);
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.bp-game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px 16px;
  z-index: 3;
  flex: none;
  direction: ltr;
}

.bp-game-hud .bp-audio-popover {
  right: 0;
  left: auto;
}

.g-hud-pill {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, rgba(58, 42, 102, 0.8) 0%, rgba(27, 16, 56, 0.8) 100%);
  border-radius: 22px;
  padding: 6px 10px 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-hud-pill-cyan {
  border: 1.5px solid var(--bp-cyan);
  box-shadow: 0 4px 12px rgba(61, 224, 255, 0.35);
}

.g-hud-pill-gold {
  border: 1.5px solid var(--bp-gold);
  box-shadow: 0 4px 12px rgba(255, 198, 75, 0.35);
}

.g-hud-pill-timer {
  border: 1.5px solid var(--bp-gold-hi);
  box-shadow: 0 4px 12px rgba(255, 213, 106, 0.35);
  padding: 6px 14px;
}

.g-hud-pill-value-cyan { color: var(--bp-cyan-hi); font-weight: 800; font-size: 15px; }
.g-hud-pill-value-gold { color: var(--bp-gold-hi); font-weight: 800; font-size: 15px; }

.g-hud-pill-icon-cyan {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bp-cyan-hi) 0%, var(--bp-cyan-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-cyan-ink);
  border: 1.2px solid #DFF8FF;
}

.g-hud-pill-icon-gold {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-gold-ink);
  border: 1.2px solid #FFF3C4;
}

.g-hud-pill-clock {
  color: var(--bp-gold-hi);
  font-weight: 800;
  font-size: 15px;
}

.g-hud-pill-timer-icon {
  color: var(--bp-gold);
  display: flex;
}

.bp-round-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 20px 8px 20px;
  z-index: 2;
  flex: none;
  direction: ltr;
}

.bp-round-dot {
  width: 36px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.bp-round-dot-done {
  background: var(--bp-cyan);
  color: var(--bp-cyan-ink);
}

.bp-round-dot-active {
  background: var(--bp-cyan);
  color: var(--bp-cyan-ink);
  box-shadow: 0 0 10px rgba(61, 224, 255, 0.6);
}

.bp-round-dot-upcoming {
  background: var(--bp-surface-2);
  color: var(--bp-text-muted);
}

.bp-game-screen {
  overflow: hidden;
}

.bp-game-body {
  padding: 0 16px 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-round-card {
  background: var(--bp-surface);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 22px;
  padding: 8px;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-round-card-locked {
  background: var(--bp-board);
  min-height: 100px;
}

.bp-round-players {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}

.bp-round-players-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, max-content);
  grid-auto-columns: 64px;
  align-content: start;
  gap: 4px;
}

.g-player {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  border-radius: 12px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.g-player-active {
  background: var(--bp-surface-3);
  border-color: var(--bp-cyan);
  box-shadow: 0 0 8px rgba(61, 224, 255, 0.4);
}

.g-player-idle {
  opacity: 0.7;
}

.g-player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.g-player-hue-cyan .g-player-avatar { background: linear-gradient(135deg, var(--bp-cyan-hi) 0%, var(--bp-cyan) 100%); color: var(--bp-cyan-ink); }
.g-player-hue-magenta .g-player-avatar { background: linear-gradient(135deg, var(--bp-magenta-hi) 0%, var(--bp-magenta) 100%); }
.g-player-hue-violet .g-player-avatar { background: linear-gradient(135deg, var(--bp-violet-hi) 0%, var(--bp-violet) 100%); }
.g-player-hue-gold .g-player-avatar { background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%); color: var(--bp-gold-ink); }

.g-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.g-player-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-text-primary);
  line-height: 1.1;
}

.g-player-score {
  font-size: 8px;
  font-weight: 600;
  color: var(--bp-text-muted);
  line-height: 1;
  white-space: nowrap;
}

.g-player-score-hi {
  color: var(--bp-accent);
}

.g-player-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 9px;
  color: var(--bp-text-muted);
  padding: 4px;
}

.bp-round-play {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px;
}

.bp-round-play-locked {
  justify-content: center;
}

.g-round-badge {
  background: linear-gradient(180deg, rgba(58, 42, 102, 0.8) 0%, rgba(27, 16, 56, 0.8) 100%);
  border-radius: 16px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-round-badge-cyan { border: 1.2px solid var(--bp-violet-hi); }
.g-round-badge-violet { border: 1.2px solid var(--bp-violet); }
.g-round-badge-success { border: 1.2px solid var(--bp-success); }
.g-round-badge-muted { border: 1.2px solid var(--bp-stroke); }

.g-round-badge-num {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bp-cyan-hi) 0%, var(--bp-cyan) 100%);
  border: 1px solid #DFF8FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-round-badge-success .g-round-badge-num {
  background: linear-gradient(135deg, var(--bp-success-hi) 0%, var(--bp-success) 100%);
}

.g-round-badge-digit {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--bp-cyan-ink);
}

.g-round-badge-labels {
  display: flex;
  flex-direction: column;
}

.g-round-badge-title {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.g-round-badge-sub {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--bp-text-muted);
}

.bp-round-meta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-round-cat {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: var(--bp-text-secondary);
}

.bp-round-tiles {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.g-tile {
  width: 44px;
  min-width: 0;
  flex: 0 1 44px;
  border-radius: 13px;
  background: #3A2A66;
  padding-bottom: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.g-tile-face {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.g-tile-letter {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.g-tile-idle .g-tile-face,
.g-tile-typed .g-tile-face {
  background: linear-gradient(180deg, #F6F2FF 0%, #D9CCF5 100%);
  color: #1B0742;
}

.g-tile-wrong {
  background: #2E2150;
}
.g-tile-wrong .g-tile-face {
  background: linear-gradient(180deg, #6B5A90 0%, #3A2A66 100%);
  color: #C9B8F0;
  border-color: rgba(255, 255, 255, 0.15);
}

.g-tile-misplaced {
  background: #A85E06;
}
.g-tile-misplaced .g-tile-face {
  background: linear-gradient(180deg, #FFD56A 0%, #FF9E3D 100%);
  color: #2A1A08;
}

.g-tile-correct {
  background: #2E9E68;
}
.g-tile-correct .g-tile-face {
  background: linear-gradient(180deg, #7BE0A8 0%, #57C08A 100%);
  color: #0B3A24;
}

.g-tile-hinted {
  background: #A85E06;
}
.g-tile-hinted .g-tile-face {
  background: linear-gradient(180deg, #FFE777 0%, #FDCD20 100%);
  color: #3A1E00;
}

.bp-round-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bp-submit-btn {
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 50%, var(--bp-accent-2) 100%);
  border-radius: 18px;
  min-height: 44px;
  padding: 10px 22px;
  color: var(--bp-accent-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(198, 255, 61, 0.4);
}

.bp-submit-btn:active:not(:disabled) {
  transform: translateY(2px);
}

.bp-hint-btn {
  background: var(--bp-surface-3);
  border: 1px solid var(--bp-stroke);
  border-radius: 14px;
  min-height: 44px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bp-gold-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-hint-cost {
  color: var(--bp-gold-hi);
}

.bp-round-legend {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  color: var(--bp-text-muted);
  text-align: center;
}

.g-keyboard-wrap {
  padding: 4px 10px calc(12px + env(safe-area-inset-bottom, 0px)) 10px;
  z-index: 4;
  flex: none;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(14, 8, 36, 0.92) 0%, rgba(14, 8, 36, 0.98) 100%);
}

.g-keyboard {
  background: var(--bp-surface);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 22px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  direction: rtl;
}

.g-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.g-keyboard-row-delete {
  margin-top: 2px;
}

.g-key {
  flex: 1;
  max-width: 44px;
  min-width: 36px;
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2E2150 0%, #241A40 100%);
  border: 1px solid var(--bp-stroke);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-primary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.g-key:active:not(:disabled) {
  transform: translateY(2px);
}

.g-key-correct {
  background: linear-gradient(180deg, #7BE0A8 0%, #57C08A 100%);
  color: #0B3A24;
  border-color: #7BE0A8;
}

.g-key-misplaced {
  background: linear-gradient(180deg, #FFD56A 0%, #FF9E3D 100%);
  color: #2A1A08;
  border-color: #FFD56A;
}

.g-key-wrong {
  background: #1B1038;
  color: var(--bp-text-muted);
  opacity: 0.5;
}

.g-key-delete {
  max-width: 160px;
  min-height: 44px;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--bp-magenta-hi) 0%, var(--bp-magenta) 100%);
  border: 1px solid #FF7FB5;
  border-radius: 10px;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 61, 139, 0.4);
}

.bp-results-screen {
  overflow: hidden;
}

.bp-results-content {
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-results-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

.bp-results-coins-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bp-plus-burst {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid #FFF3C4;
  box-shadow: 0 0 8px rgba(255, 198, 75, 0.8);
}

.bp-victory-chip {
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  border-radius: 16px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bp-gold-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 198, 75, 0.6);
}

.bp-rank-chip {
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 16px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-results-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-results-kicker {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-gold-hi);
  font-weight: 700;
}

.bp-results-title {
  margin: 0;
  font-family: 'Lalezar', Tahoma, Arial, sans-serif;
  font-size: 38px;
  color: var(--bp-text-primary);
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(255, 198, 75, 0.4);
}

.bp-results-sub {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: var(--bp-text-secondary);
}

.bp-stage-podium {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-winner-halo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
}

.bp-trophy-ring {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-gold-ink);
  box-shadow: 0 0 24px rgba(255, 198, 75, 0.7);
}

.bp-podium-ground {
  position: relative;
}

.bp-podium {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 190px;
  direction: ltr;
}

.bp-podium-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bp-podium-p1 { width: 114px; }
.bp-podium-p2 { width: 104px; }
.bp-podium-p3 { width: 104px; }

.bp-podium-avatar {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
}

.bp-podium-av-p1 {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--bp-cyan-hi) 0%, var(--bp-cyan) 100%);
  color: var(--bp-cyan-ink);
  font-size: 22px;
  border: 2px solid #DFF8FF;
  box-shadow: 0 0 16px rgba(61, 224, 255, 0.7);
}

.bp-podium-av-p2 {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  font-size: 17px;
  border: 2px solid #FFE9B0;
}

.bp-podium-av-p3 {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bp-magenta-hi) 0%, var(--bp-magenta) 100%);
  color: #fff;
  font-size: 16px;
  border: 2px solid #FF7FB5;
}

.bp-you-badge {
  position: absolute;
  top: -6px;
  left: -4px;
  background: var(--bp-cyan);
  color: var(--bp-cyan-ink);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
}

.bp-podium-name {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.bp-podium-block {
  width: 100%;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  gap: 2px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-podium-block-p1 {
  height: 120px;
  background: linear-gradient(180deg, #FFD56A 0%, #FF9E3D 100%);
  color: var(--bp-gold-ink);
  box-shadow: 0 4px 20px rgba(255, 198, 75, 0.4);
}

.bp-podium-block-p2 {
  height: 90px;
  background: #2E2150;
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-primary);
}

.bp-podium-block-p3 {
  height: 75px;
  background: #2E2150;
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-primary);
}

.bp-podium-place {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.bp-podium-pts {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.bp-prize-chip {
  margin-top: 6px;
  width: 100%;
  background: rgba(42, 26, 8, 0.78);
  border: 1px solid rgba(255, 213, 106, 0.65);
  color: var(--bp-gold-hi);
  border-radius: 12px;
  padding: 5px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-prize-chip-caption {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #FFEFC2;
  white-space: nowrap;
}

.bp-prize-chip-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #FFD56A;
  font-variant-numeric: tabular-nums;
}

.bp-fourth-row {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(58, 42, 102, 0.95) 0%, rgba(36, 26, 64, 0.98) 100%);
  border: 1px solid var(--bp-stroke);
  border-radius: 0 0 18px 18px;
  padding: 10px 14px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(14, 8, 36, 0.5);
}

.bp-fourth-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bp-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--bp-text-muted);
}

.bp-fourth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--bp-violet-hi) 0%, var(--bp-violet) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.bp-fourth-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bp-fourth-name {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.bp-fourth-solved {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  color: var(--bp-text-muted);
}

.bp-fourth-score-chip {
  background: var(--bp-surface);
  border-radius: 10px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-fourth-score-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-fourth-score-label {
  font-size: 9px;
  color: var(--bp-text-muted);
}

.bp-loot-strip {
  background: linear-gradient(135deg, rgba(46, 33, 80, 0.9) 0%, rgba(27, 16, 56, 0.9) 100%);
  border: 1.5px solid var(--bp-gold);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(255, 198, 75, 0.25);
}

.bp-loot-lead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-loot-chest-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-loot-info {
  display: flex;
  flex-direction: column;
}

.bp-loot-label {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--bp-text-primary);
}

.bp-loot-sub {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-secondary);
}

.bp-loot-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-loot-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--bp-gold-hi);
}

.bp-loot-unit {
  font-size: 11px;
  color: var(--bp-gold);
}

.bp-locked-prize {
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-lock-ring {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--bp-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-text-muted);
}

.bp-lock-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bp-lock-title {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--bp-text-primary);
}

.bp-lock-sub {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  color: var(--bp-text-muted);
}

.bp-missed-chip {
  background: #160E2E;
  border: 1px solid #7C6EA6;
  color: #F6F2FF;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-results-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bp-cta-primary {
  width: 100%;
  min-height: 48px;
  height: 52px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 50%, var(--bp-accent-2) 100%);
  color: var(--bp-accent-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  box-shadow: 0 4px 18px rgba(198, 255, 61, 0.45);
}

.bp-cta-secondary {
  width: 100%;
  min-height: 44px;
  height: 44px;
  border-radius: 18px;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.bp-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 6px 20px;
  z-index: 2;
  flex: none;
  direction: ltr;
}

.bp-sub-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-sub-title-group h1 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-primary);
}

.bp-profile-scroll,
.bp-shop-scroll {
  padding: 8px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-profile-card,
.bp-name-card,
.bp-badges-card {
  background: linear-gradient(180deg, rgba(46, 33, 80, 0.85) 0%, rgba(27, 16, 56, 0.95) 100%);
  border: 1.5px solid var(--bp-stroke);
  border-radius: 24px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-profile-avatar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bp-profile-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
}

.bp-profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(138, 75, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 900;
  font-size: 42px;
}

.bp-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--bp-accent);
  color: var(--bp-accent-ink);
  border: 2px solid var(--bp-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bp-player-handle {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--bp-text-secondary);
  direction: ltr;
  unicode-bidi: isolate;
}

.bp-name-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--bp-text-primary);
}

.bp-name-input {
  flex: 1;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.bp-name-save-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 50%, var(--bp-accent-2) 100%);
  border: 1.5px solid #F4FFB8;
  color: var(--bp-accent-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 4px 14px rgba(198, 255, 61, 0.35);
}

.bp-name-save-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(198, 255, 61, 0.3);
}

.bp-name-status {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-accent);
  text-align: center;
  line-height: 1.5;
}

.bp-name-status-error {
  color: #ff6b8b;
}

.bp-badges-empty {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-text-secondary);
}

.bp-badges-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bp-badge-count-pill {
  background: var(--bp-surface-3);
  border-radius: 10px;
  padding: 4px 8px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--bp-text-secondary);
}

.bp-badges-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bp-gold-hi);
}

.bp-badges-title-group h2 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-badge-grid {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 10px;
}

.bp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bp-badge-md .bp-badge-medal {
  width: 64px;
  height: 64px;
  border-radius: 32px;
}

.bp-badge-sm .bp-badge-medal {
  width: 52px;
  height: 52px;
  border-radius: 26px;
}

.bp-badge-medal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bp-badge-shine {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.bp-badge-gold .bp-badge-medal {
  background: linear-gradient(180deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  border: 1.5px solid #FFE9B0;
}

.bp-badge-silver .bp-badge-medal {
  background: linear-gradient(180deg, #E6E9F2 0%, #9DA5B8 100%);
  color: #171B26;
  border: 1.5px solid #FFFFFF;
}

.bp-badge-bronze .bp-badge-medal {
  background: linear-gradient(180deg, #E8A36E 0%, #AD5E2B 100%);
  color: #2E1200;
  border: 1.5px solid #FFD3B0;
}

.bp-badge-digit {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.bp-badge-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-badge-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.bp-badge-period {
  font-size: 9px;
  font-weight: 600;
  color: var(--bp-gold-hi);
}

.bp-avatar-modal {
  width: min(100%, 354px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-stroke);
  border-radius: 32px;
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-avatar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bp-avatar-head h2 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--bp-text-primary);
  text-align: right;
}

.bp-avatar-head p {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-secondary);
  text-align: right;
}

.bp-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bp-avatar-option {
  min-height: 82px;
  height: 82px;
  border-radius: 20px;
  background: var(--bp-surface);
  border: 2px solid var(--bp-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.bp-avatar-option-active {
  border-color: var(--bp-accent);
  box-shadow: 0 0 14px rgba(198, 255, 61, 0.5);
}

.bp-avatar-status {
  margin: -6px 0 0;
  color: var(--bp-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.bp-avatar-face {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.bp-shop-row,
.bp-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bp-shop-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 16px;
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.bp-shop-status button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-primary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.bp-shop-card {
  background: linear-gradient(180deg, #2A1A4A 0%, #1A0D3A 100%);
  border: 2px solid #8A4BFF;
  border-radius: 24px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 174px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-shop-card-free {
  background: linear-gradient(180deg, #3A2410 0%, #2A1408 100%);
  border-color: var(--bp-gold);
}

.bp-shop-card-violet {
  border-color: var(--bp-violet);
}

.bp-shop-card-magenta {
  background: linear-gradient(180deg, #3A1040 0%, #1A0D3A 100%);
  border-color: var(--bp-magenta);
}

.bp-shop-card-gold {
  border-color: var(--bp-gold);
}

.bp-shop-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp-shop-amount {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--bp-text-primary);
  line-height: 1.1;
}

.bp-shop-unit {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--bp-text-muted);
}

.bp-shop-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-shop-art svg {
  display: block;
}

.bp-shop-art-free {
  width: 68px;
  height: 68px;
  border: 2px solid #FFF2A8;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  box-shadow: 0 4px 10px rgba(255, 198, 75, 0.47);
}

.bp-shop-art-violet {
  width: 90px;
  height: 90px;
  overflow: hidden;
}

.bp-shop-art-magenta {
  width: 94px;
  height: 94px;
  overflow: hidden;
}

.bp-shop-art-gold {
  width: 83.72px;
  height: 101.2px;
  overflow: hidden;
}

.bp-shop-buy {
  width: 100%;
  min-height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bp-success-hi) 0%, var(--bp-success) 100%);
  color: var(--bp-success-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(87, 192, 138, 0.4);
}

.bp-shop-card-free .bp-shop-buy {
  background: linear-gradient(180deg, var(--bp-accent-hi) 0%, var(--bp-accent) 100%);
  color: var(--bp-accent-ink);
  box-shadow: 0 3px 10px rgba(198, 255, 61, 0.4);
}

.bp-shop-card-violet .bp-shop-buy,
.bp-shop-card-magenta .bp-shop-buy,
.bp-shop-card-gold .bp-shop-buy {
  background: linear-gradient(180deg, var(--bp-success-hi) 0%, var(--bp-success) 100%);
}

.bp-shop-buy-disabled {
  background: var(--bp-surface-2) !important;
  color: var(--bp-text-muted) !important;
  box-shadow: none !important;
}

.bp-shop-more {
  margin: 4px 0 0 0;
  text-align: center;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-text-muted);
}

.bp-claim-card {
  position: relative;
  width: min(100%, 354px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-gold);
  border-radius: 36px;
  padding: 18px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 198, 75, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bp-claim-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(87, 192, 138, 0.2);
  border: 1px solid var(--bp-success);
  border-radius: 10px;
  padding: 4px 8px;
  color: var(--bp-success-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.bp-claim-verified-failed {
  background: rgba(255, 90, 120, 0.16);
  border-color: var(--bp-danger, #ff5a78);
  color: var(--bp-danger, #ff8aa0);
}

.bp-claim-stage {
  position: relative;
  width: 120px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-claim-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bp-claim-ring-outer {
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 198, 75, 0.35);
  animation: bpScanPulse 2s ease-in-out infinite;
}

.bp-claim-ring-inner {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 198, 75, 0.35) 0%, rgba(255, 198, 75, 0) 70%);
}

.bp-claim-hero {
  width: 68px;
  height: 68px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--bp-gold-hi) 0%, var(--bp-gold-2) 100%);
  color: var(--bp-gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFF3C4;
  box-shadow: 0 0 20px rgba(255, 198, 75, 0.6);
}

.bp-claim-card h2 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--bp-text-primary);
}

.bp-claim-card p {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  color: var(--bp-text-secondary);
}

.bp-claim-summary {
  width: 100%;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bp-claim-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--bp-gold-hi);
}

.bp-claim-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-text-secondary);
  direction: ltr;
}

.bp-claim-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-cyan-hi);
}

.bp-claim-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bp-claim-price {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: var(--bp-text-muted);
}

.bp-claim-hint {
  font-size: 11px !important;
  color: var(--bp-text-muted) !important;
}

.bp-lb-modal {
  width: min(100%, 354px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-stroke);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.bp-lb-modal-head {
  padding: 14px 16px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bp-lb-modal-heading h2 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--bp-text-primary);
  text-align: right;
}

.bp-lb-modal-heading p {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--bp-text-secondary);
  text-align: right;
}

.bp-lb-tabs {
  padding: 0 14px 10px 14px;
  display: flex;
  gap: 4px;
  background: rgba(23, 14, 51, 0.6);
}

.bp-lb-tab {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  background: var(--bp-surface);
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.bp-lb-tab-active {
  background: var(--bp-violet);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(138, 75, 255, 0.4);
}

.bp-lb-prize-summary {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(58, 42, 102, 0.4);
  direction: ltr;
}

.bp-lb-prize-copy strong {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--bp-gold-hi);
}

.bp-lb-scroll {
  padding: 6px 14px;
  flex: 1;
  min-height: 120px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bp-lb-range {
  margin: 0 0 6px 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-text-muted);
  text-align: right;
}

.bp-lb-scroll-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--bp-violet) var(--bp-surface);
}

.bp-lb-you-bar {
  padding: 8px 14px 14px 14px;
  background: rgba(14, 8, 36, 0.95);
  border-top: 1px solid var(--bp-stroke);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-lb-you-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--bp-cyan-hi);
}

.bp-player-modal {
  width: min(100%, 354px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, #2A1152 0%, #1A0D3A 60%, #0E0824 100%);
  border: 2px solid var(--bp-stroke);
  border-radius: 32px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bp-player-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bp-player-modal-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-text-primary);
}

.bp-player-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bp-player-avatar {
  width: 84px;
  height: 84px;
  border-radius: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(138, 75, 255, 0.4);
}

.bp-player-identity h3 {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--bp-text-primary);
}

.bp-player-handle {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-text-secondary);
}

.bp-player-stats {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.bp-player-stats span {
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 9px;
  padding: 4px 8px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-gold-hi);
}

.bp-player-badges {
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-player-badges-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-player-badges-head span {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--bp-text-secondary);
}

.bp-player-badges-head div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bp-gold-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.bp-public-profile-loading,
.bp-public-profile-private,
.bp-public-profile-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-public-profile-private h3 {
  margin: 4px 0 0;
  color: var(--bp-text-primary);
  font-size: 16px;
  font-weight: 800;
}

.bp-public-profile-private p,
.bp-public-profile-error p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.bp-report-player-box {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--bp-stroke);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-report-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-stroke);
  color: #ff8fa3;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.bp-report-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.bp-report-actions button {
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-text-primary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.bp-report-status {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.bp-report-status-ok {
  color: var(--bp-accent);
}

.bp-report-status-error {
  color: #ff6b8b;
}

.bp-badge-row {
  display: flex;
  justify-content: space-around;
  gap: 6px;
}

.bp-app {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bp-network-status {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(7, 4, 20, 0.88);
  border: 1px solid var(--bp-stroke);
  color: var(--bp-cyan-hi);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 380px) {
  .bp-logo-tiles {
    gap: 4px;
  }
  .bp-tile-face {
    width: 44px;
    height: 48px;
  }
  .bp-tile-glyph {
    font-size: 22px;
  }
  .g-tile {
    width: 36px;
    flex-basis: 36px;
  }
  .g-tile-letter {
    font-size: 17px;
  }
  .g-key {
    font-size: 13px;
  }
  .bp-coin-pill {
    padding: 4px 8px;
    min-height: 38px;
  }
  .bp-coin-val {
    font-size: 13px;
  }
  .bp-profile-chip {
    padding: 4px 6px;
  }
  .bp-profile-name {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .bp-home-top {
    padding: 4px 10px 0 10px;
  }
  .bp-home-content {
    padding: 4px 10px;
  }
  .g-tile {
    width: 32px;
    flex-basis: 32px;
  }
  .g-tile-letter {
    font-size: 15px;
  }
  .g-key {
    font-size: 12px;
    padding: 0 1px;
  }
}

@media (max-height: 760px) {
  .bp-hero {
    padding: 6px 16px 2px 16px;
  }
  .bp-board-box {
    padding: 10px 12px 8px 12px;
    gap: 6px;
  }
  .bp-tile-face {
    width: 46px;
    height: 48px;
  }
  .bp-home-content {
    gap: 10px;
    padding: 4px 16px;
  }
  .bp-arcade-btn {
    min-height: 72px;
    height: 72px;
  }
  .bp-arcade-label {
    font-size: 22px;
  }
  .bp-btn-cost-lg {
    font-size: 15px;
  }
  .bp-btn-cost-lg .bp-btn-cost-icon {
    width: 24px;
    height: 24px;
  }
  .bp-tab-bar {
    height: 64px;
  }
  .bp-round-card {
    padding: 6px;
  }
  .bp-results-title {
    font-size: 30px;
  }
  .bp-podium {
    min-height: 150px;
  }
  .bp-podium-block-p1 {
    height: 96px;
  }
  .bp-podium-block-p2 {
    height: 72px;
  }
  .bp-podium-block-p3 {
    height: 60px;
  }
}

@media (max-height: 620px) {
  .bp-hero {
    display: none;
  }
  .bp-arcade-btn {
    min-height: 52px;
    height: 52px;
  }
  .bp-arcade-body {
    gap: 10px;
  }
  .bp-arcade-label {
    font-size: 18px;
  }
  .bp-btn-cost-lg {
    padding: 3px;
    padding-inline-start: 11px;
    font-size: 13px;
  }
  .bp-btn-cost-lg .bp-btn-cost-icon {
    width: 20px;
    height: 20px;
  }
  .bp-tab-bar {
    height: 52px;
  }
  .bp-tab {
    font-size: 10px;
    gap: 2px;
  }
  .bp-tab svg {
    width: 20px;
    height: 20px;
  }
  .bp-tab-wrap {
    padding: 4px 14px calc(6px + env(safe-area-inset-bottom, 0px)) 14px;
  }
  .g-key {
    min-height: 36px;
    height: 36px;
  }
  .g-keyboard {
    padding: 4px;
    gap: 3px;
    border-radius: 16px;
  }
  .g-keyboard-wrap {
    padding: 2px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
  }
  .bp-game-hud {
    padding: 4px 12px 2px 12px;
  }
  .bp-round-card {
    padding: 4px 6px;
    gap: 6px;
  }
  .bp-round-tiles {
    gap: 3px;
  }
  .bp-results-content {
    gap: 8px;
    padding: 2px 12px 12px 12px;
  }
  .bp-results-title {
    font-size: 22px;
  }
  .bp-results-sub {
    font-size: 11px;
  }
  .bp-podium {
    min-height: 110px;
    gap: 6px;
  }
  .bp-podium-block-p1 {
    height: 62px;
  }
  .bp-podium-block-p2 {
    height: 48px;
  }
  .bp-podium-block-p3 {
    height: 38px;
  }
  .bp-winner-halo {
    display: none;
  }
  .bp-loot-strip,
  .bp-locked-prize {
    padding: 8px 10px;
    gap: 6px;
  }
  .bp-cta-primary,
  .bp-cta-secondary {
    min-height: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 13px;
  }
  .bp-sub-header {
    padding: 4px 14px;
  }
  .bp-shop-scroll,
  .bp-profile-scroll {
    padding: 4px 12px 8px 12px;
    gap: 8px;
  }
  .bp-profile-card,
  .bp-name-card,
  .bp-badges-card {
    padding: 10px 12px;
    border-radius: 18px;
  }
  .bp-avatar-option {
    min-height: 68px;
    height: 68px;
  }
  .bp-avatar-face {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .bp-arena-card,
  .bp-coin-alert,
  .bp-claim-card,
  .bp-player-modal,
  .bp-avatar-modal {
    padding: 14px 12px;
    gap: 10px;
  }
  .bp-lb-modal {
    max-height: calc(100dvh - 24px);
  }
  .bp-lb-scroll {
    min-height: 100px;
    max-height: 200px;
  }
  .bp-lb-you-bar {
    padding: 6px 12px 10px 12px;
  }
  .bp-claim-stage {
    width: 84px;
    height: 78px;
  }
  .bp-claim-ring-outer {
    width: 78px;
    height: 78px;
  }
  .bp-claim-hero {
    width: 50px;
    height: 50px;
    border-radius: 25px;
  }
  .bp-empty-vault {
    width: 60px;
    height: 60px;
    border-radius: 30px;
  }
}

.bp-startup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bp-startup-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  animation: bp-startup-enter 180ms ease-out both;
}

.bp-startup-title {
  margin: 0;
  font-family: 'Lalezar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 44px;
  line-height: 1.2;
  color: var(--bp-accent, #c6ff3d);
  text-shadow: 0 0 24px rgba(61, 224, 255, 0.35);
}

.bp-startup-status {
  margin: 0;
  min-height: 20px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text-secondary, #a99ad1);
}

.bp-startup-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(58, 42, 102, 0.6);
  border: 1px solid var(--bp-stroke, #3b2c62);
  overflow: hidden;
}

.bp-startup-progress-fill {
  height: 100%;
  min-width: 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3de0ff, #c6ff3d);
  transition: width 220ms ease-out;
}

.bp-startup-percent {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-text-soft, #c9b8f0);
}

.bp-startup-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bp-startup-error p {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ff8fa8;
}

.bp-startup-retry {
  border: none;
  border-radius: 14px;
  padding: 10px 22px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111409;
  background: linear-gradient(180deg, #e8ff8a, #95d611);
  cursor: pointer;
}

@keyframes bp-startup-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-startup-panel {
    animation: none;
  }
  .bp-startup-progress-fill {
    transition: none;
  }
}
