/* ===== Home lobby — Gaming Neon (UI/UX Pro Max) ===== */

.home-dash {
  position: relative;
  min-height: calc(100vh - 2.5rem - 58px);
  overflow: auto;
  color: var(--ink);
}

.home-dash__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.38;
  filter: saturate(1.15) contrast(1.1) brightness(0.65) hue-rotate(-8deg);
}

.home-dash__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(15, 15, 35, 0.96) 0%, rgba(15, 15, 35, 0.78) 48%, rgba(15, 15, 35, 0.55) 100%),
    linear-gradient(0deg, rgba(10, 10, 24, 0.97) 0%, transparent 42%),
    radial-gradient(700px 340px at 80% 10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(520px 280px at 20% 80%, rgba(244, 63, 94, 0.12), transparent 55%);
}

.home-dash__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1180px;
  margin: 0 auto;
}

.home-status {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  animation: home-rise 0.45s ease both;
}

.home-status__online,
.home-status__balance,
.home-status__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 29, 149, 0.5);
  background: linear-gradient(160deg, rgba(30, 28, 53, 0.94), rgba(15, 15, 35, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.home-status__user {
  justify-self: end;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.home-status__user:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}

.home-status__online small,
.home-status__balance small,
.home-status__meta small {
  display: block;
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-status__online b,
.home-status__balance b,
.home-status__meta b {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-display);
}

.home-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-status, #22c55e);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: home-online-pulse 1.8s ease-in-out infinite;
}

.home-status__ava {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(145deg, #3b246e, #1a1030);
  border: 2px solid rgba(124, 58, 237, 0.55);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.home-status__ava.has-img {
  color: transparent;
}

.home-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: end;
  min-height: min(56vh, 500px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
}

.home-banner__frame {
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(167, 139, 250, 0.25);
  pointer-events: none;
  z-index: 1;
}

.home-banner__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 68%);
  filter: blur(10px);
  animation: home-banner-glow 4.5s ease-in-out infinite;
  z-index: 0;
}

.home-banner__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: home-rise 0.65s ease both;
}

.home-banner__eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(167, 139, 250, 0.95);
}

.home-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #a78bfa 55%, #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.35));
}

.home-banner__lead {
  margin: 0.85rem 0 0;
  max-width: 40ch;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-banner__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.home-banner__art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: home-rise 0.8s 0.08s ease both;
}

.home-banner__art img {
  width: min(100%, 400px);
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.25));
  animation: home-float 5.5s ease-in-out infinite;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  animation: home-rise 0.55s 0.05s ease both;
}

.home-action {
  appearance: none;
  border: 1px solid rgba(76, 29, 149, 0.5);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  min-height: 118px;
  padding: 1.05rem;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(48, 36, 90, 0.55), rgba(15, 15, 35, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.home-action:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.22);
}

.home-action__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.45);
}

.home-action__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.home-action__text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.home-action__text strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.home-action__text small {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.78rem;
  line-height: 1.3;
}

.home-action__arrow {
  color: var(--color-secondary, #a78bfa);
  font-size: 1.2rem;
  opacity: 0.85;
}

.home-action--gold,
.home-action--amber,
.home-action--steel,
.home-action--dark {
  background: linear-gradient(145deg, rgba(48, 36, 90, 0.6), rgba(15, 15, 35, 0.96));
}

.home-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
}

.home-wins,
.home-news {
  border-radius: 12px;
  border: 1px solid rgba(76, 29, 149, 0.45);
  background: rgba(15, 15, 35, 0.88);
  padding: 1rem 1rem 1.1rem;
  min-height: 320px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.home-sec-head {
  margin-bottom: 0.85rem;
}

.home-sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.home-sec-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-wins__list,
.home-news__list {
  display: grid;
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.15rem;
}

.home-win {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.home-win img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.home-win strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.home-win span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.home-win em {
  font-style: normal;
  color: var(--color-secondary, #a78bfa);
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
}

.home-news__item {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(76, 29, 149, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.home-news__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.home-news__tag {
  color: #fff;
  background: linear-gradient(120deg, #7c3aed, #f43f5e);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-news__meta time {
  color: var(--muted);
}

.home-news__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.home-news__item p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-feed {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid rgba(76, 29, 149, 0.45);
  background: rgba(10, 10, 28, 0.9);
  padding: 0.85rem 0 1rem;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  animation: home-rise 0.5s ease both;
}

.home-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 1rem 0.65rem;
}

.home-feed__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.home-feed__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-feed__rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.home-feed__track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  padding: 0 1rem;
}

.home-feed__track.is-animate {
  animation: home-feed-marquee 48s linear infinite;
}

.home-feed__track.is-animate:hover {
  animation-play-state: paused;
}

.home-feed__card {
  flex: 0 0 132px;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
  padding: 0.55rem 0.4rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.home-feed__card:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

.home-feed__card img {
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.home-feed__card strong {
  font-size: 0.72rem;
  line-height: 1.2;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feed__card small {
  font-size: 0.62rem;
  color: rgba(226, 232, 240, 0.55);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feed__player,
.home-win__player {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: rgba(167, 139, 250, 0.95);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-feed__player:hover,
.home-win__player:hover {
  color: #fff;
}

@keyframes home-online-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.08);
  }
}

@keyframes home-banner-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes home-feed-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .home-status {
    grid-template-columns: 1fr 1fr;
  }
  .home-status__user {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .home-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-banner__art img {
    width: min(70vw, 280px);
  }
  .home-actions {
    grid-template-columns: 1fr 1fr;
  }
  .home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
  .home-action {
    min-height: 88px;
  }
}

@media (max-width: 375px) {
  .home-dash__inner {
    padding: 0.75rem;
  }
  .home-banner__title {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feed__track.is-animate,
  .home-banner__glow,
  .home-banner__art img,
  .home-status__dot,
  .home-status,
  .home-banner__copy,
  .home-banner__art,
  .home-actions,
  .home-feed {
    animation: none !important;
  }

  .home-action:hover,
  .home-status__user:hover {
    transform: none;
  }
}
