:root {
  color-scheme: dark;
  --bg: #120f24;
  --bg-deep: #0b0a16;
  --panel: #1a1730;
  --panel-strong: #262041;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #fff9f3;
  --muted: #b8adc8;
  --line: rgba(255, 255, 255, 0.1);
  --rose: #ff477e;
  --violet: #7c5cff;
  --cyan: #2bd9d0;
  --gold: #ffc857;
  --green: #35d07f;
  --red: #ff4d5e;
  --bubble-in: #28223d;
  --bubble-out: #6f42d8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 71, 126, 0.26), transparent 18rem),
    radial-gradient(circle at 88% 16%, rgba(43, 217, 208, 0.16), transparent 22rem),
    linear-gradient(145deg, #0b0a16, #120f24 52%, #181331);
}

button,
input {
  font: inherit;
}

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

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

.app-shell {
  height: 100dvh;
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 15, 36, 0.92), rgba(11, 10, 22, 0.96)),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-header {
  min-height: 76px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 11, 28, 0.74);
  backdrop-filter: blur(18px);
}

.profile-chip,
.coin-chip,
.icon-button,
.small-icon-button,
.tool-button,
.round-control,
.record-button,
.send-button,
.nav-item,
.quick-tile,
.enter-button,
.gift-item {
  border: 0;
  color: var(--text);
}

.profile-chip {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
}

.profile-avatar,
.big-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose), var(--violet) 58%, var(--cyan));
  color: white;
  font-weight: 900;
}

.profile-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.24);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.profile-copy strong,
.profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 15px;
}

.profile-copy span {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.coin-chip {
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 200, 87, 0.14);
  color: #ffe3a4;
  font-weight: 800;
}

.coin-mark {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1b8, var(--gold));
  box-shadow: inset 0 0 0 3px rgba(116, 77, 8, 0.18);
}

.icon-button,
.small-icon-button,
.round-control {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 40px;
  height: 40px;
}

.small-icon-button {
  width: 36px;
  height: 36px;
}

.icon-button.is-on,
.tool-button.is-active,
.round-control.is-active {
  color: #d8fff9;
  background: rgba(43, 217, 208, 0.2);
}

.icon-button.is-secure {
  color: #aaffd0;
}

.view {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 92px;
  scrollbar-width: none;
}

.view::-webkit-scrollbar {
  display: none;
}

.view.is-active {
  display: block;
}

.discovery-tabs {
  height: 42px;
  margin: -2px 0 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}

.discovery-tabs button {
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.discovery-tabs button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.tab-home-mark {
  width: 22px;
  height: 18px;
  margin: 0 auto;
  border-radius: 4px;
  display: block;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  position: relative;
}

.tab-home-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
}

.bonus-banner {
  min-height: 86px;
  padding: 13px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #4e2700;
  background:
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.9), transparent 1.6rem),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.8), transparent 2rem),
    linear-gradient(135deg, #fff0a5, #f8b526 38%, #d96d15 65%, #ffe18a);
  box-shadow: 0 16px 34px rgba(255, 200, 87, 0.22);
}

.bonus-banner div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bonus-banner span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.74;
}

.bonus-banner strong {
  font-size: 23px;
  line-height: 1.05;
  text-shadow: 0 1px rgba(255, 255, 255, 0.55);
}

.bonus-banner button {
  min-width: 58px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #8b3d00;
  font-weight: 900;
}

.welcome-pack {
  min-height: 76px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.16), transparent 4rem),
    linear-gradient(135deg, rgba(255, 71, 126, 0.18), rgba(124, 92, 255, 0.18));
}

.welcome-pack.is-claimed {
  opacity: 0.72;
}

.welcome-medal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ca 0 30%, transparent 31%),
    conic-gradient(from 20deg, var(--gold), var(--rose), var(--violet), var(--gold));
}

.welcome-pack div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.welcome-pack strong,
.welcome-pack span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-pack span {
  color: var(--muted);
  font-size: 12px;
}

.welcome-pack button,
.family-earn-card button,
.frame-head button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #1f1430;
  background: linear-gradient(135deg, white, var(--gold));
  font-weight: 900;
}

.welcome-pack button {
  padding: 0 13px;
}

.vip-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-card {
  min-width: 0;
  min-height: 96px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  align-content: end;
  gap: 3px;
  color: white;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.vip-card::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.vip-card.vip {
  background: linear-gradient(135deg, #4f46e5, #2bd9d0);
}

.vip-card.svip {
  background: linear-gradient(135deg, #f59e0b, #ff477e 54%, #7c5cff);
}

.vip-card span,
.vip-card strong,
.vip-card small {
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-card span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.vip-card small {
  color: rgba(255, 255, 255, 0.74);
}

.feature-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feature-card {
  min-width: 0;
  min-height: 76px;
  padding: 10px 7px;
  border: 0;
  border-radius: 8px;
  display: grid;
  align-content: end;
  gap: 3px;
  color: white;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  right: -8px;
  top: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.feature-card.ranking {
  background: linear-gradient(135deg, #ffcc4d, #ff8a3d);
}

.feature-card.bff {
  background: linear-gradient(135deg, #ff7bb0, #8b5cf6);
}

.feature-card.family {
  background: linear-gradient(135deg, #ff9566, #f43f5e);
}

.feature-card strong,
.feature-card span {
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card strong {
  font-size: 13px;
}

.feature-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.filter-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 40px;
  gap: 8px;
}

.filter-row button {
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.filter-row button.is-active {
  color: #061918;
  background: var(--cyan);
}

.dot-menu {
  width: 18px;
  height: 18px;
  display: inline-block;
  background:
    radial-gradient(circle, currentColor 2px, transparent 3px) 0 0 / 9px 9px;
}

.hero-room {
  margin-top: 12px;
  min-height: 206px;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255, 71, 126, 0.9), rgba(124, 92, 255, 0.72) 52%, rgba(43, 217, 208, 0.78)),
    #221a42;
  box-shadow: 0 18px 48px rgba(124, 92, 255, 0.22);
}

.hero-glow {
  position: absolute;
  inset: 18px 20px auto auto;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 62%);
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-glow::before {
  width: 44px;
  height: 44px;
  left: -28px;
  bottom: 8px;
}

.hero-glow::after {
  width: 24px;
  height: 24px;
  right: -8px;
  top: 28px;
}

.hero-topline,
.room-card-top,
.stage-head,
.room-top,
.feed-head,
.simple-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-badge {
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-topline {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.hero-room h1,
.hero-room p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-room h1 {
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-room p {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.35;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  color: #1c1235;
  background: white;
}

.secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick-tile {
  min-width: 0;
  min-height: 94px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.quick-tile strong,
.quick-tile span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-tile strong {
  font-size: 12px;
}

.quick-tile span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
}

.quick-icon.voice::before,
.quick-icon.party::before,
.quick-icon.game::before,
.quick-icon.secure::before {
  content: "";
  position: absolute;
  background: currentColor;
}

.quick-icon.voice {
  color: var(--cyan);
}

.quick-icon.voice::before {
  width: 10px;
  height: 18px;
  border-radius: 8px;
}

.quick-icon.party {
  color: var(--rose);
}

.quick-icon.party::before {
  width: 18px;
  height: 18px;
  clip-path: polygon(50% 0, 61% 35%, 100% 35%, 68% 56%, 80% 100%, 50% 72%, 20% 100%, 32% 56%, 0 35%, 39% 35%);
}

.quick-icon.game {
  color: var(--gold);
}

.quick-icon.game::before {
  width: 21px;
  height: 14px;
  border-radius: 7px;
}

.quick-icon.secure {
  color: var(--green);
}

.quick-icon.secure::before {
  width: 17px;
  height: 14px;
  border-radius: 4px;
}

.feed-head {
  margin: 18px 2px 10px;
}

.feed-head div,
.simple-page-head {
  display: grid;
  gap: 3px;
}

.feed-head strong,
.simple-page-head strong {
  font-size: 17px;
}

.feed-head span,
.simple-page-head span {
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  border: 0;
  color: #f4dcff;
  background: transparent;
  font-weight: 800;
}

.room-feed {
  display: grid;
  gap: 10px;
}

.room-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.room-card-top {
  align-items: center;
}

.room-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  position: relative;
}

.room-cover::before,
.room-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.room-cover::before {
  width: 18px;
  height: 18px;
  left: 10px;
  top: 10px;
}

.room-cover::after {
  width: 12px;
  height: 12px;
  right: 10px;
  bottom: 12px;
}

.room-card-top div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.room-card-top strong,
.room-card-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card-top span {
  color: var(--muted);
  font-size: 12px;
}

.enter-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  font-weight: 900;
}

.room-card p {
  margin: 11px 0 10px;
  color: #ded5e9;
  font-size: 13px;
  line-height: 1.35;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.room-view {
  padding-top: 10px;
}

.room-top {
  margin-bottom: 10px;
}

.room-top div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.room-top strong,
.room-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-top span {
  color: var(--muted);
  font-size: 12px;
}

.stage-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 71, 126, 0.22), transparent 13rem),
    linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(43, 217, 208, 0.07)),
    var(--panel);
}

.stage-head {
  margin-bottom: 12px;
}

.stage-head div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-head time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.entrance-effect {
  min-height: 62px;
  margin-bottom: 12px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background:
    radial-gradient(circle at 24px 50%, rgba(255, 255, 255, 0.24), transparent 3rem),
    linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(124, 92, 255, 0.16));
  animation: entrance-slide 900ms ease both;
}

.entrance-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(18, 15, 36, 0.92) 0 48%, transparent 49%),
    conic-gradient(from 0deg, var(--gold), var(--green), var(--violet), var(--rose), var(--gold));
  animation: spin-ring 3s linear infinite;
}

.entrance-effect strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes entrance-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}

.room-quality {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.room-quality span {
  min-height: 32px;
  padding: 8px 7px;
  border-radius: 8px;
  overflow: hidden;
  color: #dce9ff;
  background: rgba(255, 255, 255, 0.075);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-frame {
  height: 156px;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #090813;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  font-size: 30px;
  font-weight: 900;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

.seat {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.seat-avatar {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #3b315d, #19162e);
  font-weight: 900;
  position: relative;
}

.seat.is-speaking .seat-avatar {
  border-color: var(--cyan);
  box-shadow: 0 0 0 5px rgba(43, 217, 208, 0.12);
}

.seat.is-empty .seat-avatar::before,
.seat.is-empty .seat-avatar::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.seat.is-empty .seat-avatar::after {
  transform: rotate(90deg);
}

.seat span:last-child {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-tools,
.call-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tool-button {
  min-width: 0;
  min-height: 58px;
  padding: 8px 5px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.tool-button span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.call-controls {
  grid-template-columns: repeat(3, 48px);
  justify-content: center;
}

.round-control {
  width: 48px;
  height: 48px;
}

.round-control.danger {
  background: var(--red);
}

.game-panel {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 200, 87, 0.18), transparent 9rem),
    radial-gradient(circle at 82% 10%, rgba(124, 92, 255, 0.16), transparent 10rem),
    rgba(255, 255, 255, 0.06);
}

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

.game-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.game-head strong,
.game-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-head span {
  color: var(--muted);
  font-size: 12px;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.game-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.game-cell::after {
  content: attr(data-step);
  color: rgba(255, 255, 255, 0.26);
  font-size: 9px;
  font-weight: 900;
}

.game-token {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22);
  position: absolute;
}

.game-token:nth-child(3) {
  transform: translate(6px, 5px);
}

.game-token:nth-child(4) {
  transform: translate(-6px, -5px);
}

.game-action-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.dice-button {
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #28162d;
  background: linear-gradient(135deg, white, var(--gold));
  box-shadow: 0 12px 22px rgba(255, 200, 87, 0.2);
}

.dice-button span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.64);
  font-size: 24px;
  font-weight: 900;
}

.game-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.game-stat-grid div {
  min-width: 0;
  padding: 8px 5px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.075);
}

.game-stat-grid strong,
.game-stat-grid span {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stat-grid span {
  color: var(--muted);
  font-size: 11px;
}

.score-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 96px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.score-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.score-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.score-track span {
  height: 100%;
  border-radius: inherit;
  display: block;
}

.gift-dock {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gift-item {
  min-width: 0;
  min-height: 82px;
  padding: 9px 5px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.075);
}

.gift-item strong,
.gift-item small {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-item strong {
  font-size: 12px;
}

.gift-item small {
  color: var(--gold);
  font-size: 11px;
}

.gift-shape {
  width: 28px;
  height: 28px;
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--rose));
}

.gift-shape.sparkle {
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.gift-shape.star {
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 95%, 50% 72%, 21% 95%, 32% 57%, 2% 35%, 39% 35%);
}

.gift-shape.stage {
  border-radius: 8px 8px 4px 4px;
}

.gift-burst {
  min-height: 54px;
  margin: 10px 0 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff7d9;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 200, 87, 0.3), transparent 55%),
    rgba(255, 255, 255, 0.07);
  font-weight: 900;
  animation: burst-pop 720ms ease both;
}

@keyframes burst-pop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }

  35% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.messages {
  min-height: 180px;
  padding: 10px 0 12px;
}

.message {
  display: flex;
  margin: 0 0 10px;
}

.message-in {
  justify-content: flex-start;
}

.message-out {
  justify-content: flex-end;
}

.bubble {
  max-width: min(84%, 370px);
  padding: 9px 11px 8px;
  border-radius: 8px;
  color: var(--text);
  background: var(--bubble-in);
}

.message-out .bubble {
  background: linear-gradient(135deg, var(--bubble-out), #a045d9);
}

.message-meta {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.message-meta strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-meta time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.composer {
  position: sticky;
  bottom: 0;
  padding: 9px 0 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 15, 36, 0), rgba(18, 15, 36, 0.95) 22%);
}

.record-button,
.send-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.send-button {
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.record-button.is-recording {
  background: rgba(255, 77, 94, 0.22);
  box-shadow: 0 0 0 5px rgba(255, 77, 94, 0.12);
}

.record-icon {
  width: 14px;
  height: 21px;
  border-radius: 10px;
  background: var(--cyan);
  position: relative;
}

.record-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 22px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.record-button.is-recording .record-icon,
.record-button.is-recording .record-icon::after {
  background: var(--red);
  border-color: var(--red);
}

.text-field {
  min-width: 0;
  display: block;
}

.text-field input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.text-field input:focus {
  border-color: rgba(43, 217, 208, 0.56);
}

.text-field input::placeholder {
  color: var(--muted);
}

.voice-bubble {
  min-width: 232px;
}

.voice-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
}

.voice-play {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.voice-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.voice-play.is-playing::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

.voice-bars {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-bars span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.voice-bars span:nth-child(2n) {
  height: 20px;
}

.voice-bars span:nth-child(3n) {
  height: 26px;
}

.voice-duration {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.inbox-view,
.profile-view,
.family-view {
  padding-top: 20px;
}

.family-card {
  min-height: 94px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 71, 126, 0.2), transparent 9rem),
    rgba(255, 255, 255, 0.07);
}

.family-earn-card {
  min-height: 94px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 200, 87, 0.2), transparent 7rem),
    linear-gradient(135deg, rgba(53, 208, 127, 0.15), rgba(43, 217, 208, 0.09));
}

.family-earn-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.family-earn-card span,
.family-earn-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-earn-card span {
  color: var(--muted);
  font-size: 11px;
}

.family-earn-card strong {
  font-size: 20px;
}

.family-earn-card button {
  padding: 0 12px;
}

.family-emblem {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    conic-gradient(from 90deg, var(--gold), var(--rose), var(--violet), var(--cyan), var(--gold));
}

.family-card div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.family-card strong,
.family-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-card span {
  color: var(--muted);
  font-size: 12px;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-list article {
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.task-list span {
  color: var(--muted);
  font-size: 12px;
}

.inbox-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.inbox-item {
  min-height: 72px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.inbox-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  font-weight: 900;
}

.inbox-item div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.inbox-item strong,
.inbox-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-item span,
.inbox-item time {
  color: var(--muted);
  font-size: 12px;
}

.profile-panel {
  min-height: 360px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 18px 12px;
  background:
    radial-gradient(circle at top, rgba(255, 71, 126, 0.26), transparent 15rem),
    rgba(255, 255, 255, 0.06);
}

.profile-crown {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%),
    conic-gradient(from 0deg, var(--gold), var(--green), var(--violet), var(--rose), var(--gold));
}

.big-avatar {
  width: 88px;
  height: 88px;
  font-size: 32px;
}

.profile-panel span {
  color: var(--muted);
}

.profile-panel .big-avatar {
  color: white;
}

.profile-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 4px 0;
}

.profile-stats div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.profile-stats strong {
  font-size: 18px;
}

.profile-stats span {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-actions button {
  min-width: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #4b4655;
  background: transparent;
}

.profile-actions strong {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
}

.profile-action-icon.shop {
  background: linear-gradient(135deg, #ffb74a, #ff5f7e);
}

.profile-action-icon.task {
  background: linear-gradient(135deg, #ff8159, #ffd166);
}

.profile-action-icon.crown {
  background: linear-gradient(135deg, #ffd166, #f59e0b);
  clip-path: polygon(0 100%, 0 30%, 24% 52%, 50% 12%, 76% 52%, 100% 30%, 100% 100%);
}

.profile-action-icon.decor {
  background: linear-gradient(135deg, #8b5cf6, #2bd9d0);
}

.account-card,
.profile-menu {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #383142;
}

.account-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.account-head span {
  color: #7f768e;
  font-size: 12px;
}

.svip-strip {
  min-height: 54px;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff2c0, #fff9ed);
}

.svip-strip strong {
  color: #a66b00;
  font-size: 18px;
  font-style: italic;
}

.svip-strip span {
  color: #9b8b72;
  font-size: 12px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.account-grid button {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #4d465c;
  background: #f8f0ff;
  text-align: left;
}

.account-grid button:nth-child(odd) {
  background: #fff7df;
}

.account-grid span,
.account-grid strong {
  padding: 0 10px;
}

.account-grid span {
  color: #6f667d;
  font-size: 12px;
}

.account-grid strong {
  color: var(--violet);
}

.frame-showcase {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 200, 87, 0.18), transparent 7rem),
    rgba(255, 255, 255, 0.08);
}

.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.frame-head button {
  padding: 0 12px;
}

.frame-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.frame-item {
  min-width: 0;
  min-height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.frame-item.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.12);
}

.frame-orbit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;
}

.frame-orbit.emerald {
  background:
    radial-gradient(circle, var(--bg) 0 48%, transparent 49%),
    conic-gradient(var(--green), var(--cyan), var(--green));
}

.frame-orbit.royal {
  background:
    radial-gradient(circle, var(--bg) 0 48%, transparent 49%),
    conic-gradient(var(--gold), var(--rose), var(--violet), var(--gold));
}

.frame-orbit.neon {
  background:
    radial-gradient(circle, var(--bg) 0 48%, transparent 49%),
    conic-gradient(var(--cyan), var(--violet), var(--rose), var(--cyan));
}

.frame-item strong {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu {
  display: grid;
  gap: 1px;
}

.profile-menu button {
  min-height: 46px;
  border: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #373040;
  background: transparent;
  font-weight: 800;
}

.profile-menu span {
  color: #9b93a5;
  font-size: 12px;
}

.bottom-nav {
  height: calc(72px + env(safe-area-inset-bottom));
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 11, 28, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.nav-item {
  min-width: 0;
  min-height: 54px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.nav-item.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.58);
}

.sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 16px 14px calc(env(safe-area-inset-bottom) + 14px);
  border-radius: 8px 8px 0 0;
  background: #1a1730;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.28);
}

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

.field-row,
.file-row {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.field-row input,
.file-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.sheet .primary-action {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

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

.vip-sheet {
  background:
    radial-gradient(circle at top left, rgba(255, 200, 87, 0.2), transparent 10rem),
    #1a1730;
}

.vip-benefits {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.vip-benefits p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.security-list p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.check-dot.pending {
  background: var(--gold);
}

.icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-bell {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 3px 3px;
}

.icon-bell::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.icon-back::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-lock {
  width: 18px;
  height: 14px;
  margin-top: 5px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-lock::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -9px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.icon-close::before,
.icon-close::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

.icon-mic {
  width: 12px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.icon-mic::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-4px);
}

.icon-video {
  width: 18px;
  height: 13px;
  margin-right: 4px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-video::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.icon-game {
  width: 20px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.icon-game::before,
.icon-game::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-game::before {
  left: 4px;
  top: 5px;
  width: 6px;
  height: 2px;
}

.icon-game::after {
  right: 4px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.icon-gift {
  width: 18px;
  height: 16px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-gift::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -4px;
  width: 2px;
  height: 20px;
  background: currentColor;
}

.icon-camera {
  width: 18px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-camera::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-phone-off {
  border: 3px solid currentColor;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 12px 0;
  transform: rotate(225deg);
}

.icon-send {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 17px solid currentColor;
}

.icon-home::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 14px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.icon-home::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-stage {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-stage::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 6px;
  height: 8px;
  border-radius: 4px;
  background: currentColor;
}

.icon-chat {
  border: 2px solid currentColor;
  border-radius: 8px;
}

.icon-chat::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-20deg);
}

.icon-user {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
}

.icon-family::before,
.icon-family::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-family::before {
  left: 2px;
  top: 4px;
  width: 7px;
  height: 7px;
}

.icon-family::after {
  right: 2px;
  top: 4px;
  width: 7px;
  height: 7px;
}

.icon-family {
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 10px 10px;
}

/* Reference-aligned mobile app skin */
.app-header {
  display: none;
}

body:not([data-screen="room"]) {
  color: #26242b;
  background: #eef0f5;
}

body:not([data-screen="room"]) .app-shell {
  background: #f5f6fa;
}

body:not([data-screen="room"]) .view {
  padding: 10px 10px 82px;
  background: #f5f6fa;
}

body:not([data-screen="room"]) .bottom-nav {
  border-top: 1px solid #ececf2;
  background: rgba(255, 255, 255, 0.96);
}

body:not([data-screen="room"]) .nav-item {
  color: #b9bac3;
}

body:not([data-screen="room"]) .nav-item.is-active {
  color: #ff6b75;
  background: transparent;
}

body:not([data-screen="room"]) .discovery-tabs {
  height: 44px;
  margin: 0 0 8px;
  background: #f5f6fa;
}

body:not([data-screen="room"]) .discovery-tabs button {
  color: #a5a3ad;
  background: transparent;
  font-size: 15px;
}

body:not([data-screen="room"]) .discovery-tabs button.is-active {
  color: #25232b;
  background: transparent;
  font-size: 20px;
}

body:not([data-screen="room"]) .tab-home-mark {
  background: linear-gradient(135deg, #ff7c8a, #ffc13b);
}

body:not([data-screen="room"]) .bonus-banner {
  min-height: 96px;
  color: #703400;
  box-shadow: 0 8px 18px rgba(214, 130, 17, 0.18);
}

body:not([data-screen="room"]) .bonus-banner strong {
  font-size: 22px;
}

body:not([data-screen="room"]) .welcome-pack,
body:not([data-screen="room"]) .vip-strip,
body:not([data-screen="room"]) .quick-grid,
body:not([data-screen="room"]) .hero-room {
  display: none;
}

body:not([data-screen="room"]) .feature-cards {
  margin-top: 8px;
}

body:not([data-screen="room"]) .feature-card {
  min-height: 70px;
  box-shadow: 0 7px 14px rgba(31, 22, 62, 0.08);
}

body:not([data-screen="room"]) .filter-row {
  margin: 10px 0 8px;
}

body:not([data-screen="room"]) .filter-row button {
  color: #8e8e99;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(26, 22, 44, 0.05);
}

body:not([data-screen="room"]) .filter-row button.is-active {
  color: white;
  background: #33d0cf;
}

body:not([data-screen="room"]) .feed-head {
  display: none;
}

body:not([data-screen="room"]) .room-feed {
  gap: 12px;
}

body:not([data-screen="room"]) .room-card {
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #f7d77c, #ffffff 32%, #d4962d 66%, #8b5cff) border-box;
  box-shadow:
    0 8px 18px rgba(93, 67, 22, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88);
  overflow: hidden;
  position: relative;
}

body:not([data-screen="room"]) .room-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(224, 173, 67, 0.28);
  border-radius: 10px;
  pointer-events: none;
}

body:not([data-screen="room"]) .room-card::after {
  content: "";
  position: absolute;
  left: 86px;
  right: 16px;
  top: 10px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 194, 84, 0.72), rgba(139, 92, 255, 0));
  opacity: 0.72;
}

body:not([data-screen="room"]) .room-card.room-party {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #ff8aaa, #fff4c5 36%, #d9a12f 70%, #36d3cf) border-box;
}

body:not([data-screen="room"]) .room-card.room-game {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #5bdc9b, #fff4c5 36%, #d49a33 70%, #3486ff) border-box;
}

body:not([data-screen="room"]) .room-card-top {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  position: relative;
  z-index: 1;
}

body:not([data-screen="room"]) .room-cover {
  width: 58px;
  height: 58px;
  border: 2px solid #f1c75e;
  border-radius: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 1000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.55), transparent 0.72rem),
    linear-gradient(135deg, #ff5b8d, #8b5cff);
  box-shadow:
    0 0 0 3px #fff7de,
    0 8px 14px rgba(96, 60, 10, 0.17);
}

body:not([data-screen="room"]) .room-card-top strong {
  color: #2a2831;
  font-size: 15px;
  text-align: center;
}

body:not([data-screen="room"]) .room-card-top span,
body:not([data-screen="room"]) .room-card p {
  color: #a19fab;
}

body:not([data-screen="room"]) .room-card p {
  margin: 9px 6px 8px 68px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

body:not([data-screen="room"]) .room-tags {
  margin-left: 68px;
  position: relative;
  z-index: 1;
}

body:not([data-screen="room"]) .room-tags span {
  color: #ff6b75;
  background: #fff2f4;
}

body:not([data-screen="room"]) .enter-button {
  min-height: 30px;
  padding: 0 10px;
  color: #3f7dd2;
  background: linear-gradient(180deg, #f9fcff, #e9f4ff);
  box-shadow: inset 0 0 0 1px rgba(76, 141, 219, 0.08);
  font-size: 12px;
}

/* Cesta home polish */
body:not([data-screen="room"]) {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 105, 134, 0.15), transparent 15rem),
    radial-gradient(circle at 92% 2%, rgba(255, 206, 102, 0.16), transparent 14rem),
    #f3f4f8;
}

body:not([data-screen="room"]) .app-shell {
  background:
    linear-gradient(180deg, #fff8f1 0, #f7f8fb 160px, #f2f3f7 100%);
}

body:not([data-screen="room"]) .view {
  padding: 8px 10px 86px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 149, 0.15), transparent 9rem),
    radial-gradient(circle at 86% 2%, rgba(255, 214, 118, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(255, 248, 241, 0.96), #f4f5f8 150px, #f2f3f7);
}

body:not([data-screen="room"]) .discovery-tabs {
  height: 50px;
  margin: 0 0 10px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr) minmax(0, 1fr) 42px 42px;
  gap: 2px;
  background: transparent;
}

body:not([data-screen="room"]) .discovery-tabs button {
  min-height: 42px;
  border-radius: 16px;
  color: #aaa6b1;
  font-size: 15px;
  position: relative;
}

body:not([data-screen="room"]) .discovery-tabs button.is-active {
  color: #27242d;
  font-size: 21px;
}

body:not([data-screen="room"]) .discovery-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 21%;
  right: 18%;
  bottom: 3px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7d8d, #ff4e89);
  transform: rotate(-7deg);
}

body:not([data-screen="room"]) .discovery-tabs .tab-action {
  display: grid;
  place-items: center;
}

.tab-plus-mark,
.tab-search-mark {
  width: 28px;
  height: 28px;
  display: block;
  position: relative;
}

.tab-plus-mark {
  border-radius: 9px 9px 12px 12px;
  background: linear-gradient(135deg, #ff6a7c, #ffc047);
  box-shadow: 0 8px 16px rgba(255, 105, 124, 0.24);
}

.tab-plus-mark::before,
.tab-plus-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: white;
  transform: translate(-50%, -50%);
}

.tab-plus-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tab-search-mark {
  border: 3px solid #26242b;
  border-radius: 50%;
}

.tab-search-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: #26242b;
  transform: rotate(45deg);
}

body:not([data-screen="room"]) .bonus-banner {
  min-height: 138px;
  padding: 16px 72px;
  border: 1px solid rgba(164, 102, 12, 0.28);
  border-radius: 14px;
  justify-content: center;
  text-align: center;
  color: #663206;
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 255, 255, 0.94), transparent 4.2rem),
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.75), transparent 2.3rem),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.75), transparent 2.2rem),
    linear-gradient(135deg, #fbdf91 0%, #f7a646 34%, #b86018 54%, #f4d681 78%, #fff0ad 100%);
  box-shadow:
    0 12px 26px rgba(156, 93, 18, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  position: relative;
}

body:not([data-screen="room"]) .bonus-banner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 246, 202, 0.54);
  border-radius: 10px;
  pointer-events: none;
}

body:not([data-screen="room"]) .bonus-banner div {
  position: relative;
  z-index: 1;
  gap: 4px;
}

body:not([data-screen="room"]) .bonus-banner span:not(.banner-guard) {
  color: rgba(88, 41, 0, 0.82);
  font-size: 11px;
}

body:not([data-screen="room"]) .bonus-banner strong {
  max-width: 230px;
  margin: 0 auto;
  color: #ffe9a4;
  font-size: 25px;
  line-height: 0.98;
  text-shadow:
    0 2px 0 #813b00,
    0 4px 10px rgba(65, 23, 0, 0.4);
}

body:not([data-screen="room"]) .bonus-banner small {
  color: rgba(80, 37, 0, 0.82);
  font-size: 11px;
  font-weight: 850;
}

body:not([data-screen="room"]) .bonus-banner button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 52px;
  min-height: 32px;
  color: #6b2f00;
  background: linear-gradient(180deg, #fff7c7, #ffc954);
  box-shadow: 0 6px 14px rgba(87, 45, 0, 0.18);
}

