@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;
  --bp-silver: #C4D2EA;
  --bp-silver-hi: #F1F6FF;
  --bp-silver-2: #7C8DAE;
  --bp-silver-ink: #172033;
  --bp-bronze: #E09A5F;
  --bp-bronze-hi: #FFCA96;
  --bp-bronze-2: #A05B2A;
  --bp-bronze-ink: #331808;
  --bp-round-card-h: 188px;
}

* {
  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: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 8px;
  padding: 6px 20px 0 20px;
  z-index: 10;
  flex: none;
  direction: ltr;
}

.bp-home-top > .bp-profile-chip {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

.bp-home-top > .bp-coin-pill {
  justify-self: start;
}

.bp-home-top > .bp-audio-controls {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin-right: 9px;
}

.bp-home-top .bp-audio-trigger {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(36, 26, 64, 0.35);
  box-shadow: none;
}

.bp-home-top .bp-audio-trigger svg {
  width: 15px;
  height: 15px;
}

.bp-home-top .bp-audio-popover {
  right: 0;
  left: auto;
}

.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-tab-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bp-tab-badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B 0%, #E01B4C 100%);
  border: 2px solid rgba(23, 14, 51, 1);
  box-shadow: 0 0 8px rgba(224, 27, 76, 0.8);
  animation: bpTabBadgePulse 1.6s ease-in-out infinite;
}

.bp-tab-active .bp-tab-badge {
  border-color: #C6FF3D;
}

@keyframes bpTabBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-tab-badge {
    animation: none;
  }
}

.bp-screen-shop {
  background:
    linear-gradient(180deg, rgba(255, 248, 224, 0.2), rgba(15, 92, 101, 0.38)),
    url('./assets/ui-reference/shop-courtyard-background.png') center / cover no-repeat;
  color: #fffdf2;
}

.bp-screen-shop::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 74, 83, 0.2), rgba(255, 229, 164, 0.08) 52%, rgba(5, 71, 79, 0.3));
  z-index: 0;
}

.bp-screen-shop .bp-glow,
.bp-screen-shop .bp-status-bar {
  display: none;
}

.bp-screen-shop .bp-sub-header {
  position: relative;
  padding: 26px 18px 10px;
  z-index: 2;
}

