/* Cat Room Beta UX V2 — FRIENDS neon meta-layer */

.cat-room-panel {
  border: 1px solid rgba(255, 105, 180, 0.35);
  border-radius: 14px;
  padding: 0.6rem;
  background: linear-gradient(165deg, rgba(12, 6, 22, 0.96), rgba(8, 12, 28, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.1),
    0 0 20px rgba(255, 105, 180, 0.08);
}

.cat-room-sidebar-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cat-room-mini-room {
  width: 100%;
  height: 180px;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.15);
  position: relative;
}

.cat-room-mini-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.cat-room-mini-scene-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 105, 180, 0.2), rgba(10, 14, 28, 0.95));
  background-size: cover;
  background-position: center;
}

.cat-room-mini-scene-furniture {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cat-room-mini-scene-pet {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  z-index: 3;
}

.cat-room-pet-static {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.4));
}

.cat-room-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.45rem;
  font-size: 0.68rem;
}

.cat-room-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  color: #94a3b8;
}

.cat-room-stat strong {
  color: #fbbf24;
  font-size: 0.72rem;
}

.cat-room-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.cat-room-claim-btn,
.cat-room-open-btn {
  font-size: 0.68rem;
  padding: 0.38rem 0.35rem;
}

.cat-room-claim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Modals */
.cat-room-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(8px);
}

.cat-room-onboard-card {
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 105, 180, 0.4);
  background: linear-gradient(160deg, rgba(15, 10, 28, 0.98), rgba(8, 12, 24, 0.98));
  color: #e2e8f0;
  box-shadow: 0 0 40px rgba(255, 105, 180, 0.12);
}

.cat-room-onboard-header h2 {
  margin: 0 0 0.25rem;
  color: #fde68a;
  font-size: 1.35rem;
}

.cat-room-modal-sub {
  color: #94a3b8;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.cat-room-pet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.cat-room-filter-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cat-room-filter-chip.is-active {
  border-color: rgba(255, 215, 0, 0.6);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.25);
}

.cat-room-pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.cat-room-pet-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  max-height: 42vh;
  overflow: auto;
  padding: 0.25rem;
}

.cat-room-pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(10, 16, 32, 0.88);
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.cat-room-pet-card--large {
  padding: 0.85rem 0.65rem;
}

.cat-room-pet-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 18px rgba(255, 105, 180, 0.28);
  transform: translateY(-2px);
}

.cat-room-pet-card.is-selected {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 0 22px rgba(255, 105, 180, 0.4);
  background: rgba(20, 12, 36, 0.95);
}

.cat-room-pet-card-img-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.cat-room-pet-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.cat-room-pet-tag {
  font-size: 0.65rem;
  color: #f472b6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-room-onboard-footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.cat-room-name-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.cat-room-name-field input {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  background: rgba(8, 12, 24, 0.9);
  color: #f8fafc;
  font-size: 0.9rem;
}

.cat-room-name-field input:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2);
}

.cat-room-onboard-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-room-onboard-skip {
  margin-top: 0.25rem;
  font-size: 0.72rem;
}

/* Full room modal */
.cat-room-full {
  width: min(1120px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 105, 180, 0.4);
  background: linear-gradient(165deg, rgba(8, 10, 22, 0.98), rgba(16, 8, 20, 0.98));
  overflow: hidden;
  box-shadow: 0 0 48px rgba(255, 105, 180, 0.1);
}

.cat-room-full-header,
.cat-room-full-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 105, 180, 0.15);
}

.cat-room-full-title h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fde68a;
}

.cat-room-full-pet-name {
  display: block;
  font-size: 0.78rem;
  color: #f472b6;
  margin-top: 0.1rem;
}

.cat-room-full-footer {
  border-bottom: none;
  border-top: 1px solid rgba(255, 105, 180, 0.15);
  gap: 0.5rem;
}

.cat-room-full-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(8, 12, 24, 0.65);
}

.cat-room-full-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.cat-room-full-stats strong {
  color: #fbbf24;
  font-size: 1.05rem;
}

.cat-room-full-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0.75rem;
  padding: 0.75rem;
  min-height: 400px;
}

.cat-room-scene {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  min-height: 360px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.cat-room-scene-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 105, 180, 0.12), rgba(10, 14, 28, 0.95));
  background-size: cover;
  background-position: center;
}

