:root {
  --bg: #05070c;
  --bg-soft: #0c111b;
  --ink: #f3f0ea;
  --muted: #9aa0ad;
  --line: rgba(243, 240, 234, 0.1);
  --amber: #f0b429;
  --amber-2: #ff7a3d;
  --teal: #3dd6c6;
  --font-display: "Outfit", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(240, 180, 41, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(61, 214, 198, 0.1), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(255, 122, 61, 0.1), transparent 34%),
    linear-gradient(180deg, #070b14 0%, #05070c 55%, #040508 100%);
}

.beam {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(70px);
  animation: float 16s ease-in-out infinite;
}

.beam-1 {
  left: -12%;
  top: 8%;
  background: rgba(240, 180, 41, 0.18);
}

.beam-2 {
  right: -10%;
  bottom: 0;
  background: rgba(61, 214, 198, 0.12);
  animation-delay: -7s;
}

.sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(243, 240, 234, 0.75);
  animation: twinkle 3.4s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #140f08;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 10px 30px rgba(240, 180, 41, 0.28);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-main {
  color: #140f08;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 16px 40px rgba(240, 180, 41, 0.28);
}

.btn-soft {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px 90px;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 54px 0 70px;
}

.chip,
.eyebrow {
  display: inline-flex;
  color: var(--amber);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 14vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-title span {
  background: linear-gradient(180deg, #fff8ea 10%, #f0b429 70%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: titleGlow 4.5s ease-in-out infinite;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.orbit {
  position: relative;
  width: min(360px, 78vw);
  height: min(360px, 78vw);
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(240, 180, 41, 0.28);
  box-shadow: inset 0 0 60px rgba(240, 180, 41, 0.08);
  animation: spin 22s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(61, 214, 198, 0.28);
}

.orbit-ring::before { inset: 28px; }
.orbit-ring::after { inset: 58px; border-style: solid; border-color: rgba(255, 122, 61, 0.18); }

.orbit-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.95), rgba(10, 12, 18, 0.95));
  border: 1px solid rgba(240, 180, 41, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.orbit-core span {
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--muted);
}

.orbit-core strong {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--amber);
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(240, 180, 41, 0.8);
  animation: orbitDot 8s linear infinite;
}

.orbit-dot.d1 { top: 8%; left: 48%; }
.orbit-dot.d2 { bottom: 16%; right: 10%; animation-duration: 11s; background: var(--teal); box-shadow: 0 0 18px rgba(61, 214, 198, 0.8); }
.orbit-dot.d3 { bottom: 22%; left: 12%; animation-duration: 14s; background: var(--amber-2); }

.dashboard { padding: 36px 0 10px; }

.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.user-block {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 180, 41, 0.55);
  box-shadow: 0 0 0 8px rgba(240, 180, 41, 0.08);
}

.muted, .handle { color: var(--muted); }
.user-block h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}

.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.8), rgba(10, 13, 20, 0.72));
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.rank-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.ring-box {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg, .ring-fg {
  fill: none;
  stroke-width: 12;
}

.ring-bg { stroke: rgba(243, 240, 234, 0.08); }
.ring-fg {
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-dasharray: 590;
  stroke-dashoffset: 590;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.35s ease;
  filter: drop-shadow(0 0 14px rgba(240, 180, 41, 0.45));
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 4px;
}

.ring-center span {
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--muted);
}

.ring-center strong {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
}

.ring-center em {
  font-style: normal;
  color: var(--amber);
  font-weight: 600;
}

.rank-info h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 12px;
}

.rank-copy {
  color: var(--muted);
  line-height: 1.7;
  max-width: 34rem;
}

.rank-copy strong { color: var(--ink); }

.progress { margin-top: 26px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.progress-meta:last-child { margin: 10px 0 0; }

.progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(243, 240, 234, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-2), var(--teal));
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-shine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 2.2s ease-in-out infinite;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-row article {
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-row strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.board-section, .how { padding: 88px 0 20px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 8px;
}

.section-note { color: var(--muted); max-width: 16rem; }

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 27, 40, 0.9), rgba(10, 13, 20, 0.85));
  text-align: center;
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.podium-card:nth-child(1) { animation-delay: 0.08s; order: 2; }
.podium-card:nth-child(2) { animation-delay: 0.16s; order: 1; margin-top: 28px; }
.podium-card:nth-child(3) { animation-delay: 0.24s; order: 3; margin-top: 42px; }

.podium-card.gold {
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: 0 20px 50px rgba(240, 180, 41, 0.12);
}

.podium-card.silver { border-color: rgba(180, 190, 210, 0.3); }
.podium-card.bronze { border-color: rgba(205, 127, 50, 0.35); }

.podium-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(243, 240, 234, 0.2);
}

.podium-card .place {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 8px;
}

.podium-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.podium-card p { color: var(--muted); font-size: 0.92rem; }
.podium-card .lvl {
  margin-top: 12px;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.12);
  color: var(--amber);
  font-weight: 700;
}