.bp-screen-shop .bp-coin-pill {
  min-width: 86px;
  height: 42px;
  padding: 4px 7px 4px 14px;
  border: 2px solid #f6cf54;
  border-radius: 24px;
  background: linear-gradient(180deg, #087a86, #045b68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 4px 10px rgba(4, 50, 54, 0.25);
  color: #fffaf0;
}

.bp-screen-shop .bp-coin-val {
  font-family: 'Lalezar', 'Estedad', sans-serif;
  font-size: 19px;
  line-height: 1;
}

.bp-screen-shop .bp-coin-icon-wrap {
  width: 31px;
  height: 31px;
  border: 1px solid #fff0a1;
  background: linear-gradient(145deg, #fff2a0, #f2a51a);
  color: #81530a;
  box-shadow: 0 2px 7px rgba(126, 74, 4, 0.38);
}

.bp-screen-shop .bp-sub-title-group {
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 2px solid #f6cf54;
  border-radius: 24px;
  background: linear-gradient(180deg, #087a86, #045b68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 10px rgba(4, 50, 54, 0.25);
}

.bp-screen-shop .bp-sub-title-group h1 {
  color: #fffdf2;
  font-family: 'Lalezar', 'Estedad', sans-serif;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 54, 61, 0.42);
}

.bp-screen-shop .bp-back-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #f6cf54;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff0a4, #e8a51a);
  color: #6d4805;
  box-shadow: 0 2px 6px rgba(77, 47, 0, 0.32);
}

.bp-screen-shop .bp-shop-scroll {
  position: relative;
  padding: 8px 18px 104px;
  gap: 12px;
  z-index: 1;
}

.bp-screen-shop .bp-shop-grid {
  direction: ltr;
  gap: 10px;
}


.bp-screen-shop .bp-shop-card {
  --shop-top: #008596;
  --shop-bottom: #00404f;
  direction: rtl;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 226px;
  padding: 15px 8px 9px;
  gap: 5px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: linear-gradient(155deg, var(--shop-top), var(--shop-bottom)) padding-box,
    linear-gradient(130deg, #fffbc0, #ffd45b 22%, #a75a08 48%, #ffdf79 73%, #fff3a2) border-box;
  box-shadow: inset 0 0 0 1px #805316, inset 0 2px 5px #ffffff60, inset 0 -6px 12px #0006, 0 3px 6px #4b350b55;
}
.bp-screen-shop .bp-shop-card-free { --shop-top: #ffc827; --shop-bottom: #b66c00; }
.bp-screen-shop .bp-shop-card-violet { --shop-top: #8c55e4; --shop-bottom: #3e178b; }
.bp-screen-shop .bp-shop-card-magenta { --shop-top: #f13a84; --shop-bottom: #a00845; }
.bp-screen-shop .bp-shop-card::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 19px;
  z-index: -1;
  opacity: .12;
  background: repeating-conic-gradient(from 45deg, transparent 0 25%, #fff5 0 50%) 0 0 / 9px 9px;
  mask-image: linear-gradient(#000, transparent);
  pointer-events: none;
}
.bp-screen-shop .bp-shop-card-head { gap: 3px; z-index: 1; }
.bp-screen-shop .bp-shop-amount {
  color: #fffdf3;
  font-family: 'Lalezar', 'Estedad', sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 2px 2px #301800aa;
}
.bp-screen-shop .bp-shop-unit {
  color: #fffdf3;
  font-size: 11px;
  line-height: 1.5;
  text-shadow: 0 2px 2px #30180088;
}
.bp-screen-shop .bp-shop-art {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 112px;
  flex: 0 0 112px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #825300;
}
.bp-screen-shop .bp-shop-art::before {
  content: '';
  position: absolute;
  inset: -8px 0;
  z-index: -1;
  background: radial-gradient(ellipse, #fff9a5bb 0%, #ffe23466 24%, #ffcf281f 47%, transparent 69%);
  pointer-events: none;
}
.bp-screen-shop .bp-shop-art::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 17px;
  top: 22%;
  left: 18%;
  background: #fffdd5;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 60%, 50% 100%, 38% 60%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px #fff19b);
  transform: rotate(12deg);
  pointer-events: none;
}
.bp-screen-shop .bp-shop-art svg {
  display: block;
  width: 148px;
  max-width: 100%;
  height: 112px;
  overflow: visible;
  transform: none;
  filter: drop-shadow(0 3px 2px #65380188) drop-shadow(0 0 5px #ffe35088);
}

.bp-screen-shop .bp-shop-pack-generated-art {
  display: block;
  width: 142px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #65380188) drop-shadow(0 0 5px #ffe35088);
  transform: scale(1.08);
}
.bp-screen-shop .bp-shop-card .bp-shop-buy {
  position: relative;
  z-index: 1;
  min-height: 39px;
  padding: 5px 4px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: linear-gradient(170deg, #76f940 0%, #12c42b 28%, #009524 60%, #006a27 100%) padding-box,
    linear-gradient(#fffbb4, #fffcd5 28%, #e0a532 77%, #ffdf77) border-box;
  color: #fffdf2;
  font-family: 'Lalezar', 'Estedad', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-shadow: 0 2px 2px #004a20;
  box-shadow: inset 0 2px 2px #c2ffaf99, inset 0 -2px 3px #00481788, 0 3px 5px #39250066;
}
.bp-screen-shop .bp-shop-card .bp-shop-buy:disabled {
  background: linear-gradient(#748775, #4a6051) padding-box, linear-gradient(#eedca2, #bca569) border-box !important;
  color: #fff9df !important;
  font-size: 12px;
}
.bp-screen-shop .bp-tab-wrap {
  position: relative;
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(7, 77, 84, 0.35) 45%);
  z-index: 3;
}

.bp-screen-shop .bp-tab-bar {
  height: 74px;
  border: 2px solid #f6cf54;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(5, 113, 123, 0.97), rgba(3, 83, 94, 0.97));
  box-shadow: 0 5px 14px rgba(3, 48, 55, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bp-screen-shop .bp-tab {
  color: rgba(255, 255, 246, 0.8);
  font-family: 'Lalezar', 'Estedad', sans-serif;
  font-size: 13px;
}

.bp-screen-shop .bp-tab-active {
  color: #fffef4;
  background: linear-gradient(180deg, #6bf52d, #12bd37);
  border: 2px solid #eaff9a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 9px rgba(0, 94, 25, 0.35);
}

@media (max-width: 350px) {
  .bp-screen-shop .bp-shop-card {
    min-height: 184px;
    border-radius: 21px;
  }

  .bp-screen-shop .bp-shop-amount {
    font-size: 21px;
  }

  .bp-screen-shop .bp-shop-art {
    transform: scale(0.88);
    margin: -5px 0;
  }
}

.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-loading-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(169, 124, 255, 0.16);
}

.bp-arena-loading-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: var(--bp-violet-hi);
  border-right-color: var(--bp-violet-hi);
  border-radius: 50%;
  animation: bpArenaLoadingSpin 1.2s linear infinite;
}

@keyframes bpArenaLoadingSpin {
  to { transform: rotate(360deg); }
}

.bp-arena-wait-note {
  margin: 0;
  padding: 0 8px;
  color: var(--bp-text-secondary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.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;
  flex: none;
  min-height: var(--bp-round-card-h);
  overflow: hidden;
  scroll-margin: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bp-round-card-locked {
  background: var(--bp-board);
}

.bp-round-card-past {
  background: var(--bp-board);
}

.bp-round-card-current {
  border-color: var(--bp-cyan);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61, 224, 255, 0.25);
}

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

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

.bp-round-players-grid:empty {
  display: none;
}

.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 {
  background-size: cover;
  background-position: center;
  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;
  min-height: 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: linear-gradient(180deg, #fff2ac 0%, #ffd45a 45%, #f2ac24 100%);
  border: 1px solid #ffe9a0;
  border-radius: 16px;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #492b06;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #fff7d2, 0 3px 0 #a66a12, 0 5px 18px rgba(255, 194, 57, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

@media (hover: hover) {
  .bp-hint-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 #fff7d2, 0 4px 0 #a66a12, 0 7px 24px rgba(255, 194, 57, 0.4);
  }
}

.bp-hint-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff7d2, 0 1px 0 #a66a12;
}

.bp-hint-btn:focus-visible {
  outline: 3px solid #fff2ac;
  outline-offset: 5px;
}

.bp-hint-btn:disabled {
  background: var(--bp-surface-3);
  border-color: var(--bp-stroke);
  color: var(--bp-text-muted);
  box-shadow: none;
}

.bp-hint-cnt {
  border-radius: 7px;
  padding: 2px 5px;
  background: rgba(73, 43, 6, 0.1);
  font-size: 11px;
}

.bp-hint-cost {
  color: inherit;
  font-size: 12px;
}

.bp-hint-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bp-onboarding-hint .bp-hint-btn:not(:disabled) {
  position: relative;
  border-color: var(--bp-gold-hi);
  outline: 2px solid var(--bp-gold-hi);
  outline-offset: 4px;
  animation: bp-hint-pulse 1.2s ease-in-out infinite;
}

.bp-onboarding-hint .bp-hint-btn:not(:disabled)::after {
  content: "👆";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  animation: bp-hint-bob 0.8s ease-in-out infinite;
}

@keyframes bp-hint-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(255, 210, 90, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 210, 90, 0.3), 0 0 24px rgba(255, 210, 90, 0.35);
  }
}

@keyframes bp-hint-bob {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-hint-btn {
    transition: none;
  }

  .bp-onboarding-hint .bp-hint-btn:not(:disabled) {
    animation: none;
    box-shadow: 0 0 0 6px rgba(255, 210, 90, 0.2);
  }
  .bp-onboarding-hint .bp-hint-btn:not(:disabled)::after {
    animation: none;
  }
}

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

.bp-round-legend.is-error {
  font-size: 12px;
  font-weight: 800;
  color: var(--bp-magenta-hi);
  animation: bp-legend-pop 260ms ease-out;
}

@keyframes bp-legend-pop {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  60% {
    opacity: 1;
    transform: translateY(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-round-legend.is-error {
    animation: none;
  }
}

.g-keyboard-wrap {
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  flex: none;
  position: sticky;
  bottom: 0;
  background: transparent;
}

.g-keyboard {
  position: relative;
  background: linear-gradient(135deg, #218c8c, #07535e 48%, #167681);
  border: 2px solid #f4d27d;
  border-radius: 22px;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 0 0 3px #126371, inset 0 0 0 4px #e1bb64, 0 3px 0 #063d47, 0 5px 12px #0005;
  direction: rtl;
}

.g-keyboard-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
}

.g-keyboard-row:has(.g-key-delete) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.g-keyboard-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  direction: ltr;
  gap: 12px;
  padding: 10px 4px 2px;
  margin-top: 3px;
  border-top: 1px solid #f4d27d55;
}

.g-keyboard-actions .bp-submit-btn,
.g-keyboard-actions .bp-hint-btn {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #ffe5a0;
  border-radius: 18px;
  white-space: nowrap;
}

.g-keyboard-actions .bp-submit-btn {
  color: #fffbea;
  background: linear-gradient(180deg, #c4ef83 0%, #45b84c 18%, #09843d 52%, #08622e 100%);
  box-shadow: inset 0 0 0 2px #287942, inset 0 3px 0 #ecffb999, 0 2px 0 #af8534, 0 4px 6px #002c3655;
  text-shadow: 0 1px 2px #164a24;
}

.g-keyboard-actions .bp-hint-btn {
  gap: 5px;
  font-size: 12px;
  color: #553307;
  background: linear-gradient(180deg, #fff1b2, #ffd76c 45%, #e8a82c 100%);
  box-shadow: inset 0 0 0 2px #edc06b, inset 0 3px 0 #fff8d8, 0 2px 0 #a66a12, 0 4px 6px #002c3655;
}

.g-keyboard-actions .bp-hint-cnt,
.g-keyboard-actions .bp-hint-price {
  background: #624006;
  color: #fff2cd;
  border-radius: 9px;
  padding: 3px 5px;
  font-size: 10px;
}

.g-keyboard-actions .bp-hint-cnt {
  order: 1;
}

.g-keyboard-actions .bp-hint-cost {
  font-size: 10px;
}

.g-keyboard-actions button:disabled {
  opacity: 0.55;
  filter: saturate(0.55);
}

@media (max-width: 360px) {
  .g-keyboard-actions {
    gap: 7px;
    padding-inline: 0;
  }
  .g-keyboard-actions .bp-hint-btn {
    gap: 3px;
    padding-inline: 4px;
    font-size: 11px;
  }
}

.g-key {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  min-height: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffced 0%, #f8f0d6 65%, #e8dbb7 100%);
  border: 1px solid #dbd1ad;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #ad9b70, 0 3px 3px #002f3b66;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075367;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

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

.g-key-correct {
  background: linear-gradient(180deg, #d3f79c, #81c949);
  color: #214d23;
  border-color: #b1de77;
}

.g-key-misplaced {
  background: linear-gradient(180deg, #fff0a1, #ffc648);
  color: #075367;
  border-color: #f5d371;
}

.g-key-wrong {
  background: linear-gradient(180deg, #92b5b5, #597e85);
  color: #fff;
  border-color: #9cbbbc;
  box-shadow: inset 0 1px 0 #c4d9d9, 0 2px 0 #355d65;
}

.g-key-delete {
  order: -1;
  grid-column: span 2;
  gap: 5px;
  direction: ltr;
  white-space: nowrap;
  font-size: 12px;
  background: linear-gradient(180deg, #ff9cd0, #f04d9b 60%, #d82c7f);
  border: 1px solid #ffc1e0;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffe2f1, 0 2px 0 #a92262, 0 0 8px #fa78bd66;
}

.g-key:disabled {
  cursor: default;
  filter: saturate(0.65);
}

.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);
  animation: bp-burst-pop 700ms cubic-bezier(0.2, 1.5, 0.4, 1) 420ms both;
}

@keyframes bp-burst-pop {
  0% {
    transform: translateY(8px) scale(0.4);
    opacity: 0;
  }
  55% { transform: translateY(-3px) scale(1.18); }
  100% {
    transform: none;
    opacity: 1;
  }
}

.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-celebrate .bp-results-title {
  background: linear-gradient(100deg, #FFF3D2 0%, #FFD56A 26%, #FFFFFF 42%, #FFD56A 58%, #FFB03A 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 16px rgba(255, 198, 75, 0.55));
  animation: bp-title-pop 560ms cubic-bezier(0.2, 1.3, 0.4, 1) both,
    bp-title-shine 3.8s linear 560ms infinite;
}

@keyframes bp-title-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  62% { transform: scale(1.07); }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bp-title-shine {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

.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-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.bp-confetti-bit {
  position: absolute;
  top: 0;
  left: var(--cx, 50%);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
  background: var(--bp-gold-hi);
  animation: bp-confetti-fall var(--ct, 2400ms) cubic-bezier(0.32, 0.15, 0.55, 1) both;
  animation-iteration-count: 2;
  animation-delay: var(--cd, 0ms);
}

.bp-confetti-bit:nth-child(5n + 2) { background: var(--bp-cyan); }
.bp-confetti-bit:nth-child(5n + 3) { background: var(--bp-magenta-hi); }
.bp-confetti-bit:nth-child(5n + 4) { background: var(--bp-accent); }
.bp-confetti-bit:nth-child(5n + 5) { background: var(--bp-silver-hi); }
.bp-confetti-bit:nth-child(3n) { width: 8px; height: 8px; border-radius: 50%; }
.bp-confetti-bit:nth-child(4n) { width: 5px; height: 13px; }
.bp-confetti-bit:nth-child(odd) { --drift: 16px; }
.bp-confetti-bit:nth-child(even) { --drift: -18px; }
.bp-confetti-bit:nth-child(3n + 1) { --spin: 720deg; }

@keyframes bp-confetti-fall {
  0% {
    transform: translate3d(0, -14px, 0) rotate(0deg);
    opacity: 0;
  }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% {
    transform: translate3d(var(--drift, 12px), 300px, 0) rotate(var(--spin, 460deg));
    opacity: 0;
  }
}

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

.bp-trophy-ring {
  position: relative;
  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-trophy-ring > * {
  position: relative;
  z-index: 1;
}

.bp-results-celebrate .bp-trophy-ring {
  animation: bp-trophy-pulse 2.4s ease-in-out infinite;
}

.bp-results-celebrate .bp-trophy-ring::before {
  content: "";
  position: absolute;
  inset: -21px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 213, 106, 0.42) 0deg 7deg,
    rgba(255, 213, 106, 0) 7deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 50%);
  mask: radial-gradient(circle, transparent 46%, #000 50%);
  animation: bp-trophy-rays 11s linear infinite;
  pointer-events: none;
}

@keyframes bp-trophy-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(255, 198, 75, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(255, 198, 75, 0.95);
  }
}

@keyframes bp-trophy-rays {
  to { transform: rotate(360deg); }
}

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

.bp-results-celebrate .bp-podium-ground::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 280px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 70%, rgba(255, 198, 75, 0.24) 0%, rgba(255, 198, 75, 0) 68%);
  pointer-events: none;
}

.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;
  animation: bp-podium-rise 640ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.bp-podium-p1 { width: 114px; animation-delay: 320ms; }
.bp-podium-p2 { width: 104px; animation-delay: 180ms; }
.bp-podium-p3 { width: 104px; animation-delay: 60ms; }

@keyframes bp-podium-rise {
  from {
    transform: translateY(26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.bp-podium-pending { opacity: 0.45; }

.bp-podium-column.bp-podium-pending {
  animation-name: bp-podium-rise-dim;
}

@keyframes bp-podium-rise-dim {
  from {
    transform: translateY(26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 0.45;
  }
}

.bp-podium-avatar {
  background-size: cover;
  background-position: center;
  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: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bp-gold) 0%, #D9701F 100%);
  color: var(--bp-gold-ink);
  font-size: 23px;
  border: 2px solid #FFF0C4;
  box-shadow: 0 0 0 3px rgba(255, 198, 75, 0.22), 0 0 20px rgba(255, 198, 75, 0.7);
}

.bp-podium-av-p2 {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--bp-silver-hi) 0%, var(--bp-silver-2) 100%);
  color: var(--bp-silver-ink);
  font-size: 18px;
  border: 2px solid #F6FAFF;
  box-shadow: 0 0 0 3px rgba(196, 210, 234, 0.16), 0 0 16px rgba(196, 210, 234, 0.45);
}

.bp-podium-av-p3 {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--bp-bronze-hi) 0%, var(--bp-bronze-2) 100%);
  color: var(--bp-bronze-ink);
  font-size: 17px;
  border: 2px solid #FFD9AE;
  box-shadow: 0 0 0 3px rgba(224, 154, 95, 0.16), 0 0 16px rgba(224, 154, 95, 0.45);
}

.bp-results-celebrate .bp-podium-av-p1::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 106, 0.8);
  animation: bp-winner-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes bp-winner-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70%,
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

.bp-you-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  background: linear-gradient(180deg, var(--bp-cyan-hi) 0%, var(--bp-cyan) 100%);
  color: var(--bp-cyan-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 9px;
  border: 1.5px solid var(--bp-bg-deep);
  box-shadow: 0 0 10px rgba(61, 224, 255, 0.5);
  white-space: nowrap;
}

.bp-podium-name {
  max-width: 100%;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(14, 8, 36, 0.85);
}

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

.bp-podium-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(90deg, rgba(10, 4, 26, 0.22) 0%, rgba(10, 4, 26, 0) 20%, rgba(10, 4, 26, 0) 80%, rgba(10, 4, 26, 0.22) 100%);
  pointer-events: none;
}

.bp-podium-block > * {
  position: relative;
  z-index: 1;
}

.bp-podium-block-p1 {
  height: 122px;
  background: linear-gradient(180deg, #FFD98A 0%, #FFBE3C 46%, #F58A28 100%);
  color: var(--bp-gold-ink);
  box-shadow: 0 6px 24px rgba(255, 198, 75, 0.45), inset 0 0 0 1px rgba(255, 244, 208, 0.7);
}

.bp-podium-block-p2 {
  height: 94px;
  background: linear-gradient(180deg, #DCE7F8 0%, var(--bp-silver) 46%, var(--bp-silver-2) 100%);
  color: var(--bp-silver-ink);
  box-shadow: 0 6px 20px rgba(180, 200, 232, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.bp-podium-block-p3 {
  height: 78px;
  background: linear-gradient(180deg, #F7C193 0%, var(--bp-bronze) 46%, var(--bp-bronze-2) 100%);
  color: var(--bp-bronze-ink);
  box-shadow: 0 6px 20px rgba(214, 138, 82, 0.32), inset 0 0 0 1px rgba(255, 224, 195, 0.6);
}

.bp-results-celebrate .bp-podium-block-p1::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 55%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0) 100%);
  animation: bp-block-sheen 3.6s ease-in-out 900ms infinite;
  pointer-events: none;
}

@keyframes bp-block-sheen {
  0% { transform: translateX(0); }
  38%,
  100% { transform: translateX(360%); }
}

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

.bp-podium-pts {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
}

.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;
  overflow: hidden;
  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-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(198, 166, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.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 {
  background-size: cover;
  background-position: center;
  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);
}

@media (prefers-reduced-motion: reduce) {
  .bp-confetti {
    display: none;
  }

  .bp-podium-column,
  .bp-plus-burst,
  .bp-results-celebrate .bp-results-title,
  .bp-results-celebrate .bp-trophy-ring,
  .bp-results-celebrate .bp-trophy-ring::before,
  .bp-results-celebrate .bp-podium-block-p1::after,
  .bp-results-celebrate .bp-podium-av-p1::after {
    animation: none;
  }

  .bp-results-celebrate .bp-podium-block-p1::after,
  .bp-results-celebrate .bp-podium-av-p1::after {
    display: none;
  }

  .bp-podium-column {
    opacity: 1;
  }

  .bp-podium-column.bp-podium-pending {
    opacity: 0.45;
  }

  .bp-results-celebrate .bp-results-title {
    opacity: 1;
    transform: none;
  }
}

.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-rewards-screen {
  background: radial-gradient(ellipse at 85% 10%, #6B1E8A66, transparent 65%), linear-gradient(160deg, var(--bp-bg-mid), var(--bp-bg-2) 50%, var(--bp-bg-deep));
}

.bp-rewards-screen .bp-glow-magenta {
  width: 260px;
  height: 260px;
  top: -80px;
  left: calc(50% - 130px);
  right: auto;
}

.bp-rewards-screen .bp-glow-cyan {
  width: 220px;
  height: 220px;
  top: 480px;
  background: #FF3D8B14;
}

.bp-rewards-screen .bp-glow-violet {
  display: none;
}

.bp-rewards-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.bp-rewards-content > * {
  flex-shrink: 0;
}

.bp-rewards-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bp-rewards-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bp-gold-hi);
  box-shadow: 0 0 16px #FFC64B77;
}

.bp-rewards-level {
  padding: 6px 18px;
  border-radius: 16px;
  border: 1.4px solid #FFF2C0;
  background: linear-gradient(160deg, var(--bp-gold-hi), var(--bp-gold-2));
  color: var(--bp-gold-ink);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 10px #FFC64B88;
}

.bp-rewards-xp {
  color: var(--bp-cyan);
  font-size: 56px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 18px #3DE0FF66;
}

.bp-rewards-hint,
.bp-rewards-title,
.bp-rewards-remaining {
  margin: 0;
  text-align: center;
}

.bp-rewards-hint {
  font-size: 14px;
  color: var(--bp-text-secondary);
}

.bp-rewards-title {
  color: var(--bp-white);
  font-size: 32px;
  font-weight: 900;
}

.bp-rewards-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-rewards-progress-labels {
  display: flex;
  justify-content: space-between;
  color: var(--bp-text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.bp-rewards-progress-labels span:last-child {
  color: var(--bp-cyan);
}

.bp-rewards-track {
  height: 18px;
  overflow: hidden;
  border: 1px solid #4A3578;
  border-radius: 9px;
  background: #130B28;
}

.bp-rewards-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bp-cyan-hi), var(--bp-cyan));
}

.bp-rewards-remaining {
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-text-muted);
}

.bp-rewards-level-up .bp-rewards-content {
  gap: 12px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.bp-rewards-level-up .bp-rewards-avatar {
  width: 84px;
  height: 84px;
}

.bp-rewards-level-up .bp-rewards-xp {
  font-size: 18px;
  font-weight: 800;
  text-shadow: none;
}

.bp-rewards-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border: 2px solid var(--bp-gold-hi);
  border-radius: 28px;
  background: linear-gradient(160deg, #4A3318, var(--bp-gold-ink));
  box-shadow: 0 10px 22px #FFC64B66;
  color: var(--bp-gold-hi);
}

.bp-rewards-prize h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.bp-rewards-coin {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #FFF2B8;
  background: linear-gradient(140deg, var(--bp-gold-hi), var(--bp-gold-2));
  color: var(--bp-gold-ink);
  box-shadow: 0 6px 18px #FFC64BAA;
}

.bp-rewards-amount {
  font-size: 40px;
  font-weight: 900;
  text-shadow: 0 0 12px #FFC64B88;
}

.bp-rewards-won {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #F2D795;
}

.bp-rewards-divider {
  width: 100%;
  height: 1px;
  background: #FFD56A44;
}

.bp-rewards-wallet {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #1A0D3A88;
}

.bp-rewards-wallet-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  font-size: 11px;
  color: #F2D795;
}

.bp-rewards-wallet-meta strong {
  color: var(--bp-gold-hi);
  font-size: 12px;
}

.bp-rewards-content .bp-rewards-continue {
  margin-top: auto;
  min-height: 56px;
  height: 56px;
  font-size: 18px;
  border: 1.8px solid #EEFFB0;
  box-shadow: 0 6px 16px #C6FF3D88;
  gap: 10px;
}

.bp-rewards-continue:disabled {
  opacity: 0.85;
}

.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;
  background-size: cover;
  background-position: center;
  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: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bp-avatar-option {
  flex: 0 0 72px;
  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;
  background-size: cover;
  background-position: center;
  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;
  background-size: cover;
  background-position: center;
  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: 17px;
  }
  .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: 15px;
    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-round-card-h: 170px;
  }
  .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-badge {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  .bp-tab-wrap {
    padding: 4px 14px calc(6px + env(safe-area-inset-bottom, 0px)) 14px;
  }
  .g-key {
    min-height: 34px;
    height: 34px;
    font-size: 16px;
  }
  .g-keyboard {
    padding: 8px 10px 10px;
    gap: 4px;
  }
  .g-keyboard-wrap {
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .g-key-delete {
    font-size: 11px;
  }
  .bp-game-hud {
    padding: 4px 12px 2px 12px;
  }
  .bp-round-card {
    padding: 4px 6px;
    gap: 6px;
    --bp-round-card-h: 146px;
  }
  .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 {
    min-height: 528px;
    max-height: calc(100dvh - 24px);
  }
  .bp-lb-scroll {
    min-height: 100px;
    max-height: 280px;
  }
  .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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-arena-loading-ring::after {
    animation: none;
  }
}

.bp-onboarding {
  display: contents;
}

.bp-coach {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1.5px solid rgba(198, 255, 61, 0.35);
  background: linear-gradient(180deg, rgba(58, 42, 102, 0.96), rgba(26, 13, 58, 0.96));
  box-shadow: 0 6px 20px rgba(7, 4, 20, 0.55);
  animation: bp-coach-in 220ms ease-out both;
}

.bp-coach-mentor {
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #3DE0FF 0%, #8A4BFF 100%);
  box-shadow: 0 0 0 2px rgba(198, 255, 61, 0.55);
}

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

.bp-coach-text {
  flex: 1 1 auto;
  margin: 0;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bp-text-primary);
}

.bp-coach-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111409;
  background: linear-gradient(180deg, #e8ff8a, #95d611);
  cursor: pointer;
}

@keyframes bp-key-coach {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 0 0 2px var(--bp-accent), 0 0 14px rgba(198, 255, 61, 0.65);
  }
  18% {
    transform: translateY(-3px) rotate(-3deg) scale(1.06);
    box-shadow: 0 0 0 3px var(--bp-accent), 0 0 24px rgba(198, 255, 61, 0.95);
  }
  36% {
    transform: translateY(1px) rotate(3deg) scale(1.03);
  }
  54% {
    transform: translateY(-2px) rotate(-2deg) scale(1.04);
  }
  72% {
    transform: translateY(0) rotate(1deg) scale(1.01);
  }
}

.g-key-coach {
  position: relative;
  transform-origin: center;
  box-shadow: 0 0 0 2px var(--bp-accent), 0 0 14px rgba(198, 255, 61, 0.65);
  animation: bp-key-coach 1250ms ease-in-out infinite;
}

.bp-break {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  justify-content: center;
  background: rgba(7, 4, 20, 0.9);
  backdrop-filter: blur(4px);
}

.bp-break-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.bp-break-word {
  position: absolute;
  font-family: 'Lalezar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 62px;
  line-height: 1.2;
  color: var(--bp-accent, #c6ff3d);
  text-shadow: 0 0 24px rgba(61, 224, 255, 0.45);
  animation: bp-break-word-in 420ms ease-out both, bp-break-word-out 620ms ease-in 1150ms both;
}

.bp-break-tiles {
  display: flex;
  gap: 6px;
}

.bp-break-tile {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1.2px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #F6F2FF 0%, #D9CCF5 100%);
  color: #1B0742;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  animation: bp-break-tile-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.bp-break-caption {
  margin: 0;
  max-width: 260px;
  text-align: center;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--bp-text-soft);
  animation: bp-coach-in 400ms ease-out 1500ms both;
}

@keyframes bp-break-word-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bp-break-word-out {
  to {
    opacity: 0;
    transform: scale(1.25);
    filter: blur(6px);
  }
}

@keyframes bp-break-tile-in {
  from {
    opacity: 0;
    transform: translateX(calc(var(--bp-break-offset) * (100% + 6px))) scale(0.55);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.bp-onboarding-sliding .bp-round-card-current .bp-round-tiles .g-tile-misplaced {
  animation: bp-tile-home 1500ms ease-in-out both;
  z-index: 3;
}

@keyframes bp-tile-home {
  0% {
    transform: translate(0, 0) scale(1);
  }
  14% {
    transform: translate(0, -30px) scale(1.12);
  }
  30% {
    transform: translate(calc(var(--bp-slide-slots) * (100% + 6px)), -30px) scale(1.12);
  }
  64% {
    transform: translate(calc(var(--bp-slide-slots) * (100% + 6px)), -30px) scale(1.12);
  }
  84% {
    transform: translate(0, -30px) scale(1.12);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.bp-onboard-modal {
  width: min(100%, 330px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-radius: 24px;
  border: 2px solid rgba(198, 255, 61, 0.45);
  background: linear-gradient(180deg, #2A1152, #1A0D3A 60%, #0E0824);
  box-shadow: 0 18px 50px rgba(7, 4, 20, 0.7);
  text-align: center;
}

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

.bp-onboard-title-peak {
  font-family: 'Lalezar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--bp-accent, #c6ff3d);
  text-shadow: 0 0 20px rgba(61, 224, 255, 0.35);
}

.bp-onboard-body {
  margin: 0;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bp-text-soft);
}

.bp-onboard-reward-coins {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-gold, #ffc64b);
}

.bp-onboard-reward-coins span {
  font-family: 'Lalezar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 30px;
}

.bp-lesson-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bp-lesson-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.bp-lesson-row .g-tile {
  flex: 0 0 40px;
  width: 40px;
}

.bp-lesson-text {
  flex: 1 1 auto;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--bp-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .bp-coach,
  .g-key-coach,
  .bp-break-word,
  .bp-break-caption,
  .bp-break-tile,
  .bp-onboarding-sliding .bp-round-card-current .bp-round-tiles .g-tile-misplaced {
    animation: none;
  }

  .bp-break-word {
    position: static;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .bp-break-stage {
    flex-direction: column;
    gap: 14px;
  }

  .bp-break-tile {
    opacity: 1;
    transform: none;
  }

  .g-key-coach {
    box-shadow: 0 0 0 3px var(--bp-accent);
  }
}

.bp-onboarding .bp-coach {
  margin: 0 16px 6px;
}

.bp-onboarding .bp-game-body {
  overflow-y: hidden;
}

@media (max-height: 620px) {
  .bp-onboarding .bp-round-card {
    min-height: 0;
  }

  .bp-onboarding .g-player {
    padding: 4px 3px;
  }

  .bp-onboarding .g-player-avatar {
    width: 24px;
    height: 24px;
  }

  .bp-onboarding .bp-round-play {
    padding-block: 6px;
    gap: 6px;
  }
}

.bp-reference-home {
  background: #d7d5a9 url('./assets/ui-reference/home-background.webp') center / cover;
  overflow-y: auto;
  --bp-text-soft: #fffced;
}

.bp-reference-home > .bp-glow { display: none; }
.bp-reference-home > .bp-status-bar { height: max(24px, env(safe-area-inset-top)); flex: 1 0 24px; max-height: 58px; }
.bp-reference-home .bp-home-top { padding: 0 22px; min-height: 68px; position: relative; margin-bottom: 16px; }
.bp-reference-home .bp-profile-name { font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif; font-size: 19px; font-weight: 700; color: white; text-shadow: 0 1px 1px #005363; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.bp-reference-home .bp-avatar-wrap, .bp-reference-home .bp-avatar-img { width: 58px; height: 58px; border-radius: 50%; }
.bp-reference-home .bp-avatar-img { border: 3px solid #ffe886; box-shadow: 0 0 0 1px #8b6628, inset 0 0 0 2px #006674, 0 3px 6px #43432966; }
.bp-reference-home .bp-level-badge { left: 12px; bottom: -10px; width: 30px; height: 30px; font-size: 14px; border: 2px solid #ffefa3; background: linear-gradient(#fff465, #ffc51e); }
.bp-reference-home .bp-coin-pill { background: linear-gradient(180deg, #087b8a 0%, #005d70 100%); border: 3px solid #ffd95b; border-radius: 26px; box-shadow: inset 0 0 0 2px #008e9e, 0 3px 5px #61562666; gap: 8px; padding: 4px 8px 4px 14px; min-height: 42px; }
.bp-reference-home .bp-coin-val { color: white; font-size: 16px; text-shadow: 0 1px 1px #00363f; }
.bp-reference-home .bp-coin-icon-wrap { width: 28px; height: 28px; background: linear-gradient(#fff765, #ffc827); color: #574000; border: 2px solid #ffe68b; }
.bp-reference-home .bp-coin-pill-low { outline: 2px solid #d34453; }
.bp-reference-home .bp-home-top > .bp-audio-controls { display: none; }
.bp-reference-home .bp-audio-trigger { width: 23px; height: 23px; color: #006675; background: #fff9dfbd; }
.bp-reference-home .bp-home-top .bp-audio-popover { right: auto; left: 0; }
.bp-reference-home .bp-hero { padding: 0 18px; margin: 12px 0 14px; }
.bp-reference-home .bp-board-box { padding: 25px 20px 17px; gap: 12px; border: 4px solid #f6d15c; border-radius: 28px; background: linear-gradient(180deg, #087d8c 0%, #005d70 100%); box-shadow: inset 0 0 0 2px #00b2c0, inset 0 0 0 5px #006072, 0 4px 8px #47442155; }
.bp-reference-home .bp-board-art, .bp-reference-home .bp-board-veil { display: none; }
.bp-reference-home .bp-logo-tiles { gap: 6px; }
.bp-reference-home .bp-tile-base { flex: 1; min-width: 0; background: none; padding: 0; }
.bp-reference-home .bp-tile-face { width: 100%; height: auto; aspect-ratio: 1; border: 3px solid #ffe06a; border-radius: 21px; box-shadow: inset 0 3px 5px #fff8, 0 5px 3px #00384466; }
.bp-reference-home .bp-tile-face-gold { background: linear-gradient(150deg, #fff66b 0%, #ffd42f 44%, #ffad12 100%); }
.bp-reference-home .bp-tile-face-magenta { background: linear-gradient(150deg, #ffb8d2 0%, #ff65a1 46%, #f23480 100%); }
.bp-reference-home .bp-tile-face-cyan { background: linear-gradient(150deg, #b5f8ff 0%, #53dff1 46%, #05aeca 100%); }
.bp-reference-home .bp-tile-face-lime { background: linear-gradient(150deg, #edff9a 0%, #bdf82d 46%, #74d20a 100%); }
.bp-reference-home .bp-tile-face-violet { background: linear-gradient(150deg, #e3c9ff 0%, #b789f3 46%, #7f42d9 100%); }
.bp-reference-home .bp-tile-glyph { font-size: clamp(24px, 8vw, 38px); }
.bp-reference-home .bp-tagline { color: white; font-size: clamp(11px, 3.2vw, 14px); font-weight: 700; text-shadow: 0 2px 2px #004451; }
.bp-reference-home .bp-home-content { padding: 0 18px; gap: 15px; flex: 1 0 auto; overflow: visible; justify-content: flex-start; }
.bp-reference-home .bp-lb-card { min-height: 188px; padding: 12px 11px 13px; gap: 8px; border: 3px solid #f1d77a; border-radius: 24px; background: linear-gradient(180deg, #fffbed 0%, #fff5d8 100%); box-shadow: inset 0 0 0 2px #00a1b1, inset 0 0 0 5px #fff, 0 4px 8px #47442155; flex: 1; }
.bp-reference-home .bp-lb-card-head { min-height: 29px; }
.bp-reference-home .bp-lb-title-btn { gap: 4px; font-size: clamp(13px, 3.8vw, 17px); }
.bp-reference-home .bp-lb-title { color: #006477; }
.bp-reference-home .bp-lb-title-btn svg { color: #b38310; width: 23px; height: 23px; }
.bp-reference-home .bp-lb-countdown { background: linear-gradient(180deg, #087d8c, #005d70); border: 2px solid #f1c94a; color: #fff; padding: 6px 9px; font-size: 9px; }
.bp-reference-home .bp-lb-list { gap: 5px; flex: 1; }
.bp-reference-home .bp-lb-row { min-height: 38px; height: auto; flex: 1; padding: 5px 8px; border: 2px solid #cdd0e2; background: linear-gradient(180deg, #f2f0fa, #e2e2f0); border-radius: 18px; box-shadow: inset 0 2px 3px #fff; }
.bp-reference-home .bp-lb-row-you { background: linear-gradient(180deg, #098a99, #006678); border-color: #55efff; box-shadow: inset 0 2px 3px #ffffff88, 0 0 0 1px #f4d35b; }
.bp-reference-home .bp-lb-name, .bp-reference-home .bp-lb-score { color: #4a466e; font-size: 11px; }
.bp-reference-home .bp-lb-row-you .bp-lb-name, .bp-reference-home .bp-lb-row-you .bp-lb-score { color: white; }
.bp-reference-home .bp-lb-rank { width: 27px; height: 27px; border-radius: 50%; font-size: 12px; }
.bp-reference-home .bp-lb-loading { color: #006477; min-height: 150px; }
.bp-reference-home .bp-arcade-shell { background: none; box-shadow: none; padding: 0; margin-top: auto; }
.bp-reference-home .bp-arcade-btn { height: 78px; min-height: 78px; background: linear-gradient(180deg, #e4ff57 0%, #b2f51c 50%, #7fe313 100%); border: 4px solid #f4d15d; border-radius: 30px; box-shadow: inset 0 0 0 2px #65bd0d, inset 0 4px 4px #fff8, 0 4px 7px #53502b66; color: #064c19; }
.bp-reference-home .bp-arcade-btn-searching, .bp-reference-home .bp-arcade-btn-ready { opacity: 1; }
.bp-reference-home .bp-arcade-btn-idle:disabled { filter: saturate(.4); }
.bp-reference-home .bp-arcade-shine { display: none; }
.bp-reference-home .bp-arcade-label { font-size: 25px; }
.bp-reference-home .bp-tab-wrap { background: none; padding: 15px 18px max(20px, env(safe-area-inset-bottom)); }
.bp-reference-home .bp-tab-bar { height: 78px; padding: 4px 18px; border: 4px solid #f1d15c; background: linear-gradient(180deg, #087d8c, #005d70); box-shadow: inset 0 0 0 2px #00a1b1, 0 4px 7px #53502b66; gap: 12px; }
.bp-reference-home .bp-tab { color: white; font-size: 14px; gap: 3px; border-radius: 22px; text-shadow: 0 2px 2px #004858; }
.bp-reference-home .bp-tab svg { width: 27px; height: 27px; }
.bp-reference-home .bp-tab-active { background: linear-gradient(180deg, #fff66b, #ffc82a); color: #16471a; border: 2px solid #f7dc73; box-shadow: inset 0 3px 5px #fff8, 0 3px 5px #003d4766; text-shadow: none; }
.bp-reference-home .bp-treasure { background: #fff7df; color: #006477; border: 2px solid #efcb63; padding: 12px; }
.bp-reference-home .bp-treasure-copy h3, .bp-reference-home .bp-treasure-copy p { color: #006477; }
@media (max-height: 700px) {
  .bp-reference-home > .bp-status-bar { height: max(12px, env(safe-area-inset-top)); min-height: 12px; flex: none; }
  .bp-reference-home .bp-home-top { margin-bottom: 8px; }
  .bp-reference-home .bp-hero { margin-top: 10px; margin-bottom: 10px; }
  .bp-reference-home .bp-board-box { padding: 15px 20px 12px; gap: 8px; }
  .bp-reference-home .bp-lb-card { min-height: 194px; padding: 14px; gap: 8px; }
  .bp-reference-home .bp-lb-card .bp-lb-row { min-height: 40px; }
  .bp-reference-home .bp-home-content { gap: 10px; }
  .bp-reference-home .bp-arcade-btn { height: 66px; min-height: 66px; }
  .bp-reference-home .bp-tab-wrap { padding-top: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .bp-reference-home .bp-tab-bar { height: 65px; }
}


.bp-game-screen {
  --game-gold: #edcc80;
  background: linear-gradient(#0b657344, #063b5366), url('./assets/ui-reference/home-background.webp') center / cover;
}
.bp-game-screen > .bp-glow { display: none; }
.bp-game-screen .bp-game-hud { gap: 10px; padding-inline: 18px; }
.bp-game-screen .g-hud-pill,
.bp-game-screen .g-round-badge {
  position: relative;
  background: linear-gradient(155deg, #258391, #005060 65%, #003a4b);
  border: 2px solid var(--game-gold);
  box-shadow: inset 0 0 0 2px #087082, inset 0 0 0 3px #f8e4a6, 0 2px 3px #002d4680;
}
.bp-game-screen .g-hud-pill { min-width: 0; gap: 6px; padding: 5px 8px; }
.bp-game-screen .g-hud-pill::before,
.bp-game-screen .g-hud-pill::after,
.bp-game-screen .g-round-badge::before,
.bp-game-screen .g-round-badge::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  top: calc(50% - 4px);
  transform: rotate(45deg);
  background: #087082;
  border: 1px solid #f5d78c;
  pointer-events: none;
}
.bp-game-screen .g-hud-pill::before,
.bp-game-screen .g-round-badge::before { left: -5px; }
.bp-game-screen .g-hud-pill::after,
.bp-game-screen .g-round-badge::after { right: -5px; }
.bp-game-screen .g-hud-pill-value,
.bp-game-screen .g-hud-pill-clock { color: #fff9e8; font-size: clamp(11px, 3.2vw, 16px); }
.bp-game-screen .g-hud-pill-icon { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 2px 2px #fff6c6, 0 2px 3px #001c32; }
.bp-game-screen .g-hud-pill-timer-icon { color: #ffe293; }
.bp-game-screen .bp-audio-trigger { background: linear-gradient(#218794, #064c60); color: #ffe5a0; border: 1px solid #e7c875; }
.bp-game-screen .bp-round-progress { gap: 6px; padding-block: 10px; }
.bp-game-screen .bp-round-dot {
  position: relative;
  width: 44px;
  height: 38px;
  border-radius: 16px;
  border: 2px solid #ebc976;
  background: linear-gradient(155deg, #ffffff55, #b0d4d522 45%, #064c5d88);
  backdrop-filter: blur(8px);
  color: #fffbed;
  box-shadow: inset 0 0 0 1px #fff4bd, 0 2px 2px #06495d88;
  font-size: 15px;
}
.bp-game-screen .bp-round-dot::after {
  content: '';
  position: absolute;
  right: -5px;
  width: 6px;
  height: 6px;
  border: 1px solid #b88630;
  background: #ffe4a0;
  transform: rotate(45deg);
}
.bp-game-screen .bp-round-dot-active { background: linear-gradient(#a9f6fc, #33cee8 60%, #18a8c2); color: #064858; }
.bp-game-screen .bp-round-dot-done { background: linear-gradient(#cbf68b, #65c43d 55%, #228944); }
.bp-game-screen .bp-round-card {
  position: relative;
  background: linear-gradient(120deg, #187e8a, #00495c);
  border: 2px solid #f1ce7b;
  box-shadow: inset 0 0 0 2px #086778, inset 0 0 0 3px #f8dfa0, 0 4px 10px #00374755;
  padding: 5px;
  gap: 5px;
  height: auto;
}
.bp-game-screen .bp-round-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid #ffedb980;
  border-radius: 17px;
  pointer-events: none;
}
.bp-game-screen .bp-round-play {
  background: linear-gradient(#fff7e4aa, #fff7e4aa), #faf1d8 url('./assets/ui-reference/game-parchment.png') center / 360px;
  border: 1px solid #ddb762;
  border-radius: 16px;
  padding: 12px 8px;
  gap: 10px;
}
.bp-game-screen .bp-round-players { padding: 2px 0; }
.bp-game-screen .g-player {
  background: linear-gradient(145deg, #26808b88, #00495caa);
  border: 1px solid #b6d6c4;
  box-shadow: inset 0 1px 0 #f7df9e55;
  border-radius: 14px;
  padding: 6px 3px;
}
.bp-game-screen .g-player-active { border-color: #ffe196; box-shadow: inset 0 0 0 1px #ffdc7d88, 0 0 7px #ffdc7d33; }
.bp-game-screen .g-player-idle { opacity: 0.8; }
.bp-game-screen .g-player-avatar { width: 28px; height: 28px; border: 1px solid #fff5c5; border-radius: 50%; box-shadow: inset 0 2px 2px #ffffff88, 0 2px 3px #002c3d; }
.bp-game-screen .g-player-name { color: #fff8df; overflow-wrap: anywhere; line-height: 1.4; }
.bp-game-screen .g-player-wait { color: #fff0bf; }
.bp-game-screen .g-round-badge { padding: 6px 12px; }
.bp-game-screen .g-round-badge-title { color: #fffced; font-size: 13px; }
.bp-game-screen .g-round-badge-sub { color: #d4ece5; }
.bp-game-screen .bp-round-cat { color: #075363; font-size: 18px; font-weight: 700; }
.bp-game-screen .bp-round-tiles { gap: 5px; }
.bp-game-screen .g-tile {
  flex: 0 1 58px;
  width: 58px;
  padding: 2px;
  border: 1px solid #ad8233;
  background: #f8e4a6;
  border-radius: 13px;
  box-shadow: 0 2px 2px #77511a55;
}
.bp-game-screen .g-tile-face { border: 1px solid #086174; border-radius: 10px; box-shadow: inset 0 2px 1px #ffffff99; }
.bp-game-screen .g-tile-idle .g-tile-face { background: #faf3dd99; }
.bp-game-screen .g-tile-typed .g-tile-face { background: linear-gradient(145deg, #47bbae, #087f78 60%, #006563); color: #fffdf0; }
.bp-game-screen .g-tile-correct .g-tile-face { background: linear-gradient(145deg, #b4ef87, #43ac62); color: #134d34; }
.bp-game-screen .g-tile-wrong .g-tile-face { background: linear-gradient(#9ab8b7, #54767c); color: #fff; }
.bp-game-screen .g-tile-misplaced .g-tile-face,
.bp-game-screen .g-tile-hinted .g-tile-face { background: linear-gradient(#fff0a4, #edbd45); color: #68470b; }
.bp-game-screen .bp-round-legend { color: #075363; }
.bp-game-screen .bp-round-legend.is-error { color: #a12b32; }
.bp-game-screen .bp-round-card-locked .bp-round-play { background-color: #e8e2ca; }
@media (max-width: 360px) {
  .bp-game-screen .bp-game-hud { gap: 7px; padding-inline: 12px; }
  .bp-game-screen .g-hud-pill { gap: 4px; padding-inline: 6px; }
  .bp-game-screen .g-hud-pill-icon { width: 24px; height: 24px; }
  .bp-game-screen .bp-round-players-grid { grid-template-columns: 52px; }
  .bp-game-screen .bp-round-play { padding-inline: 5px; }
  .bp-game-screen .g-tile-letter { font-size: 19px; }
}

.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) {
  --bp-bg: #075463;
  --bp-bg-2: #074553;
  --bp-bg-mid: #197783;
  --bp-bg-deep: #033644;
  --bp-board: #075361;
  --bp-surface: #126371;
  --bp-surface-2: #185d69;
  --bp-surface-3: #267d85;
  --bp-stroke: #c5a75f;
  --bp-text-primary: #fff9e9;
  --bp-text-secondary: #d8e8df;
  --bp-text-muted: #b8d1ca;
  --bp-text-soft: #e3eee1;
  --bp-accent: #39a44e;
  --bp-accent-hi: #a4d777;
  --bp-accent-2: #13703b;
  --bp-accent-ink: #fffceb;
  --bp-cyan: #56b6bf;
  --bp-cyan-hi: #b4e6df;
  --bp-cyan-2: #258491;
  --bp-violet: #427f85;
  --bp-violet-hi: #bbdbd2;
  --bp-violet-2: #26616c;
  --bp-violet-ink: #053c49;
  --match-paper: linear-gradient(#fff7e4cc, #fff7e4cc), url('./assets/ui-reference/game-parchment.png') center / 360px;
  --match-teal: linear-gradient(150deg, #278c95, #075563 65%, #033e4d);
  --match-frame: inset 0 0 0 2px #086778, inset 0 0 0 3px #f8dfa0, 0 4px 10px #00374744;
}
:is(.bp-results-screen, .bp-rewards-screen) {
  background: linear-gradient(#073e5377, #073e53bb), url('./assets/ui-reference/home-background.webp') center / cover;
}
:is(.bp-results-screen, .bp-rewards-screen) > .bp-glow { display: none; }
:is(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) .bp-audio-popover {
  background: var(--match-teal);
  border: 2px solid #edcc80;
  box-shadow: var(--match-frame);
  color: #fff9e9;
}
.bp-game-screen :is(.bp-audio-option, .bp-audio-close) { background: #ffffff12; color: #fff3cc; border-color: #edcc8055; }
.bp-game-screen .bp-audio-option[aria-pressed='true'] span:last-child { color: #c9f1aa; }
.bp-game-screen .bp-coach {
  background: var(--match-paper);
  border: 2px solid #d8b769;
  box-shadow: inset 0 0 0 1px #fff8d9, 0 3px 8px #00374744;
}
.bp-game-screen .bp-coach-text { color: #075363; }
.bp-game-screen .bp-coach-mentor { background: #177782; box-shadow: 0 0 0 2px #d8b769; }
.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) .bp-modal-overlay { background: #002f40aa; backdrop-filter: blur(5px); }
.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) .bp-network-status {
  background: #fff0ce;
  color: #704b0e;
  border: 1px solid #d8b769;
  box-shadow: 0 2px 6px #00374733;
}
.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) :is(.bp-cta-primary, .bp-coach-action) {
  background: linear-gradient(#b5df86, #349c4a 30%, #086b3b);
  color: #fffbed;
  border: 1px solid #ffe2a0;
  box-shadow: inset 0 0 0 2px #377e46, 0 3px 0 #805e2e, 0 4px 8px #00374744;
  text-shadow: 0 1px 1px #174b32;
}
.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) .bp-cta-secondary {
  background: var(--match-teal);
  border: 1px solid #e3c67f;
  color: #fff3cd;
  box-shadow: inset 0 1px 0 #e8f5cf77, 0 2px 4px #00374744;
}
.bp-results-screen :is(.bp-results-head, .bp-stage-podium, .bp-loot-strip, .bp-locked-prize),
.bp-rewards-screen .bp-rewards-prize {
  border: 2px solid #e5c67d;
  border-radius: 22px;
  background: var(--match-teal);
  box-shadow: var(--match-frame);
  padding: 16px;
}
.bp-results-screen .bp-results-head { background: var(--match-paper); }
.bp-results-screen :is(.bp-results-title, .bp-results-kicker, .bp-results-sub) {
  color: #075363;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
  background: none;
}
.bp-results-screen :is(.g-hud-pill, .bp-fourth-row) {
  background: var(--match-teal);
  border: 1px solid #edcc80;
  box-shadow: inset 0 0 0 1px #f8dfa066, 0 2px 4px #00374744;
}
.bp-results-screen :is(.bp-trophy-ring, .bp-podium-avatar, .bp-podium-block, .bp-loot-chest-icon, .bp-you-badge),
.bp-rewards-screen :is(.bp-rewards-avatar, .bp-rewards-level, .bp-rewards-coin) {
  box-shadow: inset 0 1px 0 #fff7ceaa, 0 3px 6px #00374755;
}
.bp-results-screen .bp-trophy-ring { animation: none; }
.bp-results-screen .bp-trophy-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: url('/assets/results/generated/trophy-medallion.png') center / contain no-repeat;
  filter: drop-shadow(0 5px 8px #00374766);
}
.bp-results-screen .bp-trophy-ring > svg { display: none; }
.bp-results-screen .bp-loot-chest-icon {
  background: url('/assets/results/generated/coin-stack.png') center / 82% auto no-repeat;
}
.bp-results-screen .bp-loot-chest-icon > svg { display: none; }
.bp-results-screen .bp-results-head::before {
  content: "";
  display: block;
  width: 82px;
  height: 38px;
  margin: -10px auto 2px;
  background: url('/assets/results/generated/crown-accent.png') center / contain no-repeat;
}
.bp-results-screen .bp-trophy-ring::before,
.bp-results-screen .bp-podium-av-p1::after,
.bp-results-screen .bp-podium-block-p1::after,
.bp-results-screen .bp-podium-ground::before { display: none; }
.bp-results-screen .bp-podium-block { border: 1px solid #f3d591; }
.bp-results-screen .bp-podium-block-p1 { background: linear-gradient(#ffe6a5, #deb35f); }
.bp-results-screen .bp-podium-block-p2 { background: linear-gradient(#e6efe7, #92b9b5); }
.bp-results-screen .bp-podium-block-p3 { background: linear-gradient(#edcd9e, #b78551); }
.bp-results-screen .bp-podium-name { text-shadow: none; }
.bp-results-screen :is(.bp-loot-amount, .bp-results-title, .bp-prize-chip-amount) { text-shadow: none; }
.bp-results-screen .bp-fourth-score-chip { background: #003c4b; border-color: #cfb26e; }
.bp-results-screen .bp-prize-chip { background: #075361; color: #fff0bd; border-color: #e4c378; box-shadow: none; }
.bp-rewards-screen .bp-rewards-content { background: linear-gradient(#063f5055, #063f5088); }
.bp-rewards-screen :is(.bp-rewards-xp, .bp-rewards-title, .bp-rewards-amount) { color: #fff0bc; text-shadow: none; }
.bp-rewards-screen .bp-rewards-progress {
  background: var(--match-paper);
  border: 1px solid #e5c67d;
  border-radius: 18px;
  padding: 16px;
}
.bp-rewards-screen .bp-rewards-progress-labels,
.bp-rewards-screen .bp-rewards-progress-labels span:last-child { color: #075363; }
.bp-rewards-screen .bp-rewards-track { background: #cbd5bd; border-color: #aa975e; }
.bp-rewards-screen .bp-rewards-fill { background: linear-gradient(#83c984, #208a63); }
.bp-rewards-screen .bp-rewards-wallet { background: #003b4a99; border: 1px solid #cfb26e66; flex-wrap: wrap; }
.bp-rewards-screen .bp-rewards-remaining { color: #e5eee0; }
.bp-results-screen .bp-share-note { color: #fff2cc; }
@media (max-width: 360px) {
  .bp-results-screen .bp-stage-podium { padding: 12px 8px; }
  .bp-results-screen .bp-podium-column { min-width: 0; flex: 1; }
  .bp-results-screen .bp-prize-chip { padding-inline: 3px; }
}
.bp-rewards-screen .bp-coin-pill {
  background: var(--match-teal);
  border-color: #e3c67f;
  box-shadow: inset 0 1px 0 #fff2bd66, 0 2px 4px #00374744;
}
.bp-game-screen .bp-break-stage { background: #003e4de6; }
.bp-game-screen .bp-break-tile { background: linear-gradient(#fff7e4, #eaddb8); color: #075363; border-color: #d8b769; }
.bp-game-screen .g-key-coach { animation: none; outline: 2px solid #e6ad35; outline-offset: 1px; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #ad9b70; }
.bp-onboarding .bp-game-screen .g-key-coach { animation: bp-key-coach 1250ms ease-in-out infinite; }
.bp-onboarding-hint .bp-game-screen .bp-hint-btn:not(:disabled) { animation: none; outline-color: #e6ad35; }
.bp-onboarding-hint .bp-game-screen .bp-hint-btn:not(:disabled)::after { animation: none; border-color: #e6ad35; }
body:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) { background: #073b47; }

:is(.bp-screen, .bp-modal-overlay) {
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .bp-onboarding .bp-game-screen .g-key-coach {
    animation: none;
  }
}

:is(.bp-screen-shop, .bp-reference-home, .bp-screen-profile, .bp-game-screen, .bp-results-screen, .bp-rewards-screen) {
  background: linear-gradient(#06455566, #06455588), url('/assets/ui-reference/home-background.webp') center / cover;
}

:is(.bp-profile-card, .bp-name-card, .bp-badges-card, .bp-avatar-modal, .bp-arena-card, .bp-coin-alert, .bp-modal-dialog) {
  background: linear-gradient(#fff8e9eF, #f8edcfF5), url('/assets/ui-reference/game-parchment.png') center / 360px;
  border: 2px solid #e5c67d;
  border-radius: 26px;
  box-shadow: inset 0 0 0 2px #fff7d6, 0 5px 14px #00374755;
  color: #075363;
}

:is(.bp-profile-card, .bp-name-card, .bp-badges-card) :is(h1, h2, h3, p, span, label) {
  color: #075363;
  text-shadow: none;
}

:is(.bp-profile-card, .bp-name-card, .bp-badges-card, .bp-avatar-modal, .bp-arena-card, .bp-coin-alert) :is(.bp-cta-primary, .bp-name-save-btn, .bp-buy-coins-btn, .bp-arena-action-btn) {
  background: linear-gradient(#7ee75b, #13ad43 45%, #08723b);
  border: 2px solid #f9df91;
  color: #fffdf0;
  box-shadow: inset 0 1px 0 #efffc0, 0 3px 0 #8a682f, 0 5px 9px #00374744;
}

:is(.bp-modal-close, .bp-arena-close, .bp-alert-close) {
  background: #075b6d;
  border: 2px solid #e7c975;
  color: #fff8e5;
  border-radius: 50%;
}

.bp-avatar-option {
  background: #087187;
  border: 2px solid #d7b767;
  border-radius: 22px;
}

.bp-avatar-option-active {
  border-color: #c9ff47;
  box-shadow: 0 0 0 3px #f3d26b, 0 0 18px #b5f22f;
}

.bp-name-input-row {
  background: #075c6d;
  border: 2px solid #d7b767;
}

.bp-name-input { color: #fff8e9; }

.bp-arena-status-dot { background: #b8ef32; box-shadow: 0 0 10px #b8ef32; }
.bp-arena-frac { background: #075b6d; color: #fff8e9; border: 1px solid #e7c975; border-radius: 16px; padding: 5px 10px; }
.bp-arena-slot :is(.bp-arena-who, .bp-arena-rank) { text-shadow: none; }
.bp-arena-rank { background: linear-gradient(#ffe58a, #e6a42f); color: #68400b; border: 1px solid #fff0b2; }
.bp-ticket { background: #075b6d; border-color: #e7c975; }

:is(.bp-shop-card, .bp-shop-row) {
  border: 2px solid #e5c67d;
  box-shadow: inset 0 0 0 1px #fff6cf, 0 4px 10px #00374744;
}
.bp-screen-shop .bp-shop-card { background: #075b6d; }
.bp-screen-shop .bp-shop-card :is(.bp-shop-amount, .bp-shop-unit) { color: #fff7df; }

.bp-rewards-screen .bp-rewards-hero { background: transparent; }
.bp-rewards-screen .bp-rewards-level,
.bp-rewards-screen .bp-rewards-xp { color: #075363; text-shadow: none; }
.bp-rewards-screen .bp-rewards-title { color: #075363; text-shadow: none; }
.bp-rewards-screen .bp-rewards-progress { background: #fff8e9eF; }
.bp-rewards-screen .bp-rewards-track { height: 20px; border: 2px solid #d7b767; border-radius: 12px; background: #d8dfce; }
.bp-rewards-screen .bp-rewards-fill { background: linear-gradient(90deg, #31b9db, #65e9f2); border-radius: 10px; }
.bp-rewards-screen .bp-rewards-continue { min-height: 56px; border-radius: 30px; }

:root {
  --bp-bg: #064653;
  --bp-bg-2: #075766;
  --bp-bg-mid: #0a7180;
  --bp-bg-deep: #032f3c;
  --bp-board: #075b6a;
  --bp-surface: #0a6472;
  --bp-surface-2: #0d7180;
  --bp-surface-3: #138391;
  --bp-stroke: #e7c85d;
  --bp-text-primary: #fff9e8;
  --bp-text-secondary: #d7eee8;
  --bp-text-muted: #a7d0cc;
  --bp-text-soft: #f0f4dc;
  --bp-accent: #69ef36;
  --bp-accent-hi: #b9ff6b;
  --bp-accent-2: #14b83a;
  --bp-accent-ink: #064b22;
  --bp-gold: #f4d25c;
  --bp-gold-hi: #fff095;
  --bp-gold-2: #e6a51c;
  --bp-gold-ink: #62420a;
  --bp-cyan: #55dbe0;
  --bp-cyan-hi: #a9f2ed;
  --bp-violet: #3b9aa0;
  --bp-violet-hi: #d0efdc;
  --bp-violet-2: #23717b;
  --bp-violet-ink: #063d49;
  --bp-success: #6ff05f;
  --bp-success-hi: #baf89c;
  --bp-success-2: #1ab74d;
  --bp-success-ink: #064b22;
}

.bp-app,
.bp-app:has(.bp-game-screen, .bp-results-screen, .bp-rewards-screen) {
  --bp-bg: #064653;
  --bp-bg-2: #075766;
  --bp-bg-mid: #0a7180;
  --bp-bg-deep: #032f3c;
  --bp-board: #075b6a;
  --bp-surface: #0a6472;
  --bp-surface-2: #0d7180;
  --bp-surface-3: #138391;
  --bp-stroke: #e7c85d;
  --bp-text-primary: #fff9e8;
  --bp-text-secondary: #d7eee8;
  --bp-text-muted: #a7d0cc;
  --bp-text-soft: #f0f4dc;
  --bp-accent: #69ef36;
  --bp-accent-hi: #b9ff6b;
  --bp-accent-2: #14b83a;
  --bp-accent-ink: #064b22;
  --bp-cyan: #55dbe0;
  --bp-cyan-hi: #a9f2ed;
  --bp-violet: #3b9aa0;
  --bp-violet-hi: #d0efdc;
  --bp-violet-2: #23717b;
  --bp-violet-ink: #063d49;
}

body,
#app {
  background: #032f3c !important;
}

:is(.bp-screen, .bp-screen-shop, .bp-reference-home, .bp-screen-profile, .bp-game-screen, .bp-results-screen, .bp-rewards-screen) {
  background: linear-gradient(180deg, rgba(3, 52, 63, 0.25), rgba(3, 52, 63, 0.62)), url('/assets/ui-reference/home-background.webp') center / cover no-repeat !important;
  color: var(--bp-text-primary);
}

:is(.bp-screen, .bp-modal-overlay) {
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
}

:is(.bp-status-bar, .bp-screen-shop .bp-status-bar, .bp-reference-home > .bp-status-bar) {
  display: block !important;
  height: max(18px, env(safe-area-inset-top, 0px)) !important;
  min-height: 18px !important;
  flex: none !important;
}

:is(.bp-home-top, .bp-sub-header) {
  min-height: 66px;
  padding: 10px 18px 8px !important;
  z-index: 10;
}

.bp-home-top {
  margin: 0 !important;
}

.bp-home-top .bp-profile-name,
.bp-sub-title-group h1 {
  color: var(--bp-text-primary) !important;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif !important;
  text-shadow: 0 2px 2px rgba(0, 45, 56, 0.45) !important;
}

.bp-sub-title-group {
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 2px solid var(--bp-gold);
  border-radius: 24px;
  background: linear-gradient(180deg, #087d8c, #075668);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 45, 56, 0.25);
}

.bp-sub-title-group h1 {
  font-size: 21px !important;
  line-height: 1 !important;
}

.bp-back-btn {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid var(--bp-gold) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #fff0a4, #e8a51a) !important;
  color: var(--bp-gold-ink) !important;
  box-shadow: 0 2px 6px rgba(77, 47, 0, 0.32) !important;
}

:is(.bp-coin-pill, .bp-home-top .bp-coin-pill, .bp-screen-shop .bp-coin-pill) {
  min-height: 42px;
  padding: 4px 8px 4px 14px;
  border: 2px solid var(--bp-gold) !important;
  border-radius: 24px;
  background: linear-gradient(180deg, #087d8c, #075668) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 45, 56, 0.3) !important;
}

:is(.bp-coin-val, .bp-screen-shop .bp-coin-val) {
  color: var(--bp-text-primary) !important;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif !important;
  font-size: 16px !important;
  text-shadow: 0 1px 1px rgba(0, 45, 56, 0.45);
}

.bp-coin-icon-wrap {
  width: 29px !important;
  height: 29px !important;
  border: 1px solid #fff0a1 !important;
  background: linear-gradient(145deg, #fff2a0, #f2a51a) !important;
  color: #81530a !important;
  box-shadow: 0 2px 7px rgba(126, 74, 4, 0.38) !important;
}

.bp-profile-chip {
  color: var(--bp-text-primary) !important;
}

.bp-avatar-img,
.bp-profile-avatar-large {
  border-color: var(--bp-gold) !important;
  box-shadow: 0 0 0 1px rgba(0, 73, 84, 0.9), 0 4px 12px rgba(0, 45, 56, 0.35) !important;
}

:is(.bp-tab-wrap, .bp-screen-shop .bp-tab-wrap, .bp-reference-home .bp-tab-wrap) {
  padding: 10px 18px max(16px, env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, transparent, rgba(3, 48, 58, 0.34)) !important;
}

:is(.bp-tab-bar, .bp-screen-shop .bp-tab-bar, .bp-reference-home .bp-tab-bar) {
  height: 74px !important;
  padding: 4px 8px !important;
  gap: 8px !important;
  border: 3px solid var(--bp-gold) !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #087d8c, #075668) !important;
  box-shadow: inset 0 0 0 2px rgba(0, 174, 190, 0.55), 0 5px 14px rgba(3, 48, 55, 0.34) !important;
}

:is(.bp-tab, .bp-screen-shop .bp-tab, .bp-reference-home .bp-tab) {
  color: rgba(255, 255, 246, 0.9) !important;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif !important;
  font-size: 13px !important;
  gap: 3px !important;
  border-radius: 22px !important;
  text-shadow: 0 2px 2px rgba(0, 72, 88, 0.8) !important;
}

:is(.bp-tab-active, .bp-screen-shop .bp-tab-active, .bp-reference-home .bp-tab-active) {
  color: var(--bp-accent-ink) !important;
  background: linear-gradient(180deg, #76f940, #12bd37) !important;
  border: 2px solid #eaff9a !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 9px rgba(0, 94, 25, 0.35) !important;
  text-shadow: none !important;
}

:is(.bp-tab, .bp-screen-shop .bp-tab, .bp-reference-home .bp-tab) svg {
  width: 25px !important;
  height: 25px !important;
}

.bp-tab-badge {
  border-color: #075668 !important;
}

.bp-tab-active .bp-tab-badge {
  border-color: #76f940 !important;
}

:is(.bp-lb-card, .bp-treasure, .bp-profile-card, .bp-name-card, .bp-badges-card, .bp-round-card, .bp-results-head, .bp-stage-podium, .bp-loot-strip, .bp-locked-prize, .bp-rewards-prize, .bp-rewards-progress, .bp-shop-card) {
  background: linear-gradient(155deg, rgba(10, 123, 135, 0.96), rgba(5, 74, 89, 0.98)) !important;
  border: 2px solid var(--bp-gold) !important;
  border-radius: 24px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 5px 14px rgba(0, 45, 56, 0.34) !important;
  color: var(--bp-text-primary) !important;
}

:is(.bp-lb-card, .bp-treasure, .bp-profile-card, .bp-name-card, .bp-badges-card, .bp-shop-card) :is(h1, h2, h3, p, span, label, strong, button) {
  color: var(--bp-text-primary);
}

:is(.bp-lb-title, .bp-treasure-copy h3, .bp-treasure-copy p, .bp-lb-name, .bp-lb-score, .bp-lb-loading) {
  color: var(--bp-text-primary) !important;
}

.bp-reference-home .bp-home-content {
  padding-inline: 18px !important;
}

.bp-reference-home .bp-lb-row {
  background: rgba(4, 66, 81, 0.72) !important;
  border: 1px solid rgba(244, 210, 92, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.bp-reference-home .bp-lb-row-you {
  background: linear-gradient(180deg, #0b8e98, #056a78) !important;
  border-color: var(--bp-cyan) !important;
}

.bp-reference-home .bp-lb-name,
.bp-reference-home .bp-lb-score,
.bp-reference-home .bp-lb-row-you .bp-lb-name,
.bp-reference-home .bp-lb-row-you .bp-lb-score {
  color: var(--bp-text-primary) !important;
}

:is(.bp-name-input-row, .bp-report-actions button, .bp-report-trigger-btn) {
  background: rgba(4, 66, 81, 0.72) !important;
  border-color: rgba(244, 210, 92, 0.7) !important;
  color: var(--bp-text-primary) !important;
}

:is(.bp-name-save-btn, .bp-cta-primary, .bp-shop-buy, .bp-arcade-btn) {
  background: linear-gradient(170deg, #76f940 0%, #12c42b 42%, #009524 100%) !important;
  border: 2px solid #eaff9a !important;
  color: #fffdf2 !important;
  box-shadow: inset 0 2px 2px rgba(194, 255, 175, 0.6), 0 3px 8px rgba(0, 94, 25, 0.35) !important;
}

:is(.bp-cta-secondary, .bp-back-btn, .bp-modal-close, .bp-arena-close, .bp-alert-close) {
  border-color: var(--bp-gold) !important;
}

.bp-results-screen .bp-results-head,
.bp-results-screen .bp-results-head::before {
  background-color: transparent;
}

.bp-results-screen :is(.bp-results-title, .bp-results-kicker, .bp-results-sub),
.bp-rewards-screen :is(.bp-rewards-title, .bp-rewards-hint, .bp-rewards-level, .bp-rewards-xp, .bp-rewards-remaining, .bp-rewards-progress-labels) {
  color: var(--bp-text-primary) !important;
  text-shadow: 0 2px 2px rgba(0, 45, 56, 0.45) !important;
}

.bp-rewards-screen .bp-rewards-content {
  background: transparent !important;
}

.bp-rewards-screen .bp-rewards-progress {
  background: rgba(255, 248, 224, 0.92) !important;
  color: #075363 !important;
}

.bp-rewards-screen .bp-rewards-progress-labels {
  color: #075363 !important;
  text-shadow: none !important;
}

.bp-rewards-screen .bp-rewards-track {
  border-color: #d7b767 !important;
  background: #d8dfce !important;
}

.bp-rewards-screen .bp-rewards-fill {
  background: linear-gradient(90deg, #31b9db, #65e9f2) !important;
}

.bp-shop-scroll,
.bp-profile-scroll {
  padding-bottom: 104px !important;
}

@media (max-width: 380px) {
  :is(.bp-tab-bar, .bp-screen-shop .bp-tab-bar, .bp-reference-home .bp-tab-bar) {
    height: 68px !important;
  }
}

.bp-reference-home .bp-level-badge {
  left: 4px !important;
  bottom: -5px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 11px !important;
  border-width: 1.5px !important;
}

.bp-reference-home .bp-board-box {
  height: clamp(150px, 48vw, 196px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.bp-board-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:is(.bp-dialog, .bp-lb-modal, .bp-player-modal, .bp-avatar-modal, .bp-claim-card, .bp-coin-alert, .bp-arena-card) {
  background: linear-gradient(155deg, rgba(10, 123, 135, 0.98), rgba(5, 74, 89, 0.99)) !important;
  border: 2px solid var(--bp-gold) !important;
  border-radius: 26px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 45, 56, 0.48) !important;
  color: var(--bp-text-primary) !important;
}

:is(.bp-dialog, .bp-lb-modal, .bp-player-modal, .bp-avatar-modal, .bp-claim-card, .bp-coin-alert, .bp-arena-card) :is(h1, h2, h3, p, span, strong, label) {
  color: var(--bp-text-primary);
}

:is(.bp-dialog, .bp-lb-modal, .bp-player-modal, .bp-avatar-modal, .bp-claim-card, .bp-coin-alert, .bp-arena-card) :is(.bp-modal-close, .bp-arena-close, .bp-alert-close) {
  background: rgba(4, 66, 81, 0.72) !important;
  color: var(--bp-text-primary) !important;
}

.bp-audio-popover {
  background: linear-gradient(155deg, #0a7b87, #054a59) !important;
  border: 2px solid var(--bp-gold) !important;
  color: var(--bp-text-primary) !important;
}

:is(.bp-audio-option, .bp-audio-close) {
  color: var(--bp-text-primary) !important;
}

.bp-reference-home .bp-home-top {
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 8px;
}

.bp-reference-home .bp-home-top > .bp-coin-pill {
  grid-column: 1;
  grid-row: 1;
}

.bp-reference-home .bp-home-top > .bp-audio-controls {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  margin: 0;
}

.bp-reference-home .bp-home-top > .bp-profile-chip {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}

.bp-reference-home .bp-home-top .bp-profile-info {
  min-width: 0;
}

.bp-reference-home .bp-home-top .bp-profile-name {
  max-width: 100%;
}

.bp-reference-home .bp-home-top .bp-audio-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bp-gold);
  background: linear-gradient(180deg, #087d8c, #075668);
  color: var(--bp-text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 45, 56, 0.3);
}

.bp-reference-home .bp-home-top .bp-audio-trigger svg {
  width: 20px;
  height: 20px;
}

.bp-reference-home .bp-home-top .bp-audio-popover {
  right: auto;
  left: 0;
}

.bp-audio-popover.bp-settings-menu {
  width: 236px;
  max-width: calc(100vw - 32px);
  text-align: right;
}

.bp-settings-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: right;
}

.bp-settings-label svg {
  flex: none;
  opacity: 0.85;
}

.bp-settings-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(244, 210, 92, 0.4);
}

.bp-settings-link svg:last-child {
  flex: none;
}

.bp-settings-done {
  color: var(--bp-success-hi);
}

.bp-settings-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd95b;
  box-shadow: 0 0 0 2px rgba(255, 217, 91, 0.3);
}

.bp-modal-overlay.bp-sheet-overlay {
  padding: 0;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: rgba(2, 36, 46, 0.8);
  backdrop-filter: blur(4px);
  z-index: 120;
}

.bp-dialog.bp-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 0 !important;
  border-width: 0 !important;
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

@media (min-width: 540px) {
  .bp-dialog.bp-sheet {
    border-width: 0 2px !important;
  }
}

.bp-sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 12px calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(244, 210, 92, 0.35);
  background: linear-gradient(180deg, rgba(3, 52, 63, 0.55), rgba(3, 52, 63, 0.12));
}

.bp-sheet-head-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff0a1;
  background: linear-gradient(145deg, #fff2a0, #f2a51a);
  color: #6b4306;
  box-shadow: 0 2px 7px rgba(126, 74, 4, 0.38);
}

.bp-sheet-title {
  flex: 1;
  min-width: 0;
}

.bp-sheet .bp-sheet-title h2 {
  margin: 0;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--bp-text-primary);
}

.bp-sheet .bp-sheet-title p {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bp-text-muted);
}

.bp-sheet .bp-modal-close,
.bp-sheet-icon-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.bp-sheet-icon-btn {
  border: 2px solid var(--bp-gold);
  background: rgba(4, 66, 81, 0.72);
  color: var(--bp-text-primary);
}

.bp-sheet-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px calc(16px + env(safe-area-inset-right, 0px)) 24px calc(16px + env(safe-area-inset-left, 0px));
}

.bp-sheet-body:focus-visible {
  outline: 2px solid var(--bp-gold-hi);
  outline-offset: -3px;
}

.bp-sheet-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px calc(16px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(244, 210, 92, 0.4);
  background: linear-gradient(180deg, rgba(5, 74, 89, 0.94), rgba(3, 52, 63, 0.98));
  box-shadow: 0 -6px 16px rgba(0, 45, 56, 0.3);
}

.bp-sheet-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
}

.bp-sheet-notice > svg {
  flex: none;
  margin-top: 2px;
}

.bp-sheet .bp-sheet-notice p {
  flex: 1;
  margin: 0;
  font-weight: 500;
  color: inherit;
}

.bp-sheet-notice-warn {
  background: rgba(255, 196, 76, 0.16);
  border: 1px solid rgba(255, 214, 102, 0.6);
  color: #ffe7a6;
}

.bp-sheet-notice-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: inherit;
}

.bp-sheet-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px 12px;
  text-align: center;
  color: var(--bp-text-secondary);
}

.bp-sheet .bp-sheet-state p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--bp-text-secondary);
}

.bp-sheet-state-error {
  color: #ffc2cc;
}

.bp-sheet .bp-sheet-state-btn {
  width: auto;
  min-width: 140px;
}

.bp-policy-tabs {
  flex: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px calc(16px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(244, 210, 92, 0.22);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bp-policy-tabs::-webkit-scrollbar {
  display: none;
}

.bp-policy-tab {
  flex: none;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid rgba(244, 210, 92, 0.6);
  background: rgba(4, 66, 81, 0.72);
  color: var(--bp-text-primary);
  font-size: 12px;
  white-space: nowrap;
}

.bp-policy-tab-active {
  background: linear-gradient(180deg, #fff66b, #ffc82a);
  border-color: #f7dc73;
  color: #16471a;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

.bp-policy-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(244, 210, 92, 0.3);
}

.bp-policy-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.bp-sheet .bp-policy-section h3 {
  margin: 0 0 10px;
  font-family: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bp-gold-hi);
}

.bp-sheet .bp-policy-section p,
.bp-policy-list li {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--bp-text-secondary);
  overflow-wrap: anywhere;
}

.bp-sheet .bp-policy-section p {
  margin: 0 0 10px;
}

.bp-policy-list {
  margin: 0 0 10px;
  padding: 0 20px 0 0;
}

.bp-policy-list li + li {
  margin-top: 4px;
}

.bp-policy-list li::marker {
  color: var(--bp-gold);
}

.bp-policy-accept {
  width: 100%;
}

.bp-policy-accepted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-policy-accepted-copy {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bp-success-hi);
}

.bp-policy-accepted-copy > svg {
  flex: none;
}

.bp-policy-accepted-copy div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-sheet .bp-policy-accepted-copy strong {
  font-size: 14px;
  color: var(--bp-success-hi);
}

.bp-sheet .bp-policy-accepted-copy span {
  font-size: 11px;
  font-weight: 500;
  color: var(--bp-text-muted);
}

.bp-sheet .bp-policy-close-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
}

.bp-moderation-tools {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px calc(16px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(244, 210, 92, 0.22);
}

.bp-moderation-search {
  display: flex;
  gap: 8px;
}

.bp-moderation-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(244, 210, 92, 0.7);
  background: rgba(4, 66, 81, 0.72);
  color: var(--bp-text-muted);
}

.bp-moderation-search-field:focus-within {
  border-color: var(--bp-gold-hi);
  box-shadow: 0 0 0 2px rgba(255, 240, 149, 0.35);
}

.bp-moderation-search-field svg {
  flex: none;
}

.bp-moderation-search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--bp-text-primary);
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
}

.bp-moderation-search-field input::placeholder {
  color: var(--bp-text-muted);
  opacity: 1;
}

.bp-moderation-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.bp-moderation-search-btn {
  flex: none;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #fff0a1;
  background: linear-gradient(180deg, #fff66b, #ffc82a);
  color: #16471a;
  font-size: 13px;
}

.bp-sheet .bp-moderation-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  color: #ffe7a6;
}

.bp-moderation-filters {
  display: flex;
  gap: 6px;
}

.bp-moderation-filter {
  flex: 1 1 0;
  min-width: 0;
  min-height: 38px;
  padding: 0 6px;
  border-radius: 12px;
  border: 1px solid rgba(244, 210, 92, 0.6);
  background: rgba(4, 66, 81, 0.72);
  color: var(--bp-text-primary);
  font-size: 12px;
  white-space: nowrap;
}

.bp-moderation-filter-active {
  background: linear-gradient(180deg, #fff66b, #ffc82a);
  border-color: #f7dc73;
  color: #16471a;
}

.bp-moderation-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  font-size: 12px;
}

.bp-sheet .bp-moderation-search-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-moderation-link-btn {
  flex: none;
  min-height: 34px;
  padding: 0 4px;
  color: var(--bp-gold-hi);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-moderation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-moderation-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(244, 210, 92, 0.6);
  background: rgba(4, 66, 81, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bp-moderation-card-banned {
  border-color: rgba(255, 128, 150, 0.8);
}

.bp-moderation-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-moderation-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--bp-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.bp-moderation-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-sheet .bp-moderation-name {
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-moderation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bp-mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

.bp-sheet .bp-mod-badge-open {
  background: #ffd95b;
  color: #4a3200;
}

.bp-sheet .bp-mod-badge-done {
  background: #7be0a8;
  color: #0b3a24;
}

.bp-sheet .bp-mod-badge-muted {
  background: rgba(255, 255, 255, 0.16);
  color: var(--bp-text-primary);
}

.bp-sheet .bp-mod-badge-banned {
  background: #e5465f;
  color: #ffffff;
}

.bp-moderation-id {
  align-self: flex-start;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(244, 210, 92, 0.55);
  background: rgba(0, 0, 0, 0.18);
  color: var(--bp-text-secondary);
}

.bp-moderation-id code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: left;
  user-select: all;
  -webkit-user-select: all;
}

.bp-sheet .bp-moderation-id-state {
  font-size: 10px;
  color: var(--bp-success-hi);
}

.bp-sheet .bp-moderation-id-state:empty {
  display: none;
}

.bp-moderation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
}

.bp-moderation-meta div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
}

.bp-moderation-meta dt {
  font-weight: 500;
  color: var(--bp-text-muted);
}

.bp-moderation-meta dd {
  margin: 0;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.bp-moderation-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-moderation-reasons li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.bp-moderation-reasons b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd95b;
  color: #4a3200;
  font-size: 11px;
}

.bp-sheet .bp-moderation-line {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--bp-text-secondary);
  overflow-wrap: anywhere;
}

.bp-sheet .bp-moderation-line > span:first-child,
.bp-sheet .bp-moderation-details > span,
.bp-sheet .bp-moderation-line-muted {
  color: var(--bp-text-muted);
}

.bp-moderation-details {
  font-size: 12px;
}

.bp-moderation-details ul {
  margin: 4px 0 0;
  padding: 0 18px 0 0;
}

.bp-moderation-details li {
  font-weight: 500;
  line-height: 1.7;
  color: var(--bp-text-secondary);
  overflow-wrap: anywhere;
}

.bp-moderation-details li::marker {
  color: var(--bp-gold);
}

.bp-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-mod-action {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(244, 210, 92, 0.75);
  background: linear-gradient(180deg, #087d8c, #075668);
  color: var(--bp-text-primary);
  font-size: 12px;
  white-space: nowrap;
}

.bp-mod-action-confirm {
  border-color: #eaff9a;
  background: linear-gradient(170deg, #76f940 0%, #12c42b 42%, #009524 100%);
  color: #fffdf2;
}

.bp-mod-action-danger {
  border-color: #ffb3c0;
  background: linear-gradient(180deg, #e5566c, #b52640);
  color: #ffffff;
}

.bp-moderation-confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 217, 91, 0.65);
  background: rgba(255, 217, 91, 0.12);
}

.bp-sheet .bp-moderation-confirm p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.bp-moderation-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 13px;
  cursor: pointer;
}

.bp-moderation-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ffd95b;
}

.bp-moderation-confirm-actions {
  display: flex;
  gap: 8px;
}

.bp-moderation-confirm-actions .bp-mod-action {
  flex: 1 1 0;
}

.bp-sheet .bp-moderation-feedback {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--bp-text-secondary);
}

.bp-sheet .bp-moderation-feedback-ok {
  color: var(--bp-success-hi);
}

.bp-sheet .bp-moderation-feedback-error {
  color: #ffc2cc;
}

.bp-player-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(244, 210, 92, 0.6);
  background: rgba(4, 66, 81, 0.6);
  cursor: pointer;
}

.bp-player-link bdi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-player-link svg {
  flex: none;
  opacity: 0.8;
}

.bp-fourth-name.bp-player-link {
  align-self: flex-start;
}

.bp-report-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-player-modal .bp-report-prompt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  color: var(--bp-text-secondary);
}

.bp-report-actions button.bp-report-reason-active {
  border-color: var(--bp-gold-hi) !important;
  box-shadow: 0 0 0 2px rgba(255, 240, 149, 0.35);
}

.bp-report-other {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.bp-player-modal .bp-report-other label {
  font-size: 12px;
}

.bp-report-other textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 210, 92, 0.7);
  background: rgba(4, 66, 81, 0.72);
  color: var(--bp-text-primary);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  outline: none;
}

.bp-report-other textarea:focus {
  border-color: var(--bp-gold-hi);
  box-shadow: 0 0 0 2px rgba(255, 240, 149, 0.35);
}

.bp-report-other textarea::placeholder {
  color: var(--bp-text-muted);
}

.bp-report-other-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bp-player-modal .bp-report-counter {
  font-size: 11px;
  font-weight: 500;
  color: var(--bp-text-muted);
}

.bp-report-send-btn {
  min-height: 38px;
  padding: 0 14px;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid #ffb3c0;
  background: linear-gradient(180deg, #e5566c, #b52640);
  color: #ffffff;
  font-size: 12px;
}

.bp-report-done {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(123, 224, 168, 0.6);
  background: rgba(123, 224, 168, 0.14);
  color: var(--bp-success-hi);
  text-align: right;
}

.bp-report-done > svg {
  flex: none;
}

.bp-report-done div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-player-modal .bp-report-done strong {
  font-size: 13px;
  color: var(--bp-success-hi);
}

.bp-player-modal .bp-report-done span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--bp-text-secondary);
}

.bp-player-modal .bp-public-profile-name {
  font-size: 15px;
  color: var(--bp-text-primary);
}