.banner-guard {
  position: absolute;
  bottom: 8px;
  width: 54px;
  height: 84px;
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(circle at 50% 17%, #fff3c7 0 11px, transparent 12px),
    linear-gradient(180deg, #8d2e18, #d38927 52%, #6a2419);
  box-shadow: inset 0 0 0 2px rgba(255, 230, 140, 0.54), 0 8px 18px rgba(70, 32, 0, 0.18);
  opacity: 0.9;
}

.banner-guard::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -10px;
  width: 24px;
  height: 22px;
  background: linear-gradient(135deg, #ffd96b, #fff4bb 48%, #d58b16);
  clip-path: polygon(50% 0, 100% 42%, 82% 100%, 18% 100%, 0 42%);
}

.banner-guard.left {
  left: 12px;
}

.banner-guard.right {
  right: 12px;
  transform: scaleX(-1);
}

body:not([data-screen="room"]) .feature-cards {
  margin-top: 10px;
  gap: 8px;
}

body:not([data-screen="room"]) .feature-card {
  min-height: 78px;
  padding: 10px 9px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(56, 42, 84, 0.13);
}

body:not([data-screen="room"]) .feature-card::before {
  width: 56px;
  height: 56px;
  right: -10px;
  top: -12px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 28%, transparent 30%),
    rgba(255, 255, 255, 0.24);
}

body:not([data-screen="room"]) .feature-card strong {
  font-size: 15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body:not([data-screen="room"]) .feature-card.ranking {
  background: linear-gradient(135deg, #ffcf4e, #ff8f45 62%, #ff6f7f);
}

body:not([data-screen="room"]) .feature-card.bff {
  background: linear-gradient(135deg, #ff65b2, #a86fff 55%, #4fb8ff);
}

body:not([data-screen="room"]) .feature-card.family {
  background: linear-gradient(135deg, #18a4ff, #36d3cf 58%, #45c873);
}

body:not([data-screen="room"]) .filter-row {
  margin: 12px 0 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 42px;
}

body:not([data-screen="room"]) .filter-row button {
  min-height: 38px;
  color: #85828d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 12px rgba(35, 31, 44, 0.06);
}

body:not([data-screen="room"]) .filter-row button.is-active {
  color: white;
  background: linear-gradient(135deg, #ff6d78, #ff88a2);
}

body:not([data-screen="room"]) .room-feed {
  gap: 12px;
}

body:not([data-screen="room"]) .room-card {
  padding: 11px;
  border-width: 2px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(135deg, #f2c85e, #fff6d5 26%, #cb8f27 58%, #7a5cff) border-box;
  box-shadow:
    0 12px 22px rgba(60, 43, 20, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

body:not([data-screen="room"]) .room-card::before {
  inset: 5px;
  border-color: rgba(205, 151, 43, 0.22);
  border-radius: 12px;
}

body:not([data-screen="room"]) .room-card::after {
  left: 86px;
  right: 50px;
  top: 12px;
  height: 4px;
  background: linear-gradient(90deg, rgba(238, 183, 69, 0.82), rgba(255, 255, 255, 0));
}

body:not([data-screen="room"]) .room-card.theme-dream {
  background:
    linear-gradient(135deg, #ffffff, #fffafa) padding-box,
    linear-gradient(135deg, #ff9ab2, #fff6d5 32%, #f2c85e 64%, #ff6d8f) border-box;
}

body:not([data-screen="room"]) .room-card.theme-game {
  background:
    linear-gradient(135deg, #ffffff, #fafffd) padding-box,
    linear-gradient(135deg, #3ad6a0, #f8e59a 32%, #f69c3d 66%, #3d91ff) border-box;
}

body:not([data-screen="room"]) .room-card.theme-gold {
  background:
    linear-gradient(135deg, #fffdf7, #fffaf0) padding-box,
    linear-gradient(135deg, #ca8b14, #fff1a6 32%, #d0891f 62%, #8b5cff) border-box;
}

body:not([data-screen="room"]) .room-card.theme-silver {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff) padding-box,
    linear-gradient(135deg, #a8b4c7, #ffffff 32%, #f2c85e 62%, #6da7ff) border-box;
}

body:not([data-screen="room"]) .room-card-top {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 42px;
  gap: 10px;
}

body:not([data-screen="room"]) .room-cover {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff8e4;
  font-size: 17px;
  font-weight: 1000;
  isolation: isolate;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.7), transparent 1.15rem),
    linear-gradient(135deg, #1c2444, #34d6d1 48%, #ff6f86);
  box-shadow:
    0 0 0 3px #fff4cd,
    0 0 0 5px rgba(209, 148, 34, 0.58),
    0 10px 17px rgba(85, 52, 12, 0.18);
}

body:not([data-screen="room"]) .room-cover::before {
  left: 8px;
  right: 8px;
  top: -5px;
  width: auto;
  height: 18px;
  border-radius: 0;
  background: linear-gradient(135deg, #ffd76d, #fff4bd 46%, #d8911d);
  clip-path: polygon(0 100%, 15% 32%, 32% 100%, 50% 0, 68% 100%, 85% 32%, 100% 100%);
  z-index: -1;
}

body:not([data-screen="room"]) .room-cover::after {
  content: attr(data-level);
  left: auto;
  right: -6px;
  bottom: -7px;
  width: 27px;
  height: 20px;
  border: 2px solid #fff6d1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #6a3100;
  background: linear-gradient(180deg, #fff4a8, #f4b53e);
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 5px 10px rgba(111, 63, 0, 0.18);
}

body:not([data-screen="room"]) .room-card-top div {
  gap: 5px;
}

body:not([data-screen="room"]) .room-card-top strong {
  color: #22202a;
  font-size: 17px;
  text-align: left;
}

body:not([data-screen="room"]) .room-card-top span {
  color: #9b98a3;
  font-size: 12px;
  font-weight: 750;
}

body:not([data-screen="room"]) .room-card p {
  margin: 8px 46px 7px 76px;
  color: #8f8b96;
  font-size: 12px;
  line-height: 1.25;
}

body:not([data-screen="room"]) .enter-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  color: #ff6377;
  background:
    linear-gradient(180deg, #ffffff, #fff2f4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 99, 119, 0.12),
    0 6px 13px rgba(255, 99, 119, 0.15);
}

.room-badge-row {
  min-height: 20px;
  margin: 0 42px 8px 76px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.badge-gem {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #fff8c7 0 22%, transparent 25%),
    linear-gradient(135deg, #ff5d6f, #ffc047 45%, #18c79f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52), 0 2px 5px rgba(121, 73, 0, 0.16);
}

.badge-gem:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 36% 28%, #ffffff 0 22%, transparent 25%),
    linear-gradient(135deg, #7a62ff, #35c9ff 48%, #ffe071);
}

.badge-gem:nth-child(3n + 3) {
  background:
    radial-gradient(circle at 36% 28%, #ffffff 0 22%, transparent 25%),
    linear-gradient(135deg, #f25ca2, #ffb84a 48%, #ffe071);
}

.badge-gem.is-muted {
  background: linear-gradient(135deg, #d6d8df, #aeb2bd);
  opacity: 0.56;
}

.room-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-left: 76px;
  position: relative;
  z-index: 1;
}

body:not([data-screen="room"]) .room-tags {
  margin-left: 0;
  gap: 5px;
}

body:not([data-screen="room"]) .room-tags span {
  padding: 4px 7px;
  color: #ff6478;
  background: #fff0f3;
  font-weight: 850;
}

.room-listeners {
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #7a7783;
  font-size: 12px;
  font-weight: 900;
}

.signal-bars {
  width: 14px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(#ff6578, #ff6578) 1px 8px / 3px 5px no-repeat,
    linear-gradient(#ff6578, #ff6578) 6px 5px / 3px 8px no-repeat,
    linear-gradient(#ff6578, #ff6578) 11px 2px / 3px 11px no-repeat;
  border-radius: 3px;
}

/* Cesta games catalog */
body[data-screen="games"] {
  color: #2d2a32;
  background: #f6f6f7;
}

body[data-screen="games"] .app-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 150, 180, 0.16), transparent 11rem),
    radial-gradient(circle at 92% 0%, rgba(255, 215, 125, 0.18), transparent 12rem),
    #f6f6f7;
}

body[data-screen="games"] .games-view {
  padding: 8px 10px 88px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 215, 224, 0.58), transparent 10rem),
    radial-gradient(circle at 90% 0%, rgba(255, 226, 169, 0.52), transparent 10rem),
    #f7f7f8;
}

body[data-screen="games"] .games-head {
  display: none;
}

body[data-screen="games"] .games-section-head {
  min-height: 38px;
  margin: 4px 0 12px;
}

body[data-screen="games"] .games-section-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #26242b;
  font-size: 20px;
  line-height: 1;
}

body[data-screen="games"] .games-section-head strong::before {
  content: "";
  width: 18px;
  height: 14px;
  border-radius: 6px;
  display: inline-block;
  background:
    radial-gradient(circle at 5px 7px, #ffffff 0 2px, transparent 2.5px),
    radial-gradient(circle at 13px 7px, #ffffff 0 2px, transparent 2.5px),
    linear-gradient(135deg, #34323b, #5a5664);
  box-shadow: 0 -7px 0 -5px #ff5d6e;
}

body[data-screen="games"] .games-section-head button {
  min-height: 34px;
  padding: 0 13px;
  border-color: #e6e4e8;
  color: #322f37;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 12px rgba(46, 39, 56, 0.06);
}

body[data-screen="games"] .big-game-grid {
  gap: 12px 10px;
}

body[data-screen="games"] .big-game {
  isolation: isolate;
  aspect-ratio: 0.78;
  padding: 10px 7px 13px;
  border: 3px solid #c98222;
  border-radius: 21px 21px 24px 24px;
  align-content: end;
  gap: 4px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.38), transparent 3rem),
    linear-gradient(135deg, #20c879, #0aa86b);
  box-shadow:
    inset 0 0 0 2px rgba(255, 241, 173, 0.54),
    inset 0 -26px 36px rgba(0, 0, 0, 0.07),
    0 10px 16px rgba(92, 64, 17, 0.16);
}

body[data-screen="games"] .big-game::before {
  left: 10px;
  right: 10px;
  top: 12px;
  width: auto;
  height: calc(100% - 22px);
  border-radius: 16px 16px 21px 21px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 25%, transparent 26% 48%, rgba(255, 255, 255, 0.1) 49% 72%, transparent 73%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.2), transparent 4.2rem);
  box-shadow: none;
  transform: none;
  z-index: -1;
}

body[data-screen="games"] .big-game::after {
  top: -8px;
  width: 18px;
  height: 18px;
  border: 2px solid #d69528;
  border-radius: 5px;
  background:
    radial-gradient(circle, #ffffff 0 22%, transparent 24%),
    linear-gradient(135deg, #ffe88d, #f6a930);
  box-shadow: 0 4px 8px rgba(116, 66, 0, 0.17);
  z-index: 2;
}

body[data-screen="games"] .big-game.green {
  background:
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.28), transparent 3rem),
    linear-gradient(145deg, #29d586, #0ca26d 72%);
}

body[data-screen="games"] .big-game.purple {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 3.3rem),
    linear-gradient(145deg, #b750ff, #7031d3 74%);
}

body[data-screen="games"] .big-game.blue {
  background:
    radial-gradient(circle at 50% 17%, rgba(255, 255, 255, 0.28), transparent 3.2rem),
    linear-gradient(145deg, #34c2ff, #2475e2 74%);
}

body[data-screen="games"] .big-game.orange {
  background:
    radial-gradient(circle at 50% 17%, rgba(255, 255, 255, 0.28), transparent 3.2rem),
    linear-gradient(145deg, #ffc13c, #ff7225 74%);
}

body[data-screen="games"] .big-game.cyan {
  background:
    radial-gradient(circle at 50% 17%, rgba(255, 255, 255, 0.32), transparent 3.1rem),
    linear-gradient(145deg, #74e8ff, #20a1ef 74%);
}

.game-art,
.game-logo,
body[data-screen="games"] .big-game strong {
  position: relative;
  z-index: 1;
}

.game-art {
  width: 74px;
  height: 54px;
  margin: 0 auto 2px;
  display: block;
}

.game-art b {
  position: absolute;
  display: block;
}

.game-logo {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: #fff5c6;
  font-style: normal;
  font-size: clamp(15px, 4.1vw, 22px);
  line-height: 0.9;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(114, 55, 0, 0.58),
    0 5px 10px rgba(0, 0, 0, 0.28);
}

.game-logo.two-line {
  font-size: clamp(12px, 3.3vw, 18px);
}

body[data-screen="games"] .big-game strong {
  color: #fffdf8;
  font-size: 15px;
  line-height: 1.05;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
}

.art-ludo b:nth-child(1),
.art-ludo b:nth-child(2),
.art-ludo b:nth-child(3) {
  width: 22px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px 999px 11px 11px;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.18);
}

.art-ludo b:nth-child(1) {
  left: 7px;
  bottom: 6px;
  background: linear-gradient(180deg, #5ad6ff, #108fe9);
}

.art-ludo b:nth-child(2) {
  left: 27px;
  top: 3px;
  background: linear-gradient(180deg, #ff6f78, #db2636);
}

.art-ludo b:nth-child(3) {
  right: 7px;
  bottom: 6px;
  background: linear-gradient(180deg, #ffd85a, #f49b15);
}

.art-ludo b:nth-child(4) {
  right: 4px;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 7px 7px, #e6434f 0 2px, transparent 2.5px),
    radial-gradient(circle at 17px 17px, #e6434f 0 2px, transparent 2.5px),
    #ffffff;
  transform: rotate(14deg);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.18);
}

.art-candy b {
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.26), 0 5px 9px rgba(0, 0, 0, 0.18);
}

.art-candy b:nth-child(1) {
  left: 4px;
  top: 18px;
  width: 24px;
  height: 24px;
  background: #ff9046;
}

.art-candy b:nth-child(2) {
  left: 28px;
  top: 2px;
  width: 30px;
  height: 30px;
  background: #61e5ff;
}

.art-candy b:nth-child(3) {
  right: 4px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  background: #ffdd3f;
}

.art-umo b {
  width: 32px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.18);
}

.art-umo b:nth-child(1) {
  left: 6px;
  top: 8px;
  background: #2fcb65;
  transform: rotate(-16deg);
}

.art-umo b:nth-child(2) {
  left: 25px;
  top: 2px;
  background: #f64450;
}

.art-umo b:nth-child(3) {
  right: 5px;
  top: 8px;
  background: #ffd042;
  transform: rotate(16deg);
}

.art-carrom b {
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 28%, transparent 30%),
    linear-gradient(135deg, #f5f5f5, #39343c);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.2);
}

.art-carrom b:nth-child(1) {
  left: 8px;
  top: 12px;
  width: 31px;
  height: 31px;
}

.art-carrom b:nth-child(2) {
  right: 8px;
  top: 7px;
  width: 34px;
  height: 34px;
}

.art-carrom b:nth-child(3) {
  left: 25px;
  bottom: 0;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle, #ffffff 0 27%, transparent 29%),
    linear-gradient(135deg, #fffbf1, #f0a631);
}

.art-draw {
  width: 68px;
  height: 58px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 38% 48%, #f44941 0 10px, transparent 11px),
    radial-gradient(circle at 62% 30%, #933bff 0 8px, transparent 9px),
    linear-gradient(135deg, #ffffff, #e8fbff);
  transform: rotate(-8deg);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.2);
}

.art-draw b:nth-child(1),
.art-draw b:nth-child(2),
.art-draw b:nth-child(3) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.art-draw b:nth-child(1) {
  left: 15px;
  top: 11px;
  background: #ff7db0;
}

.art-draw b:nth-child(2) {
  right: 14px;
  bottom: 11px;
  background: #8a51ff;
}

.art-draw b:nth-child(3) {
  left: 33px;
  top: 28px;
  background: #48d06e;
}

.art-okey b {
  width: 29px;
  height: 39px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #ef3d3d;
  background: #fffdf0;
  font-size: 19px;
  font-weight: 1000;
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.18);
}

.art-okey b:nth-child(1) {
  left: 8px;
  top: 8px;
  transform: rotate(-11deg);
}

.art-okey b:nth-child(2) {
  left: 25px;
  top: 2px;
  color: #202027;
}

.art-okey b:nth-child(3) {
  right: 8px;
  top: 8px;
  transform: rotate(11deg);
}

.art-domino b {
  width: 26px;
  height: 52px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 23%, #e63e3f 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 42%, #e63e3f 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 65%, #e63e3f 0 3px, transparent 3.5px),
    linear-gradient(#ffffff 0 48%, #dedede 49% 51%, #ffffff 52%);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.18);
}

.art-domino b:nth-child(1) {
  left: 17px;
  top: 1px;
  transform: rotate(-12deg);
}

.art-domino b:nth-child(2) {
  right: 16px;
  top: 5px;
  transform: rotate(12deg);
}

.art-jackroo b {
  width: 27px;
  height: 39px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.18);
}

.art-jackroo b:nth-child(1) {
  left: 8px;
  top: 11px;
  background: #e83f49;
  transform: rotate(-15deg);
}

.art-jackroo b:nth-child(2) {
  left: 27px;
  top: 2px;
  background: #327cff;
}

.art-jackroo b:nth-child(3) {
  right: 7px;
  top: 11px;
  background: #24bd73;
  transform: rotate(15deg);
}

.art-adventure b:nth-child(1),
.art-adventure b:nth-child(2) {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 38% 38%, #ffffff 0 3px, transparent 3.5px),
    linear-gradient(135deg, #ff9b3d, #ff4e5d);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.18);
}

.art-adventure b:nth-child(1) {
  left: 13px;
  top: 13px;
  transform: rotate(-10deg);
}

.art-adventure b:nth-child(2) {
  right: 13px;
  top: 7px;
  background:
    radial-gradient(circle at 38% 38%, #ffffff 0 3px, transparent 3.5px),
    linear-gradient(135deg, #ffd347, #27b9ff);
  transform: rotate(10deg);
}

body[data-screen="games"] .lucky-games {
  margin-top: 28px;
}

body[data-screen="games"] .lucky-games .games-section-head {
  margin-bottom: 10px;
}

body[data-screen="games"] .lucky-games .games-section-head button {
  border: 0;
  color: #aaa5ae;
  background: transparent;
  box-shadow: none;
}

body[data-screen="games"] .lucky-row {
  padding: 10px 9px 11px;
  gap: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(42, 34, 52, 0.06);
}

body[data-screen="games"] .lucky-row button {
  width: 70px;
  position: relative;
}

body[data-screen="games"] .lucky-row .lucky-icon {
  width: 64px;
  height: 64px;
  border: 2px solid #f1be42;
  border-radius: 14px;
  display: grid;
  place-items: end center;
  padding: 0 4px 7px;
  color: white;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.48), transparent 1.6rem),
    linear-gradient(135deg, #8b51ff, #ffbe32);
  font-size: 10px;
  line-height: 0.95;
  font-weight: 1000;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.36);
}

body[data-screen="games"] .lucky-row .fish {
  background:
    radial-gradient(circle at 55% 35%, #65e7ff 0 16px, transparent 17px),
    linear-gradient(135deg, #1b9cff, #57d5ff);
}

body[data-screen="games"] .lucky-row .fruit {
  background:
    radial-gradient(circle at 37% 32%, #5ddb51 0 12px, transparent 13px),
    radial-gradient(circle at 62% 28%, #ff554f 0 11px, transparent 12px),
    linear-gradient(135deg, #8b3dff, #eb4ce7);
}

body[data-screen="games"] .lucky-row .jackpot {
  background:
    radial-gradient(circle at 52% 34%, #ffffff 0 15px, transparent 16px),
    linear-gradient(135deg, #ff704b, #df2e28);
}

body[data-screen="games"] .lucky-row .pyramid {
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(255, 255, 255, 0.32) 35% 48%, transparent 49%),
    linear-gradient(135deg, #ffd84a, #c98016);
}

body[data-screen="games"] .lucky-row .hot-badge {
  width: auto;
  height: 20px;
  min-width: 43px;
  padding: 0 7px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  position: absolute;
  right: 0;
  top: -7px;
  z-index: 2;
  color: white;
  background: #ff4556;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 4px 8px rgba(255, 69, 86, 0.25);
}

body[data-screen="games"] .lucky-row strong {
  color: #34313a;
  font-size: 11px;
}

body[data-screen="room"] {
  color: white;
  background: #06060b;
}

body[data-screen="room"] .app-shell {
  background:
    radial-gradient(circle at 20% 14%, rgba(92, 77, 255, 0.22), transparent 13rem),
    radial-gradient(circle at 75% 40%, rgba(255, 120, 61, 0.16), transparent 15rem),
    linear-gradient(180deg, #080711, #05050a);
}

body[data-screen="room"] .room-view {
  padding: 8px 10px 82px;
  background:
    radial-gradient(circle at 45% 34%, rgba(255, 255, 255, 0.08), transparent 12rem),
    linear-gradient(180deg, rgba(20, 18, 31, 0.2), rgba(0, 0, 0, 0.34));
}

body[data-screen="room"] .room-top {
  padding: 4px 0 8px;
}

body[data-screen="room"] .stage-card {
  border: 0;
  background:
    radial-gradient(circle at 50% 64%, rgba(255, 142, 60, 0.2), transparent 10rem),
    radial-gradient(circle at 50% 28%, rgba(68, 65, 130, 0.36), transparent 12rem),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body[data-screen="room"] .seat-avatar {
  background: radial-gradient(circle, #27243b, #11101d);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body[data-screen="room"] .messages {
  min-height: 160px;
}

body[data-screen="room"] .bottom-nav {
  display: none !important;
  visibility: hidden;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

body[data-screen="profile"],
body[data-screen="family"],
body[data-screen="inbox"] {
  background: #f0f1f6;
}

body[data-screen="profile"] .profile-panel {
  background: #f5f6fa;
}

body[data-screen="profile"] .profile-panel > strong,
body[data-screen="profile"] .profile-stats strong {
  color: #25232b;
}

body[data-screen="profile"] .frame-showcase {
  background: #ffffff;
  color: #25232b;
}

body[data-screen="family"] .family-card,
body[data-screen="family"] .family-earn-card,
body[data-screen="family"] .task-list article,
body[data-screen="inbox"] .inbox-item {
  background: #ffffff;
  color: #25232b;
  box-shadow: 0 5px 14px rgba(35, 30, 54, 0.06);
}

body[data-screen="family"] .simple-page-head strong,
body[data-screen="inbox"] .simple-page-head strong {
  color: #25232b;
}

.games-view {
  color: #2d2a32;
  background:
    radial-gradient(circle at 90% 2%, rgba(255, 213, 143, 0.5), transparent 11rem),
    radial-gradient(circle at 6% 2%, rgba(255, 211, 225, 0.62), transparent 11rem),
    #f7f7f7;
}

.games-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.games-head div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-user-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1434, #2696ff);
}

.games-head strong {
  font-size: 24px;
}

.search-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.search-button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 20px;
  height: 20px;
  border: 4px solid #2d2a32;
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: #2d2a32;
  transform: rotate(45deg);
}

.games-section-head {
  margin: 12px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.games-section-head strong {
  font-size: 22px;
}

.games-section-head button {
  min-height: 38px;
  border: 1px solid #e8e8ee;
  border-radius: 999px;
  color: #3d3a44;
  background: white;
  font-weight: 900;
}

.big-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.big-game {
  min-width: 0;
  aspect-ratio: 0.82;
  border: 3px solid #d89b35;
  border-radius: 18px;
  display: grid;
  align-content: end;
  gap: 8px;
  color: white;
  overflow: hidden;
  padding: 14px 6px 16px;
  position: relative;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.25),
    0 10px 18px rgba(128, 90, 20, 0.14);
}

.big-game::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 28% 28% 36% 36%;
  background:
    radial-gradient(circle at 34% 35%, rgba(255, 255, 255, 0.92), transparent 0.34rem),
    radial-gradient(circle at 66% 35%, rgba(255, 255, 255, 0.92), transparent 0.34rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.big-game::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 22px;
  height: 22px;
  border: 2px solid #d89b35;
  background: #ffe691;
  transform: translateX(-50%) rotate(45deg);
}

.big-game span,
.big-game strong {
  padding: 0 6px;
  overflow-wrap: anywhere;
}

.big-game span {
  font-size: 20px;
  font-weight: 1000;
  position: relative;
  z-index: 1;
}

.big-game strong {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.big-game.green {
  background: linear-gradient(135deg, #20c879, #0aa86b);
}

.big-game.purple {
  background: linear-gradient(135deg, #a148ff, #6d32d8);
}

.big-game.blue {
  background: linear-gradient(135deg, #3fbaff, #1e72dd);
}

.big-game.orange {
  background: linear-gradient(135deg, #ffb22e, #ff6d24);
}

.big-game.cyan {
  background: linear-gradient(135deg, #52dcff, #2499e8);
}

.lucky-games {
  margin-top: 28px;
}

.lucky-row {
  padding: 10px;
  border-radius: 18px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  background: white;
}

.lucky-row button {
  width: 82px;
  flex: 0 0 auto;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  background: transparent;
  color: #3b3842;
}

.lucky-row span {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ffbe32, #8b51ff);
  font-size: 11px;
  font-weight: 1000;
}

.lucky-row strong {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-arena {
  margin: 18px 0 8px;
  padding: 12px;
  border: 1px solid #f3d99d;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff8e7, #ffffff 38%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(175, 129, 48, 0.18);
}

.play-arena-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.play-arena-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.play-arena-head strong {
  color: #302b34;
  font-size: 22px;
}

.play-arena-head span {
  color: #8c8792;
  font-size: 12px;
  line-height: 1.35;
}

.play-arena-head button,
.play-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: linear-gradient(135deg, #ff8a62, #ff4f8a);
  font-weight: 950;
}

.play-arena-head button {
  flex: 0 0 auto;
}

.play-controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.play-controls button:disabled {
  color: #aaa4ae;
  background: #ece8ef;
}

.play-controls span {
  color: #817b86;
  font-size: 12px;
  font-weight: 850;
}

.play-board {
  margin-top: 10px;
  min-height: 170px;
}

.arena-scoreboard {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arena-score {
  min-width: 0;
  min-height: 46px;
  border-radius: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  color: #6b6470;
  background: #f7f4fa;
  font-size: 12px;
}

.arena-score.is-active {
  color: #ff4f7c;
  background: #fff0f4;
  outline: 2px solid rgba(255, 95, 128, 0.2);
}

.arena-score strong {
  color: #302b34;
  font-size: 13px;
}

.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ludo-board,
.jack-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.arena-cell,
.jack-cell {
  min-height: 36px;
  border: 1px solid #ece5f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  background: white;
}

.arena-cell small,
.jack-cell small {
  position: absolute;
  left: 5px;
  top: 3px;
  color: #bbb4bf;
  font-size: 9px;
}

.arena-cell.is-start,
.jack-cell:first-child {
  background: #e9fff7;
}

.arena-cell.is-goal,
.jack-cell.is-goal {
  background: #fff1c2;
}

.arena-token,
.jack-pawn {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.jack-pawn {
  display: grid;
  place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 950;
  background: #ff5f80;
}

.jack-pawn.bot {
  background: #3486ff;
}

.umo-table {
  display: grid;
  gap: 12px;
}

.umo-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.umo-bots span,
.umo-deck {
  border-radius: 12px;
  padding: 8px 10px;
  color: #675f69;
  background: #f3f0f6;
  font-size: 12px;
  font-weight: 900;
}

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

.umo-hand {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.umo-card {
  width: 58px;
  min-width: 58px;
  height: 82px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 1000;
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.13);
}

.umo-card span {
  font-size: 24px;
}

.umo-card small {
  font-size: 9px;
  text-transform: uppercase;
}

.umo-card.red {
  background: #ff5b67;
}

.umo-card.blue {
  background: #2d8cff;
}

.umo-card.green {
  background: #24bb73;
}

.umo-card.yellow {
  background: #ffbb38;
}

.umo-card.is-playable {
  outline: 3px solid rgba(255, 210, 67, 0.65);
}

.umo-card.is-discard {
  transform: rotate(5deg);
}

.candy-stats,
.okey-meter {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: #5e5862;
  font-weight: 900;
}

.candy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.candy-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.46),
    0 7px 12px rgba(0, 0, 0, 0.12);
}

.candy-0 {
  background: linear-gradient(135deg, #ff5e8a, #ff9cbe);
}

.candy-1 {
  background: linear-gradient(135deg, #7b5cff, #b38cff);
}

.candy-2 {
  background: linear-gradient(135deg, #26c87a, #92ee87);
}

.candy-3 {
  background: linear-gradient(135deg, #ffc247, #ff7d43);
}

.candy-4 {
  background: linear-gradient(135deg, #32b9ff, #7de6ff);
}

.carrom-board {
  aspect-ratio: 1;
  border: 10px solid #c77b28;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.52), transparent 28%),
    #f7d59b;
}

.pocket {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  background: #332019;
}

.p1 { left: 8px; top: 8px; }
.p2 { right: 8px; top: 8px; }
.p3 { left: 8px; bottom: 8px; }
.p4 { right: 8px; bottom: 8px; }

.striker,
.carrom-coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.striker {
  left: 50%;
  bottom: 14%;
  background: #ff5f80;
  box-shadow: 0 0 0 4px rgba(255, 95, 128, 0.22);
}

.carrom-coin {
  border: 3px solid #fff4dc;
  background: #6c3d20;
}

.carrom-coin.light {
  background: #f7f0dd;
}

.carrom-coin.is-selected {
  outline: 4px solid rgba(255, 80, 134, 0.5);
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.draw-card {
  aspect-ratio: 0.82;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #6256d9, #2d8cff);
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 8px 15px rgba(60, 70, 140, 0.18);
}

.draw-card.is-open {
  color: #302b34;
  background: #fff5cd;
}

.draw-card.is-matched {
  color: #1f8d55;
  background: #dffff0;
}

.okey-rack {
  padding: 12px 8px;
  border-radius: 16px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  background: #efe0bd;
}

.okey-tile {
  min-width: 42px;
  height: 62px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fffdf4;
  box-shadow: 0 5px 10px rgba(91, 57, 18, 0.16);
}

.okey-tile strong {
  font-size: 19px;
}

.okey-tile span {
  font-size: 10px;
  font-weight: 950;
}

.okey-tile.red strong,
.okey-tile.red span { color: #ef4c62; }
.okey-tile.blue strong,
.okey-tile.blue span { color: #297ee7; }
.okey-tile.black strong,
.okey-tile.black span { color: #232129; }
.okey-tile.yellow strong,
.okey-tile.yellow span { color: #d3940a; }

.domino-chain,
.domino-hand {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.domino-chain {
  min-height: 74px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #223047;
}

.domino-tile {
  min-width: 42px;
  height: 64px;
  border: 2px solid #ded9e3;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #302b34;
  background: white;
  font-weight: 950;
}

.domino-tile i {
  width: 80%;
  height: 1px;
  background: #d6d1dc;
}

.domino-tile.is-playable {
  border-color: #ff5f80;
  box-shadow: 0 0 0 3px rgba(255, 95, 128, 0.14);
}

.jack-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.jack-cards button {
  min-height: 70px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #ffac45, #ff537b);
  font-size: 24px;
  font-weight: 1000;
}

.adventure-path {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.adventure-cell {
  min-height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #a59fab;
  background: #f0edf3;
  font-weight: 950;
}

.adventure-cell.is-seen {
  color: white;
  background: linear-gradient(135deg, #35c994, #2c8fff);
}

.adventure-cell.is-current {
  outline: 3px solid rgba(255, 95, 128, 0.35);
}

.slot-machine {
  min-height: 150px;
  border: 8px solid #d29a3b;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #3b153f, #111827);
}

.slot-machine span {
  min-width: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #2c2630;
  background: #fff4ce;
  font-size: 18px;
  font-weight: 1000;
  overflow-wrap: anywhere;
  text-align: center;
}

body[data-screen="room"] .gift-dock,
body[data-screen="room"] .interaction-sheet {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 12;
  width: min(100%, 520px);
  max-height: 62dvh;
  margin: 0;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  background: #282828;
  transform: translateX(-50%);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.36);
}

body[data-screen="room"] .gift-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-screen="room"] .gift-item {
  min-height: 116px;
  background: transparent;
}

.interaction-sheet {
  display: grid;
  gap: 22px;
}

.interaction-sheet > strong {
  font-size: 22px;
}

.interaction-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 18px;
}

.interaction-grid button,
.program-grid button {
  min-width: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #bbb7c0;
  background: transparent;
}

.interaction-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: block;
  background: #3c3c3c;
  position: relative;
}

.interaction-icon.pk::before {
  content: "PK";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ff5fa5;
  font-size: 28px;
  font-weight: 1000;
  transform: skew(-8deg);
}

.interaction-icon.tea::before {
  content: "☕";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.interaction-icon.pack::before {
  content: "▣";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ff5f8d;
  font-size: 38px;
}

.interaction-icon.dice::before {
  content: "⚂";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 36px;
}

.interaction-icon.wheel::before {
  content: "◉";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffcb3d;
  font-size: 38px;
}

.interaction-icon.number::before {
  content: "99";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #75ff4d;
  font-size: 28px;
  font-weight: 1000;
}

/* Higher fidelity reference pass */
body[data-screen="room"] .app-shell {
  background: #050209;
}

body[data-screen="room"] .room-view {
  min-height: 100dvh;
  padding: 10px 14px 92px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.7px),
    radial-gradient(circle at 34% 42%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58% 74%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(ellipse at bottom, rgba(122, 40, 118, 0.92), rgba(38, 9, 55, 0.5) 42%, rgba(6, 3, 12, 0.94) 76%),
    linear-gradient(180deg, #0c0719 0%, #16051e 52%, #2b0d36 100%);
  background-size: 92px 76px, 124px 110px, 150px 120px, 180px 160px, 100% 100%, 100% 100%;
}

body[data-screen="room"] .room-view::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 72px;
  width: min(100%, 520px);
  height: 32dvh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.72), transparent 62%),
    linear-gradient(170deg, transparent 0 41%, rgba(23, 7, 24, 0.72) 42% 48%, transparent 49%),
    linear-gradient(190deg, transparent 0 45%, rgba(58, 20, 64, 0.78) 46% 52%, transparent 53%);
  transform: translateX(-50%);
  z-index: 0;
}

body[data-screen="room"] .room-top,
body[data-screen="room"] .stage-card,
body[data-screen="room"] .messages,
body[data-screen="room"] .composer,
body[data-screen="room"] .room-tools {
  position: relative;
  z-index: 1;
}

body[data-screen="room"] .room-top {
  min-height: 70px;
  padding: 0 2px 8px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px;
  align-items: center;
}

body[data-screen="room"] .room-top .icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffd982;
  background: rgba(0, 0, 0, 0.26);
}

body[data-screen="room"] .room-top div {
  gap: 4px;
}

body[data-screen="room"] .room-top strong {
  color: #ffe18a;
  font-size: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

body[data-screen="room"] .room-top span {
  color: #f0c878;
  font-size: 13px;
}

body[data-screen="room"] .stage-card {
  min-height: 350px;
  padding: 2px 0 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-screen="room"] .stage-head {
  min-height: 44px;
  margin: 0 0 18px;
  padding: 0 2px;
}

body[data-screen="room"] .stage-head strong {
  color: #ffffff;
  font-size: 18px;
}

body[data-screen="room"] .stage-head time {
  min-width: 66px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffe699;
  background: rgba(0, 0, 0, 0.38);
  text-align: center;
}

body[data-screen="room"] .room-quality {
  display: none;
}

body[data-screen="room"] .seat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 10px;
  margin-top: 28px;
}

body[data-screen="room"] .seat {
  min-height: 96px;
  gap: 9px;
}

body[data-screen="room"] .seat-avatar {
  width: 64px;
  height: 64px;
  border: 0;
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.36), transparent 0.9rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(110, 70, 126, 0.24) 54%, rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.44);
  color: white;
  font-size: 18px;
}

body[data-screen="room"] .seat:not(.is-empty) .seat-avatar {
  outline: 3px solid rgba(48, 220, 216, 0.26);
  box-shadow:
    0 0 0 3px rgba(47, 224, 231, 0.2),
    0 0 24px rgba(38, 167, 255, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.1);
}

body[data-screen="room"] .seat.is-empty .seat-avatar::before {
  left: 24px;
  top: 18px;
  width: 16px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #bdb8c9);
}

body[data-screen="room"] .seat.is-empty .seat-avatar::after {
  left: 20px;
  top: 44px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #ded9e7;
  transform: none;
}

body[data-screen="room"] .seat span:last-child {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.72);
}

body[data-screen="room"] .messages {
  min-height: 160px;
  margin-top: 18px;
  padding-bottom: 92px;
}

body[data-screen="room"] .bubble {
  color: #48e4df;
  background: rgba(0, 0, 0, 0.36);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

body[data-screen="room"] .message-out .bubble {
  color: white;
  background: rgba(70, 31, 86, 0.68);
}

body[data-screen="room"] .room-tools {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 66px);
  z-index: 8;
  width: min(100%, 520px);
  padding: 0 14px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

body[data-screen="room"] .tool-button {
  width: 56px;
  height: 56px;
  min-height: 56px;
  margin: 0 auto;
  border: 1px solid rgba(255, 207, 93, 0.44);
  border-radius: 50%;
  color: #ffe8a5;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 229, 130, 0.18), transparent 0.9rem),
    linear-gradient(180deg, #5a1117, #23030b);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.46);
}

body[data-screen="room"] .tool-button span:last-child {
  display: none;
}

body[data-screen="room"] .composer {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 126px);
  z-index: 8;
  width: min(100% - 28px, 492px);
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

body[data-screen="room"] .composer .record-button,
body[data-screen="room"] .composer .send-button {
  display: none;
}

body[data-screen="room"] .text-field input {
  min-height: 46px;
  border: 2px solid rgba(255, 197, 75, 0.56);
  border-radius: 999px;
  color: #ffe99a;
  background: linear-gradient(180deg, rgba(96, 16, 19, 0.92), rgba(44, 5, 8, 0.94));
}

body[data-screen="room"] .text-field input::placeholder {
  color: #ffe99a;
}

body[data-screen="room"] .gift-dock,
body[data-screen="room"] .interaction-sheet {
  background: #242424;
  border-radius: 24px 24px 0 0;
}

body[data-screen="room"] .gift-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

.gift-promo,
.gift-targets,
.gift-tabs,
.gift-send-row {
  grid-column: 1 / -1;
}

.gift-promo {
  min-height: 58px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #8e1eff, #f20bd3);
  font-weight: 950;
}

.gift-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff3b0 0 28%, transparent 30%),
    conic-gradient(#ffd36b, #a86619, #ffe392, #ffd36b);
}

.gift-targets,
.gift-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.gift-targets button {
  min-width: 50px;
  height: 50px;
  border: 3px solid #ff757f;
  border-radius: 50%;
  color: white;
  background: #373737;
  font-weight: 950;
}

.gift-targets button.is-active {
  background: #ff757f;
}

.gift-tabs button {
  min-height: 34px;
  border: 0;
  color: #aaa6ac;
  background: transparent;
  font-weight: 950;
  white-space: nowrap;
}

.gift-tabs button.is-active {
  color: white;
}

body[data-screen="room"] .gift-item {
  min-height: 116px;
  gap: 7px;
  padding: 0;
  color: white;
  background: transparent;
}

body[data-screen="room"] .gift-item.premium {
  border-radius: 10px;
  outline: 2px solid #ff5f80;
}

body[data-screen="room"] .gift-shape {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.gift-shape.knight,
.gift-shape.crown {
  background:
    radial-gradient(circle at 50% 30%, #fff2a9 0 20%, transparent 22%),
    linear-gradient(135deg, #91621c, #ffdd72);
}

.gift-shape.eye {
  border-radius: 50%;
  background:
    radial-gradient(circle, #111 0 14%, #17c4ff 15% 34%, #e8faff 35% 57%, transparent 58%),
    #12304a;
}

.gift-shape.tea-gift {
  background:
    radial-gradient(ellipse at 52% 48%, #8e3b1b 0 32%, transparent 34%),
    linear-gradient(135deg, #fff5d4, #d78742);
}

.gift-shape.flower {
  background:
    radial-gradient(circle at 30% 30%, #ff5f80 0 18%, transparent 20%),
    radial-gradient(circle at 68% 32%, #ffd36a 0 18%, transparent 20%),
    radial-gradient(circle at 50% 68%, #ff8ec1 0 18%, transparent 20%),
    #1b6f4d;
}

.gift-send-row {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.gift-send-row button {
  min-width: 136px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ff9869, #ff4c89);
  font-weight: 950;
}

.interaction-grid,
.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.interaction-icon {
  border-radius: 18px;
  background: #3b3b3b;
}

.interaction-icon.vote::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #61e8e1;
  font-size: 34px;
  font-weight: 950;
}

.interaction-icon.chest::before {
  content: "▰";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffd875;
  font-size: 38px;
}

body[data-screen="games"] .big-game {
  border-width: 3px;
  border-radius: 18px 18px 20px 20px;
  padding: 16px 7px 15px;
}

body[data-screen="games"] .big-game span {
  min-height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff7d8;
  font-size: clamp(14px, 4vw, 21px);
  line-height: 1.05;
  text-shadow:
    0 2px 0 rgba(106, 61, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.24);
}

body[data-screen="games"] .big-game[data-game="ludo"] span {
  background:
    radial-gradient(circle at 25% 25%, #4ad3ff 0 11%, transparent 12%),
    radial-gradient(circle at 72% 32%, #ff5a67 0 11%, transparent 12%),
    radial-gradient(circle at 54% 64%, #ffca3a 0 11%, transparent 12%),
    rgba(255, 255, 255, 0.13);
}

body[data-screen="games"] .big-game[data-game="candy"] span {
  background:
    radial-gradient(circle at 20% 70%, #ff9944 0 10%, transparent 11%),
    radial-gradient(circle at 74% 22%, #7be8ff 0 10%, transparent 11%),
    radial-gradient(circle at 70% 74%, #ffe45e 0 10%, transparent 11%),
    rgba(255, 255, 255, 0.14);
}

body[data-screen="games"] .big-game[data-game="umo"] span,
body[data-screen="games"] .big-game[data-game="jackroo"] span {
  background:
    linear-gradient(25deg, transparent 0 28%, rgba(255, 255, 255, 0.24) 29% 42%, transparent 43%),
    rgba(255, 255, 255, 0.14);
}

body[data-screen="games"] .big-game strong {
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

body[data-screen="room"] .room-tools {
  bottom: calc(env(safe-area-inset-bottom) + 60px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 0 10px;
}

body[data-screen="room"] .tool-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 0.86rem),
    rgba(35, 31, 45, 0.86);
}

body[data-screen="room"] .tool-button.is-active {
  border-color: #ffcc62;
  color: #ffe08b;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 216, 104, 0.3), transparent 0.95rem),
    linear-gradient(180deg, #5b141c, #2a070d);
}

.tool-emoji {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

body[data-screen="room"] .composer {
  bottom: calc(env(safe-area-inset-bottom) + 116px);
  width: min(100% - 106px, 414px);
  left: calc(50% - 42px);
}

.room-side-stack {
  position: fixed;
  right: max(12px, calc((100vw - 520px) / 2 + 12px));
  bottom: calc(env(safe-area-inset-bottom) + 132px);
  z-index: 7;
  display: grid;
  gap: 16px;
}

.side-card {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  color: #fff0ba;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.52), transparent 0.65rem),
    linear-gradient(135deg, #ff4c91, #8b4dff);
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.side-card.rocket {
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 25%, #dff8ff 0 18%, transparent 19%),
    linear-gradient(180deg, #8e6cff, #36d6ff);
}

.side-card.rocket::after {
  content: "";
  position: absolute;
}

.side-card.gamepad {
  background:
    radial-gradient(circle at 32% 44%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 68% 44%, #ffcc48 0 8%, transparent 9%),
    linear-gradient(135deg, #ffd65d, #ff9b2c);
}

.icon-menu-clover {
  width: 23px;
  height: 23px;
  display: block;
  position: relative;
}

.icon-menu-clover::before,
.icon-menu-clover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 28%, currentColor 0 5px, transparent 5.7px),
    radial-gradient(circle at 72% 28%, currentColor 0 5px, transparent 5.7px),
    radial-gradient(circle at 28% 72%, currentColor 0 5px, transparent 5.7px),
    radial-gradient(circle at 72% 72%, currentColor 0 5px, transparent 5.7px);
}

.icon-menu-clover::after {
  inset: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.58;
}

body[data-screen="room"] .menu-tool {
  color: #ffe08b;
}

.icon-speaker {
  width: 20px;
  height: 18px;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.icon-speaker::before,
.icon-speaker::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.icon-speaker::before {
  left: 9px;
  top: 4px;
  width: 8px;
  height: 10px;
}

.icon-speaker::after {
  left: 9px;
  top: 0;
  width: 14px;
  height: 18px;
  opacity: 0.58;
}

.icon-mic-off {
  width: 12px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.icon-mic-off::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-38deg);
}

.icon-mic-off::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -6px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-4px);
}

body[data-screen="room"] .interaction-sheet {
  max-height: 70dvh;
  padding: 22px 14px calc(env(safe-area-inset-bottom) + 22px);
  color: #f8f7fb;
  background:
    linear-gradient(180deg, #303030, #272727);
}

body[data-screen="room"] .interaction-sheet > strong {
  font-size: 18px;
  line-height: 1;
}

body[data-screen="room"] .interaction-grid,
body[data-screen="room"] .program-grid {
  gap: 20px 14px;
}

body[data-screen="room"] .interaction-grid button,
body[data-screen="room"] .program-grid button {
  min-height: 92px;
  border-radius: 16px;
  color: #bbb7c0;
  position: relative;
}

body[data-screen="room"] .interaction-grid button:active,
body[data-screen="room"] .program-grid button:active {
  transform: translateY(1px) scale(0.98);
}

body[data-screen="room"] .interaction-grid button.is-enabled,
body[data-screen="room"] .program-grid button.is-enabled {
  color: #d9fff8;
}

body[data-screen="room"] .interaction-grid small,
body[data-screen="room"] .program-grid small {
  max-width: 76px;
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  line-height: 1.18;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-screen="room"] .interaction-icon,
.program-icon {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.1), transparent 1.4rem),
    #3d3d3d;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body[data-screen="room"] .interaction-icon.pk::after,
body[data-screen="room"] .interaction-icon.tea::after,
body[data-screen="room"] .interaction-icon.pack::after,
body[data-screen="room"] .interaction-icon.number::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -6px;
  width: 22px;
  height: 22px;
  border: 3px solid #303030;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #273033 0 3px, transparent 3.5px),
    linear-gradient(135deg, #31e5df, #38cdb4);
}

.program-icon {
  border-radius: 50%;
  color: white;
}

.program-icon::before,
.program-icon::after {
  content: "";
  position: absolute;
}

.program-icon.event::before {
  width: 28px;
  height: 28px;
  border-radius: 6px 18px 6px 18px;
  border: 3px solid currentColor;
  transform: rotate(-18deg);
}

.program-icon.event::after {
  right: 14px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.program-icon.clean::before {
  width: 30px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.program-icon.clean::after {
  width: 18px;
  height: 24px;
  left: 27px;
  top: 18px;
  border-radius: 2px 2px 12px 12px;
  background: currentColor;
  transform: rotate(-35deg);
}

.program-icon.medal::before {
  width: 22px;
  height: 22px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.program-icon.medal::after {
  left: 22px;
  top: 12px;
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 64% 34%, 100% 34%, 70% 56%, 82% 100%, 50% 74%, 18% 100%, 30% 56%, 0 34%, 36% 34%);
}

.program-icon.users::before {
  width: 13px;
  height: 13px;
  left: 18px;
  top: 17px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 19px 0 0 currentColor;
}

.program-icon.users::after {
  left: 14px;
  bottom: 15px;
  width: 38px;
  height: 17px;
  border-radius: 18px 18px 8px 8px;
  background: currentColor;
}

.program-icon.music::before {
  width: 22px;
  height: 31px;
  left: 22px;
  top: 13px;
  border-right: 5px solid currentColor;
  border-top: 5px solid currentColor;
  transform: skewY(-8deg);
}

.program-icon.music::after {
  left: 17px;
  bottom: 12px;
  width: 16px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 20px -8px 0 currentColor;
}

.program-icon.magic::before {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-38deg);
}

.program-icon.magic::after {
  right: 13px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: -17px 14px 0 currentColor, 7px 19px 0 currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.program-icon.image::before {
  width: 31px;
  height: 25px;
  border: 4px solid currentColor;
  border-radius: 6px;
}

.program-icon.image::after {
  left: 20px;
  bottom: 17px;
  width: 26px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 100%, 38% 34%, 58% 62%, 72% 44%, 100% 100%);
}

.program-icon.sliders::before {
  width: 4px;
  height: 31px;
  left: 18px;
  top: 16px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 12px 0 0 currentColor, 24px 0 0 currentColor;
}

.program-icon.sliders::after {
  left: 13px;
  top: 24px;
  width: 14px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 12px -7px 0 currentColor, 24px 9px 0 currentColor;
}

.program-icon.sliders i {
  position: absolute;
  right: -8px;
  top: -7px;
  min-width: 24px;
  height: 18px;
  border: 2px solid #303030;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: #5ed24a;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

body[data-room-theme="royal"][data-screen="room"] .stage-card {
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 197, 75, 0.24), transparent 9rem),
    linear-gradient(180deg, rgba(61, 29, 12, 0.36), rgba(0, 0, 0, 0.36));
}

body[data-room-theme="aurora"][data-screen="room"] .stage-card {
  background:
    radial-gradient(circle at 20% 28%, rgba(42, 217, 208, 0.24), transparent 10rem),
    radial-gradient(circle at 80% 34%, rgba(124, 92, 255, 0.24), transparent 10rem),
    linear-gradient(180deg, rgba(15, 22, 41, 0.34), rgba(0, 0, 0, 0.4));
}

body[data-screen="room"] .seat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 8px;
  margin-top: 26px;
}

body[data-screen="room"] .seat {
  min-height: 90px;
  gap: 8px;
}

body[data-screen="room"] .seat-avatar {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 44% 34%, rgba(255, 255, 255, 0.28), transparent 0.95rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(86, 54, 104, 0.26) 58%, rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.1),
    inset 0 -12px 28px rgba(0, 0, 0, 0.1),
    0 12px 26px rgba(0, 0, 0, 0.45);
}

body[data-screen="room"] .seat-avatar::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 16px;
  width: 14px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #c3bdcb);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.38);
}

body[data-screen="room"] .seat-avatar::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  width: 24px;
  height: 14px;
  border-bottom: 4px solid #d9d4df;
  border-left: 4px solid #d9d4df;
  border-right: 4px solid #d9d4df;
  border-radius: 0 0 14px 14px;
}

body[data-screen="room"] .seat.is-speaking .seat-avatar {
  border-color: rgba(74, 232, 228, 0.5);
  box-shadow:
    0 0 0 3px rgba(43, 217, 208, 0.13),
    0 0 24px rgba(43, 217, 208, 0.32),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
}

body[data-screen="room"] .seat span:last-child {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.74);
}

body[data-screen="room"] .room-tools {
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  grid-template-columns: repeat(7, 46px);
  justify-content: space-between;
  gap: 7px;
  padding: 0 14px;
}

body[data-screen="room"] .tool-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 50%;
  color: #f3edf7;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.12), transparent 0.8rem),
    rgba(42, 30, 48, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

body[data-screen="room"] .tool-button.is-active,
body[data-screen="room"] .tool-button.menu-tool.is-active {
  color: #ffe28a;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 217, 107, 0.28), transparent 0.92rem),
    rgba(72, 45, 56, 0.96);
}

body[data-screen="room"] .gift-dock + .gift-burst,
body[data-screen="room"] .giftButton {
  z-index: 13;
}

body[data-screen="room"] .composer {
  display: none;
}

body[data-screen="room"].is-chat-open .composer {
  display: grid;
}

body[data-screen="room"] .messages {
  padding-bottom: 88px;
}

body[data-screen="room"] .room-side-stack {
  right: max(12px, calc((100vw - 520px) / 2 + 12px));
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  gap: 18px;
}

body[data-screen="room"] .side-card {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 214, 110, 0.28);
  border-radius: 15px;
  font-size: 12px;
}

body[data-screen="room"] .side-card.jackpot {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.38), transparent 1.2rem),
    radial-gradient(circle at 30% 28%, #ff9ed1 0 14%, transparent 15%),
    radial-gradient(circle at 70% 28%, #ffd35b 0 13%, transparent 14%),
    linear-gradient(135deg, #ff4ca0, #8b45ff);
}

body[data-screen="room"] .side-card.rocket {
  height: 74px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 23%, #e5fbff 0 15%, transparent 16%),
    linear-gradient(180deg, #7f6dff, #2fd4ff 72%, #1d6dff);
}

body[data-screen="room"] .side-card.gamepad {
  background:
    radial-gradient(circle at 30% 44%, #ffffff 0 7%, transparent 8%),
    radial-gradient(circle at 69% 44%, #ffd24a 0 7%, transparent 8%),
    linear-gradient(135deg, #6a7cff, #25d6ff 48%, #ff8b51);
}

/* Room clarity pass */
body[data-screen="room"] .seat {
  border: 0;
  padding: 0;
  background: transparent;
  appearance: none;
}

body[data-screen="room"] .seat-avatar {
  background:
    radial-gradient(circle at 44% 34%, rgba(255, 255, 255, 0.28), transparent 0.95rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(74, 43, 91, 0.28) 58%, rgba(255, 255, 255, 0.05));
}

body[data-screen="room"] .seat.is-speaking .seat-avatar {
  background:
    radial-gradient(circle at 44% 34%, rgba(255, 255, 255, 0.34), transparent 0.95rem),
    radial-gradient(circle, rgba(43, 217, 208, 0.24), rgba(74, 43, 91, 0.3) 60%, rgba(255, 255, 255, 0.06));
}

body[data-screen="room"] .room-tools {
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 0 8px;
}

body[data-screen="room"] .tool-button {
  width: 100%;
  height: 64px;
  min-height: 64px;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  background: rgba(24, 15, 29, 0.78);
  box-shadow: none;
}

body[data-screen="room"] .tool-button span:last-child {
  display: block;
  max-width: 54px;
  overflow: hidden;
  color: #dfd7e6;
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

body[data-screen="room"] .tool-button > .icon,
body[data-screen="room"] .tool-button > .icon-menu-clover,
body[data-screen="room"] .tool-button > .tool-emoji {
  color: #f6eefb;
  transform: scale(0.92);
}

body[data-screen="room"] .tool-button.is-active,
body[data-screen="room"] .tool-button.menu-tool.is-active {
  background: rgba(78, 36, 74, 0.88);
}

body[data-screen="room"] .tool-button.is-active span:last-child,
body[data-screen="room"] .tool-button.menu-tool.is-active span:last-child {
  color: #ffe28a;
}

body[data-screen="room"] .messages {
  padding-bottom: 104px;
}

body[data-screen="room"] .interaction-grid small,
body[data-screen="room"] .program-grid small {
  max-width: 82px;
  min-height: 28px;
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

body[data-screen="room"] .interaction-grid button,
body[data-screen="room"] .program-grid button {
  min-height: 98px;
}

body[data-screen="room"] .interaction-icon,
body[data-screen="room"] .program-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

body[data-screen="room"] .program-icon {
  border-radius: 50%;
}

body[data-screen="room"] .interaction-icon.pk::before {
  content: "PK";
  color: #ff5fa5;
  font-size: 28px;
  font-style: italic;
}

body[data-screen="room"] .interaction-icon.tea::before {
  content: "";
  width: 30px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #b89183, #6c4f55);
  box-shadow: 0 11px 0 -8px #e5d5cb;
}

body[data-screen="room"] .interaction-icon.tea::after {
  content: "";
  right: 11px;
  top: 24px;
  width: 12px;
  height: 12px;
  border: 3px solid #b89183;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

body[data-screen="room"] .interaction-icon.pack::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 4px solid #ff5f8d;
  border-radius: 3px;
  box-shadow: inset 0 0 0 5px rgba(255, 95, 141, 0.18);
}

body[data-screen="room"] .interaction-icon.dice::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 9px 9px, #6b626d 0 2.5px, transparent 3px),
    radial-gradient(circle at 23px 9px, #6b626d 0 2.5px, transparent 3px),
    radial-gradient(circle at 16px 16px, #6b626d 0 2.5px, transparent 3px),
    radial-gradient(circle at 9px 23px, #6b626d 0 2.5px, transparent 3px),
    radial-gradient(circle at 23px 23px, #6b626d 0 2.5px, transparent 3px),
    #ffffff;
}

body[data-screen="room"] .interaction-icon.wheel::before {
  content: "";
  width: 31px;
  height: 31px;
  border: 4px solid #ffcb3d;
  border-radius: 50%;
  background: conic-gradient(#ffcb3d 0 18%, transparent 18% 33%, #ffcb3d 33% 50%, transparent 50% 66%, #ffcb3d 66% 84%, transparent 84%);
}

body[data-screen="room"] .interaction-icon.number::before {
  content: "99";
  color: #75ff4d;
  font-size: 27px;
  font-weight: 1000;
}

body[data-screen="room"] .interaction-icon.vote::before {
  content: "";
  width: 28px;
  height: 15px;
  border-left: 5px solid #61e8e1;
  border-bottom: 5px solid #61e8e1;
  transform: rotate(-45deg) translateY(-2px);
}

body[data-screen="room"] .interaction-icon.chest::before {
  content: "";
  width: 34px;
  height: 24px;
  border-radius: 5px 5px 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, 0.45) 46% 54%, transparent 55%),
    linear-gradient(180deg, #ffd875 0 48%, #d59628 49%);
}

body[data-screen="room"] .emoji-sheet,
body[data-screen="room"] .music-sheet {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 12;
  width: min(100%, 520px);
  max-height: 64dvh;
  margin: 0;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateX(-50%);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.36);
}

body[data-screen="room"] .emoji-sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  background: #050505;
}

.emoji-item {
  min-width: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #aaa6ad;
  background: transparent;
}

.emoji-item span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2a232c;
  background:
    radial-gradient(circle at 36% 34%, #fff7af 0 9%, transparent 10%),
    radial-gradient(circle at 63% 34%, #fff7af 0 9%, transparent 10%),
    linear-gradient(135deg, #ffe970, #ffb02e);
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.32);
}

.emoji-item small {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-screen="room"] .music-sheet {
  display: grid;
  gap: 18px;
  color: #2b2931;
  background: #ffffff;
}

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

.music-head strong {
  font-size: 24px;
}

.music-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #2b2931;
  background: transparent;
  font-size: 30px;
  font-weight: 900;
}

.music-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #45414a;
  background: #f1f1f3;
}

.music-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #aaa6ae;
}

.music-empty span {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #eef1f2;
  font-size: 48px;
}

.music-primary,
.music-secondary {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 950;
}

.music-primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #ff9869, #ff4c89);
}

.music-secondary {
  border: 1px solid #d9d9df;
  color: #26242b;
  background: white;
}

.room-settings-sheet {
  color: #2b2931;
  background: #f4f4f5;
}

.room-settings-sheet .sheet-head {
  color: #2b2931;
}

.settings-group {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.settings-group > span {
  padding: 0 10px 10px;
  color: #a5a2a8;
  font-weight: 850;
}

.settings-group button,
.settings-toggle {
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid #ececf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  color: #2b2931;
  background: white;
}

.settings-group button:first-of-type,
.settings-toggle:first-of-type {
  border-radius: 16px 16px 0 0;
}

.settings-group button:last-child,
.settings-toggle:last-child {
  border-bottom: 0;
  border-radius: 0 0 16px 16px;
}

.settings-group strong {
  min-width: 0;
  text-align: left;
  font-size: 17px;
}

.settings-group small {
  flex: 0 0 auto;
  color: #8d8990;
  font-size: 15px;
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
}

.settings-toggle i {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #dddddf;
  position: relative;
}

.settings-toggle i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.settings-toggle input:checked + i {
  background: #ff6f7e;
}

.settings-toggle input:checked + i::after {
  transform: translateX(24px);
}

@media (max-width: 390px) {
  body[data-screen="room"] .seat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 6px;
  }

  body[data-screen="room"] .seat-avatar {
    width: 58px;
    height: 58px;
  }

  body[data-screen="games"] .big-game-grid {
    gap: 8px;
  }
}

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

@media (max-width: 370px) {
  .quick-grid,
  body:not([data-screen="room"]) .seat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-room h1 {
    font-size: 30px;
  }
}

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .app-shell {
    width: min(100%, 430px);
    height: min(880px, calc(100dvh - 48px));
    min-height: min(880px, calc(100dvh - 48px));
    border-radius: 8px;
  }

  .sheet {
    border-radius: 8px;
    margin-bottom: 24px;
  }
}

/* Premium room pass */
body[data-screen="room"] .stage-card {
  position: relative;
  overflow: hidden;
}

body[data-screen="room"] .entrance-effect {
  position: fixed;
  left: 50%;
  top: clamp(208px, 36dvh, 360px);
  z-index: 12;
  width: min(calc(100vw - 28px), 396px);
  min-height: 58px;
  margin: 0;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  color: #fff8dc;
  pointer-events: none;
  background:
    radial-gradient(circle at 11% 50%, rgba(255, 221, 112, 0.22), transparent 4rem),
    linear-gradient(100deg, rgba(30, 15, 44, 0.92), rgba(56, 26, 78, 0.94), rgba(21, 10, 33, 0.9));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  animation: entrance-flyby 3.15s cubic-bezier(0.16, 0.82, 0.22, 1) both;
}

body[data-screen="room"] .entrance-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 0 24%, rgba(255, 255, 255, 0.12) 38%, transparent 56%);
  opacity: 0.9;
}

body[data-screen="room"] .entrance-ring {
  width: 42px;
  height: 42px;
  box-shadow:
    0 0 18px rgba(43, 217, 208, 0.34),
    inset 0 0 0 4px rgba(0, 0, 0, 0.22);
}

body[data-screen="room"] .entrance-effect strong {
  position: relative;
  z-index: 1;
  color: #fff8dc;
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@keyframes entrance-flyby {
  0% {
    opacity: 0;
    transform: translate3d(72vw, -50%, 0) scale(0.96);
  }

  14%,
  74% {
    opacity: 1;
  }

  48% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-122vw, -50%, 0) scale(0.98);
  }
}

body[data-screen="room"] .room-tools {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 18;
  width: min(calc(100% - 18px), 502px);
  min-height: 78px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 74, 170, 0.22), transparent 7rem),
    radial-gradient(circle at 16% 100%, rgba(43, 217, 208, 0.1), transparent 5rem),
    linear-gradient(180deg, rgba(39, 20, 52, 0.9), rgba(11, 7, 18, 0.94));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

body[data-screen="room"] .tool-button {
  width: auto;
  min-width: 0;
  height: 63px;
  min-height: 63px;
  padding: 4px 2px 2px;
  border: 0;
  border-radius: 18px;
  display: grid;
  grid-template-rows: 37px auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 3px;
  color: #f8f2ff;
  background: transparent;
  box-shadow: none;
}

body[data-screen="room"] .tool-button::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.3), transparent 0.72rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 7px 12px rgba(0, 0, 0, 0.22);
}

body[data-screen="room"] .tool-button > .icon,
body[data-screen="room"] .tool-button > .icon-menu-clover,
body[data-screen="room"] .tool-button > .tool-emoji {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  z-index: 1;
  color: currentColor;
  transform: scale(0.78);
}

body[data-screen="room"] .tool-button > .tool-emoji {
  font-size: 19px;
  transform: scale(0.9);
}

body[data-screen="room"] .tool-button span:last-child {
  grid-row: 2;
  grid-column: 1;
  max-width: 100%;
  display: block;
  overflow: visible;
  color: rgba(246, 241, 251, 0.86);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

body[data-screen="room"] .tool-button.is-active,
body[data-screen="room"] .tool-button.menu-tool.is-active {
  color: #ffe68d;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 87, 179, 0.18), transparent 2.7rem),
    rgba(255, 255, 255, 0.06);
}

body[data-screen="room"] .tool-button.is-active::before,
body[data-screen="room"] .tool-button.menu-tool.is-active::before {
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.42), transparent 0.72rem),
    linear-gradient(180deg, rgba(255, 207, 93, 0.35), rgba(144, 69, 255, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 139, 0.35),
    0 0 18px rgba(255, 89, 182, 0.22);
}

body[data-screen="room"] .tool-button.is-active span:last-child,
body[data-screen="room"] .tool-button.menu-tool.is-active span:last-child {
  color: #ffe68d;
}

body[data-screen="room"] .messages {
  padding-bottom: 116px;
}

body[data-screen="room"] .room-side-stack {
  bottom: calc(env(safe-area-inset-bottom) + 112px);
}

/* Compact premium room controls */
.icon-settings {
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-settings::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5px 0 0 currentColor;
  opacity: 0.85;
}

body[data-screen="room"] .owner-settings-button {
  color: #ffd66d;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 216, 104, 0.18), transparent 1.1rem),
    rgba(0, 0, 0, 0.28);
}

body[data-screen="room"] .owner-settings-button[hidden],
body[data-screen="room"] .room-side-stack,
body[data-screen="room"] .call-controls {
  display: none !important;
}

body[data-screen="room"] .seat.is-action span:last-child {
  max-width: 68px;
  color: #ffe38f;
  font-size: 12px;
  line-height: 1.05;
}

body[data-screen="room"] .seat.is-self .seat-avatar {
  border-color: rgba(255, 214, 109, 0.72);
  box-shadow:
    0 0 0 3px rgba(255, 214, 109, 0.16),
    0 0 26px rgba(255, 87, 179, 0.28),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
}

body[data-screen="room"] .interaction-sheet {
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  z-index: 14;
  width: min(calc(100% - 28px), 430px);
  max-height: min(44dvh, 414px);
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  gap: 12px;
  background:
    radial-gradient(circle at 74% 0%, rgba(255, 89, 182, 0.16), transparent 8rem),
    linear-gradient(180deg, rgba(49, 49, 51, 0.96), rgba(28, 28, 30, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

body[data-screen="room"] .interaction-sheet > strong {
  font-size: 16px;
  line-height: 1.1;
}

body[data-screen="room"] .interaction-grid,
body[data-screen="room"] .program-grid {
  gap: 9px 8px;
}

body[data-screen="room"] .interaction-grid button,
body[data-screen="room"] .program-grid button {
  min-height: 69px;
  gap: 4px;
}

body[data-screen="room"] .interaction-icon,
body[data-screen="room"] .program-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

body[data-screen="room"] .program-icon {
  border-radius: 50%;
}

body[data-screen="room"] .interaction-grid small,
body[data-screen="room"] .program-grid small {
  max-width: 68px;
  min-height: 0;
  color: #d6d1dc;
  font-size: 10.5px;
  line-height: 1.08;
}

/* Room rank and text clearance */
body[data-screen="room"] .rank-badge {
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 231, 146, 0.36);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff0a8;
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.2), transparent 1rem),
    linear-gradient(135deg, rgba(86, 38, 108, 0.94), rgba(35, 17, 53, 0.98));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.24);
}

body[data-screen="room"] .rank-badge[data-rank="üstad"] {
  color: #ffe68b;
  border-color: rgba(255, 214, 109, 0.48);
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.22), transparent 1rem),
    linear-gradient(135deg, rgba(112, 62, 22, 0.96), rgba(54, 24, 16, 0.98));
}

body[data-screen="room"] .rank-badge[data-rank="coşkulu"] {
  color: #fff4f9;
  border-color: rgba(255, 112, 174, 0.5);
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.24), transparent 1rem),
    linear-gradient(135deg, rgba(220, 61, 142, 0.94), rgba(95, 34, 142, 0.98));
}

body[data-screen="room"] .rank-badge[data-rank="sadık"] {
  color: #dffefa;
  border-color: rgba(80, 232, 214, 0.5);
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.2), transparent 1rem),
    linear-gradient(135deg, rgba(32, 123, 122, 0.94), rgba(26, 38, 76, 0.98));
}

body[data-screen="room"] .messages {
  max-height: clamp(128px, calc(100dvh - 590px), 246px);
  min-height: 0;
  margin-top: 14px;
  margin-bottom: calc(env(safe-area-inset-bottom) + 108px);
  padding: 4px 2px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

body[data-screen="room"] .messages::-webkit-scrollbar {
  display: none;
}

body[data-screen="room"] .bubble {
  max-width: min(82%, 342px);
}

body[data-screen="room"] .room-tools {
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 74, 170, 0.18), transparent 7rem),
    radial-gradient(circle at 16% 100%, rgba(43, 217, 208, 0.08), transparent 5rem),
    linear-gradient(180deg, rgba(35, 18, 48, 0.98), rgba(9, 6, 16, 0.99));
}

body[data-screen="room"] .interaction-sheet {
  background:
    radial-gradient(circle at 74% 0%, rgba(255, 89, 182, 0.13), transparent 8rem),
    linear-gradient(180deg, rgba(47, 47, 49, 0.99), rgba(25, 25, 27, 1));
}

/* Owner settings and room personalization */
body[data-screen="room"].has-room-cover .stage-card::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(5, 2, 10, 0.24), rgba(5, 2, 10, 0.78)),
    var(--room-cover-image);
  background-position: center;
  background-size: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

body[data-screen="room"] .stage-card > * {
  position: relative;
  z-index: 1;
}

/* Final dock and memory polish */
body[data-screen="room"] .room-view {
  padding-bottom: calc(env(safe-area-inset-bottom) + 118px) !important;
}

body[data-screen="room"] .stage-card {
  overflow: visible !important;
}

body[data-screen="room"] .room-tools {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
  z-index: 34 !important;
  width: min(calc(100vw - 18px), 502px) !important;
  min-height: 78px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

body[data-screen="room"] .messages {
  margin-bottom: calc(env(safe-area-inset-bottom) + 116px) !important;
  padding-bottom: 10px !important;
}

body[data-screen="room"] .interaction-sheet {
  bottom: calc(env(safe-area-inset-bottom) + 98px) !important;
  z-index: 28 !important;
}

body[data-screen="room"] .gift-dock,
body[data-screen="room"] .emoji-sheet,
body[data-screen="room"] .music-sheet {
  z-index: 27;
}

body:not([data-screen="room"]) .bottom-nav {
  height: calc(78px + env(safe-area-inset-bottom));
  min-height: calc(78px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 9px);
  border-top: 1px solid rgba(225, 226, 234, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -14px 30px rgba(33, 25, 45, 0.1);
  backdrop-filter: blur(20px);
}

body:not([data-screen="room"]) .nav-item {
  min-height: 58px;
  border-radius: 18px;
  color: #b7bac5;
  font-size: 11px;
  background: transparent;
}

body:not([data-screen="room"]) .nav-item.is-active {
  color: #ff5a7b;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 105, 148, 0.25), transparent 2.2rem),
    transparent;
}

body:not([data-screen="room"]) .nav-item.is-active .icon {
  filter: drop-shadow(0 8px 14px rgba(255, 95, 132, 0.22));
}

body[data-screen="memory"] .app-shell,
body[data-screen="memory"] {
  background: #f6f6f9;
}

.memory-view {
  min-height: calc(100dvh - 78px);
  padding: 10px 14px 98px;
  color: #29252f;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 116, 164, 0.12), transparent 11rem),
    radial-gradient(circle at 92% 6%, rgba(255, 214, 120, 0.16), transparent 12rem),
    #f6f6f9;
}

.memory-head {
  padding: 6px 4px 12px;
}

.memory-head strong {
  color: #25222d;
  font-size: 29px;
}

.memory-head span {
  color: #8d8994;
  font-size: 13px;
  line-height: 1.35;
}

.memory-compose,
.memory-card {
  border: 1px solid rgba(230, 230, 236, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(35, 30, 54, 0.08);
}

.memory-compose {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.memory-compose label {
  display: grid;
  gap: 8px;
}

.memory-compose label > span,
.memory-upload strong {
  color: #3a3541;
  font-size: 13px;
  font-weight: 950;
}

.memory-compose textarea {
  width: 100%;
  min-height: 104px;
  border: 0;
  border-radius: 17px;
  padding: 13px 14px;
  color: #28242e;
  background: #f1f2f6;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  outline: none;
  resize: none;
}

.memory-compose textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 95, 132, 0.2);
}

.memory-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.memory-upload {
  min-height: 54px;
  border-radius: 17px;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  padding: 8px 10px;
  background: #f6f6f8;
  position: relative;
  overflow: hidden;
}

.memory-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.memory-preview {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.76), transparent 0.6rem),
    linear-gradient(135deg, #ff8d6c, #ff5a91 50%, #2bd9d0);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.memory-preview.has-image {
  box-shadow: 0 7px 14px rgba(35, 30, 54, 0.16);
}

#shareMemoryButton {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, #ff8c68, #ff4f88);
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(255, 84, 132, 0.22);
}

.memory-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.memory-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
}

.memory-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.32), transparent 0.75rem),
    linear-gradient(135deg, #30235a, #ff5c8a);
  font-size: 14px;
  font-weight: 1000;
}

.memory-card-head,
.memory-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-card-head strong {
  color: #26232c;
  font-size: 14px;
}

.memory-card-head time,
.memory-card-foot {
  color: #96929d;
  font-size: 12px;
  font-weight: 800;
}

.memory-card p {
  margin: 6px 0 0;
  color: #3c3743;
  font-size: 14px;
  line-height: 1.35;
}

.memory-photo {
  display: block;
  height: 154px;
  margin-top: 10px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
}

.memory-card-foot {
  margin-top: 10px;
}

.memory-card-foot button {
  border: 0;
  color: #ff5a7b;
  background: transparent;
  font-weight: 950;
}

body[data-room-theme="dream"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at bottom, rgba(122, 40, 118, 0.92), rgba(38, 9, 55, 0.5) 42%, rgba(6, 3, 12, 0.94) 76%),
    linear-gradient(180deg, #0c0719 0%, #16051e 52%, #2b0d36 100%);
}

body[data-room-theme="royal"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 222, 120, 0.22), transparent 13rem),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    linear-gradient(180deg, #12080d 0%, #24130a 56%, #090509 100%);
}

body[data-room-theme="aurora"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 16% 16%, rgba(43, 217, 208, 0.22), transparent 12rem),
    radial-gradient(circle at 82% 28%, rgba(124, 92, 255, 0.28), transparent 11rem),
    radial-gradient(ellipse at bottom, rgba(48, 99, 130, 0.52), transparent 58%),
    linear-gradient(180deg, #050b17 0%, #111530 58%, #091016 100%);
}

body[data-room-theme="game"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 76, 145, 0.24), transparent 10rem),
    radial-gradient(circle at 82% 32%, rgba(43, 217, 208, 0.22), transparent 11rem),
    linear-gradient(180deg, #11051a 0%, #1a0b31 55%, #05040b 100%);
}

body[data-room-theme="gold"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 209, 93, 0.28), transparent 12rem),
    radial-gradient(ellipse at bottom, rgba(125, 73, 24, 0.5), transparent 58%),
    linear-gradient(180deg, #130807 0%, #2a1108 56%, #060403 100%);
}

body[data-room-theme="silver"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 50% 20%, rgba(214, 229, 255, 0.18), transparent 12rem),
    radial-gradient(ellipse at bottom, rgba(84, 96, 121, 0.48), transparent 58%),
    linear-gradient(180deg, #080913 0%, #171824 56%, #050508 100%);
}

body[data-screen="room"] .seat-grid[data-seat-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

body[data-screen="room"] .seat-grid[data-seat-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-screen="room"] .seat-grid[data-seat-count="10"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-screen="room"] .seat-grid[data-seat-count="12"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-screen="room"] .seat-grid[data-seat-count="24"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 5px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 3px;
}

body[data-seat-size="compact"][data-screen="room"] .seat {
  min-height: 62px;
}

body[data-seat-size="compact"][data-screen="room"] .seat-avatar,
body[data-screen="room"] .seat-grid[data-seat-count="24"] .seat-avatar {
  width: 44px;
  height: 44px;
}

body[data-seat-size="compact"][data-screen="room"] .seat-avatar::before,
body[data-screen="room"] .seat-grid[data-seat-count="24"] .seat-avatar::before {
  left: 17px;
  top: 11px;
  width: 10px;
  height: 18px;
}

body[data-seat-size="compact"][data-screen="room"] .seat-avatar::after,
body[data-screen="room"] .seat-grid[data-seat-count="24"] .seat-avatar::after {
  left: 14px;
  top: 30px;
  width: 16px;
  height: 9px;
  border-width: 0 3px 3px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] .seat {
  min-height: 50px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] .seat-avatar {
  width: 36px;
  height: 36px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] .seat-avatar::before {
  left: 14px;
  top: 9px;
  width: 8px;
  height: 15px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] .seat-avatar::after {
  left: 11px;
  top: 25px;
  width: 14px;
  height: 8px;
  border-width: 0 3px 3px;
}

body[data-seat-size="large"][data-screen="room"] .seat-avatar {
  width: 72px;
  height: 72px;
}

body[data-seat-size="large"][data-screen="room"] .seat {
  min-height: 104px;
}

body[data-seat-decor="royal"][data-screen="room"] .seat-avatar {
  border: 2px solid rgba(255, 212, 93, 0.68);
  box-shadow:
    0 0 0 4px rgba(255, 212, 93, 0.12),
    0 0 26px rgba(255, 174, 68, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
}

body[data-seat-decor="diamond"][data-screen="room"] .seat-avatar {
  border-radius: 18px;
  border: 1px solid rgba(189, 226, 255, 0.62);
  transform: rotate(45deg) scale(0.86);
}

body[data-seat-decor="diamond"][data-screen="room"] .seat-avatar::before,
body[data-seat-decor="diamond"][data-screen="room"] .seat-avatar::after {
  transform: rotate(-45deg);
}

body[data-seat-decor="neon"][data-screen="room"] .seat-avatar {
  border-color: rgba(43, 217, 208, 0.72);
  box-shadow:
    0 0 0 3px rgba(43, 217, 208, 0.14),
    0 0 24px rgba(255, 74, 170, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.13);
}

body[data-screen="room"] #joinVoiceButton > .icon-mic {
  transform: scale(0.9);
}

body[data-screen="room"] .tool-button:disabled {
  opacity: 0.52;
}

.room-settings-sheet {
  max-height: min(86dvh, 760px);
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  color: #29252e;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 91, 157, 0.08), transparent 10rem),
    #f7f7f9;
}

.settings-hero {
  min-height: 88px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #fff0f6);
}

.settings-cover-preview {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.72), transparent 1rem),
    linear-gradient(135deg, #241248, #ff5b9d);
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.18);
}

.settings-hero div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-hero strong {
  font-size: 20px;
}

.settings-hero small {
  color: #8c8790;
  font-weight: 800;
}

.settings-upload {
  min-height: 64px;
  border-bottom: 1px solid #ececf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  color: #2b2931;
  background: white;
  position: relative;
}

.settings-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.settings-choice-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: white;
  border-bottom: 1px solid #ececf0;
}

.settings-choice-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-choice-grid button,
.settings-chip-row button {
  min-height: 52px;
  border: 1px solid #ececf0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  color: #2b2931;
  background: #fafafa;
}

.settings-choice-grid button.is-active,
.settings-chip-row button.is-active {
  border-color: #ff638f;
  color: #ff4f80;
  background: linear-gradient(180deg, #fff2f6, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 99, 143, 0.12);
}

.settings-choice-grid strong {
  font-size: 14px;
}

.settings-choice-grid small {
  color: #8d8990;
  font-size: 11px;
}

.settings-chip-row {
  padding: 10px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  background: white;
  border-bottom: 1px solid #ececf0;
}

.settings-chip-row button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 40px;
  font-weight: 950;
}

.settings-chip-row.permission-row {
  flex-wrap: wrap;
  overflow-x: visible;
}

.settings-chip-row.permission-row button {
  flex: 1 1 74px;
  min-width: 72px;
}

.theme-pack-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #ececf0;
}

.theme-pack-grid button {
  min-height: 92px;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: end;
  text-align: left;
  color: #2b2931;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.72), transparent 1.8rem),
    linear-gradient(145deg, #fbf6ec, #f1edf8);
}

.theme-pack-grid button:nth-child(2) {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 224, 155, 0.52), transparent 2.2rem),
    linear-gradient(145deg, #3a2112, #f1b853);
  color: #fff7df;
}

.theme-pack-grid button:nth-child(3) {
  background:
    radial-gradient(circle at 80% 18%, rgba(104, 240, 255, 0.45), transparent 2.2rem),
    linear-gradient(145deg, #082230, #3fc8e7);
  color: #effcff;
}

.theme-pack-grid button:nth-child(4) {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 224, 155, 0.36), transparent 2.2rem),
    linear-gradient(145deg, #171020, #76275d);
  color: #fff3cf;
}

.theme-pack-grid button.is-active {
  border-color: #ffcf6a;
  box-shadow: 0 0 0 2px rgba(255, 207, 106, 0.18);
}

.theme-pack-grid button.is-locked {
  filter: grayscale(0.4);
  opacity: 0.72;
}

.theme-pack-grid span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  color: #4f310c;
  background: rgba(255, 228, 167, 0.9);
  font-size: 10px;
  font-weight: 900;
}

.theme-pack-grid strong {
  font-size: 14px;
}

.theme-pack-grid small {
  color: currentColor;
  opacity: 0.72;
  font-size: 11px;
  line-height: 1.25;
}

/* Reference pass: Witok-like polish without copying assets */
body:not([data-screen="room"]) .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 42;
  width: min(100%, 520px);
  transform: translateX(-50%);
}

body:not([data-screen="room"]) .view {
  padding-bottom: calc(env(safe-area-inset-bottom) + 100px) !important;
}

body:not([data-screen="room"]) .nav-item {
  gap: 3px;
  font-weight: 950;
}

body:not([data-screen="room"]) .nav-item .icon {
  transform: scale(0.9);
}

body:not([data-screen="room"]) .nav-item[data-tab="memory"] .icon-stage {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

body:not([data-screen="room"]) .nav-item[data-tab="memory"] .icon-stage::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 0 rgba(255, 90, 123, 0.32);
}

body[data-screen="home"] .room-card {
  min-height: 146px;
  border: 2px solid rgba(222, 159, 45, 0.72) !important;
  border-radius: 18px !important;
  padding: 11px 12px 12px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at 100% 0%, rgba(255, 116, 166, 0.11), transparent 8rem) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 210, 0.72),
    0 8px 18px rgba(151, 103, 23, 0.09) !important;
}

body[data-screen="home"] .room-card::before {
  height: 5px !important;
  left: 86px !important;
  right: 42px !important;
  top: 13px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(229, 174, 58, 0.88), rgba(255, 236, 158, 0.36)) !important;
}

body[data-screen="home"] .room-cover {
  width: 66px !important;
  height: 66px !important;
  border: 2px solid rgba(230, 178, 60, 0.88) !important;
  border-radius: 16px !important;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 246, 184, 0.78), transparent 1.6rem),
    linear-gradient(145deg, #2bd9d0, #ff7b78) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.38),
    0 8px 16px rgba(46, 39, 56, 0.14);
}

body[data-screen="home"] .room-card-top strong {
  color: #26232c !important;
  font-size: 17px !important;
  line-height: 1.05;
}

body[data-screen="home"] .room-card-top span,
body[data-screen="home"] .room-card p {
  color: #827a8d !important;
}

body[data-screen="home"] .enter-button {
  min-width: 48px;
  min-height: 42px;
  color: #ff5a7b !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 116, 166, 0.16), transparent 1.7rem),
    #fff7fa !important;
  box-shadow: 0 8px 16px rgba(255, 90, 123, 0.13);
}

body[data-screen="games"] .big-game-grid {
  gap: 14px 10px !important;
}

body[data-screen="games"] .big-game {
  min-height: 150px;
  border-width: 3px !important;
  border-color: #c98924 !important;
  border-radius: 22px 22px 25px 25px !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 241, 173, 0.72),
    inset 0 -30px 42px rgba(0, 0, 0, 0.08),
    0 12px 19px rgba(93, 60, 16, 0.16) !important;
}

body[data-screen="games"] .game-logo {
  min-height: 34px;
  font-size: clamp(16px, 4.4vw, 23px);
}

body[data-screen="games"] .game-logo.two-line {
  font-size: clamp(12px, 3.5vw, 18px);
}

body[data-screen="games"] .lucky-row {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(35, 30, 54, 0.07);
}

body[data-screen="room"] .room-view {
  min-height: 100dvh;
  padding: 6px 10px calc(env(safe-area-inset-bottom) + 124px) !important;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 255, 255, 0.84) 0 1px, transparent 1.8px),
    radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(ellipse at bottom, rgba(102, 34, 98, 0.78), rgba(32, 8, 48, 0.32) 42%, rgba(6, 3, 11, 0.96) 75%),
    linear-gradient(180deg, #070411 0%, #11041a 52%, #2b0b31 100%) !important;
}

body[data-screen="room"] .room-view::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 0;
  width: min(100%, 520px);
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 118, 172, 0.18), transparent 58%),
    linear-gradient(170deg, transparent 0 38%, rgba(132, 53, 135, 0.28) 39% 45%, transparent 46%),
    linear-gradient(12deg, transparent 0 52%, rgba(78, 23, 90, 0.42) 53% 59%, transparent 60%);
  transform: translateX(-50%);
}

body[data-screen="room"] .room-view > * {
  position: relative;
  z-index: 1;
}

body[data-screen="room"] .room-top {
  min-height: 78px;
  margin: -2px -4px 4px;
  padding: 12px 6px 8px;
  align-items: start;
  background: linear-gradient(180deg, rgba(10, 3, 12, 0.74), transparent);
}

body[data-screen="room"] .room-top strong {
  color: #ffe778;
  font-size: 21px;
  line-height: 1.1;
}

body[data-screen="room"] .room-top span {
  color: #ffe15f;
  font-size: 12px;
  font-weight: 850;
}

body[data-screen="room"] .stage-card {
  min-height: clamp(360px, 58dvh, 520px);
  margin: 0 -2px;
  padding: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-screen="room"] .stage-head {
  margin: 0 0 16px;
  padding: 0 2px;
}

body[data-screen="room"] .stage-head time {
  min-width: 54px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff25f;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 950;
}

body[data-screen="room"] .room-quality {
  display: none !important;
}

body[data-screen="room"] .seat-grid {
  margin: 8px auto 0;
  max-width: 430px;
  gap: 18px 8px;
}

body[data-screen="room"] .seat-grid[data-seat-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 320px;
}

body[data-screen="room"] .seat-grid[data-seat-count="8"],
body[data-screen="room"] .seat-grid[data-seat-count="12"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-screen="room"] .seat-grid[data-seat-count="10"] {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body[data-screen="room"] .seat-grid[data-seat-count="24"] {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px 4px;
}

body[data-screen="room"] .seat-grid[data-seat-count="32"] {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 10px 2px;
}

body[data-screen="room"] .seat {
  min-height: 88px;
  gap: 6px;
}

body[data-screen="room"] .seat-avatar {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(48, 224, 216, 0.54);
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.34), transparent 1rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(72, 43, 88, 0.36) 58%, rgba(255, 255, 255, 0.06));
  box-shadow:
    0 0 0 3px rgba(42, 213, 207, 0.13),
    0 13px 24px rgba(0, 0, 0, 0.32),
    inset 0 0 24px rgba(255, 255, 255, 0.11);
}

body[data-screen="room"] .seat-avatar::before {
  left: 24px;
  top: 16px;
  width: 16px;
  height: 27px;
  border-radius: 999px;
}

body[data-screen="room"] .seat-avatar::after {
  left: 20px;
  top: 42px;
  width: 24px;
  height: 12px;
}

body[data-screen="room"] .seat span:last-child {
  color: #fff7cb;
  font-size: 13px;
}

body[data-screen="room"] .messages {
  max-height: clamp(116px, calc(100dvh - 620px), 232px) !important;
  margin-top: 4px !important;
  margin-bottom: calc(env(safe-area-inset-bottom) + 116px) !important;
  padding: 0 4px 6px !important;
}

body[data-screen="room"] .bubble {
  border-radius: 10px !important;
  color: #36ede7 !important;
  background: rgba(8, 3, 13, 0.66) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

body[data-screen="room"] .room-tools {
  bottom: calc(env(safe-area-inset-bottom) + 9px) !important;
  min-height: 76px !important;
  padding: 7px 8px 6px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-radius: 25px !important;
  background:
    radial-gradient(circle at 52% 0%, rgba(255, 82, 181, 0.2), transparent 7rem),
    radial-gradient(circle at 9% 90%, rgba(43, 217, 208, 0.09), transparent 4.8rem),
    linear-gradient(180deg, rgba(42, 18, 54, 0.96), rgba(10, 6, 16, 0.98)) !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

body[data-screen="room"] .tool-button {
  height: 62px !important;
  min-height: 62px !important;
}

body[data-screen="room"] .tool-button::before {
  width: 37px !important;
  height: 37px !important;
}

body[data-screen="room"] .tool-button span:last-child {
  font-size: 9.3px !important;
  font-weight: 950 !important;
}

body[data-screen="room"] .interaction-sheet {
  max-height: min(52dvh, 430px) !important;
  border-radius: 24px !important;
}

/* Real gift catalog and VIP/SVIP pass */
body[data-screen="room"] .gift-dock {
  grid-template-columns: none !important;
  gap: 12px !important;
  width: min(calc(100vw - 18px), 502px) !important;
  max-height: min(68dvh, 570px) !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom) + 92px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 94, 156, 0.16), transparent 9rem),
    linear-gradient(180deg, rgba(38, 38, 40, 0.98), rgba(22, 22, 24, 0.99)) !important;
}

.gift-promo {
  min-height: 62px !important;
  border: 1px solid rgba(255, 225, 133, 0.24);
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 10% 48%, rgba(255, 231, 131, 0.22), transparent 4rem),
    linear-gradient(135deg, #8629ff, #f214be 58%, #ff7a54) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.gift-promo strong {
  font-size: 13px;
  line-height: 1.25;
}

.gift-targets {
  min-height: 56px;
  gap: 12px !important;
  padding: 2px 0;
}

.gift-targets button {
  min-width: 58px !important;
  height: 54px !important;
  border: 2px solid rgba(255, 117, 127, 0.8) !important;
  border-radius: 18px !important;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08) !important;
}

.gift-targets button span {
  color: white;
  font-size: 12px;
  font-weight: 1000;
}

.gift-targets button small {
  max-width: 64px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-targets button.is-active {
  background: linear-gradient(180deg, #ff777f, #ff5a86) !important;
  box-shadow: 0 10px 18px rgba(255, 92, 134, 0.22);
}

.gift-tabs {
  gap: 16px !important;
  padding: 0 2px;
}

.gift-tabs button {
  min-height: 34px !important;
  padding: 0;
  color: rgba(255, 255, 255, 0.44) !important;
  font-size: 15px;
}

.gift-tabs button.is-active {
  color: #ffffff !important;
}

.gift-tabs button.is-active::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7d71, #ff4f8b);
}

.gift-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 10px;
}

body[data-screen="room"] .gift-catalog .gift-item {
  min-height: 112px !important;
  border: 1px solid transparent;
  border-radius: 15px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 7px 4px 6px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

body[data-screen="room"] .gift-catalog .gift-item.is-selected {
  border-color: #ff5f89;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 95, 137, 0.18), transparent 3rem),
    rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 95, 137, 0.22);
}

body[data-screen="room"] .gift-catalog .gift-item.is-locked {
  opacity: 0.46;
}

body[data-screen="room"] .gift-catalog .gift-item.premium {
  outline: 1px solid rgba(255, 206, 95, 0.48) !important;
}

body[data-screen="room"] .gift-catalog .gift-shape {
  width: 58px !important;
  height: 58px !important;
  border-radius: 17px !important;
  display: grid;
  place-items: center;
  color: #fff7ce;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.5), transparent 0.8rem),
    linear-gradient(135deg, #ff8e66, #ff4f8b);
}

.gift-tea .gift-shape { background: radial-gradient(ellipse at 52% 46%, #8b3c1f 0 28%, transparent 30%), linear-gradient(135deg, #fff4d6, #d78742) !important; color: #6d321d !important; }
.gift-rose .gift-shape { background: radial-gradient(circle at 36% 34%, #ff7692 0 20%, transparent 22%), radial-gradient(circle at 66% 34%, #ff3e78 0 20%, transparent 22%), linear-gradient(135deg, #1b7a54, #26d088) !important; }
.gift-eye .gift-shape { border-radius: 50% !important; background: radial-gradient(circle, #111 0 11%, #17c4ff 12% 31%, #efffff 32% 55%, transparent 56%), #12304a !important; }
.gift-cake .gift-shape { background: linear-gradient(180deg, #ff8fb5 0 34%, #fff0c7 35% 64%, #f05e7c 65%) !important; }
.gift-gold .gift-shape, .gift-crown .gift-shape { background: radial-gradient(circle at 50% 30%, #fff2a9 0 20%, transparent 22%), linear-gradient(135deg, #8f6119, #ffdd72) !important; color: #51330b !important; }
.gift-lux .gift-shape { background: radial-gradient(circle, #191317 0 28%, transparent 30%), conic-gradient(#fff2aa, #8d5b17, #ffe392, #fff2aa) !important; }
.gift-pack .gift-shape { background: linear-gradient(135deg, #ff4f88, #d332ff) !important; }
.gift-dice .gift-shape { background: radial-gradient(circle at 35% 35%, #ff3f5d 0 5%, transparent 6%), radial-gradient(circle at 64% 64%, #ff3f5d 0 5%, transparent 6%), #f7f7f9 !important; color: #222 !important; }
.gift-wheel .gift-shape { border-radius: 50% !important; background: conic-gradient(#ffca3d 0 25%, #ff5f80 0 50%, #2bd9d0 0 75%, #7c5cff 0) !important; }
.gift-chest .gift-shape { background: linear-gradient(180deg, #ffd36b 0 34%, #8b311f 35% 100%) !important; }
.gift-blue .gift-shape { background: linear-gradient(180deg, #7de6ff, #1d7dff) !important; }
.gift-game .gift-shape { background: linear-gradient(135deg, #2bd9d0, #7c5cff) !important; }
.gift-light .gift-shape { background: radial-gradient(circle, #fff6ad 0 16%, #ffb33d 17% 28%, transparent 30%), linear-gradient(135deg, #2439a6, #18d1ff) !important; }
.gift-purple .gift-shape { background: linear-gradient(135deg, #7c5cff, #ff4fa3) !important; }
.gift-heart .gift-shape { background: radial-gradient(circle at 35% 35%, #ff91a4 0 22%, transparent 23%), radial-gradient(circle at 65% 35%, #ff5d87 0 22%, transparent 23%), linear-gradient(180deg, #ff517f, #a2196c) !important; }
.gift-ring .gift-shape { background: radial-gradient(circle, transparent 0 28%, #fff6b1 29% 38%, transparent 39%), linear-gradient(135deg, #422f60, #ff6aa2) !important; }
.gift-cash .gift-shape { background: linear-gradient(135deg, #e9ffe8, #6fd584) !important; color: #114e24 !important; }
.gift-villa .gift-shape { background: linear-gradient(180deg, #ffd36b 0 28%, #f7f7ff 29% 70%, #30c29a 71%) !important; color: #6a4814 !important; }
.gift-lion .gift-shape { background: radial-gradient(circle, #ffd36b 0 30%, #a66a1c 31% 45%, transparent 46%), linear-gradient(135deg, #17110d, #8c4c16) !important; }

body[data-screen="room"] .gift-catalog .gift-item strong {
  max-width: 100%;
  color: #fff;
  font-size: 11px !important;
  line-height: 1.05;
  text-align: center;
}

body[data-screen="room"] .gift-catalog .gift-item small {
  color: rgba(255, 217, 110, 0.9) !important;
  font-size: 10px !important;
}

.gift-send-row {
  min-height: 62px !important;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-wallet,
.gift-selection {
  display: grid;
  gap: 1px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
}

.gift-wallet strong,
.gift-selection {
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.gift-quantity {
  height: 40px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 34px 30px 34px;
  align-items: center;
  justify-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.gift-quantity button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 1000;
}

.gift-quantity strong {
  color: white;
  font-size: 14px;
}

.gift-send-row #sendGiftButton {
  min-width: 104px !important;
  min-height: 44px !important;
}

.gift-send-row #sendGiftButton:disabled {
  opacity: 0.5;
}

.vip-plan-card {
  min-height: 86px;
  margin: 4px 0 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 214, 109, 0.28);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 230, 139, 0.22), transparent 4rem),
    linear-gradient(135deg, #2b183d, #7a253b);
}

.vip-plan-card span {
  color: #ffe699;
  font-size: 12px;
  font-weight: 950;
}

.vip-plan-card strong {
  font-size: 25px;
  line-height: 1;
}

.vip-plan-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.vip-sheet .primary-action:disabled {
  opacity: 0.52;
}

/* Compact gift drawer pass */
body[data-screen="room"] .gift-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 92px) !important;
  z-index: 31 !important;
  width: min(calc(100vw - 16px), 500px) !important;
  max-height: min(46dvh, 390px) !important;
  min-height: 0 !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding: 9px 10px 10px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  transform: translateX(-50%) !important;
}

body[data-screen="room"] .gift-promo {
  min-height: 42px !important;
  padding: 6px 9px !important;
  border-radius: 12px !important;
  gap: 8px !important;
}

body[data-screen="room"] .gift-promo strong {
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

body[data-screen="room"] .gift-badge {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto;
}

body[data-screen="room"] .gift-targets {
  min-height: 42px !important;
  gap: 7px !important;
  padding: 0 !important;
}

body[data-screen="room"] .gift-targets button {
  min-width: 46px !important;
  height: 40px !important;
  border-width: 1px !important;
  border-radius: 14px !important;
  padding: 3px 6px !important;
}

body[data-screen="room"] .gift-targets button span {
  font-size: 11px !important;
}

body[data-screen="room"] .gift-targets button small {
  max-width: 48px !important;
  font-size: 8px !important;
}

body[data-screen="room"] .gift-tabs {
  min-height: 27px !important;
  gap: 14px !important;
  padding: 0 1px !important;
}

body[data-screen="room"] .gift-tabs button {
  min-height: 27px !important;
  font-size: 13px !important;
}

body[data-screen="room"] .gift-tabs button.is-active::after {
  width: 18px !important;
  height: 2px !important;
  margin-top: 2px !important;
}

body[data-screen="room"] .gift-catalog {
  min-height: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px 7px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: none;
}

body[data-screen="room"] .gift-catalog::-webkit-scrollbar {
  display: none;
}

body[data-screen="room"] .gift-catalog .gift-item {
  min-height: 78px !important;
  border-radius: 12px !important;
  gap: 4px !important;
  padding: 5px 2px 4px !important;
}

body[data-screen="room"] .gift-catalog .gift-shape {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  font-size: 8.5px !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24) !important;
}

body[data-screen="room"] .gift-catalog .gift-item strong {
  font-size: 9.5px !important;
  line-height: 1.05 !important;
}

body[data-screen="room"] .gift-catalog .gift-item small {
  font-size: 8.5px !important;
}

body[data-screen="room"] .gift-send-row {
  min-height: 46px !important;
  display: grid !important;
  grid-template-columns: minmax(42px, 0.75fr) minmax(76px, 1.1fr) auto minmax(78px, auto);
  gap: 6px !important;
  padding-top: 6px !important;
}

body[data-screen="room"] .gift-wallet,
body[data-screen="room"] .gift-selection {
  min-width: 0;
  font-size: 9px !important;
}

body[data-screen="room"] .gift-wallet strong,
body[data-screen="room"] .gift-selection {
  overflow: hidden;
  font-size: 11px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-screen="room"] .gift-quantity {
  height: 34px !important;
  grid-template-columns: 28px 24px 28px !important;
}

body[data-screen="room"] .gift-quantity button {
  width: 23px !important;
  height: 23px !important;
}

body[data-screen="room"] .gift-quantity strong {
  font-size: 12px !important;
}

body[data-screen="room"] .gift-send-row #sendGiftButton {
  min-width: 78px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}

body[data-screen="home"] .vip-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

body[data-screen="home"] .vip-card {
  min-height: 82px;
  border: 1px solid rgba(255, 214, 109, 0.38);
  border-radius: 18px;
  padding: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 20px rgba(79, 48, 12, 0.12);
}

body[data-screen="home"] .vip-card.vip {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), transparent 2.8rem),
    linear-gradient(135deg, #3b1b18, #c15d24 58%, #f0b34a);
}

body[data-screen="home"] .vip-card.svip {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 244, 167, 0.26), transparent 2.8rem),
    linear-gradient(135deg, #201034, #7c2ea6 55%, #ff5e8e);
}

body[data-screen="home"] .vip-card span {
  color: #fff2a6;
  font-size: 12px;
  font-weight: 1000;
}

body[data-screen="home"] .vip-card strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.05;
}

body[data-screen="home"] .vip-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.2;
}

/* Reference completion pass */
#homeView[data-home-mode="events"] .bonus-banner,
#homeView[data-home-mode="events"] .welcome-pack,
#homeView[data-home-mode="events"] .vip-strip,
#homeView[data-home-mode="events"] .feature-cards,
#homeView[data-home-mode="events"] .filter-row,
#homeView[data-home-mode="events"] .feed-head,
#homeView[data-home-mode="events"] .room-feed {
  display: none !important;
}

.event-showcase {
  display: grid;
  gap: 18px;
  color: #272330;
}

.event-hero-slider {
  min-height: 158px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
  padding: 16px;
  color: white;
  background:
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.42), transparent 3.2rem),
    linear-gradient(110deg, rgba(18, 9, 18, 0.2), rgba(18, 9, 18, 0.5)),
    linear-gradient(135deg, #9b171d, #efb34e 48%, #efe1be);
  box-shadow: 0 14px 26px rgba(120, 72, 20, 0.18);
}

.event-hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(120deg, transparent 0 26px, rgba(255, 255, 255, 0.1) 27px 29px),
    radial-gradient(circle at 18% 26%, rgba(255, 217, 117, 0.9), transparent 3.8rem);
}

.event-hero-slider div,
.event-top-medal,
.event-hero-slider i {
  position: relative;
  z-index: 1;
}

.event-top-medal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff2c9;
  background: radial-gradient(circle, #4a0f15, #12080d);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 0 0 5px rgba(255, 224, 142, 0.4);
}

.event-hero-slider small,
.event-hero-slider span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.event-hero-slider strong {
  display: block;
  max-width: 270px;
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.36);
}

.event-hero-slider i {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #111 0 24%, transparent 25%),
    conic-gradient(#ffe28d, #8b311f, #fff7c4, #ffe28d);
}

.event-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-section-head strong {
  color: #27232e;
  font-size: 22px;
  font-weight: 1000;
}

.event-section-head button {
  border: 1px solid rgba(34, 31, 42, 0.08);
  border-radius: 999px;
  padding: 9px 14px;
  color: #8b8791;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 950;
}

.event-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(214px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.event-card-row::-webkit-scrollbar {
  display: none;
}

.event-card,
.official-event {
  border: 0;
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.event-card {
  min-height: 116px;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  align-content: end;
  gap: 3px;
}

.event-card::before,
.official-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.event-card > *,
.official-event > * {
  position: relative;
  z-index: 1;
}

.event-card.leopard {
  background:
    radial-gradient(circle at 20% 24%, #ffda75 0 10%, transparent 12%),
    radial-gradient(circle at 84% 22%, #302316 0 8%, transparent 9%),
    linear-gradient(135deg, #3d210a, #c69327);
}

.event-card.mystery {
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.28), transparent 3rem),
    linear-gradient(135deg, #341f62, #11101d 70%);
}

.event-card.lucky {
  background: linear-gradient(135deg, #102754, #7653ff);
}

.event-card span,
.event-card small,
.official-event span,
.official-event small {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.9;
}

.event-card strong {
  font-size: 17px;
  line-height: 1.1;
}

.official-event-list {
  display: grid;
  gap: 14px;
}

.official-event {
  min-height: 138px;
  border-radius: 16px;
  padding: 17px;
  display: grid;
  align-content: center;
  gap: 5px;
  box-shadow: 0 12px 24px rgba(137, 90, 19, 0.14);
}

.official-event.gold {
  background:
    radial-gradient(circle at 82% 44%, #ffd86b 0 14%, transparent 15%),
    linear-gradient(135deg, #6d1e12, #e19621 58%, #fff1a2);
}

.official-event.treasure {
  background:
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.5), transparent 2.8rem),
    linear-gradient(135deg, #5b3210, #c57b18, #ffe085);
}

.official-event.vip {
  background: linear-gradient(135deg, #f0a300, #b82113 56%, #4b0f0b);
}

.official-event strong {
  max-width: 330px;
  font-size: 28px;
  line-height: 0.98;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

body[data-screen="room"] .room-side-stack {
  display: grid !important;
  z-index: 18 !important;
}

body[data-screen="room"] .seat.is-locked .seat-avatar {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.78;
}

body[data-screen="room"] .seat.is-locked .seat-avatar::before {
  left: 22px !important;
  top: 28px !important;
  width: 20px !important;
  height: 16px !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #ffffff, #bbb5c5) !important;
}

body[data-screen="room"] .seat.is-locked .seat-avatar::after {
  left: 21px !important;
  top: 17px !important;
  width: 22px !important;
  height: 22px !important;
  border: 4px solid #ded9e6 !important;
  border-bottom: 0 !important;
  border-radius: 999px 999px 0 0 !important;
  background: transparent !important;
}

.mic-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.mic-action-panel {
  width: min(calc(100vw - 38px), 484px);
  margin-bottom: calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 18px 18px 8px 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.28);
}

.mic-action-panel button {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid #ececf0;
  color: #25222c;
  background: white;
  font-size: 20px;
  font-weight: 950;
}

.mic-action-panel button:last-child {
  color: #aaa5af;
  background: #f5f5f7;
}

.full-screen-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: none;
  color: #fff;
  background: #080911;
}

.full-screen-sheet::-webkit-scrollbar {
  display: none;
}

.premium-page-head,
.relation-top {
  min-height: 88px;
  padding: calc(env(safe-area-inset-top) + 12px) 22px 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.premium-page-head strong {
  text-align: center;
  font-size: 24px;
  font-weight: 1000;
}

.back-round,
.help-round,
.mine-pill {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.back-round,
.help-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.back-round::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 auto;
  display: block;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(45deg);
}

.help-round {
  font-size: 24px;
  font-weight: 1000;
}

.mine-pill {
  width: auto;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 950;
}

.badges-page {
  padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 176, 0.22), transparent 15rem),
    linear-gradient(180deg, #24241e, #060912 46%, #070a12);
}

.badge-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
  padding: 22px 34px;
}

.badge-slots button {
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.04);
}

.badge-slots button::before {
  content: "+";
  font-size: 36px;
  font-weight: 650;
}

.badge-hint {
  margin: 8px 24px 24px;
  text-align: center;
  color: #f7f1e9;
  font-size: 16px;
  font-weight: 900;
}

.badge-tabs {
  padding: 20px 28px 8px;
  border-top: 2px solid rgba(255, 224, 160, 0.72);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.badge-tabs button {
  border: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font-size: 20px;
  font-weight: 1000;
}

.badge-tabs button.is-active {
  color: white;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 28px;
  padding: 34px 34px 110px;
}

.badge-grid button {
  border: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: white;
  background: transparent;
  font-weight: 950;
}

.badge.medal {
  width: 132px;
  height: 104px;
  filter: grayscale(1);
  opacity: 0.86;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.64), transparent 2rem),
    conic-gradient(from -40deg, #fafafa, #7b7b80, #ffffff, #a3a3aa, #fafafa);
  clip-path: polygon(50% 0, 66% 18%, 92% 18%, 82% 46%, 100% 66%, 70% 72%, 60% 100%, 50% 82%, 40% 100%, 30% 72%, 0 66%, 18% 46%, 8% 18%, 34% 18%);
}

.badge-score-strip,
.shop-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  width: min(calc(100vw - 42px), 478px);
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.badge-score-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: #3c2304;
  background: linear-gradient(90deg, #f4b95b, #fff1bb);
  font-size: 18px;
  font-weight: 1000;
}

.shop-page {
  padding: 0 22px 110px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 230, 155, 0.18), transparent 15rem),
    linear-gradient(180deg, #25140f, #0f1010 28%, #101010);
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 20px;
}

.shop-tabs button {
  min-height: 118px;
  border: 0;
  border-radius: 17px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.34);
  background: #202020;
  font-weight: 950;
}

.shop-tabs button.is-active {
  color: #ffe68a;
  background: linear-gradient(180deg, rgba(255, 230, 142, 0.22), #242424);
  box-shadow: inset 0 0 0 1px rgba(255, 219, 107, 0.42);
}

.shop-tabs span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1606 0 36%, transparent 37%), conic-gradient(#fff1aa, #9a650e, #ffe69a);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-product {
  min-height: 224px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  color: #ffe56d;
  background: #212121;
  position: relative;
}

.shop-product small {
  justify-self: start;
  color: white;
  font-weight: 900;
}

.shop-product em {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 3px 10px;
  color: white;
  font-style: normal;
  font-weight: 900;
}

.shop-product span {
  width: 112px;
  height: 92px;
  margin-top: 20px;
  display: block;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.5), transparent 2rem), linear-gradient(135deg, #8b5cf6, #2bd9d0);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.24));
}

.shop-product strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.shop-product b {
  font-size: 24px;
}

.shop-bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  color: #ffdf5a;
  background: rgba(44, 44, 44, 0.96);
}

.shop-bottom-bar button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #733b00;
  background: linear-gradient(180deg, #fff4a5, #ffcf3f);
  font-weight: 1000;
}

.shop-bottom-bar strong {
  font-size: 28px;
}

.relation-page {
  padding-bottom: 44px;
  background:
    radial-gradient(circle at 50% 2%, rgba(255, 255, 255, 0.52), transparent 8rem),
    linear-gradient(180deg, #ff72b1, #f95296 44%, #f24793);
}

.relation-page[data-relation-mode="kanka"] {
  background: linear-gradient(180deg, #451106, #7b1509 45%, #6c1209);
}

.relation-top {
  grid-template-columns: 46px minmax(0, 1fr);
}

.relation-switch {
  height: 50px;
  border: 2px solid rgba(255, 221, 99, 0.78);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(0, 0, 0, 0.36);
}

.relation-switch button {
  border: 0;
  color: rgba(255, 255, 255, 0.54);
  background: transparent;
  font-size: 20px;
  font-weight: 1000;
}

.relation-switch button.is-active {
  color: white;
  background: linear-gradient(180deg, #ff5fa0, #f32574);
}

.relation-page[data-relation-mode="kanka"] .relation-switch button.is-active {
  color: #6a2900;
  background: linear-gradient(180deg, #fff78d, #ffbd1e);
}

.relation-hero {
  min-height: 286px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.8), transparent 3.2rem),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.4), transparent 8rem);
  position: relative;
}

.relation-hero strong {
  border: 5px solid rgba(255, 229, 132, 0.82);
  border-radius: 18px;
  padding: 18px 24px;
  color: #fff9c5;
  background: linear-gradient(180deg, #ff356f, #b9152d);
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.relation-hero small {
  font-size: 18px;
  font-weight: 1000;
}

.relation-hero button {
  position: absolute;
  right: 24px;
  bottom: 42px;
  border: 2px solid rgba(255, 224, 112, 0.9);
  border-radius: 999px;
  padding: 9px 22px;
  color: white;
  background: linear-gradient(180deg, #ff60a6, #e7337d);
  font-size: 18px;
  font-weight: 1000;
}

.relation-card,
.relation-info {
  margin: 24px;
  border: 3px solid rgba(255, 224, 107, 0.9);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 46, 119, 0.28);
}

.relation-page[data-relation-mode="kanka"] .relation-card,
.relation-page[data-relation-mode="kanka"] .relation-info {
  background: rgba(120, 13, 8, 0.58);
}

.relation-card h2,
.relation-info h2 {
  margin: -48px auto 22px;
  width: max-content;
  max-width: 92%;
  border-radius: 999px;
  padding: 11px 48px;
  color: white;
  background: linear-gradient(180deg, #ff5ca4, #c80f43);
  text-align: center;
}

.relation-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  min-height: 156px;
}

.relation-avatar,
.relation-slots button {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 1000;
}

.relation-avatar {
  background: radial-gradient(circle, #24182f 0 36%, transparent 37%), conic-gradient(#fff2b2, #ff60a5, #fff2b2);
}

.relation-slots button {
  border: 0;
  color: #f0a400;
  background: #fff5bf;
}

.relation-invite {
  width: min(260px, 90%);
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  display: block;
  margin: 0 auto;
  color: #ba3169;
  background: linear-gradient(180deg, #fff4aa, #ffbd46);
  font-size: 20px;
  font-weight: 1000;
}

.relation-info p {
  margin: 0;
  color: white;
  font-size: 18px;
  line-height: 1.45;
}

.ranking-page {
  padding: 0 22px 34px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 216, 118, 0.3), transparent 12rem),
    linear-gradient(180deg, #211a13, #070706);
}

.ranking-switch {
  height: 58px;
  border: 2px solid rgba(255, 241, 170, 0.46);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.ranking-switch button {
  border: 0;
  color: white;
  background: transparent;
  font-size: 18px;
  font-weight: 1000;
}

.ranking-switch button.is-active {
  color: #5a3700;
  background: linear-gradient(180deg, #fff684, #ffd84f);
}

.ranking-date {
  display: block;
  margin: 22px 0 14px;
  text-align: center;
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.ranking-podium {
  min-height: 286px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  margin-bottom: 18px;
}

.ranking-podium article,
.ranking-list article {
  border: 1px solid rgba(255, 228, 150, 0.34);
  display: grid;
  align-items: center;
  color: white;
  background: rgba(87, 65, 31, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ranking-podium article {
  min-height: 200px;
  border-radius: 22px 22px 8px 8px;
  justify-items: center;
  padding: 14px 8px;
  text-align: center;
}

.ranking-podium .rank-one {
  min-height: 264px;
  background: linear-gradient(180deg, rgba(210, 52, 22, 0.82), rgba(122, 24, 10, 0.65));
}

.ranking-podium .rank-two {
  background: linear-gradient(180deg, rgba(22, 111, 221, 0.82), rgba(18, 72, 146, 0.58));
}

.ranking-podium .rank-three {
  background: linear-gradient(180deg, rgba(29, 154, 100, 0.78), rgba(20, 87, 64, 0.58));
}

.ranking-podium span,
.ranking-list span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.48), transparent 1.4rem), linear-gradient(135deg, #2bd9d0, #7c5cff);
}

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

.ranking-list article {
  min-height: 92px;
  border-radius: 14px;
  grid-template-columns: 44px 66px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.ranking-list b {
  color: rgba(255, 255, 255, 0.46);
  font-size: 30px;
}

.ranking-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list small,
.ranking-podium small {
  color: #ffe06f;
  font-size: 16px;
  font-weight: 1000;
}

.message-page-head {
  min-height: 82px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #2b2730;
}

.message-page-head div:first-child {
  display: flex;
  gap: 20px;
}

.message-page-head button {
  border: 0;
  background: transparent;
}

.message-page-head div:first-child button {
  color: #b8b4be;
  font-size: 26px;
  font-weight: 1000;
}

.message-page-head div:first-child button.is-active {
  color: #26232c;
}

.message-page-head div:last-child {
  display: flex;
  gap: 18px;
}

.message-tool {
  width: 34px;
  height: 34px;
  position: relative;
  color: #28242e;
}

.message-tool.clean::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.message-tool.add::before,
.message-tool.add::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.message-tool.add::before {
  left: 14px;
  top: 4px;
  width: 8px;
  height: 26px;
  border-radius: 999px;
}

.message-tool.add::after {
  left: 5px;
  top: 13px;
  width: 26px;
  height: 8px;
  border-radius: 999px;
}

.message-stories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 12px;
  overflow-x: auto;
  margin: 18px -12px 14px;
  padding: 0 12px 4px;
  scrollbar-width: none;
}

.message-stories::-webkit-scrollbar {
  display: none;
}

.message-stories button {
  min-width: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #2d2932;
  background: transparent;
  font-weight: 950;
}

.message-stories span {
  width: 70px;
  height: 70px;
  border: 7px solid hsl(var(--story-hue), 85%, 75%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #1c1726, #6c6a76);
}

.message-stories strong {
  max-width: 82px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-screen="inbox"] .inbox-view {
  color: #26232c;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 130, 172, 0.1), transparent 12rem),
    radial-gradient(circle at 88% 0%, rgba(255, 215, 122, 0.14), transparent 12rem),
    #fff;
}

body[data-screen="inbox"] .inbox-list {
  gap: 0;
}

body[data-screen="inbox"] .inbox-item {
  min-height: 88px;
  border: 0;
  border-radius: 0;
  padding: 12px 2px;
  color: #26232c;
  background: white;
  border-bottom: 1px solid #efedf2;
}

body[data-screen="inbox"] .inbox-avatar {
  width: 58px;
  height: 58px;
  color: transparent;
  background: #fff3df;
  position: relative;
}

body[data-screen="inbox"] .inbox-avatar::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50% 50% 12px 12px;
  background: #ffbd47;
}

body[data-screen="inbox"] .inbox-friend .inbox-avatar {
  background: #efe6ff;
}

body[data-screen="inbox"] .inbox-system .inbox-avatar {
  background: #ffe6eb;
}

body[data-screen="inbox"] .inbox-foreign .inbox-avatar {
  background: #e2f6ff;
}

body[data-screen="inbox"] .inbox-team .inbox-avatar {
  background: #e8defe;
}

body[data-screen="inbox"] .inbox-item strong {
  color: #2b2730;
  font-size: 18px;
}

body[data-screen="inbox"] .inbox-item span,
body[data-screen="inbox"] .inbox-item time {
  color: #96919c;
  font-size: 14px;
}

/* Final room cleanup: keep effects behind seats and make the room menu calmer. */
body[data-screen="room"] .stage-card > :not(.entrance-effect) {
  position: relative;
  z-index: 2;
}

body[data-screen="room"] .entrance-effect {
  position: absolute !important;
  left: 50% !important;
  top: 48% !important;
  bottom: auto !important;
  z-index: 1 !important;
  width: min(calc(100% - 42px), 340px) !important;
  min-height: 42px !important;
  padding: 6px 10px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 8px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  opacity: 0.86;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 221, 112, 0.18), transparent 3.2rem),
    linear-gradient(100deg, rgba(27, 12, 42, 0.7), rgba(72, 30, 88, 0.62), rgba(22, 9, 34, 0.64)) !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
}

body[data-screen="room"] .entrance-ring {
  width: 31px !important;
  height: 31px !important;
}

body[data-screen="room"] .entrance-effect strong {
  max-width: 245px;
  font-size: 12px !important;
  line-height: 1.05 !important;
}

body[data-screen="room"] .interaction-sheet {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 92px) !important;
  z-index: 33 !important;
  width: min(calc(100vw - 32px), 384px) !important;
  max-height: min(42dvh, 330px) !important;
  padding: 12px 12px 14px !important;
  gap: 9px !important;
  border-radius: 22px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transform: translateX(-50%) !important;
}

body[data-screen="room"] .interaction-sheet::-webkit-scrollbar {
  display: none;
}

body[data-screen="room"] .interaction-sheet > strong {
  font-size: 15px !important;
}

body[data-screen="room"] .interaction-grid,
body[data-screen="room"] .program-grid {
  gap: 7px 6px !important;
}

body[data-screen="room"] .interaction-grid button,
body[data-screen="room"] .program-grid button {
  min-height: 74px !important;
  gap: 4px !important;
}

body[data-screen="room"] .interaction-icon,
body[data-screen="room"] .program-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.18), transparent 1.3rem),
    linear-gradient(145deg, #4b4b4d, #242427) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.18) !important;
}

body[data-screen="room"] .program-icon {
  border-radius: 50% !important;
}

body[data-screen="room"] .interaction-grid small,
body[data-screen="room"] .program-grid small {
  max-width: 70px !important;
  min-height: 20px !important;
  font-size: 9.4px !important;
  line-height: 1.05 !important;
}

body[data-screen="room"] .program-icon.users::before {
  width: 10px !important;
  height: 10px !important;
  left: 15px !important;
  top: 14px !important;
  box-shadow: 15px 0 0 currentColor !important;
}

body[data-screen="room"] .program-icon.users::after {
  left: 12px !important;
  bottom: 13px !important;
  width: 30px !important;
  height: 13px !important;
  border-radius: 13px 13px 7px 7px !important;
}

body[data-screen="room"] .program-icon.clean::before {
  width: 26px !important;
  height: 5px !important;
}

body[data-screen="room"] .program-icon.clean::after {
  left: 22px !important;
  top: 16px !important;
  width: 15px !important;
  height: 21px !important;
}

/* Full premium finish pass */
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

body:not([data-screen="room"]) {
  background:
    radial-gradient(circle at 15% -6%, rgba(255, 91, 132, 0.16), transparent 15rem),
    radial-gradient(circle at 88% 0%, rgba(255, 207, 94, 0.18), transparent 14rem),
    linear-gradient(180deg, #fff8f3 0%, #f5f4f8 46%, #f1f2f7 100%) !important;
}

body:not([data-screen="room"]) .app-shell {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 125, 162, 0.18), transparent 12rem),
    radial-gradient(circle at 100% 0%, rgba(255, 225, 132, 0.22), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(247, 246, 250, 0.96)) !important;
}

body:not([data-screen="room"]) .view {
  background: transparent !important;
}

body:not([data-screen="room"]) .discovery-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: -2px -2px 12px;
  padding: 8px 4px 9px;
  height: auto;
  background:
    linear-gradient(180deg, rgba(255, 249, 245, 0.96), rgba(255, 249, 245, 0.72) 72%, transparent) !important;
  backdrop-filter: blur(18px);
}

body:not([data-screen="room"]) .discovery-tabs button:not(.tab-action) {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(43, 39, 48, 0.42);
  font-size: 19px;
  font-weight: 950;
}

body:not([data-screen="room"]) .discovery-tabs button.is-active:not(.tab-action) {
  color: #292530;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(255, 93, 132, 0.34), transparent 35%),
    transparent !important;
  text-shadow: 0 7px 20px rgba(255, 87, 128, 0.2);
}

body:not([data-screen="room"]) .tab-action {
  width: 39px;
  height: 39px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 20%, #ffea7a 0 8%, transparent 9%),
    linear-gradient(135deg, #ff5f83, #ffb93f) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 131, 0.22);
}

body:not([data-screen="room"]) .bonus-banner,
body:not([data-screen="room"]) .event-hero-slider,
body:not([data-screen="room"]) .official-event,
body:not([data-screen="room"]) .welcome-pack,
body:not([data-screen="room"]) .family-earn-card,
body:not([data-screen="room"]) .memory-compose,
body:not([data-screen="room"]) .profile-panel,
body:not([data-screen="room"]) .account-card,
body:not([data-screen="room"]) .frame-showcase {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 18px 38px rgba(63, 43, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
}

body:not([data-screen="room"]) .bonus-banner {
  min-height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 45%, rgba(255, 255, 255, 0.36), transparent 4rem),
    linear-gradient(135deg, #8a431f, #e3a43b 42%, #fff0a7 62%, #813116) !important;
}

body:not([data-screen="room"]) .bonus-banner strong {
  letter-spacing: 0;
  text-shadow: 0 3px 10px rgba(83, 36, 9, 0.34);
}

body:not([data-screen="room"]) .welcome-pack {
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 48%, rgba(255, 231, 124, 0.34), transparent 4rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 232, 0.88)) !important;
}

body:not([data-screen="room"]) .vip-card,
body:not([data-screen="room"]) .feature-card,
body:not([data-screen="room"]) .room-card,
body:not([data-screen="room"]) .family-card,
body:not([data-screen="room"]) .task-list article,
body:not([data-screen="room"]) .memory-card,
body:not([data-screen="room"]) .inbox-item {
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    0 14px 28px rgba(45, 37, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

body:not([data-screen="room"]) .room-card {
  position: relative;
  min-height: 112px;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 88% 20%, rgba(255, 95, 132, 0.14), transparent 5rem) !important;
  overflow: hidden;
}

body:not([data-screen="room"]) .room-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #ff667b, #ffd46b, #42d8cf);
  opacity: 0.72;
}

body:not([data-screen="room"]) .filter-row button,
body:not([data-screen="room"]) .text-button,
body:not([data-screen="room"]) .enter-button,
body:not([data-screen="room"]) .primary-action,
body:not([data-screen="room"]) .profile-actions button {
  box-shadow: 0 9px 18px rgba(255, 93, 132, 0.12);
}

body:not([data-screen="room"]) .bottom-nav {
  height: calc(76px + env(safe-area-inset-bottom)) !important;
  min-height: calc(76px + env(safe-area-inset-bottom)) !important;
  padding: 8px 14px calc(env(safe-area-inset-bottom) + 10px) !important;
  border-top: 1px solid rgba(221, 214, 225, 0.64) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 -16px 38px rgba(41, 32, 52, 0.12) !important;
  backdrop-filter: blur(22px);
}

body:not([data-screen="room"]) .nav-item {
  border-radius: 18px !important;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

body:not([data-screen="room"]) .nav-item.is-active {
  color: #ff6379 !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92), transparent 1.8rem),
    radial-gradient(circle, rgba(255, 96, 136, 0.24), transparent 2.5rem) !important;
  transform: translateY(-6px);
}

body[data-screen="games"] .big-game {
  border-width: 2px !important;
  border-color: rgba(195, 128, 31, 0.9) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 241, 174, 0.46),
    0 15px 28px rgba(82, 50, 15, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.45) !important;
}

body[data-screen="games"] .big-game:active,
body:not([data-screen="room"]) .room-card:active,
body:not([data-screen="room"]) .feature-card:active {
  transform: scale(0.985);
}

body[data-screen="room"] .emoji-stage {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: calc(env(safe-area-inset-bottom) + 98px);
  z-index: 32;
  width: min(100%, 520px);
  pointer-events: none;
  overflow: hidden;
  transform: translateX(-50%);
}

body[data-screen="room"] .emoji-fly {
  position: absolute;
  left: calc(50% + var(--emoji-x, 0px));
  bottom: 18%;
  width: 86px;
  height: 86px;
  border-radius: 31px;
  display: grid;
  place-items: center;
  font-size: 52px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 1.15rem),
    linear-gradient(145deg, rgba(255, 237, 132, 0.96), rgba(255, 128, 70, 0.96));
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transform: translateX(-50%);
  animation: emoji-float 2.2s cubic-bezier(0.18, 0.84, 0.2, 1) forwards;
}

body[data-screen="room"] .emoji-heart,
body[data-screen="room"] .emoji-flower,
body[data-screen="room"] .emoji-celebrate {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.7), transparent 1rem),
    linear-gradient(145deg, #ff75ac, #ffcc6a) !important;
}

body[data-screen="room"] .emoji-dj,
body[data-screen="room"] .emoji-song {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.68), transparent 1rem),
    linear-gradient(145deg, #54e0ff, #915cff) !important;
}

body[data-screen="room"] .emoji-spark {
  position: absolute;
  left: 50%;
  bottom: 32%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe782;
  box-shadow: 0 0 18px rgba(255, 231, 130, 0.84);
  animation: emoji-sparkle 1.05s ease-out forwards;
  animation-delay: var(--spark-delay, 0ms);
}

body[data-screen="room"] .emoji-sheet {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 92px) !important;
  z-index: 33 !important;
  width: min(calc(100vw - 24px), 420px) !important;
  max-height: min(46dvh, 390px) !important;
  padding: 14px 14px 16px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 91, 149, 0.2), transparent 8rem),
    radial-gradient(circle at 86% 12%, rgba(70, 217, 207, 0.12), transparent 8rem),
    linear-gradient(180deg, rgba(39, 31, 48, 0.98), rgba(12, 8, 18, 0.98)) !important;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.44) !important;
  backdrop-filter: blur(18px);
  scrollbar-width: none;
  transform: translateX(-50%) !important;
}

body[data-screen="room"] .emoji-sheet::-webkit-scrollbar {
  display: none;
}

body[data-screen="room"] .emoji-item {
  min-height: 84px;
  gap: 6px;
  color: #eee8f2;
}

body[data-screen="room"] .emoji-item span {
  width: 58px !important;
  height: 58px !important;
  border-radius: 22px !important;
  font-size: 32px !important;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.78), transparent 1rem),
    linear-gradient(145deg, #fff17b, #ff9d45) !important;
  animation: emoji-button-breathe 1.8s ease-in-out infinite;
}

body[data-screen="room"] .emoji-item:nth-child(3n) span {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.74), transparent 1rem),
    linear-gradient(145deg, #54e0ff, #935cff) !important;
}

body[data-screen="room"] .emoji-item:nth-child(3n + 1) span {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.74), transparent 1rem),
    linear-gradient(145deg, #ff75ac, #ffd05c) !important;
}

body[data-screen="room"] .emoji-item small {
  color: rgba(246, 241, 250, 0.78);
  font-size: 10px;
  font-weight: 850;
}

@keyframes emoji-button-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes emoji-float {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 30px, 0) scale(0.7) rotate(var(--emoji-tilt, 0deg));
  }

  18% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1.06) rotate(var(--emoji-tilt, 0deg));
  }

  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -250px, 0) scale(1.18) rotate(calc(var(--emoji-tilt, 0deg) * -1));
  }
}

@keyframes emoji-sparkle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--spark-x, 0), var(--spark-y, -40px), 0) scale(1.15);
  }
}

.full-screen-sheet {
  background:
    radial-gradient(circle at 18% -4%, rgba(255, 216, 113, 0.2), transparent 14rem),
    radial-gradient(circle at 88% 4%, rgba(255, 94, 153, 0.15), transparent 14rem),
    linear-gradient(180deg, #171018, #07080f 52%, #05070d) !important;
}

.premium-page-head,
.relation-top {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent) !important;
}

.premium-page-head strong,
.ranking-page .premium-page-head strong {
  color: #fff4cf !important;
  text-shadow: 0 6px 18px rgba(255, 205, 91, 0.18);
}

.back-round,
.help-round,
.mine-pill {
  border: 1px solid rgba(255, 231, 168, 0.18) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 1.1rem),
    rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.badges-page .badge-slots button,
.badge-grid button,
.shop-tabs button,
.shop-product,
.ranking-list article,
.relation-card,
.relation-info {
  border: 1px solid rgba(255, 224, 145, 0.18) !important;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.badges-page .badge-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badges-page .badge-tabs button,
.ranking-switch button {
  color: rgba(255, 255, 255, 0.5) !important;
}

.badges-page .badge-tabs button.is-active,
.ranking-switch button.is-active {
  color: #fff7dc !important;
}

.shop-page {
  background:
    radial-gradient(circle at 20% -4%, rgba(255, 199, 77, 0.18), transparent 14rem),
    linear-gradient(180deg, #1c1616, #0b0c0e 56%, #070707) !important;
}

.shop-tabs button.is-active {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 232, 137, 0.22), transparent 2.8rem),
    linear-gradient(180deg, rgba(83, 68, 34, 0.82), rgba(26, 27, 29, 0.98)) !important;
}

.shop-product {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.11), transparent 4rem),
    linear-gradient(180deg, rgba(39, 39, 41, 0.98), rgba(25, 25, 27, 0.98)) !important;
}

.shop-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(20, 20, 22, 0.88) !important;
  backdrop-filter: blur(18px);
}

.relation-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 9rem),
    linear-gradient(180deg, #ff77b0 0%, #ff4f9a 46%, #c8204f 100%) !important;
}

.relation-page[data-relation-mode="kanka"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 119, 0.36), transparent 13rem),
    linear-gradient(180deg, #6b180f, #a51d16 48%, #5a0d0a) !important;
}

.relation-hero strong,
.relation-card h2,
.relation-info h2 {
  text-shadow: 0 5px 18px rgba(102, 19, 25, 0.28);
}

.ranking-page {
  background:
    linear-gradient(180deg, rgba(12, 8, 8, 0.28), rgba(9, 7, 6, 0.74)),
    radial-gradient(circle at 50% 18%, rgba(255, 218, 109, 0.36), transparent 14rem),
    linear-gradient(180deg, #211914, #0b0907 74%) !important;
}

.ranking-podium article,
.ranking-list article {
  backdrop-filter: blur(12px);
}

body[data-screen="profile"] .profile-view,
body[data-screen="memory"] .memory-view,
body[data-screen="inbox"] .inbox-view,
body[data-screen="family"] .family-view {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 102, 150, 0.12), transparent 12rem),
    radial-gradient(circle at 92% 0%, rgba(255, 220, 118, 0.16), transparent 12rem),
    linear-gradient(180deg, #fff9f6, #f5f4f8) !important;
}

body[data-screen="profile"] .profile-panel {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 212, 126, 0.22), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)) !important;
}

body[data-screen="inbox"] .message-stories button span {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.82),
    0 0 0 7px rgba(94, 177, 255, 0.34),
    0 14px 22px rgba(41, 36, 52, 0.12) !important;
}

/* Modern mobile app finish */
:root {
  --font-ui: "SF Pro Text", "Inter", "Roboto", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-display: "SF Pro Display", "Inter", "Roboto", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --real-ink: #211b26;
  --real-muted: #817789;
  --real-card: rgba(255, 255, 255, 0.9);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
textarea {
  font-family: var(--font-ui);
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell {
  max-width: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 244, 250, 0.98)),
    #f7f5f9;
  box-shadow:
    0 28px 80px rgba(23, 16, 35, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.app-header {
  min-height: 72px;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 10px;
  border-bottom: 1px solid rgba(219, 211, 226, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(42, 33, 55, 0.08);
}

.profile-copy strong,
.bonus-banner strong,
.welcome-pack strong,
.vip-card strong,
.feature-card strong,
.feed-head strong,
.simple-page-head strong,
.room-card-top strong,
.room-top strong,
.stage-head strong,
.message-meta strong {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
}

.profile-copy strong {
  color: var(--real-ink);
  font-size: 16px;
  line-height: 1.12;
}

.profile-copy span {
  color: var(--real-muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-avatar {
  box-shadow:
    0 9px 22px rgba(117, 72, 190, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.54);
}

.coin-chip,
.icon-button {
  box-shadow:
    0 10px 22px rgba(47, 38, 57, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body:not([data-screen="room"]) .discovery-tabs button:not(.tab-action) {
  font-family: var(--font-display);
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1;
}

body:not([data-screen="room"]) .bonus-banner {
  min-height: 124px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.64), transparent 4.8rem),
    radial-gradient(circle at 85% 14%, rgba(97, 219, 203, 0.26), transparent 5.8rem),
    linear-gradient(135deg, #4f2f94 0%, #d94783 47%, #ffbf54 100%) !important;
}

body:not([data-screen="room"]) .bonus-banner strong {
  max-width: 265px;
  color: #fff;
  font-size: 25px;
  line-height: 1.04;
  text-shadow: 0 5px 18px rgba(70, 22, 67, 0.34);
}

body:not([data-screen="room"]) .bonus-banner span,
body:not([data-screen="room"]) .bonus-banner small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

body:not([data-screen="room"]) .welcome-pack,
body:not([data-screen="room"]) .room-card,
body:not([data-screen="room"]) .vip-card,
body:not([data-screen="room"]) .feature-card {
  border-radius: 20px !important;
  box-shadow:
    0 18px 34px rgba(39, 31, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

body[data-screen="home"] .room-card {
  min-height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  padding: 13px !important;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 104, 145, 0.13), transparent 6.4rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 248, 252, 0.92)) !important;
}

body[data-screen="home"] .room-card-top strong {
  color: var(--real-ink) !important;
  font-size: 18px !important;
  line-height: 1.12;
}

body[data-screen="home"] .room-card-top span,
body[data-screen="home"] .room-card p,
body:not([data-screen="room"]) .feed-head span {
  color: var(--real-muted) !important;
  font-weight: 650;
}

body[data-screen="home"] .enter-button {
  min-width: 54px;
  min-height: 42px;
  border-radius: 16px !important;
  color: white !important;
  background:
    radial-gradient(circle at 40% 24%, rgba(255, 255, 255, 0.32), transparent 1.1rem),
    linear-gradient(135deg, #ff567d, #7f5cff) !important;
  box-shadow: 0 12px 22px rgba(255, 86, 125, 0.22);
}

body:not([data-screen="room"]) .bottom-nav {
  width: min(100%, 430px) !important;
  border-top: 1px solid rgba(216, 207, 224, 0.76) !important;
}

body:not([data-screen="room"]) .nav-item {
  font-size: 10px;
  font-weight: 850;
}

body[data-screen="room"] .app-shell {
  background: #06020b;
}

body[data-screen="room"] .room-view {
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 172px) !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle at 74% 14%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.7px),
    radial-gradient(circle at 50% 6%, rgba(255, 228, 136, 0.14), transparent 6rem),
    radial-gradient(ellipse at 50% 100%, rgba(126, 43, 128, 0.48), transparent 58%),
    linear-gradient(180deg, #08050f 0%, #120719 54%, #2a0d31 100%) !important;
}

body[data-screen="room"] .room-view::after {
  bottom: 96px !important;
  width: min(100%, 430px) !important;
  height: 190px !important;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 116, 166, 0.2), transparent 60%),
    linear-gradient(170deg, transparent 0 38%, rgba(145, 58, 151, 0.32) 39% 45%, transparent 46%),
    linear-gradient(12deg, transparent 0 51%, rgba(82, 25, 94, 0.48) 52% 59%, transparent 60%) !important;
}

body[data-screen="room"] .room-top {
  min-height: 64px;
  margin: -2px -2px 10px;
  padding: 8px 4px 10px;
  align-items: center;
  background: linear-gradient(180deg, rgba(7, 3, 11, 0.84), rgba(7, 3, 11, 0));
}

body[data-screen="room"] .room-top strong {
  color: #fff5c4;
  font-size: 21px;
  line-height: 1.1;
  text-shadow: 0 8px 24px rgba(255, 203, 88, 0.18);
}

body[data-screen="room"] .room-top span {
  color: rgba(255, 234, 166, 0.74);
  font-size: 12px;
  font-weight: 760;
}

body[data-screen="room"] .stage-card {
  min-height: 420px !important;
  padding: 8px 4px 0 !important;
}

body[data-screen="room"] .stage-head strong {
  color: #f8f2ff;
  font-size: 17px;
}

body[data-screen="room"] .stage-head time {
  color: #fff0a9 !important;
  font-size: 12px;
  font-weight: 850;
  background: rgba(0, 0, 0, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-screen="room"] .seat-grid {
  max-width: 404px;
  gap: 15px 8px !important;
}

body[data-screen="room"] .seat {
  min-height: 82px;
}

body[data-screen="room"] .seat-avatar {
  width: 62px !important;
  height: 62px !important;
  border: 2px solid rgba(255, 213, 92, 0.74) !important;
  background:
    radial-gradient(circle at 46% 33%, rgba(255, 255, 255, 0.78), transparent 0.82rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(147, 128, 164, 0.1)),
    radial-gradient(circle, #2f273e 0 58%, #15101f 60% 100%) !important;
  box-shadow:
    0 0 0 4px rgba(255, 207, 91, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.42),
    inset 0 0 22px rgba(255, 255, 255, 0.13) !important;
}

body[data-screen="room"] .seat.is-speaking .seat-avatar,
body[data-screen="room"] .seat.is-self .seat-avatar {
  border-color: rgba(65, 230, 220, 0.9) !important;
  box-shadow:
    0 0 0 4px rgba(65, 230, 220, 0.16),
    0 0 26px rgba(65, 230, 220, 0.26),
    0 14px 28px rgba(0, 0, 0, 0.42),
    inset 0 0 22px rgba(255, 255, 255, 0.14) !important;
}

body[data-screen="room"] .seat span:last-child {
  color: #ffe887;
  font-family: var(--font-display);
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.74);
}

body[data-screen="room"] .messages {
  max-height: 170px !important;
  margin-top: 8px !important;
  margin-bottom: calc(env(safe-area-inset-bottom) + 166px) !important;
  padding: 2px 4px 10px !important;
}

body[data-screen="room"] .bubble {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px !important;
  color: #45f5ee !important;
  background: rgba(14, 6, 20, 0.76) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px);
}

body[data-screen="room"] .message-meta strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

body[data-screen="room"] .bubble p {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

body[data-screen="room"] .room-tools {
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
  z-index: 44 !important;
  width: min(calc(100vw - 16px), 414px) !important;
  min-height: 76px !important;
  padding: 7px 7px 6px !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 46% 0%, rgba(255, 88, 173, 0.18), transparent 7rem),
    linear-gradient(180deg, rgba(37, 25, 47, 0.9), rgba(12, 8, 18, 0.96)) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(18px);
}

body[data-screen="room"] .room-side-stack {
  display: none !important;
}

body[data-screen="room"] .tool-button {
  height: 62px !important;
  min-height: 62px !important;
  padding: 5px 2px 4px !important;
  border-radius: 18px !important;
  gap: 3px !important;
  color: rgba(247, 242, 250, 0.9);
  background: transparent !important;
}

body[data-screen="room"] .tool-button::before {
  width: 34px !important;
  height: 34px !important;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.34), transparent 0.72rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)) !important;
}

body[data-screen="room"] .tool-button span:last-child {
  color: rgba(246, 241, 250, 0.82);
  font-size: 9px !important;
  font-weight: 850 !important;
  line-height: 1.05;
}

body[data-screen="room"] .tool-button.is-active span:last-child,
body[data-screen="room"] .tool-button.menu-tool.is-active span:last-child {
  color: #ffe58a;
}

body[data-screen="room"] .composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 94px) !important;
  z-index: 45 !important;
  width: min(calc(100vw - 16px), 414px) !important;
  min-height: 56px !important;
  padding: 6px !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  gap: 6px !important;
  align-items: center !important;
  border: 1px solid rgba(255, 211, 90, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 221, 112, 0.18), transparent 4rem),
    linear-gradient(180deg, rgba(51, 19, 30, 0.94), rgba(21, 8, 18, 0.96)) !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) !important;
  backdrop-filter: blur(18px);
}

body[data-screen="room"].is-chat-open .composer {
  display: grid !important;
}

body[data-screen="room"] .composer .record-button,
body[data-screen="room"] .composer .send-button {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
}

body[data-screen="room"] .composer .record-button {
  background: rgba(255, 255, 255, 0.1) !important;
}

body[data-screen="room"] .composer .send-button {
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.34), transparent 0.9rem),
    linear-gradient(135deg, #36ded1, #7c5cff) !important;
  box-shadow: 0 10px 20px rgba(54, 222, 209, 0.2);
}

body[data-screen="room"] .text-field input {
  height: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 22px !important;
  padding: 0 14px !important;
  color: #fff8df !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 720;
}

body[data-screen="room"] .text-field input::placeholder {
  color: rgba(255, 245, 207, 0.74) !important;
  font-weight: 720;
}

@media (max-width: 380px) {
  body[data-screen="room"] .room-tools {
    width: min(calc(100vw - 10px), 370px) !important;
    gap: 2px !important;
    padding-inline: 5px !important;
  }

  body[data-screen="room"] .tool-button span:last-child {
    font-size: 8px !important;
  }

  body[data-screen="room"] .composer {
    width: min(calc(100vw - 10px), 370px) !important;
  }
}

/* Clean game surface and mic emoji reactions */
body.is-playing-game .bottom-nav,
body.is-playing-game .room-tools,
body.is-playing-game .composer,
body.is-playing-game .gift-dock,
body.is-playing-game .interaction-sheet,
body.is-playing-game .emoji-sheet,
body.is-playing-game .music-sheet {
  display: none !important;
}

.play-arena {
  position: fixed !important;
  inset: 0 auto 0 50% !important;
  z-index: 80 !important;
  width: min(100vw, 430px) !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 16px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #292530;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 103, 145, 0.13), transparent 12rem),
    radial-gradient(circle at 88% 4%, rgba(46, 215, 201, 0.12), transparent 10rem),
    linear-gradient(180deg, #fffaf6 0%, #f4f3f8 48%, #ececf4 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.76);
  transform: translateX(-50%) !important;
}

.play-arena[hidden] {
  display: none !important;
}

.play-arena[data-play-context="room"] {
  color: #fff8ef;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 212, 96, 0.14), transparent 11rem),
    radial-gradient(circle at 86% 6%, rgba(54, 222, 209, 0.12), transparent 10rem),
    radial-gradient(ellipse at 50% 100%, rgba(122, 44, 126, 0.36), transparent 58%),
    linear-gradient(180deg, #090510 0%, #16091d 56%, #2a0d31 100%) !important;
}

.play-arena-head {
  min-height: 64px !important;
  margin: 0 -4px 12px;
  padding: 4px 4px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.76) 70%, transparent);
  backdrop-filter: blur(18px);
}

.play-arena[data-play-context="room"] .play-arena-head {
  background:
    linear-gradient(180deg, rgba(9, 5, 16, 0.96), rgba(9, 5, 16, 0.74) 70%, transparent);
}

.play-arena-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.play-arena-head strong {
  color: #2c2731;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.02;
}

.play-arena[data-play-context="room"] .play-arena-head strong {
  color: #fff0b2;
  text-shadow: 0 10px 26px rgba(255, 205, 91, 0.16);
}

.play-arena-head span {
  color: #817789;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.34;
}

.play-arena[data-play-context="room"] .play-arena-head span {
  color: rgba(255, 239, 193, 0.74);
}

.play-back-button {
  width: 48px;
  height: 48px;
  min-height: 48px !important;
  border: 0;
  border-radius: 50% !important;
  padding: 0 !important;
  color: #312935 !important;
  background:
    radial-gradient(circle at 42% 26%, rgba(255, 255, 255, 0.74), transparent 1.1rem),
    rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    0 12px 24px rgba(50, 40, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  font-size: 0;
  position: relative;
}

.play-back-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  position: absolute;
  left: 20px;
  top: 18px;
  transform: rotate(45deg);
}

.play-arena[data-play-context="room"] .play-back-button {
  color: #ffe9a4 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.play-board {
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 2px 0 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.play-board::-webkit-scrollbar {
  display: none;
}

.play-controls {
  margin: 0 -4px !important;
  padding: 10px 4px 0;
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(244, 243, 248, 0.92) 26%, rgba(244, 243, 248, 0.98));
}

.play-arena[data-play-context="room"] .play-controls {
  background:
    linear-gradient(180deg, transparent, rgba(16, 8, 22, 0.9) 26%, rgba(16, 8, 22, 0.98));
}

.play-controls button {
  min-height: 44px !important;
  border-radius: 16px !important;
  padding: 0 15px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 22px rgba(255, 83, 125, 0.16);
}

.play-arena[data-play-context="room"] .arena-score,
.play-arena[data-play-context="room"] .umo-bots span,
.play-arena[data-play-context="room"] .umo-deck,
.play-arena[data-play-context="room"] .candy-stats,
.play-arena[data-play-context="room"] .okey-meter {
  color: rgba(255, 248, 238, 0.82);
}

.play-arena[data-play-context="room"] .arena-score {
  background: rgba(255, 255, 255, 0.08);
}

.play-arena[data-play-context="room"] .arena-score strong {
  color: #fff8ef;
}

body[data-screen="room"] .seat {
  position: relative;
}

.seat-emoji-burst {
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 1rem),
    linear-gradient(145deg, #ff75ac, #ffd05c);
  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 22px;
  transform: translateX(-50%);
  animation: seat-emoji-pop 1.25s ease forwards;
}

.seat-emoji-burst.emoji-dj,
.seat-emoji-burst.emoji-song,
.seat-emoji-burst.emoji-coin {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 1rem),
    linear-gradient(145deg, #54e0ff, #935cff);
}

body[data-screen="room"] .seat.is-emoji-reacting .seat-avatar {
  animation: mic-seat-react 620ms cubic-bezier(0.18, 0.84, 0.26, 1.2);
}

@keyframes mic-seat-react {
  0% {
    transform: translateY(0) scale(1);
  }

  36% {
    transform: translateY(-7px) scale(1.08);
  }

  68% {
    transform: translateY(2px) scale(0.98);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes seat-emoji-pop {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 12px, 0) scale(0.58) rotate(-10deg);
  }

  22% {
    opacity: 1;
    transform: translate3d(-50%, -4px, 0) scale(1.1) rotate(5deg);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -42px, 0) scale(0.9) rotate(-8deg);
  }
}

/* Room-native games: compact panel, chat and music controls stay available */
body[data-screen="room"].is-room-game-open .room-tools {
  display: grid !important;
}

body[data-screen="room"].is-room-game-open .bottom-nav {
  display: none !important;
}

body[data-screen="room"].is-room-game-open .composer {
  display: none !important;
}

body[data-screen="room"].is-room-game-open.is-chat-open .composer {
  display: grid !important;
}

body[data-screen="room"] .play-arena {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: calc(env(safe-area-inset-top) + 92px) !important;
  bottom: calc(env(safe-area-inset-bottom) + 96px) !important;
  z-index: 39 !important;
  width: min(calc(100vw - 18px), 414px) !important;
  height: auto !important;
  max-height: min(48dvh, 392px) !important;
  min-height: 238px !important;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  border: 1px solid rgba(255, 231, 160, 0.2) !important;
  border-radius: 24px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  color: #fff8ef !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 213, 92, 0.16), transparent 8rem),
    radial-gradient(circle at 88% 12%, rgba(54, 222, 209, 0.12), transparent 8rem),
    linear-gradient(180deg, rgba(36, 22, 46, 0.94), rgba(14, 8, 20, 0.96)) !important;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(22px);
}

body[data-screen="room"] .play-arena[hidden] {
  display: none !important;
}

body[data-screen="room"].is-chat-open .play-arena {
  bottom: calc(env(safe-area-inset-bottom) + 158px) !important;
  max-height: min(36dvh, 300px) !important;
}

body[data-screen="room"] .play-arena-head {
  min-height: 44px !important;
  margin: 0 0 8px !important;
  padding: 0 0 8px !important;
  position: relative !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent !important;
  backdrop-filter: none !important;
}

body[data-screen="room"] .play-arena-head strong {
  color: #fff0b2 !important;
  font-size: 18px !important;
  line-height: 1.06 !important;
}

body[data-screen="room"] .play-arena-head span {
  color: rgba(255, 239, 193, 0.72) !important;
  font-size: 11px !important;
  line-height: 1.24 !important;
}

body[data-screen="room"] .play-back-button {
  width: 48px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 14px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 0 0 10px !important;
  color: #ffeaa8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

body[data-screen="room"] .play-back-button::before {
  width: 8px !important;
  height: 8px !important;
  left: 10px !important;
  top: 14px !important;
  border-width: 2px !important;
}

body[data-screen="room"] .play-board {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 1px 8px !important;
  overflow-y: auto !important;
  scrollbar-width: none;
}

body[data-screen="room"] .play-controls {
  margin: 0 -2px !important;
  padding: 8px 2px 0 !important;
  position: relative !important;
  bottom: auto !important;
  gap: 6px !important;
  background: transparent !important;
}

body[data-screen="room"] .play-controls button {
  min-height: 34px !important;
  border-radius: 13px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
  box-shadow: 0 10px 18px rgba(255, 83, 125, 0.13) !important;
}

body[data-screen="room"] .arena-scoreboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body[data-screen="room"] .arena-score {
  min-height: 36px;
  border-radius: 12px;
  color: rgba(255, 248, 238, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

body[data-screen="room"] .arena-score strong {
  color: #fff8ef;
}

body[data-screen="room"] .ludo-board,
body[data-screen="room"] .jack-board {
  gap: 4px;
}

body[data-screen="room"] .arena-cell,
body[data-screen="room"] .jack-cell {
  min-height: 29px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

body[data-screen="room"] .draw-grid {
  gap: 7px;
}

body[data-screen="room"] .draw-card {
  min-height: 54px;
}

body[data-screen="room"] .candy-grid {
  gap: 6px;
}

body[data-screen="room"] .carrom-board {
  max-height: 235px;
  margin: 0 auto;
}

body[data-screen="room"] .umo-card {
  width: 48px;
  min-width: 48px;
  height: 68px;
}

body[data-screen="room"] .okey-rack,
body[data-screen="room"] .domino-chain,
body[data-screen="room"] .domino-hand,
body[data-screen="room"] .umo-hand {
  max-width: 100%;
}

body[data-screen="room"] .slot-machine {
  min-height: 112px;
  padding: 10px;
  border-width: 5px;
}

body[data-screen="room"] .adventure-path {
  gap: 6px;
}

body[data-screen="room"] .adventure-cell {
  min-height: 36px;
}

body[data-screen="room"] .entrance-effect {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 8 !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: -6px 0 12px !important;
  padding: 5px 10px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 8px !important;
  overflow: hidden !important;
  transform: none !important;
}

body[data-screen="room"] .entrance-ring {
  width: 27px !important;
  height: 27px !important;
}

body[data-screen="room"] .entrance-effect strong {
  max-width: none !important;
  width: max-content;
  min-width: 100%;
  white-space: nowrap !important;
  animation: welcome-pass 4.8s linear both;
}

@keyframes welcome-pass {
  0% {
    transform: translateX(70%);
  }

  12%,
  72% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-105%);
  }
}

/* Rank based room card frames */
body[data-screen="home"] .room-card {
  --frame-a: #ffcf5f;
  --frame-b: #36ded1;
  --frame-c: #ff5b86;
  --frame-glow: rgba(255, 205, 95, 0.24);
  --frame-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
}

body[data-screen="home"] .room-card[data-frame-tier="legend"] {
  --frame-a: #fff2a6;
  --frame-b: #f4a622;
  --frame-c: #ff5f8a;
  --frame-glow: rgba(255, 201, 72, 0.36);
  --frame-bg:
    linear-gradient(135deg, rgba(255, 236, 149, 0.42), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #6b3d12, #162034);
}

body[data-screen="home"] .room-card[data-frame-tier="veteran"] {
  --frame-a: #c9fbff;
  --frame-b: #48d8d0;
  --frame-c: #7b5cff;
  --frame-glow: rgba(72, 216, 208, 0.28);
  --frame-bg:
    linear-gradient(135deg, rgba(116, 237, 229, 0.28), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #123a45, #33284f);
}

body[data-screen="home"] .room-card[data-frame-tier="festival"] {
  --frame-a: #ff7ab3;
  --frame-b: #39dcff;
  --frame-c: #ffd45f;
  --frame-glow: rgba(255, 88, 170, 0.3);
  --frame-bg:
    linear-gradient(135deg, rgba(255, 122, 179, 0.3), rgba(57, 220, 255, 0.2)),
    linear-gradient(145deg, #3b206d, #0d5460);
}

body[data-screen="home"] .room-card[data-frame-tier="loyal"] {
  --frame-a: #c9ff91;
  --frame-b: #35d07f;
  --frame-c: #ffcf5f;
  --frame-glow: rgba(53, 208, 127, 0.28);
  --frame-bg:
    linear-gradient(135deg, rgba(201, 255, 145, 0.28), rgba(255, 207, 95, 0.16)),
    linear-gradient(145deg, #174c31, #433418);
}

body[data-screen="home"] .room-card[data-frame-tier="fresh"] {
  --frame-a: #ffd889;
  --frame-b: #ff8f66;
  --frame-c: #62d8ff;
  --frame-glow: rgba(255, 143, 102, 0.22);
  --frame-bg:
    linear-gradient(135deg, rgba(255, 216, 137, 0.3), rgba(98, 216, 255, 0.14)),
    linear-gradient(145deg, #7a4c24, #244557);
}

body[data-screen="home"] .room-cover {
  width: 66px !important;
  height: 66px !important;
  border: 0 !important;
  border-radius: 18px !important;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible !important;
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.42), transparent 1.35rem),
    var(--frame-bg) !important;
  box-shadow:
    0 15px 28px var(--frame-glow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -16px 24px rgba(0, 0, 0, 0.18) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body[data-screen="home"] .room-cover::before {
  content: "";
  position: absolute;
  inset: -4px !important;
  z-index: -1;
  width: auto !important;
  height: auto !important;
  left: -4px !important;
  top: -4px !important;
  right: -4px !important;
  bottom: -4px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--frame-turn, 0deg), var(--frame-a), var(--frame-b), var(--frame-c), var(--frame-a)) border-box !important;
  border: 3px solid transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 0 22px var(--frame-glow);
  opacity: 1 !important;
  transform: none !important;
  animation: room-frame-breathe 2.8s ease-in-out infinite;
}

body[data-screen="home"] .room-cover::after {
  content: attr(data-level);
  position: absolute;
  right: -7px !important;
  bottom: -7px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2;
  width: 25px !important;
  height: 25px !important;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  color: #6b3900;
  background:
    radial-gradient(circle at 35% 25%, #fff8cb, #ffd059 58%, #f69a28) !important;
  box-shadow:
    0 7px 13px rgba(95, 58, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 1000;
  transform: none !important;
}

body[data-screen="home"] .room-cover[data-frame-tier="legend"]::before {
  border-width: 4px;
  animation: room-frame-legend 2.4s ease-in-out infinite;
}

body[data-screen="home"] .room-cover[data-frame-tier="legend"] {
  box-shadow:
    0 17px 30px rgba(255, 195, 56, 0.32),
    0 0 0 6px rgba(255, 232, 128, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 -16px 24px rgba(0, 0, 0, 0.18) !important;
}

body[data-screen="home"] .room-cover[data-frame-tier="festival"]::before {
  animation: room-frame-spark 2.1s ease-in-out infinite;
}

body[data-screen="home"] .room-cover[data-frame-tier="loyal"]::after {
  color: #0b5130;
  background:
    radial-gradient(circle at 35% 25%, #f3ffd6, #8df0a7 58%, #2ebf78) !important;
}

body[data-screen="home"] .room-cover[data-frame-tier="veteran"]::after {
  color: #10455c;
  background:
    radial-gradient(circle at 35% 25%, #efffff, #88f2ed 58%, #4e9dff) !important;
}

body[data-screen="home"] .room-cover[data-frame-tier="festival"]::after {
  color: #6d235d;
  background:
    radial-gradient(circle at 35% 25%, #fff0fb, #ff87bc 58%, #8d66ff) !important;
}

body[data-screen="home"] .room-card[data-frame-tier] .room-card-top > div::after {
  content: attr(data-rank);
  width: max-content;
  max-width: 96px;
  min-height: 18px;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #6e4515;
  background: linear-gradient(135deg, rgba(255, 230, 150, 0.82), rgba(255, 255, 255, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

body[data-screen="home"] .room-card-top > div {
  position: relative;
}

@keyframes room-frame-breathe {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.48),
      0 0 16px var(--frame-glow);
  }

  50% {
    filter: brightness(1.16);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.58),
      0 0 28px var(--frame-glow);
  }
}

@keyframes room-frame-legend {
  0%,
  100% {
    filter: saturate(1.05) brightness(1);
    transform: translateY(0) scale(1);
  }

  50% {
    filter: saturate(1.25) brightness(1.18);
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes room-frame-spark {
  0%,
  100% {
    filter: hue-rotate(0deg) brightness(1.02);
  }

  50% {
    filter: hue-rotate(18deg) brightness(1.18);
  }
}

/* Room game side drawer */
body[data-screen="room"] .room-game-drawer {
  position: absolute;
  top: auto;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 112px);
  z-index: 43;
  width: 150px;
  max-height: min(32dvh, 236px);
  pointer-events: none;
  transform: translateX(150px);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-screen="room"].is-room-game-drawer-open .room-game-drawer {
  transform: translateX(-8px);
}

body:not([data-screen="room"]) .room-game-drawer {
  display: none;
}

.room-game-panel {
  max-height: min(32dvh, 236px);
  padding: 8px;
  border: 1px solid rgba(255, 221, 145, 0.14);
  border-radius: 18px;
  pointer-events: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 207, 95, 0.12), transparent 5rem),
    radial-gradient(circle at 86% 14%, rgba(54, 222, 209, 0.08), transparent 5rem),
    linear-gradient(180deg, rgba(28, 19, 37, 0.88), rgba(9, 6, 15, 0.92));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.room-game-handle {
  position: absolute;
  left: 0;
  top: auto;
  bottom: 0;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 230, 154, 0.18);
  border-radius: 18px 0 0 18px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  color: #fff0b5;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.2), transparent 1.5rem),
    linear-gradient(180deg, rgba(69, 42, 61, 0.88), rgba(15, 9, 23, 0.94));
  box-shadow:
    -8px 10px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-100%);
}

.room-game-handle span {
  width: 19px;
  height: 19px;
  border-radius: 7px;
  display: block;
  background:
    linear-gradient(90deg, transparent 0 42%, #fff8cc 43% 57%, transparent 58%),
    linear-gradient(0deg, transparent 0 42%, #fff8cc 43% 57%, transparent 58%),
    linear-gradient(135deg, #35d07f, #2d8cff);
  box-shadow: 0 0 14px rgba(255, 226, 126, 0.2);
}

.room-game-handle strong {
  display: none;
}

.room-game-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.room-game-head strong {
  color: #fff0b5;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 950;
}

.room-game-close {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  color: rgba(255, 248, 230, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 900;
}

.room-game-list {
  max-height: calc(min(32dvh, 236px) - 42px);
  margin-top: 7px;
  padding: 1px 1px 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}

.room-game-list::-webkit-scrollbar {
  display: none;
}

.room-game-list button {
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(255, 211, 102, 0.32);
  border-radius: 14px;
  padding: 7px 5px 6px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, #16b67d, #0a8365);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 12px 20px rgba(0, 0, 0, 0.18);
}

.room-game-list button::before {
  content: "";
  position: absolute;
  inset: 6px auto auto 8px;
  width: 28px;
  height: 34px;
  border-radius: 10px 0 18px 0;
  background: rgba(255, 255, 255, 0.13);
  transform: skewY(-10deg);
}

.room-game-list button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 30%, #fff6cf 0 3px, transparent 4px),
    linear-gradient(135deg, #ffd768, #ef9e2e);
  box-shadow: 0 5px 10px rgba(87, 49, 9, 0.22);
  transform: translateX(-50%) rotate(45deg);
}

.room-game-list button span,
.room-game-list button strong {
  position: relative;
  z-index: 1;
}

.room-game-list button span {
  width: 31px;
  min-width: 31px;
  min-height: 29px;
  padding: 0 3px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 1000;
}

.room-game-list button strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.02;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
}

.room-game-list button[data-tone="purple"] {
  background: linear-gradient(145deg, #b146ff, #5f25cf);
}

.room-game-list button[data-tone="blue"] {
  background: linear-gradient(145deg, #33c0ff, #1f74dc);
}

.room-game-list button[data-tone="orange"] {
  background: linear-gradient(145deg, #ffb547, #ff6b26);
}

.room-game-list button[data-tone="cyan"] {
  background: linear-gradient(145deg, #58dbff, #159bd5);
}

body[data-screen="room"].is-room-game-open .room-game-drawer {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 380px) {
  body[data-screen="room"] .room-game-drawer {
    width: 142px;
    bottom: calc(env(safe-area-inset-bottom) + 108px);
    transform: translateX(142px);
  }

  .room-game-list button {
    min-height: 58px;
  }
}

/* Chance games promoted to the main games shelf */
body[data-screen="games"] .lucky-games[hidden] {
  display: none !important;
}

body[data-screen="games"] .big-game-grid[aria-label="Şans oyunları"] {
  gap: 12px 10px !important;
}

body[data-screen="games"] .big-game.chance {
  padding: 12px 7px 14px;
  overflow: hidden;
}

body[data-screen="games"] .big-game.chance.red {
  background:
    radial-gradient(circle at 45% 14%, rgba(255, 255, 255, 0.26), transparent 3rem),
    linear-gradient(145deg, #ff6961, #e72b4f 74%);
}

body[data-screen="games"] .big-game.chance.gold {
  background:
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.38), transparent 3rem),
    linear-gradient(145deg, #ffd25a, #f09a22 74%);
}

body[data-screen="games"] .big-game.chance.violet {
  background:
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.3), transparent 3rem),
    linear-gradient(145deg, #cf58ff, #7b31e4 74%);
}

body[data-screen="games"] .big-game.chance.teal {
  background:
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.3), transparent 3rem),
    linear-gradient(145deg, #39ddc9, #079c86 74%);
}

body[data-screen="games"] .big-game.chance .game-logo {
  min-height: 28px;
  font-size: clamp(15px, 4vw, 21px);
  letter-spacing: 0;
}

body[data-screen="games"] .big-game.chance strong {
  min-height: 28px;
  display: grid;
  place-items: center;
  font-size: clamp(12px, 3.4vw, 16px);
}

.chance-art {
  position: relative;
  z-index: 1;
  width: min(70px, 58%);
  min-height: 58px;
  margin: 6px auto 4px;
  display: block;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 11px 16px rgba(25, 13, 35, 0.17);
  font-style: normal;
}

.chance-art b {
  position: absolute;
  display: block;
}

.art-olympus {
  background:
    radial-gradient(circle at 31% 24%, #f3d2ff 0 16%, transparent 17%),
    radial-gradient(circle at 70% 70%, #ffd65f 0 15%, transparent 16%),
    linear-gradient(145deg, #f6a6ff, #8d58ff);
}

.art-olympus b:nth-child(1) {
  left: 14px;
  top: 17px;
  width: 15px;
  height: 25px;
  border-radius: 9px;
  background: #fff;
}

.art-olympus b:nth-child(2) {
  left: 28px;
  top: 12px;
  width: 18px;
  height: 31px;
  border-radius: 10px;
  background: #fff7d8;
}

.art-olympus b:nth-child(3) {
  right: 11px;
  top: 18px;
  width: 11px;
  height: 22px;
  border-radius: 8px;
  background: #fff;
}

.art-fish {
  background:
    radial-gradient(circle at 68% 29%, #e7fbff 0 12%, transparent 13%),
    linear-gradient(145deg, #6ce8ff, #22a8f0);
}

.art-fish b:nth-child(1) {
  left: 16px;
  top: 23px;
  width: 34px;
  height: 19px;
  border-radius: 50%;
  background: #fff9df;
}

.art-fish b:nth-child(2) {
  right: 12px;
  top: 24px;
  width: 18px;
  height: 18px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: #ff747d;
}

.art-fish b:nth-child(3) {
  left: 41px;
  top: 28px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25405d;
}

.art-fruit {
  background:
    radial-gradient(circle at 35% 31%, #ff5e8a 0 16%, transparent 17%),
    radial-gradient(circle at 63% 38%, #ffcf56 0 16%, transparent 17%),
    radial-gradient(circle at 50% 65%, #62db6e 0 17%, transparent 18%),
    linear-gradient(145deg, #ff9b52, #ff5e35);
}

.art-fruit b:nth-child(1) {
  left: 23px;
  top: 11px;
  width: 10px;
  height: 17px;
  border-radius: 10px 0 10px 0;
  background: #72d951;
  transform: rotate(-24deg);
}

.art-fruit b:nth-child(2),
.art-fruit b:nth-child(3) {
  display: none;
}

.art-jackpot {
  background:
    linear-gradient(#fff, #fff) 50% 53% / 46px 22px no-repeat,
    linear-gradient(145deg, #ff7677, #d9244f);
}

.art-jackpot b {
  top: 21px;
  width: 13px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #e8294c;
  background: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.art-jackpot b:nth-child(1) {
  left: 13px;
}

.art-jackpot b:nth-child(2) {
  left: 28px;
}

.art-jackpot b:nth-child(3) {
  left: 43px;
}

.art-jackpot b::before {
  content: "7";
}

.art-pyramid {
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, 0.2) 50% 58%, transparent 59%),
    linear-gradient(145deg, #ffd56a, #f39b21);
}

.art-pyramid b:nth-child(1) {
  left: 12px;
  bottom: 13px;
  width: 46px;
  height: 34px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fff2a7;
}

.art-pyramid b:nth-child(2) {
  left: 24px;
  bottom: 13px;
  width: 23px;
  height: 18px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #f2a43a;
}

.art-pyramid b:nth-child(3) {
  display: none;
}

.art-treasure {
  background:
    radial-gradient(circle at 66% 22%, #fff0a2 0 13%, transparent 14%),
    linear-gradient(145deg, #4bdf9b, #0da66e);
}

.art-treasure b:nth-child(1) {
  left: 13px;
  top: 24px;
  width: 45px;
  height: 25px;
  border-radius: 7px;
  background: #8d5a28;
}

.art-treasure b:nth-child(2) {
  left: 16px;
  top: 15px;
  width: 39px;
  height: 17px;
  border-radius: 14px 14px 5px 5px;
  background: #f5c75d;
}

.art-treasure b:nth-child(3) {
  left: 32px;
  top: 29px;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  background: #fff4b5;
}

.art-wheel {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 13%, transparent 14%),
    conic-gradient(#ff5d72 0 16%, #ffd95d 0 33%, #51dd7f 0 50%, #55cbff 0 67%, #a96bff 0 84%, #ff8b39 0);
}

.art-wheel b:nth-child(1) {
  left: 30px;
  top: 3px;
  width: 9px;
  height: 18px;
  border-radius: 7px;
  background: #fff7ca;
}

.art-wheel b:nth-child(2),
.art-wheel b:nth-child(3) {
  display: none;
}

.art-numbers {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.3), transparent 20%),
    linear-gradient(145deg, #bd6cff, #7c32e5);
}

.art-numbers b {
  top: 18px;
  width: 22px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #6e2ed1;
  background: #fff;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 5px 9px rgba(40, 20, 60, 0.18);
}

.art-numbers b:nth-child(1) {
  left: 10px;
  transform: rotate(-11deg);
}

.art-numbers b:nth-child(2) {
  left: 25px;
  transform: rotate(5deg);
}

.art-numbers b:nth-child(3) {
  left: 41px;
  transform: rotate(12deg);
}

.art-crown {
  background:
    radial-gradient(circle at 52% 26%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(145deg, #36dfc8, #079f87);
}

.art-crown b:nth-child(1) {
  left: 12px;
  top: 21px;
  width: 48px;
  height: 28px;
  clip-path: polygon(0 100%, 0 30%, 22% 58%, 42% 0, 61% 58%, 82% 30%, 100% 100%);
  background: #ffd765;
}

.art-crown b:nth-child(2) {
  left: 16px;
  top: 38px;
  width: 40px;
  height: 9px;
  border-radius: 7px;
  background: #fff0a7;
}

.art-crown b:nth-child(3) {
  left: 31px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Premium standalone chance games */
body[data-screen="games"] {
  color: #f7f0df !important;
  background: #05060c !important;
}

body[data-screen="games"] .app-shell {
  background:
    radial-gradient(circle at 20% -6%, rgba(206, 151, 58, 0.18), transparent 12rem),
    radial-gradient(circle at 88% 6%, rgba(78, 116, 255, 0.12), transparent 11rem),
    linear-gradient(180deg, #080711 0%, #070710 46%, #030306 100%) !important;
}

body[data-screen="games"] .games-view {
  min-height: 100dvh;
  padding: 12px 12px 96px;
  background:
    radial-gradient(circle at 48% 0%, rgba(255, 213, 124, 0.08), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 12rem),
    transparent !important;
}

body[data-screen="games"] .games-section-head[hidden],
body[data-screen="games"] .big-game-grid[hidden],
body[data-screen="games"] .chance-detail[hidden] {
  display: none !important;
}

body[data-screen="games"] .games-section-head {
  margin: 2px 0 14px;
}

body[data-screen="games"] .games-section-head strong {
  color: #fff2c8 !important;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 720;
  letter-spacing: 0;
}

body[data-screen="games"] .games-section-head strong::before {
  background:
    radial-gradient(circle at 5px 7px, #070710 0 2px, transparent 2.5px),
    radial-gradient(circle at 13px 7px, #070710 0 2px, transparent 2.5px),
    linear-gradient(135deg, #f4c766, #b47c2d) !important;
  box-shadow: 0 -7px 0 -5px rgba(52, 220, 196, 0.82) !important;
}

body[data-screen="games"] .games-section-head button {
  border: 1px solid rgba(255, 224, 155, 0.16) !important;
  color: rgba(255, 242, 210, 0.86) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-weight: 640;
}

body[data-screen="games"] .big-game-grid[aria-label="Şans oyunları"] {
  gap: 12px 10px !important;
}

body[data-screen="games"] .big-game.chance {
  min-height: 154px;
  border: 1px solid rgba(244, 198, 101, 0.45) !important;
  border-radius: 20px !important;
  color: #fff7e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -28px 40px rgba(0, 0, 0, 0.18),
    0 18px 28px rgba(0, 0, 0, 0.28) !important;
}

body[data-screen="games"] .big-game.chance .chance-art {
  min-height: 56px;
  margin-top: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 18px rgba(0, 0, 0, 0.2);
}

body[data-screen="games"] .big-game.chance .game-logo {
  min-height: 27px;
  color: #fff6d7;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body[data-screen="games"] .big-game.chance strong {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(11px, 3.35vw, 15px);
  font-weight: 500;
  line-height: 1.08;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.26);
}

body[data-screen="games"] .bottom-nav {
  border-color: rgba(255, 224, 155, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(18, 17, 28, 0.96), rgba(7, 7, 13, 0.98)) !important;
  box-shadow:
    0 -18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body[data-screen="games"] .nav-item {
  color: rgba(255, 247, 229, 0.5);
}

body[data-screen="games"] .nav-item.is-active {
  color: #ffd98d;
}

body[data-screen="games"] .big-game.chance.purple,
body[data-screen="games"] .big-game.chance.violet {
  background:
    radial-gradient(circle at 44% 17%, rgba(255, 255, 255, 0.24), transparent 3rem),
    linear-gradient(145deg, #9b47f0, #32166f 78%) !important;
}

body[data-screen="games"] .big-game.chance.cyan,
body[data-screen="games"] .big-game.chance.blue {
  background:
    radial-gradient(circle at 48% 15%, rgba(255, 255, 255, 0.23), transparent 3rem),
    linear-gradient(145deg, #2cc4ea, #123f8f 78%) !important;
}

body[data-screen="games"] .big-game.chance.orange,
body[data-screen="games"] .big-game.chance.gold {
  background:
    radial-gradient(circle at 47% 14%, rgba(255, 255, 255, 0.28), transparent 3rem),
    linear-gradient(145deg, #f4b245, #7d3a09 78%) !important;
}

body[data-screen="games"] .big-game.chance.red {
  background:
    radial-gradient(circle at 45% 14%, rgba(255, 255, 255, 0.22), transparent 3rem),
    linear-gradient(145deg, #f35e70, #661023 78%) !important;
}

body[data-screen="games"] .big-game.chance.green,
body[data-screen="games"] .big-game.chance.teal {
  background:
    radial-gradient(circle at 45% 14%, rgba(255, 255, 255, 0.22), transparent 3rem),
    linear-gradient(145deg, #27c392, #075d52 78%) !important;
}

body[data-screen="games"].is-chance-game-open .bottom-nav {
  display: none !important;
}

body[data-screen="games"].is-chance-game-open .games-view {
  padding-bottom: 18px;
}

.chance-detail {
  min-height: calc(100dvh - 24px);
  color: #f7f0df;
}

.chance-detail-shell {
  min-height: calc(100dvh - 34px);
  border: 1px solid rgba(255, 222, 146, 0.13);
  border-radius: 26px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 184, 88, 0.17), transparent 10rem),
    radial-gradient(circle at 86% 10%, rgba(91, 126, 255, 0.13), transparent 9rem),
    linear-gradient(180deg, rgba(17, 16, 29, 0.96), rgba(6, 6, 12, 0.98));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chance-detail-head {
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.chance-back {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 224, 155, 0.15);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chance-back span {
  width: 11px;
  height: 11px;
  border-left: 2px solid #ffe3a3;
  border-bottom: 2px solid #ffe3a3;
  transform: rotate(45deg) translateX(2px);
}

.chance-detail-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chance-detail-head span {
  color: rgba(255, 233, 190, 0.62);
  font-size: 11px;
  font-weight: 520;
}

.chance-detail-head strong {
  color: #fff5da;
  font-size: 18px;
  font-weight: 720;
  line-height: 1;
}

.chance-detail-head em {
  border: 1px solid rgba(63, 219, 196, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: #b9fff3;
  background: rgba(63, 219, 196, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
}

.chance-hero {
  margin-top: 14px;
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 7rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chance-hero-art {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: block;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 24px rgba(0, 0, 0, 0.26);
}

.chance-hero-art b {
  position: absolute;
  display: block;
}

.chance-hero-copy {
  min-width: 0;
}

.chance-hero-copy span {
  color: #f4c766;
  font-size: 12px;
  font-weight: 620;
}

.chance-hero-copy h2 {
  margin: 4px 0 7px;
  color: #fff8e8;
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.95;
}

.chance-hero-copy p {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.42;
}

.chance-play-card,
.chance-info-grid article {
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.chance-play-card {
  margin-top: 12px;
  padding: 14px;
}

.chance-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chance-reels span {
  min-height: 64px;
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff7dd;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 2.5rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  font-size: 22px;
  font-weight: 720;
}

.chance-reels.is-spinning span {
  animation: chanceReelPop 480ms ease both;
}

.chance-reels.is-spinning span:nth-child(2) {
  animation-delay: 55ms;
}

.chance-reels.is-spinning span:nth-child(3) {
  animation-delay: 110ms;
}

.chance-reels.is-win span {
  border-color: rgba(70, 231, 199, 0.38);
  box-shadow: 0 0 22px rgba(70, 231, 199, 0.14);
}

@keyframes chanceReelPop {
  0% {
    transform: translateY(-8px) scale(0.96);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.chance-result {
  min-height: 38px;
  margin: 12px 0;
  color: rgba(255, 248, 232, 0.68);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.35;
}

.chance-primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  color: #130f08;
  background: linear-gradient(135deg, #ffe08c, #c98b2f);
  box-shadow: 0 14px 24px rgba(194, 137, 47, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.chance-info-grid {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.chance-mission-card {
  position: relative;
  margin-top: 12px;
  min-height: 86px;
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 20px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 224, 155, 0.18), transparent 4.5rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chance-mission-card span,
.chance-mission-card small {
  display: block;
  color: rgba(255, 248, 232, 0.62);
  font-size: 12px;
  font-weight: 520;
}

.chance-mission-card strong {
  display: block;
  margin: 4px 0;
  color: #fff4d0;
  font-size: 15px;
  font-weight: 720;
}

.chance-mission-card b {
  min-width: 58px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #1a1208;
  background: linear-gradient(145deg, #ffe393, #c98a34);
  font-size: 14px;
  font-weight: 760;
}

.chance-mission-card i {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.chance-mission-card i::before {
  content: "";
  display: block;
  width: var(--mission-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45d8ca, #ffe393);
}

.chance-info-grid article {
  padding: 13px 14px;
}

.chance-info-grid span {
  display: block;
  color: #f4c766;
  font-size: 12px;
  font-weight: 650;
}

.chance-info-grid p {
  margin: 5px 0 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 12.5px;
  font-weight: 430;
  line-height: 1.42;
}

/* Premium compact room cards */
body[data-screen="home"] .room-feed {
  gap: 10px !important;
}

body[data-screen="home"] .room-card {
  --room-card-a: #f2c76c;
  --room-card-b: #45d8ca;
  --room-card-c: #d65d83;
  --room-card-ink: #fff4d8;
  min-height: 118px;
  padding: 9px 10px 8px !important;
  border: 1px solid rgba(255, 222, 145, 0.16) !important;
  border-radius: 18px !important;
  display: grid;
  align-content: start;
  overflow: hidden;
  color: rgba(255, 248, 232, 0.78);
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--room-card-a) 24%, transparent), transparent 6.6rem),
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--room-card-b) 16%, transparent), transparent 5.6rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 31%),
    linear-gradient(180deg, rgba(21, 19, 31, 0.96), rgba(8, 8, 14, 0.985)) !important;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body[data-screen="home"] .room-card {
  min-height: 0 !important;
  padding: 8px 9px 7px !important;
}

body[data-screen="home"] .room-card[data-frame-tier="legend"] {
  --room-card-a: #ffe48d;
  --room-card-b: #f4a83e;
  --room-card-c: #ff6f95;
}

body[data-screen="home"] .room-card[data-frame-tier="veteran"] {
  --room-card-a: #c9fbff;
  --room-card-b: #48d8d0;
  --room-card-c: #7e70ff;
}

body[data-screen="home"] .room-card[data-frame-tier="festival"] {
  --room-card-a: #ff8bbb;
  --room-card-b: #3fe3ff;
  --room-card-c: #ffd25f;
}

body[data-screen="home"] .room-card[data-frame-tier="loyal"] {
  --room-card-a: #bff3a1;
  --room-card-b: #35d07f;
  --room-card-c: #ffcf5f;
}

body[data-screen="home"] .room-card[data-frame-tier="fresh"] {
  --room-card-a: #ffd889;
  --room-card-b: #ff8f66;
  --room-card-c: #62d8ff;
}

body[data-screen="home"] .room-card::before {
  content: "";
  position: absolute;
  inset: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(rgba(12, 11, 18, 0.94), rgba(12, 11, 18, 0.94)) padding-box,
    linear-gradient(135deg, var(--room-card-a), rgba(255, 255, 255, 0.08) 34%, var(--room-card-b) 68%, var(--room-card-c)) border-box;
  opacity: 0.66;
  pointer-events: none;
}

body[data-screen="home"] .room-card::after {
  content: "";
  position: absolute;
  left: 74px !important;
  right: 52px !important;
  top: 9px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--room-card-a), rgba(255, 255, 255, 0.1), transparent) !important;
  opacity: 0.82 !important;
}

body[data-screen="home"] .room-card-top {
  grid-template-columns: 49px minmax(0, 1fr) 43px !important;
  align-items: start;
  gap: 8px;
  min-height: 50px;
  position: relative;
  z-index: 1;
}

body[data-screen="home"] .room-cover {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  color: rgba(255, 247, 221, 0.48) !important;
  background:
    radial-gradient(circle at 51% 32%, rgba(255, 255, 255, 0.44), transparent 1.1rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(145deg, color-mix(in srgb, var(--room-card-a) 46%, #14101d), color-mix(in srgb, var(--room-card-b) 32%, #07070d)) !important;
  box-shadow:
    0 11px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 -14px 20px rgba(0, 0, 0, 0.2) !important;
  font-size: 11px;
  font-weight: 650;
}

body[data-screen="home"] .room-cover::before {
  inset: -3px !important;
  left: -3px !important;
  top: -3px !important;
  right: -3px !important;
  bottom: -3px !important;
  border-width: 1px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(rgba(12, 11, 18, 0.92), rgba(12, 11, 18, 0.92)) padding-box,
    conic-gradient(from 24deg, var(--room-card-a), var(--room-card-b), var(--room-card-c), var(--room-card-a)) border-box !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--room-card-a) 18%, transparent) !important;
  animation: none !important;
}

body[data-screen="home"] .room-cover::after {
  right: -5px !important;
  bottom: -5px !important;
  width: 19px !important;
  height: 19px !important;
  border-width: 1px !important;
  color: #211407;
  background: linear-gradient(145deg, #fff0b5, #d89a34) !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.18) !important;
  font-size: 9px;
  font-weight: 720;
}

body[data-screen="home"] .room-card-top > div {
  min-width: 0;
  padding-top: 1px;
  display: grid;
  gap: 2px;
  overflow: hidden;
}

body[data-screen="home"] .room-card-top strong {
  color: #fff4d7 !important;
  font-family: var(--font-body);
  font-size: 14px !important;
  font-weight: 680 !important;
  line-height: 1.08;
  text-align: left !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  width: max-content;
  max-width: none;
  padding-right: 0;
  display: inline-block;
  overflow: visible !important;
  white-space: nowrap;
  animation: room-title-marquee 7.2s ease-in-out infinite;
}

body[data-screen="home"] .room-card-top strong::after {
  content: "";
}

body[data-screen="home"] .room-card:hover .room-card-top strong {
  animation-play-state: paused;
}

body[data-screen="home"] .room-card-top span {
  color: rgba(255, 248, 232, 0.54) !important;
  font-size: 10.5px;
  font-weight: 520;
  line-height: 1.15;
}

body[data-screen="home"] .room-card[data-frame-tier] .room-card-top > div::after {
  width: fit-content;
  max-width: 92px;
  min-height: 16px;
  margin-top: 1px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 999px;
  color: rgba(255, 236, 188, 0.92);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 620;
  line-height: 1;
}

body[data-screen="home"] .enter-button {
  min-width: 40px;
  min-height: 31px;
  border: 1px solid rgba(255, 224, 155, 0.22) !important;
  border-radius: 14px !important;
  padding: 0 7px;
  color: #160f08 !important;
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  font-size: 11.5px;
  font-weight: 720;
}

body[data-screen="home"] .room-card p {
  min-height: 0 !important;
  margin: 2px 2px 0 57px !important;
  color: rgba(255, 248, 232, 0.62) !important;
  display: -webkit-box;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 10.8px !important;
  font-weight: 430;
  line-height: 1.24;
}

body[data-screen="home"] .room-badge-row {
  min-height: 8px !important;
  height: 8px;
  margin: 4px 0 0 57px !important;
  gap: 3px;
  position: relative;
  z-index: 1;
}

body[data-screen="home"] .badge-gem {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff7c4 0 25%, transparent 26%),
    linear-gradient(135deg, var(--room-card-a), var(--room-card-b)) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--room-card-b) 24%, transparent);
}

body[data-screen="home"] .badge-gem.is-muted {
  opacity: 0.24;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none;
}

body[data-screen="home"] .room-bottom-row {
  min-height: 20px;
  margin-top: 5px;
  margin-left: 57px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

body[data-screen="home"] .room-tags {
  margin-left: 0 !important;
  display: flex;
  gap: 5px;
  overflow: hidden;
}

body[data-screen="home"] .room-tags span {
  border: 1px solid rgba(255, 224, 155, 0.1);
  border-radius: 999px;
  padding: 3px 6px;
  color: rgba(255, 238, 202, 0.78) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 9.5px;
  font-weight: 560;
  line-height: 1;
}

body[data-screen="home"] .room-listeners {
  margin-left: auto;
  min-height: 20px;
  border: 1px solid rgba(69, 216, 202, 0.16);
  border-radius: 999px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(205, 255, 246, 0.86);
  background: rgba(69, 216, 202, 0.065);
  font-size: 10px;
  font-weight: 620;
}

body[data-screen="home"] .signal-bars {
  transform: scale(0.82);
  transform-origin: right center;
}

@keyframes room-title-marquee {
  0%,
  32% {
    transform: translateX(0);
  }

  78% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-screen="home"] .room-card-top strong {
    width: 100%;
    min-width: 0;
    padding-right: 0;
    overflow: hidden !important;
    text-overflow: ellipsis;
    animation: none;
  }

  body[data-screen="home"] .room-card-top strong::after {
    content: "";
    padding-left: 0;
  }
}

/* App-wide premium dark theme */
body:not([data-screen="room"]) {
  color: #f7f0df !important;
  background:
    radial-gradient(circle at 16% -8%, rgba(242, 199, 108, 0.16), transparent 15rem),
    radial-gradient(circle at 92% 4%, rgba(69, 216, 202, 0.11), transparent 13rem),
    linear-gradient(180deg, #080811 0%, #07070d 52%, #030306 100%) !important;
}

body:not([data-screen="room"]) .app-shell {
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 199, 108, 0.13), transparent 13rem),
    radial-gradient(circle at 100% 8%, rgba(214, 93, 131, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(19, 18, 31, 0.98), rgba(6, 6, 12, 0.985)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 222, 145, 0.08),
    0 22px 46px rgba(0, 0, 0, 0.36) !important;
}

body:not([data-screen="room"]) .view {
  background:
    radial-gradient(circle at 45% -5%, rgba(255, 224, 155, 0.06), transparent 12rem),
    transparent !important;
}

body:not([data-screen="room"]) .discovery-tabs {
  background:
    linear-gradient(180deg, rgba(12, 11, 19, 0.96), rgba(12, 11, 19, 0.7) 72%, transparent) !important;
  backdrop-filter: blur(18px);
}

body:not([data-screen="room"]) .discovery-tabs button:not(.tab-action) {
  color: rgba(255, 248, 232, 0.42) !important;
  font-weight: 720 !important;
}

body:not([data-screen="room"]) .discovery-tabs button.is-active:not(.tab-action) {
  color: #fff1c2 !important;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(242, 199, 108, 0.34), transparent 38%),
    transparent !important;
  text-shadow: 0 6px 18px rgba(242, 199, 108, 0.18) !important;
}

body:not([data-screen="room"]) .tab-action {
  border: 1px solid rgba(255, 224, 155, 0.16) !important;
  color: #130f08 !important;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.66) 0 8%, transparent 9%),
    linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow: 0 13px 24px rgba(201, 138, 52, 0.22) !important;
}

body:not([data-screen="room"]) .search-button {
  border: 1px solid rgba(255, 224, 155, 0.2) !important;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 1.4rem),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.2) !important;
}

body:not([data-screen="room"]) .bonus-banner {
  border: 1px solid rgba(255, 222, 145, 0.16) !important;
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 224, 155, 0.2), transparent 4.2rem),
    radial-gradient(circle at 88% 22%, rgba(214, 93, 131, 0.2), transparent 5.2rem),
    linear-gradient(135deg, rgba(53, 28, 58, 0.96), rgba(138, 67, 31, 0.92) 50%, rgba(31, 21, 44, 0.96)) !important;
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

body:not([data-screen="room"]) .bonus-banner span:not(.banner-guard),
body:not([data-screen="room"]) .bonus-banner small {
  color: rgba(255, 248, 232, 0.66) !important;
}

body:not([data-screen="room"]) .bonus-banner strong {
  color: #fff3cf !important;
  font-weight: 720 !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28) !important;
}

body:not([data-screen="room"]) .bonus-banner button {
  border: 1px solid rgba(255, 224, 155, 0.22) !important;
  color: #1a1208 !important;
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24) !important;
}

body:not([data-screen="room"]) .vip-card,
body:not([data-screen="room"]) .feature-card,
body:not([data-screen="room"]) .family-earn-card,
body:not([data-screen="room"]) .family-card,
body:not([data-screen="room"]) .task-list article,
body:not([data-screen="room"]) .memory-compose,
body:not([data-screen="room"]) .memory-card,
body:not([data-screen="room"]) .profile-panel,
body:not([data-screen="room"]) .account-card,
body:not([data-screen="room"]) .frame-showcase,
body:not([data-screen="room"]) .official-event,
body:not([data-screen="room"]) .event-hero-card,
body:not([data-screen="room"]) .inbox-item {
  border: 1px solid rgba(255, 222, 145, 0.13) !important;
  color: rgba(255, 248, 232, 0.78) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 199, 108, 0.12), transparent 5.8rem),
    radial-gradient(circle at 90% 20%, rgba(69, 216, 202, 0.07), transparent 4.8rem),
    linear-gradient(180deg, rgba(22, 20, 32, 0.96), rgba(9, 9, 15, 0.985)) !important;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body:not([data-screen="room"]) .vip-card.svip,
body:not([data-screen="room"]) .feature-card.bff {
  background:
    radial-gradient(circle at 88% 12%, rgba(214, 93, 131, 0.2), transparent 4.8rem),
    radial-gradient(circle at 12% 0%, rgba(124, 92, 255, 0.16), transparent 5.2rem),
    linear-gradient(180deg, rgba(25, 20, 42, 0.97), rgba(9, 9, 15, 0.985)) !important;
}

body:not([data-screen="room"]) .feature-card.family {
  background:
    radial-gradient(circle at 88% 12%, rgba(69, 216, 202, 0.18), transparent 4.8rem),
    linear-gradient(180deg, rgba(18, 33, 31, 0.96), rgba(8, 9, 14, 0.985)) !important;
}

body:not([data-screen="room"]) .vip-card strong,
body:not([data-screen="room"]) .feature-card strong,
body:not([data-screen="room"]) .family-card strong,
body:not([data-screen="room"]) .task-list strong,
body:not([data-screen="room"]) .memory-card strong,
body:not([data-screen="room"]) .inbox-item strong,
body:not([data-screen="room"]) .simple-page-head strong,
body:not([data-screen="room"]) .profile-panel strong,
body:not([data-screen="room"]) .account-card strong {
  color: #fff3cf !important;
  font-weight: 700 !important;
}

body:not([data-screen="room"]) .vip-card span,
body:not([data-screen="room"]) .vip-card small,
body:not([data-screen="room"]) .feature-card span,
body:not([data-screen="room"]) .family-card span,
body:not([data-screen="room"]) .task-list span,
body:not([data-screen="room"]) .task-list small,
body:not([data-screen="room"]) .memory-card p,
body:not([data-screen="room"]) .inbox-item span,
body:not([data-screen="room"]) .inbox-item time,
body:not([data-screen="room"]) .simple-page-head span,
body:not([data-screen="room"]) .account-card span {
  color: rgba(255, 248, 232, 0.58) !important;
}

body:not([data-screen="room"]) .filter-row button,
body:not([data-screen="room"]) .message-page-head button,
body:not([data-screen="room"]) .text-button,
body:not([data-screen="room"]) .profile-actions button,
body:not([data-screen="room"]) .memory-card button,
body:not([data-screen="room"]) .task-list button,
body:not([data-screen="room"]) .games-section-head button {
  border: 1px solid rgba(255, 224, 155, 0.11) !important;
  color: rgba(255, 248, 232, 0.62) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  font-weight: 620 !important;
}

body:not([data-screen="room"]) .message-page-head {
  color: #fff3cf !important;
}

body:not([data-screen="room"]) .message-page-head > div:first-child {
  gap: 7px;
}

body:not([data-screen="room"]) .message-page-head > div:first-child button {
  min-height: 38px;
  border-radius: 14px !important;
  padding: 0 10px;
  color: rgba(255, 248, 232, 0.55) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 20px;
  font-weight: 680 !important;
}

body:not([data-screen="room"]) .message-page-head > div:first-child button.is-active {
  color: #171006 !important;
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22) !important;
}

body[data-screen="inbox"] .message-page-head {
  min-height: 76px;
  align-items: center;
}

body[data-screen="inbox"] .message-tabs {
  flex: 1;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
}

body[data-screen="inbox"] .message-tabs button {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px !important;
  border-radius: 14px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px !important;
  font-weight: 680 !important;
  letter-spacing: 0;
}

body[data-screen="inbox"] .message-tabs button[data-count]::after {
  content: attr(data-count);
  position: absolute;
  right: 5px;
  top: 4px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #1a1008;
  background: #ffe393;
  font-size: 9px;
  font-weight: 780;
}

body[data-screen="inbox"] .message-tabs button.is-active[data-count]::after {
  color: #fff7de;
  background: rgba(20, 14, 8, 0.86);
}

body[data-screen="inbox"] .inbox-room .inbox-avatar {
  background:
    radial-gradient(circle at 50% 50%, #ffe393 0 28%, transparent 29%),
    linear-gradient(145deg, rgba(69, 216, 202, 0.4), rgba(124, 92, 255, 0.16));
}

body:not([data-screen="room"]) .message-tool {
  border-radius: 14px !important;
}

body:not([data-screen="room"]) .filter-row button.is-active,
body:not([data-screen="room"]) .message-page-head button.is-active,
body:not([data-screen="room"]) .primary-action,
body:not([data-screen="room"]) .profile-actions button:first-child,
body:not([data-screen="room"]) .task-list button,
body:not([data-screen="room"]) #collectFamilyIncomeButton,
body:not([data-screen="room"]) #shareMemoryButton {
  border-color: rgba(255, 224, 155, 0.24) !important;
  color: #181006 !important;
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22) !important;
}

body:not([data-screen="room"]) .simple-page-head {
  color: #fff3cf !important;
}

body[data-screen="inbox"] .inbox-view,
body[data-screen="family"] .family-view,
body[data-screen="memory"] .memory-view,
body[data-screen="profile"] .profile-view {
  color: #f7f0df !important;
  background:
    radial-gradient(circle at 18% -4%, rgba(242, 199, 108, 0.12), transparent 12rem),
    radial-gradient(circle at 92% 2%, rgba(69, 216, 202, 0.09), transparent 10rem),
    transparent !important;
}

body[data-screen="inbox"] .inbox-list {
  gap: 9px !important;
}

body[data-screen="inbox"] .inbox-item {
  min-height: 78px !important;
  border-radius: 18px !important;
  padding: 10px !important;
  border-bottom: 1px solid rgba(255, 222, 145, 0.13) !important;
}

body[data-screen="inbox"] .inbox-avatar,
body:not([data-screen="room"]) .memory-avatar,
body:not([data-screen="room"]) .family-emblem {
  color: #fff1c2 !important;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.2), transparent 1.3rem),
    linear-gradient(145deg, rgba(242, 199, 108, 0.34), rgba(69, 216, 202, 0.2)),
    #171522 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 18px rgba(0, 0, 0, 0.2) !important;
}

body[data-screen="inbox"] .inbox-avatar::before {
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
}

body:not([data-screen="room"]) input,
body:not([data-screen="room"]) textarea {
  border: 1px solid rgba(255, 224, 155, 0.12) !important;
  color: #fff3cf !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body:not([data-screen="room"]) input::placeholder,
body:not([data-screen="room"]) textarea::placeholder {
  color: rgba(255, 248, 232, 0.38);
}

body[data-screen="memory"] .memory-upload,
body[data-screen="profile"] .profile-actions,
body[data-screen="profile"] .account-card,
body[data-screen="profile"] .profile-menu,
body[data-screen="profile"] .svip-strip,
body[data-screen="profile"] .account-grid button,
body[data-screen="profile"] .frame-item {
  border: 1px solid rgba(255, 222, 145, 0.13) !important;
  color: rgba(255, 248, 232, 0.76) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(242, 199, 108, 0.11), transparent 4.6rem),
    linear-gradient(180deg, rgba(22, 20, 32, 0.95), rgba(10, 10, 16, 0.985)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 22px rgba(0, 0, 0, 0.18) !important;
}

body[data-screen="profile"] .profile-actions button {
  color: rgba(255, 248, 232, 0.7) !important;
}

body[data-screen="profile"] .profile-actions button:first-child {
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 2.2rem),
    rgba(242, 199, 108, 0.12) !important;
}

body[data-screen="profile"] .account-head span,
body[data-screen="profile"] .svip-strip span,
body[data-screen="profile"] .account-grid span,
body[data-screen="profile"] .profile-menu span {
  color: rgba(255, 248, 232, 0.56) !important;
}

body[data-screen="profile"] .svip-strip strong,
body[data-screen="profile"] .account-grid strong {
  color: #fff3cf !important;
  font-weight: 700 !important;
}

body[data-screen="profile"] .frame-head button,
body[data-screen="profile"] .primary-action {
  border: 1px solid rgba(255, 224, 155, 0.24) !important;
  color: #181006 !important;
  background: linear-gradient(145deg, #ffe393, #c98a34) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22) !important;
}

body[data-screen="memory"] .memory-upload strong {
  color: #fff3cf !important;
}

body:not([data-screen="room"]) .bottom-nav {
  border-top: 1px solid rgba(255, 224, 155, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(18, 17, 28, 0.96), rgba(7, 7, 13, 0.98)) !important;
  box-shadow:
    0 -18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body:not([data-screen="room"]) .nav-item {
  color: rgba(255, 247, 229, 0.48) !important;
}

body:not([data-screen="room"]) .nav-item.is-active {
  color: #ffd98d !important;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 224, 155, 0.18), transparent 1.8rem),
    radial-gradient(circle, rgba(201, 138, 52, 0.2), transparent 2.5rem) !important;
}

/* Deep premium systems: game scenes, aristocracy, payment and admin */
.chance-scene {
  margin-top: 12px;
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 22px;
  min-height: 178px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 224, 155, 0.1), transparent 6rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.scene-olympus {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 236, 150, 0.18), transparent 5rem),
    linear-gradient(180deg, #30205f, #11101f);
}

.scene-olympus span,
.scene-slots span,
.scene-numbers span {
  border-radius: 11px;
  min-height: 24px;
  display: grid;
  place-items: center;
  color: #fff6d7;
  background:
    radial-gradient(circle at 38% 25%, rgba(255, 255, 255, 0.32), transparent 0.8rem),
    linear-gradient(145deg, rgba(124, 92, 255, 0.55), rgba(69, 216, 202, 0.22));
  font-size: 10px;
  font-weight: 720;
}

.scene-olympus b {
  position: absolute;
  right: 14px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #170f06;
  background: linear-gradient(145deg, #ffe393, #c98a34);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.scene-fish {
  background:
    radial-gradient(circle at 30% 20%, rgba(98, 225, 255, 0.24), transparent 5rem),
    linear-gradient(180deg, #123b61, #06101e);
}

.scene-fish span {
  position: absolute;
  width: 54px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 35%, #17233a 0 4px, transparent 5px),
    linear-gradient(145deg, #fff0b5, #ff6f73);
}

.scene-fish span::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 6px;
  border: 8px solid transparent;
  border-left-color: #ff6f73;
}

.scene-fish span:nth-child(1) { left: 30px; top: 36px; }
.scene-fish span:nth-child(2) { right: 48px; top: 72px; transform: scale(0.86); }
.scene-fish span:nth-child(3) { left: 86px; bottom: 34px; transform: scale(0.72); }
.scene-fish i {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(#ffe393, #45d8ca, #7c5cff, #ffe393);
}

.scene-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
  align-items: center;
  background: linear-gradient(180deg, #38131e, #0e0d14);
}

.scene-slots span,
.scene-numbers span {
  min-height: 92px;
  border: 1px solid rgba(255, 224, 155, 0.16);
  border-radius: 18px;
  font-size: 24px;
}

.scene-slots b,
.scene-numbers b,
.scene-crown b {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffe6a6;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.scene-pyramid {
  display: grid;
  place-items: end center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 18px 18px 24px;
  background: linear-gradient(180deg, #3a2511, #0e0d14);
}

.scene-pyramid span {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  display: grid;
  place-items: center;
  color: #2a1907;
  background: linear-gradient(145deg, #fff0a7, #c98a34);
  font-weight: 720;
}

.scene-pyramid span:nth-child(1) { height: 42px; }
.scene-pyramid span:nth-child(2) { height: 66px; }
.scene-pyramid span:nth-child(3) { height: 94px; }
.scene-pyramid span:nth-child(4) { height: 124px; }

.scene-treasure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 28px 16px;
  background: linear-gradient(180deg, #133427, #090d12);
}

.scene-treasure span {
  border-radius: 18px 18px 12px 12px;
  min-height: 84px;
  background:
    linear-gradient(#ffe08a 0 33%, #7b4a22 34% 100%);
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.2);
}

.scene-wheel {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0c315e, #080b13);
}

.scene-wheel span {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff7d6 0 10%, transparent 11%),
    conic-gradient(#ff657d 0 16%, #ffe06f 0 33%, #45d8ca 0 50%, #45a7ff 0 67%, #9b61ff 0 84%, #ff9b45 0);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.26);
}

.scene-wheel i {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 34px;
  border-radius: 999px;
  background: #fff0b5;
}

.scene-numbers {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  background: linear-gradient(180deg, #31195d, #0e0d14);
}

.scene-crown {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 224, 155, 0.24), transparent 5rem),
    linear-gradient(180deg, #14372f, #080b12);
}

.scene-crown span {
  width: 132px;
  height: 88px;
  clip-path: polygon(0 100%, 0 36%, 22% 58%, 43% 0, 61% 58%, 84% 36%, 100% 100%);
  background: linear-gradient(145deg, #fff0a7, #c98a34);
}

.aristocracy-hero,
.admin-hero,
.payment-hero {
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  align-items: center;
  color: rgba(255, 248, 232, 0.72);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 224, 155, 0.16), transparent 5rem),
    linear-gradient(180deg, rgba(22, 20, 32, 0.96), rgba(9, 9, 15, 0.985));
}

.aristo-emblem,
.payment-hero > span {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: block;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.4), transparent 1.5rem),
    conic-gradient(#ffe393, #45d8ca, #7c5cff, #d65d83, #ffe393);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.26);
}

.aristocracy-hero strong,
.admin-hero strong,
.payment-hero strong {
  display: block;
  color: #fff3cf;
  font-size: 22px;
}

.aristocracy-hero p,
.admin-hero p,
.payment-hero p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.aristo-tier-row,
.payment-packages,
.admin-stat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.aristo-tier-row button,
.payment-packages button,
.admin-stat-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 18px;
  padding: 11px 8px;
  color: rgba(255, 248, 232, 0.72);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.aristo-tier-row button.is-active,
.payment-packages button.is-active {
  color: #1a1208;
  background: linear-gradient(145deg, #ffe393, #c98a34);
}

.aristo-tier-row span,
.payment-packages strong,
.admin-stat-grid strong {
  display: block;
  color: inherit;
  font-size: 20px;
  font-weight: 760;
}

.shop-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.shop-tabs button {
  min-height: 92px !important;
  border: 1px solid rgba(255, 224, 155, 0.11) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.shop-tabs button.is-active {
  background: linear-gradient(180deg, rgba(255, 224, 155, 0.18), rgba(255, 255, 255, 0.05)) !important;
}

.shop-product {
  border: 1px solid rgba(255, 224, 155, 0.13) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 155, 0.12), transparent 5rem),
    linear-gradient(180deg, rgba(22, 20, 32, 0.96), rgba(9, 9, 15, 0.985)) !important;
}

.shop-product .shop-art {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 8, 14, 0.94) 0 42%, transparent 43%),
    conic-gradient(#ffe393, #45d8ca, #7c5cff, #d65d83, #ffe393) !important;
}

.product-dragon .shop-art,
.product-phoenix .shop-art,
.product-unicorn .shop-art,
.product-phantom .shop-art {
  clip-path: polygon(50% 0, 63% 25%, 94% 18%, 74% 45%, 100% 70%, 66% 69%, 50% 100%, 34% 69%, 0 70%, 26% 45%, 6% 18%, 37% 25%);
}

.product-crest .shop-art,
.product-title .shop-art {
  border-radius: 28px 28px 40px 40px;
}

.payment-panel {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 224, 155, 0.16), transparent 8rem),
    linear-gradient(180deg, #151420, #09090f) !important;
}

.payment-methods {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-methods button {
  min-height: 38px;
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 14px;
  color: rgba(255, 248, 232, 0.68);
  background: rgba(255, 255, 255, 0.055);
}

.payment-methods button.is-active {
  color: #1a1208;
  background: linear-gradient(145deg, #ffe393, #c98a34);
}

.payment-note {
  margin: 10px 0 0;
  color: rgba(255, 248, 232, 0.56);
  font-size: 12px;
  line-height: 1.35;
}

.payment-history {
  margin-top: 14px;
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.payment-history > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 248, 232, 0.58);
  font-size: 12px;
}

.payment-history strong {
  color: #fff4d0;
  font-size: 14px;
}

.payment-history-list {
  margin-top: 9px;
  display: grid;
  gap: 8px;
}

.payment-history-list article {
  min-height: 48px;
  border-radius: 14px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  column-gap: 8px;
  align-items: center;
  color: rgba(255, 248, 232, 0.6);
  background: rgba(10, 10, 16, 0.48);
}

.payment-history-list article span {
  color: #f3c96b;
  font-size: 11px;
  font-weight: 650;
}

.payment-history-list article strong {
  color: #fff4d0;
  font-size: 13px;
}

.payment-history-list article small {
  grid-column: 2;
  color: rgba(255, 248, 232, 0.48);
  font-size: 11px;
}

.payment-history-list article b {
  grid-row: 1 / span 2;
  grid-column: 3;
  color: #45d8ca;
  font-size: 13px;
}

.payment-panel .primary-action:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.72;
}

.admin-page {
  padding: 0 14px 40px;
  background:
    radial-gradient(circle at 18% -6%, rgba(255, 224, 155, 0.13), transparent 12rem),
    linear-gradient(180deg, #11101b, #050507);
}

.admin-hero {
  grid-template-columns: 1fr;
}

.admin-panel-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-panel-list article {
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 18px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  color: rgba(255, 248, 232, 0.62);
  background: rgba(255, 255, 255, 0.055);
}

.admin-panel-list strong {
  color: #fff3cf;
}

.admin-panel-list span {
  grid-column: 1 / -1;
  font-size: 12px;
}

.admin-panel-list button {
  grid-row: 1;
  grid-column: 2;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #1a1208;
  background: linear-gradient(145deg, #ffe393, #c98a34);
  font-weight: 720;
}

.admin-announcement-editor {
  margin-top: 14px;
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 224, 155, 0.12), transparent 7rem),
    rgba(255, 255, 255, 0.052);
}

.admin-announcement-editor > div {
  display: grid;
  gap: 3px;
}

.admin-announcement-editor small,
.admin-announcement-editor label span {
  color: rgba(255, 248, 232, 0.58);
  font-size: 11px;
  font-weight: 720;
}

.admin-announcement-editor strong {
  color: #fff3cf;
}

.admin-announcement-editor label {
  display: grid;
  gap: 6px;
}

.admin-announcement-editor input,
.admin-announcement-editor textarea {
  width: 100%;
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 14px;
  color: #fff8e8;
  background: rgba(4, 4, 9, 0.58);
  outline: none;
}

.admin-announcement-editor input {
  min-height: 42px;
  padding: 0 12px;
}

.admin-announcement-editor textarea {
  min-height: 66px;
  padding: 10px 12px;
  resize: none;
}

.admin-announcement-editor button {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  color: #171008;
  background: linear-gradient(145deg, #ffe393, #c98a34);
  font-weight: 820;
}

.inventory-panel {
  margin-top: 12px;
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 224, 155, 0.14), transparent 7rem),
    rgba(255, 255, 255, 0.055);
}

.inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff3cf;
}

.inventory-head span {
  color: rgba(255, 248, 232, 0.56);
  font-size: 12px;
  font-weight: 750;
}

.inventory-list {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.inventory-list::-webkit-scrollbar {
  display: none;
}

.inventory-list button {
  flex: 0 0 94px;
  min-height: 48px;
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 14px;
  padding: 7px 8px;
  display: grid;
  align-content: center;
  gap: 1px;
  text-align: left;
  scroll-snap-align: start;
  color: rgba(255, 248, 232, 0.7);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 224, 155, 0.16), transparent 2.1rem),
    rgba(255, 255, 255, 0.045);
}

.inventory-list button.is-active {
  border-color: rgba(255, 224, 155, 0.5);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 224, 155, 0.28), transparent 2.8rem),
    linear-gradient(135deg, rgba(255, 224, 155, 0.16), rgba(255, 255, 255, 0.055));
}

.inventory-list span {
  width: fit-content;
  border-radius: 999px;
  padding: 1px 5px;
  color: #171008;
  background: #ffe393;
  font-size: 8px;
  font-weight: 840;
}

.inventory-list strong {
  color: #fff3cf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 720;
}

.inventory-list small {
  color: rgba(255, 248, 232, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
}

.room-gate-panel {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 224, 155, 0.18), transparent 8rem),
    linear-gradient(180deg, #171420, #08080f) !important;
}

.room-gate-hero {
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
}

.room-gate-hero > span {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff3cf;
  background:
    radial-gradient(circle at 44% 24%, rgba(255, 255, 255, 0.4), transparent 1.3rem),
    linear-gradient(145deg, #4a241b, #c58b39);
  font-weight: 900;
}

.room-gate-hero div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.room-gate-hero small,
.room-gate-hero p,
.room-gate-status {
  color: rgba(255, 248, 232, 0.58);
  font-size: 12px;
}

.room-gate-hero strong {
  color: #fff3cf;
  font-size: 18px;
}

.room-gate-hero p,
.room-gate-status {
  margin: 0;
}

.room-gate-rules {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.room-gate-rules span {
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 248, 232, 0.72);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 720;
}

.room-gate-panel .primary-action:disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.admin-console {
  margin-top: 14px;
  border: 1px solid rgba(255, 224, 155, 0.13);
  border-radius: 20px;
  padding: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(63, 227, 255, 0.12), transparent 8rem),
    rgba(255, 255, 255, 0.052);
}

.admin-console-head,
.admin-user-card,
.admin-log-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-console-head div,
.admin-user-card div,
.admin-log-panel > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-console-head small,
.admin-user-card small,
.admin-log-panel small {
  color: rgba(255, 248, 232, 0.55);
  font-size: 11px;
  font-weight: 650;
}

.admin-console-head strong,
.admin-user-card strong,
.admin-log-panel strong {
  color: #fff3cf;
}

#adminSelectedState {
  border-radius: 999px;
  padding: 6px 10px;
  color: #171008;
  background: linear-gradient(145deg, #ffe393, #c98a34);
  font-size: 11px;
  font-weight: 800;
}

#adminSelectedState[data-state="muted"] {
  background: linear-gradient(145deg, #c7d2fe, #7c8df8);
}

#adminSelectedState[data-state="blocked"] {
  color: #fff;
  background: linear-gradient(145deg, #ff6b7a, #8b101b);
}

.admin-search {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.admin-search span,
.admin-field-grid span,
.admin-note-field span {
  color: rgba(255, 248, 232, 0.62);
  font-size: 11px;
  font-weight: 720;
}

.admin-search input,
.admin-field-grid select,
.admin-note-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 14px;
  color: #fff8e8;
  background: rgba(4, 4, 9, 0.58);
  outline: none;
}

.admin-search input,
.admin-field-grid select {
  min-height: 42px;
  padding: 0 12px;
}

.admin-workspace {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 10px;
}

.admin-user-list {
  max-height: 330px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.admin-user-list button {
  border: 1px solid rgba(255, 224, 155, 0.1);
  border-radius: 16px;
  padding: 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  text-align: left;
  color: rgba(255, 248, 232, 0.74);
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-list button.is-active {
  border-color: rgba(255, 224, 155, 0.38);
  background: linear-gradient(135deg, rgba(255, 224, 155, 0.16), rgba(255, 255, 255, 0.055));
}

.admin-user-list span,
.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.54), transparent 1.1rem),
    linear-gradient(145deg, var(--admin-user-color, #c98a34), #17101d);
  box-shadow: 0 0 0 2px rgba(255, 224, 155, 0.18);
  font-weight: 820;
}

.admin-user-list strong {
  color: #fff3cf;
  font-size: 13px;
}

.admin-user-list small {
  grid-column: 2;
  color: rgba(255, 248, 232, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-list em {
  grid-row: 1 / span 2;
  grid-column: 3;
  border-radius: 999px;
  padding: 5px 7px;
  color: #171008;
  background: rgba(255, 224, 155, 0.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-user-detail {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.admin-user-card {
  border: 1px solid rgba(255, 224, 155, 0.12);
  border-radius: 18px;
  padding: 11px;
  background: rgba(4, 4, 9, 0.44);
}

.admin-user-card em {
  color: rgba(255, 248, 232, 0.58);
  font-size: 12px;
  font-style: normal;
}

.admin-user-card b {
  color: #ffe393;
  font-size: 16px;
}

.admin-grant-panel {
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-field-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8px;
}

.admin-note-field {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.admin-note-field textarea {
  min-height: 66px;
  padding: 10px 12px;
  resize: none;
}

.admin-action-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-action-row button {
  border: 1px solid rgba(255, 224, 155, 0.14);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255, 248, 232, 0.72);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 760;
}

.admin-action-row .admin-primary {
  color: #171008;
  background: linear-gradient(145deg, #ffe393, #c98a34);
}

.admin-action-row .danger {
  border-color: rgba(255, 100, 122, 0.28);
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 95, 122, 0.82), rgba(92, 6, 18, 0.9));
}

.admin-log-panel {
  margin-top: 12px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(4, 4, 9, 0.35);
}

.admin-log-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.admin-log-list article {
  border-top: 1px solid rgba(255, 224, 155, 0.09);
  padding-top: 7px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 8px;
}

.admin-log-list article span {
  grid-row: 1 / span 2;
  color: rgba(255, 248, 232, 0.46);
  font-size: 10px;
}

.admin-log-list article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-room-theme="ocean"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 18% 18%, rgba(86, 232, 255, 0.26), transparent 12rem),
    radial-gradient(circle at 82% 26%, rgba(32, 132, 255, 0.22), transparent 11rem),
    radial-gradient(ellipse at bottom, rgba(23, 103, 116, 0.62), transparent 58%),
    linear-gradient(180deg, #041018 0%, #071d2b 56%, #04070b 100%);
}

body[data-room-theme="velvet"][data-screen="room"] .room-view {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 224, 155, 0.16), transparent 11rem),
    radial-gradient(circle at 78% 28%, rgba(197, 52, 133, 0.28), transparent 12rem),
    radial-gradient(ellipse at bottom, rgba(79, 13, 66, 0.72), transparent 60%),
    linear-gradient(180deg, #0b0712 0%, #211024 56%, #050407 100%);
}

body[data-screen="room"].is-room-locked .stage-head time::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 6px;
  display: inline-block;
  border-radius: 3px 3px 5px 5px;
  background: #ffe393;
  box-shadow: 0 -5px 0 -2px transparent, 0 0 9px rgba(255, 224, 155, 0.5);
}

.room-password-field {
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr minmax(0, 150px);
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  background: white;
}

.room-password-field input {
  width: 100%;
  border: 1px solid #ececf0;
  border-radius: 13px;
  min-height: 38px;
  padding: 0 10px;
  color: #2b2931;
  background: #fafafa;
  outline: none;
}

.settings-choice-grid button.is-locked,
.settings-chip-row button.is-locked {
  position: relative;
  color: rgba(43, 41, 49, 0.48);
  background: #f3f3f5;
}

.settings-choice-grid button.is-locked::after,
.settings-chip-row button.is-locked::after {
  content: attr(data-requires);
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 999px;
  padding: 2px 5px;
  color: #6b4010;
  background: #ffe5a7;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 460px) {
  .admin-workspace,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

.sheet-backdrop {
  z-index: 120 !important;
}

.sheet-backdrop .sheet {
  padding-bottom: calc(env(safe-area-inset-bottom) + 26px) !important;
}

.vip-sheet {
  max-height: min(86dvh, 620px);
  overflow-y: auto;
}

body[data-profile-frame*="ejder"] .profile-crown,
body[data-profile-frame*="anka"] .profile-crown,
body[data-profile-frame*="unicorn"] .profile-crown,
body[data-profile-frame*="fantom"] .profile-crown {
  box-shadow:
    0 0 0 2px rgba(255, 224, 155, 0.2),
    0 0 34px rgba(255, 224, 155, 0.22);
  animation: premium-frame-pulse 2.8s ease-in-out infinite;
}

@keyframes premium-frame-pulse {
  50% {
    filter: brightness(1.18);
    transform: scale(1.02);
  }
}
