/* Beta Meta UI polish — auth, profile, tournament, companion bubbles, farming */

.beta-ui-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff7e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.beta-ui-btn--primary {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 0 #92400e, 0 6px 16px rgba(0, 0, 0, 0.35);
}

.beta-ui-btn--ghost {
  background: rgba(20, 16, 36, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.beta-ui-btn--race {
  background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 0 #2e1065;
  margin-top: 0.35rem;
  width: 100%;
}

.showcase-tournament-btn {
  background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%);
}

.beta-auth-card,
.beta-profile-card,
.beta-tournament-card {
  background: linear-gradient(165deg, #1a1228 0%, #0d0a14 100%);
  border: 2px solid rgba(251, 191, 36, 0.35);
  color: #f5e6c8;
  max-width: 420px;
}

.beta-auth-notice {
  font-size: 0.78rem;
  opacity: 0.75;
  margin: 0 0 0.75rem;
}

.beta-auth-body {
  max-height: min(62vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.beta-auth-field {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.beta-auth-field input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.65rem;
}

.beta-auth-error {
  color: #fca5a5;
  font-size: 0.85rem;
}

.beta-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.beta-profile-frame {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25) center/cover no-repeat;
  background-image: var(--beta-frame-img);
  margin-bottom: 0.75rem;
}

.beta-profile-companion {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.beta-profile-stats {
  display: grid;
  gap: 0.35rem;
}

.beta-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.beta-frame-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.beta-frame-swatch.is-active {
  border-color: #fbbf24;
}

.beta-frame-swatch--gold { background: #fbbf24; }
.beta-frame-swatch--blue { background: #3b82f6; }
.beta-frame-swatch--purple { background: #8b5cf6; }
.beta-frame-swatch--green { background: #22c55e; }

.cat-room-tournament-row.rank-gold {
  border-color: #fbbf24;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.cat-room-tournament-row.rank-silver {
  border-color: #cbd5e1;
}

.cat-room-tournament-row.rank-bronze {
  border-color: #d97706;
}

.cat-room-bubble--speech,
.cat-room-bubble--thought {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 72px;
  max-width: 140px;
  padding: 0.35rem 0.55rem 0.45rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #1a1228;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

.cat-room-thought-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 36px;
}

.cat-room-thought-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.beta-farming-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.beta-farming-coin {
  position: absolute;
  bottom: 8%;
  width: 14px;
  height: 14px;
  animation: beta-coin-rise 1.4s ease-out forwards;
}

@keyframes beta-coin-rise {
  from { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translateY(-28px); }
}

[data-farming-counter].is-growing {
  color: #fbbf24;
  transform: scale(1.08);
  transition: transform 0.25s ease, color 0.25s ease;
}

.beta-farming-float {
  position: absolute;
  right: 8px;
  top: 20%;
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.75rem;
  animation: beta-float-up 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes beta-float-up {
  from { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; }
  to { opacity: 0; transform: translateY(-18px); }
}

.beta-farming-coin-fly {
  position: fixed;
  width: 18px;
  height: 18px;
  z-index: 9999;
  transition: transform 0.65s ease-in, opacity 0.65s ease-in;
  pointer-events: none;
}

.beta-daily-gift-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
}

.beta-daily-gift-card {
  background: linear-gradient(165deg, #241535 0%, #120a1c 100%);
  border: 2px solid #fbbf24;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #fff7e8;
}

.cat-room-modal--gacha-beta {
  background: rgba(0, 0, 0, 0.82);
}

.cat-room-modal--gacha-beta .cat-room-gacha-card {
  background: linear-gradient(165deg, #1a1228 0%, #0d0a14 100%);
  border: 2px solid rgba(251, 191, 36, 0.4);
}

.cat-room-modal--gacha-beta .cat-room-gacha-item {
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.cat-room-furniture-case.is-locked {
  opacity: 0.65;
}

.cat-room-full-header,
.cat-room-shop-tabs button {
  background-image: linear-gradient(180deg, rgba(40, 30, 60, 0.9), rgba(20, 14, 30, 0.95));
}

.cat-room-shop-tabs button.is-active {
  border-color: #fbbf24;
  color: #fbbf24;
}

.cat-room-shop-card {
  background: rgba(15, 10, 24, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.18);
}

.cat-room-full {
  background: #0d0a14;
}

/* RC6.3 — claim pulse + logged-in badge + companion polish */
.cat-room-claim-btn--ready {
  animation: beta-claim-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

@keyframes beta-claim-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.showcase-beta-user {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.beta-stat-row--highlight strong {
  color: #fde68a;
}

.beta-farming-float--tick {
  font-size: 0.65rem;
  opacity: 0.85;
}

.cat-room-modal--full .cat-room-full-header {
  background: linear-gradient(180deg, rgba(40, 24, 64, 0.95), rgba(16, 10, 28, 0.9));
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.cat-room-modal--full .cat-room-shop-tabs button {
  background: rgba(20, 12, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}

.cat-room-pet-sprite img,
.cat-room-mini-room img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.cat-room-tournament-row.rank-top-1 {
  border-color: rgba(251, 191, 36, 0.65);
}
.cat-room-tournament-row.rank-top-2 {
  border-color: rgba(203, 213, 225, 0.55);
}
.cat-room-tournament-row.rank-top-3 {
  border-color: rgba(217, 119, 6, 0.55);
}

.polytrack-sidebar {
  margin-top: 0.5rem;
}

.polytrack-daily-rewards,
.bottle-cracks-daily-rewards {
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.polytrack-daily-title,
.bottle-cracks-daily-title {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.polytrack-daily-stats,
.bottle-cracks-daily-stats {
  margin: 0;
  font-size: 0.85rem;
}

.polytrack-daily-note,
.bottle-cracks-daily-note,
.bottle-cracks-sidebar-hint {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  opacity: 0.8;
}

.bottle-cracks-level-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.bottle-cracks-level {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 0.2rem 0;
}

.bottle-cracks-level--claimed {
  opacity: 0.65;
}

.bottle-cracks-sidebar {
  margin-top: 0.5rem;
}

.polytrack-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.polytrack-tab {
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #f5e6c8;
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.polytrack-tab--active {
  background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%);
  border-color: rgba(167, 139, 250, 0.65);
}

.polytrack-sidebar-hint {
  font-size: 0.72rem;
  opacity: 0.75;
  margin: 0 0 0.5rem;
}

.polytrack-leaderboard-title {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.polytrack-leaderboard-empty {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

.polytrack-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.polytrack-leaderboard-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.25rem 0.35rem;
  align-items: center;
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.polytrack-rank {
  font-weight: 800;
  color: #fbbf24;
}

.polytrack-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polytrack-time {
  font-variant-numeric: tabular-nums;
  grid-column: 2;
}

.polytrack-tracks {
  grid-column: 3;
  opacity: 0.65;
  font-size: 0.65rem;
}