.cat-room-scene-pet {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  z-index: 3;
}

.cat-room-scene-furniture {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cat-room-placed-item {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  transform: translate(-50%, -50%);
}

.cat-room-placed-item--mini {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.cat-room-pet-sprite {
  position: relative;
  width: 100%;
  height: 100%;
}

.cat-room-pet-sprite-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cat-room-pet-sprite-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(255, 105, 180, 0.4));
}

.cat-room-speech-bubble {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  padding: 0.35rem 0.65rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.97);
  border: 2px solid rgba(251, 191, 36, 0.55);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fef9c3;
  z-index: 5;
  max-width: 210px;
  text-align: center;
}

.cat-room-speech-bubble.hidden {
  opacity: 0;
  pointer-events: none;
}

.cat-room-pet-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}

.cat-room-pet-heart,
.cat-room-pet-confetti {
  position: absolute;
  bottom: 55%;
  font-size: 0.85rem;
  pointer-events: none;
}

.cat-room-pet--sleep .cat-room-pet-sprite-viewport,
.cat-room-pet--lay-down .cat-room-pet-sprite-viewport {
  filter: brightness(0.92);
}

.cat-room-pet--celebrate-big .cat-room-pet-sprite-img,
.cat-room-pet--celebrate-jackpot .cat-room-pet-sprite-img {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
}

.cat-room-pet--look-at-reels {
  transform-origin: 50% 90%;
}

/* Shop panel */
.cat-room-shop {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 105, 180, 0.2);
  padding: 0.6rem;
  background: rgba(8, 12, 24, 0.75);
  overflow: hidden;
}

.cat-room-shop h3 {
  margin: 0;
  font-size: 0.85rem;
  color: #fde68a;
}

.cat-room-shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cat-room-shop-tabs button {
  flex: 1 1 40%;
  font-size: 0.68rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(12, 16, 32, 0.9);
  color: #cbd5e1;
  cursor: pointer;
}

.cat-room-shop-tabs button.is-active {
  border-color: rgba(255, 105, 180, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.15);
}

.cat-room-shop-list {
  overflow: auto;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cat-room-shop-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.55);
  font-size: 0.72rem;
}

.cat-room-shop-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cat-room-shop-card-body strong {
  color: #f1f5f9;
}

.cat-room-shop-price {
  color: #94a3b8;
  margin: 0.1rem 0 0;
}

.cat-room-shop-roi {
  color: #4ade80;
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
}

.cat-room-shop-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-room-shop-card-actions .btn {
  font-size: 0.65rem;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
}

.cat-room-collection-header {
  font-size: 0.72rem;
  color: #f472b6;
  font-weight: 700;
  padding: 0.35rem 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-room-reward-card.is-locked {
  opacity: 0.5;
}

.cat-room-reward-card.is-unlocked {
  border-color: rgba(34, 197, 94, 0.45);
}

.cat-room-reward-badge {
  font-size: 0.65rem;
  color: #94a3b8;
}

.cat-room-reward-card.is-unlocked .cat-room-reward-badge {
  color: #4ade80;
}

/* Toasts */
.cat-room-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6000;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(12, 8, 24, 0.96);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #fde68a;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 24px rgba(255, 105, 180, 0.2);
}

.cat-room-toast-coins {
  margin-right: 0.35rem;
}

.cat-room-coin-burst {
  position: fixed;
  z-index: 5999;
  pointer-events: none;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .cat-room-full-body {
    grid-template-columns: 1fr;
  }

  .cat-room-pet-grid--large {
    max-height: 36vh;
  }
}

/* Premium species selector */
.cat-room-modal--premium {
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 105, 180, 0.12), rgba(2, 6, 16, 0.92));
}

.cat-room-onboard-card--premium {
  width: min(920px, 96vw);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow:
    0 0 60px rgba(255, 105, 180, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cat-room-onboard-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f472b6;
}

.cat-room-pet-grid--premium {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  max-height: 46vh;
}

.cat-room-pet-card--premium {
  padding: 0.9rem 0.7rem 0.75rem;
  min-height: 210px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 12, 32, 0.95), rgba(8, 10, 22, 0.98));
}

.cat-room-pet-card--premium.is-selected {
  border-color: rgba(255, 215, 0, 0.85);
  box-shadow:
    0 0 28px rgba(255, 105, 180, 0.45),
    inset 0 0 20px rgba(255, 215, 0, 0.08);
}