.board {
  display: grid;
  gap: 10px;
}

.board-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(16px);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.board-row:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.05);
}

.board-row .idx {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.board-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.board-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.board-user strong {
  display: block;
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-user span { color: var(--muted); font-size: 0.86rem; }

.board-meta {
  text-align: right;
}

.board-meta strong {
  display: block;
  color: var(--amber);
  font-family: var(--font-display);
}

.board-meta span { color: var(--muted); font-size: 0.84rem; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-card {
  padding: 24px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.how-card span {
  display: block;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.how-card p { color: var(--muted); line-height: 1.7; }

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -5%) scale(1.06); }
}

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

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

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes flow {
  to { background-position: 200% 0; }
}

@keyframes shine {
  0% { left: -20%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.store-section,
.rooms-section {
  padding: 88px 0 20px;
}

.store-section.hidden-guest,
.rooms-section.hidden-guest {
  display: none;
}

body.is-authed .store-section.hidden-guest,
body.is-authed .rooms-section.hidden-guest {
  display: block;
}

.store-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 180, 41, 0.28);
  background: rgba(240, 180, 41, 0.08);
}

.store-balance span {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.store-balance strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.store-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.92), rgba(9, 11, 18, 0.88));
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.store-card.premium {
  border-color: rgba(255, 122, 61, 0.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 61, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(22, 16, 18, 0.95), rgba(10, 10, 14, 0.9));
}

.store-card.room {
  border-color: rgba(155, 89, 182, 0.4);
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 89, 182, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 16, 28, 0.95), rgba(10, 10, 16, 0.9));
}

.store-card .emoji {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.store-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.store-card p {
  color: var(--muted);
  line-height: 1.65;
  min-height: 52px;
}

.store-card .price {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber);
}

.store-card .owned-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(61, 214, 198, 0.15);
  color: var(--teal);
}

.store-msg,
.rooms-msg {
  margin-top: 14px;
  min-height: 1.4em;
  color: var(--teal);
}

.store-msg.error,
.rooms-msg.error {
  color: #ff7a7a;
}

.store-card.nitro {
  border-color: rgba(255, 115, 250, 0.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 115, 250, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(28, 14, 32, 0.96), rgba(10, 10, 16, 0.9));
}

.rooms-empty {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.85), rgba(8, 10, 16, 0.9));
}

.rooms-empty-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(155, 89, 182, 0.22);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

.rooms-empty-icon {
  position: relative;
  display: inline-block;
  font-size: 2.6rem;
  margin-bottom: 12px;
  animation: titleGlow 3s ease-in-out infinite;
}

.rooms-empty h3 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.rooms-empty p { position: relative; }
.rooms-empty .btn { position: relative; margin-top: 18px; }

.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 0;
  border: 1px solid rgba(155, 89, 182, 0.28);
  background: linear-gradient(180deg, rgba(18, 16, 30, 0.96), rgba(8, 10, 16, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.room-hero {
  position: relative;
  padding: 28px 26px 22px;
  background:
    radial-gradient(circle at 10% 20%, rgba(155, 89, 182, 0.28), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(240, 180, 41, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border-bottom: 1px solid var(--line);
}

.room-hero h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.room-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.badge.on {
  border-color: rgba(240, 180, 41, 0.4);
  color: var(--amber);
  background: rgba(240, 180, 41, 0.1);
}

.badge.danger {
  border-color: rgba(255, 122, 61, 0.4);
  color: #ff9b74;
  background: rgba(255, 122, 61, 0.1);
}

.room-body {
  padding: 22px 26px 26px;
  display: grid;
  gap: 18px;
}

.room-name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  animation: rise 0.5s ease both;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, 0.35);
}

.user-chip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip strong {
  display: block;
  font-size: 0.92rem;
  font-family: var(--font-display);
}

.user-chip em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}

.user-chip button {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 100, 100, 0.12);
  color: #ff8f8f;
}

.access-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 46px;
}

.access-panel h4 span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.room-form {
  display: grid;
  gap: 14px;
}

.room-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.room-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

.room-form input[type="text"]:focus {
  border-color: rgba(240, 180, 41, 0.45);
}

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--ink);
}

.toggle input { accent-color: var(--amber); }

.access-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.access-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.access-panel h4 {
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 1rem;
}

.access-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 28px;
}

.access-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.access-list button {
  border: 0;
  background: transparent;
  color: #ff8d8d;
  cursor: pointer;
}

.access-add {
  display: flex;
  gap: 8px;
}

.access-add input {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .hero,
  .rank-panel,
  .stat-row,
  .podium,
  .how-grid,
  .store-grid,
  .access-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual { order: -1; }

  .podium-card:nth-child(1),
  .podium-card:nth-child(2),
  .podium-card:nth-child(3) {
    order: initial;
    margin-top: 0;
  }

  .dash-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav a:not(:last-child) { display: none; }
}