.cat-room-pet-card-img-wrap--premium {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 60%, rgba(255, 105, 180, 0.12), rgba(0, 0, 0, 0.35));
  overflow: hidden;
}

.cat-room-pet-card-static {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.35));
}

.cat-room-pet-card-idle-viewport {
  width: 72px;
  height: 72px;
  overflow: hidden;
}

.cat-room-pet-card-idle-strip {
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.35));
  transition: transform 0.08s steps(1);
}

.cat-room-pet-rarity {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  z-index: 2;
}

.cat-room-pet-name {
  font-size: 0.95rem;
  color: #f8fafc;
}

.cat-room-rarity--common .cat-room-pet-rarity { color: #94a3b8; border-color: rgba(148, 163, 184, 0.4); }
.cat-room-rarity--uncommon .cat-room-pet-rarity { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.cat-room-rarity--rare .cat-room-pet-rarity { color: #38bdf8; border-color: rgba(56, 189, 248, 0.45); }
.cat-room-rarity--epic .cat-room-pet-rarity { color: #c084fc; border-color: rgba(192, 132, 252, 0.5); }
.cat-room-rarity--legendary .cat-room-pet-rarity { color: #fbbf24; border-color: rgba(251, 191, 36, 0.55); }

/* RC6 — Gacha roll */
.cat-room-modal--gacha {
  z-index: 12050;
}

.cat-room-gacha-card {
  width: min(520px, 94vw);
  padding: 1rem 1.1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(24, 16, 40, 0.98), rgba(12, 8, 24, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.cat-room-gacha-stage.is-hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.cat-room-gacha-window {
  position: relative;
  overflow: hidden;
  height: 132px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.cat-room-gacha-track {
  display: flex;
  gap: 8px;
  padding: 12px;
  will-change: transform;
}

.cat-room-gacha-item {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  color: #e2e8f0;
}

.cat-room-gacha-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cat-room-gacha-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(#fde68a, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
  pointer-events: none;
}

.cat-room-gacha-roll-btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  animation: cat-room-gacha-pulse 2s ease-in-out infinite;
}

@keyframes cat-room-gacha-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { transform: scale(1.02); box-shadow: 0 0 18px rgba(251, 191, 36, 0.35); }
}

.cat-room-gacha-reveal {
  text-align: center;
  position: relative;
  padding: 0.5rem 0 1rem;
}

.cat-room-gacha-reveal img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(251, 191, 36, 0.45));
}

.cat-room-gacha-glow {
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  pointer-events: none;
}

.cat-room-gacha-confetti {
  position: absolute;
  pointer-events: none;
  font-size: 1rem;
  z-index: 3;
}

.cat-room-capsule-card {
  grid-template-columns: 56px 1fr auto;
}

.cat-room-capsule-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-room-mini-scene-pet {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 42%;
  height: 46%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.cat-room-mini-income-float-host,
.cat-room-income-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}

.cat-room-income-float {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fde68a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cat-room-stat--timer strong {
  font-size: 0.72rem;
}

.cat-room-rarity--epic.is-selected,
.cat-room-rarity--rare.is-selected {
  box-shadow: 0 0 32px rgba(192, 132, 252, 0.35);
}

/* RC6.1 — Companion tournament */
.cat-room-tournament {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.cat-room-tournament-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fde68a;
  letter-spacing: 0.06em;
}

.cat-room-tournament-sub {
  margin: 0.2rem 0 0;
  opacity: 0.85;
  line-height: 1.35;
}

.cat-room-tournament-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.cat-room-tournament-timer {
  color: #fbbf24;
  font-weight: 700;
}

.cat-room-tournament-prizes ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.cat-room-tournament-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0.35rem 0;
}

.cat-room-tournament-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f472b6);
}

.cat-room-tournament-gate {
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.06);
}

.cat-room-tournament-gate-sub {
  opacity: 0.75;
  margin: 0.25rem 0 0;
}

.cat-room-tournament-you {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cat-room-tournament-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cat-room-tournament-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-room-tournament-row.is-you {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

.cat-room-tournament-rank {
  font-weight: 800;
  color: #fde68a;
  text-align: center;
}

.cat-room-tournament-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}

.cat-room-tournament-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cat-room-tournament-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cat-room-tournament-row-body strong {
  font-size: 0.75rem;
}

.cat-room-tournament-updated {
  opacity: 0.55;
  font-size: 0.62rem;
}

.cat-room-tournament-foot {
  opacity: 0.65;
  margin: 0;
  font-size: 0.65rem;
}

.cat-room-tournament-empty {
  opacity: 0.7;
  margin: 0.25rem 0;
}

/* Shop motivation layer — unlock preview, progress, ownership */
.shop-motivation-intro {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.shop-motivation-block {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-motivation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.shop-motivation-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
}

.shop-motivation-badge--owned {
  border-color: rgba(74, 222, 128, 0.45);
  color: #4ade80;
}

.shop-motivation-badge--available {
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.shop-motivation-badge--locked_chips,
.shop-motivation-badge--locked_gacha,
.shop-motivation-badge--locked_level {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.shop-motivation-badge--locked_unavailable {
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.shop-motivation-rarity {
  font-size: 0.6rem;
  color: #f9a8d4;
  font-weight: 600;
}

.shop-motivation-requirements {
  margin: 0;
  padding-left: 1rem;
  color: #94a3b8;
  font-size: 0.62rem;
  line-height: 1.35;
}

.shop-motivation-progress {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.shop-motivation-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  overflow: hidden;
}

.shop-motivation-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f472b6, #fbbf24);
  transition: width 0.25s ease;
}

.shop-motivation-progress-label,
.shop-motivation-progress-detail {
  font-size: 0.6rem;
  color: #cbd5e1;
}

.shop-motivation-teaser {
  margin: 0;
  font-size: 0.62rem;
  color: #a5b4fc;
  font-style: italic;
}

.shop-motivation-teaser--section {
  margin: 0 0 0.35rem;
}

.cat-room-shop-card--motivation.is-locked .cat-room-shop-card-preview img,
.cat-room-shop-card--motivation.is-locked .cat-room-shop-card-preview--companion img {
  filter: grayscale(0.25) brightness(0.95);
  opacity: 1;
}

.cat-room-shop-card-preview--companion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cat-room-shop-card-preview--companion img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.shop-motivation-preview-name {
  font-size: 0.55rem;
  color: #e2e8f0;
  text-align: center;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-room-shop-card--motivation .cat-room-shop-card-body {
  min-width: 0;
}

.cat-room-reward-card.cat-room-shop-card--motivation {
  grid-template-columns: 1fr auto;
}

/* Shop desire pass — featured want, almost-there, rarity emphasis */
.shop-motivation-featured-want {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(244, 114, 182, 0.08));
}

.shop-motivation-featured-want__emoji {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.shop-motivation-featured-want__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shop-motivation-featured-want__title {
  font-size: 0.62rem;
  color: #fde68a;
  font-weight: 700;
  line-height: 1.3;
}

.shop-motivation-copy {
  margin: 0;
  font-size: 0.6rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.shop-motivation-gap {
  margin: 0;
  font-size: 0.58rem;
  color: #86efac;
  font-weight: 600;
}

.shop-motivation-gap--section {
  margin: 0 0 0.35rem;
}

.shop-motivation-almost {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.3rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.12);
  animation: shop-motivation-pulse 1.8s ease-in-out infinite;
}

@keyframes shop-motivation-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.shop-motivation-block--almost {
  border-left: 2px solid rgba(251, 146, 60, 0.55);
  padding-left: 0.35rem;
}

.shop-motivation-progress--almost .shop-motivation-progress-fill {
  background: linear-gradient(90deg, #fb923c, #fbbf24);
}

.shop-motivation-progress-pct {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  color: #fef3c7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.shop-motivation-progress-track {
  position: relative;
}

.shop-motivation-rarity--rare {
  color: #38bdf8;
}

.shop-motivation-rarity--epic {
  color: #c084fc;
}

.shop-motivation-rarity--legendary {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
}

.shop-motivation-rarity--mythic {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
}

.cat-room-shop-unlock-hint {
  margin: 0;
  font-size: 0.58rem;
  color: #94a3b8;
  font-style: italic;
}

.liveops-limited-shop-callout__desire {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  color: #fbbf24;
  font-style: italic;
}

.cat-room-shop-card--motivation.shop-motivation-block--almost,
.cat-room-shop-card--motivation:has(.shop-motivation-block--almost) {
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.25);
}

