/* Habi Games | player lobby. Loaded after PixPlay's platform styles only on Habi. */
:root {
  color-scheme: light;
  --bg: #f8f7fc;
  --surface: #fff;
  --raised: #f2effb;
  --line: #e6e2ef;
  --text: #17182c;
  --muted: #65677c;
  --mint: #7756f8;
  --habi-ink: #111327;
  --habi-violet: #7756f8;
  --habi-coral: #ff8364;
  --habi-paper: #f8f7fc;
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
body { background: var(--habi-paper); color: var(--text); }
:focus-visible { outline-color: var(--habi-violet); }
::selection { background: #dcd2ff; color: var(--habi-ink); }

/* The ink navigation gives the colorful catalog a stable frame. */
.sidebar {
  width: 252px;
  padding: 28px 16px 21px;
  background: var(--habi-ink);
  border-right: 1px solid #ffffff13;
  box-shadow: 14px 0 34px #17182c08;
}
.brand { margin: 0 11px 39px; }
.brand img { width: 184px; }
.sidebar__caption { color: #8585a7; letter-spacing: .17em; font-size: 9px; }
.sidebar__nav { gap: 7px; }
.sidebar__link { min-height: 49px; color: #cbc9dc; font-size: 12px; font-weight: 650; border-radius: 12px; }
.sidebar__link:hover { background: #ffffff12; color: white; }
.sidebar__link.is-current {
  background: linear-gradient(90deg, #7756f837, #7756f814);
  color: #f8f5ff;
  box-shadow: inset 3px 0 0 var(--habi-coral);
}
.sidebar__link.is-current .icon { color: #bcadff; }
.sidebar__demo {
  position: relative;
  overflow: hidden;
  gap: 10px;
  margin: 36px 2px 20px;
  padding: 22px 17px 19px;
  border: 1px solid #9785fa5c;
  border-radius: 16px;
  background: radial-gradient(circle at 110% -10%, #ff836488, transparent 45%), linear-gradient(135deg, #4831a0, #29275f);
  color: white;
}
.sidebar__demo::after { content: "✦"; position: absolute; right: 17px; top: 10px; color: #ffb495; font-size: 24px; }
.sidebar__demo > .icon { color: #ffad91; }
.sidebar__demo strong { font-size: 16px; line-height: 1.3; }
.sidebar__demo p { max-width: 180px; color: #e6defd; font-size: 11px; line-height: 1.5; }
.sidebar__demo > a { width: fit-content; color: #fff; font-weight: 750; border-bottom: 1px solid #ffffff8c; }
.sidebar__bottom { border-top-color: #ffffff1c; }
.sidebar__account strong { color: #fff; }
.sidebar__account small, .logout { color: #a9a9c1; }
.avatar { border-color: #9080f4; background: #433385; color: white; }
.logout:hover { color: white; }

.main-shell { margin-left: 252px; }
.topbar {
  min-height: 84px;
  padding: 15px clamp(24px, 3.5vw, 52px);
  background: #f8f7fcec;
  border-bottom: 1px solid #e8e4f0;
  box-shadow: 0 8px 28px #211b4608;
  backdrop-filter: blur(18px);
}
.catalog__search { min-height: 43px; border-radius: 999px; background: #fff; border-color: #e1ddeb; color: #85839a; }
.catalog__search input { color: var(--text); font-size: 12px; }
.catalog__search input::placeholder { color: #77768a; }
.catalog__search:focus-within { border-color: #9e88fb; box-shadow: 0 0 0 3px #7756f81a; }
.catalog__search kbd { border-color: #ded9eb; color: #77768a; }
.topbar__actions { gap: 13px; }
.deposit-button {
  min-height: 42px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--habi-violet);
  color: #fff;
  box-shadow: 0 7px 16px #7756f83b;
  font-size: 12px;
  font-weight: 800;
}
.deposit-button:hover { background: #6040df; color: #fff; }
.deposit-button:focus-visible { outline: 3px solid #ffad95; outline-offset: 3px; }
.wallet-switcher summary {
  min-height: 43px;
  padding: 3px 10px 3px 14px;
  border: 1px solid #e1ddeb;
  border-radius: 11px;
  background: #fff;
}
.wallet-switcher summary small { color: #77778c; }
.wallet-switcher summary strong { color: #201d36; }
.wallet-switcher summary > .icon { color: #79748b; }
.wallet-switcher__menu { background: #fff; border-color: #e0dbea; box-shadow: 0 24px 60px #1b16432b; }
.wallet-switcher__menu button { background: #f7f5fc; border-color: #e6e2f0; }
.wallet-switcher__menu button[aria-pressed=true] { background: #ede7ff; border-color: var(--habi-violet); }
.wallet-switcher__menu > a { color: #5a3bc9; }
.topbar__account.avatar { background: #e8e0ff; color: #4428aa; border-color: #d4c6ff; }

.content { max-width: 1650px; padding: 32px clamp(24px, 3.5vw, 52px) 0; }
.lobby-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 195px;
  align-items: flex-end;
  margin-bottom: 28px;
  padding: 30px clamp(27px, 3.2vw, 48px);
  border-radius: 22px;
  background: radial-gradient(circle at 88% 40%, #a38ef9, transparent 29%), linear-gradient(111deg, #302369 4%, #6a48dc 63%, #967aff 100%);
  box-shadow: 0 17px 45px #5942bb21;
  color: #fff;
}
.lobby-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 5%;
  top: -100px;
  width: 430px;
  height: 350px;
  border: 1px solid #ffffff59;
  border-radius: 46px;
  transform: rotate(-24deg);
  box-shadow: 0 0 0 41px #ffffff0c, 0 0 0 82px #ffffff09;
}
.lobby-heading::after { content: "HABI / PLAY"; position: absolute; top: 27px; left: clamp(27px, 3.2vw, 48px); color: #e9e1ff; font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.lobby-heading p { margin-bottom: 6px; color: #ded5ff; font-size: 13px; }
.lobby-heading h1 { max-width: 540px; font-size: clamp(31px, 3vw, 46px); font-weight: 780; letter-spacing: -.052em; line-height: 1.07; }
.lobby-heading > a { color: #fff; border: 1px solid #ffffff8a; border-radius: 999px; padding: 11px 15px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.lobby-heading > a:hover { background: #ffffff24; }

.featured { gap: 16px; }
.spotlight { border-radius: 19px; border-color: #ffffff33; box-shadow: 0 12px 27px #17132e1d; color: #fff; }
.spotlight::before { background: linear-gradient(90deg, #0d0c20f5 0%, #111027d9 47%, #1110276b 78%, #11102726 100%), linear-gradient(0deg, #0d0c20a6, transparent 68%); }
.spotlight--small::before { background: linear-gradient(90deg, #0d0c20f2 0%, #111027d9 60%, #11102782 100%), linear-gradient(0deg, #0d0c2075, transparent 90%); }
.spotlight__copy { position: relative; z-index: 1; padding: 31px; color: #fff; }
.spotlight__tag { color: #ffc2ae; font-weight: 800; text-shadow: 0 1px 8px #090819d9; }
.spotlight h2 { color: #fff; font-weight: 800; text-shadow: 0 2px 14px #080717e6; }
.spotlight p { color: #f0eef8; text-shadow: 0 1px 9px #080717d9; }
.spotlight__action { border-radius: 999px; background: #fff; color: #261a66; font-weight: 800; text-shadow: none; box-shadow: 0 4px 14px #09081973; }
.spotlight--small .spotlight__action { padding: 7px 11px; color: #261a66; background: #fff; }
.spotlight:focus-visible { outline: 3px solid #ffad95; outline-offset: 3px; }

.catalog { margin-top: 44px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: 26px; font-weight: 780; }
.section-heading p { color: #67677b; font-size: 12px; }
.catalog-count { background: #fff; border-color: #e2deeb; border-radius: 999px; color: #5f5878; }
.category-filters { gap: 9px; margin-bottom: 22px; }
.category-chip { min-height: 40px; padding: 10px 15px; border-radius: 999px; border-color: #e0ddeb; background: #fff; color: #5e5b71; font-size: 11px; font-weight: 690; }
.category-chip > span { color: #868297; }
.category-chip:hover { border-color: #ad9af8; color: #5333c2; }
.category-chip[aria-pressed=true] { border-color: #7756f8; background: #7756f8; color: #fff; box-shadow: 0 5px 12px #7756f82d; }
.category-chip[aria-pressed=true] > span { color: #e7dfff; }
.games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { border-color: #e6e2ed; border-radius: 18px; background: #fff; box-shadow: 0 11px 28px #241d4a0a; }
.game-card:hover { transform: translateY(-4px); border-color: #c0b3fa; box-shadow: 0 20px 37px #241d4a19; }
.game-card__visual { aspect-ratio: 16/9; background: #191a30; }
.game-card__body { padding: 20px 21px 21px; }
.game-card__category { color: #7756f8; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.game-card h3 { font-size: 21px; font-weight: 780; color: #191827; }
.game-card p { font-size: 12px; color: #666579; }
.game-card [data-game-action] { min-height: 44px; padding: 0 15px; border: 1px solid #e9e3fc; border-radius: 10px; background: #f2edff; color: #4a2ab9; font-size: 12px; font-weight: 800; }
.game-card [data-game-action]:hover { border-color: #7756f8; background: #7756f8; color: #fff; }
.game-card--coming-soon .game-card__art { opacity: .62; }
.game-card__state { border-radius: 8px; background: #211a42ec; }
.catalog__empty { border-color: #d2cce6; background: #fff; }
.catalog__empty button { border-color: #cfc5f9; background: #f2edff; color: #4a2ab9; }

.account-strip { border-color: #ded6f5; border-radius: 18px; background: #f0ecff; }
.account-strip > div > .icon, .account-strip > a { color: #6848dc; }
.account-strip small { color: #65617b; }
.footer { border-top-color: #e1ddec; }
.footer > span, .footer > a:last-child { color: #6f6b7e; }
.pixplay-footer { max-width: calc(1650px - 2 * clamp(24px, 3.5vw, 52px)); margin: 15px clamp(24px, 3.5vw, 52px) 30px; padding: 0 30px 25px; border-radius: 20px; background: #111327; color: #d9d5e6; }
.pixplay-footer__main { border-top: 0; }
.pixplay-footer__about p, .pixplay-footer__developer .pixplay-footer__label, .pixplay-footer__bottom { color: #b7b3c8; }
.pixplay-footer__label { color: #fff; }
.pixplay-footer__links a:hover, .pixplay-footer a.pixplay-footer__whitelabel:hover { color: #ff9d7f; }
.demo-notice { border-color: #d4c8fe; background: #eee8ff; color: #271e55; border-radius: 13px; }
.demo-notice p { color: #5e5881; }
.demo-notice button { color: #5f3ad7; font-weight: 800; }
.mode-tag { background: #7756f8; color: #fff; }
.notice { background: #fff7e9; border-color: #f3d6a1; color: #684c21; }

/* The existing deposit widget keeps its markup and payment behavior. */
.pp-deposit-panel { border-color: #ddd3ff; background: #16152d; box-shadow: 0 34px 90px #120d3380; }
.pp-deposit-panel::backdrop { background: #101021a8; }
.pp-deposit-loading { background: radial-gradient(circle at 50% 25%, #6548ba73, transparent 65%), #16152d; color: #ded8f0; }
.pp-deposit-loading button { background: #ff8364; color: #251626; }
.pp-deposit-close { border-color: #ffffff35; background: #272344; color: #fff; }
.pp-deposit-frame { background: #16152d; }

@media (max-width: 1240px) {
  .sidebar { width: 221px; }
  .main-shell { margin-left: 221px; }
  .content { padding-inline: 25px; }
  .topbar { padding-inline: 25px; }
}
@media (max-width: 1050px) {
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar__brand { display: block; }
  .mobile-nav { background: #fffdfef0; border-top-color: #e4dfee; box-shadow: 0 -7px 25px #1f1b3f0d; }
  .mobile-nav a { color: #6e6b7c; }
  .mobile-nav a[aria-current] { color: #6844e7; }
  .pixplay-footer { margin-inline: 25px; }
}
@media (max-width: 760px) {
  .lobby-heading { min-height: 180px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured__main .spotlight { min-height: 300px; }
}
@media (max-width: 480px) {
  .topbar { padding-inline: 15px; }
  .topbar__brand img { width: 128px; }
  .topbar__actions { gap: 7px; }
  .deposit-button { min-height: 36px; padding-inline: 11px; }
  .wallet-switcher summary { min-height: 36px; padding-inline: 8px; }
  .content { padding: 18px 15px 70px; }
  .lobby-heading { min-height: 174px; margin-bottom: 21px; padding: 54px 21px 22px; border-radius: 17px; }
  .lobby-heading::after { top: 23px; left: 21px; font-size: 9px; }
  .lobby-heading h1 { font-size: 29px; max-width: 270px; }
  .lobby-heading p { font-size: 11px; }
  .lobby-heading::before { right: -135px; width: 315px; }
  .featured__main .spotlight { min-height: 290px; }
  .spotlight { border-radius: 15px; }
  .spotlight--small { min-height: 145px; }
  .catalog { margin-top: 34px; }
  .section-heading h2 { font-size: 23px; }
  .category-filters { margin-bottom: 18px; }
  .category-chip { min-height: 36px; padding: 8px 12px; }
  .games-grid { gap: 12px; }
  .game-card { border-radius: 13px; }
  .game-card__visual { aspect-ratio: 1.22; }
  .game-card__body { padding: 13px 12px 14px; }
  .game-card__category { font-size: 8px; }
  .game-card h3 { font-size: 16px; }
  .game-card [data-game-action] { min-height: 37px; padding-inline: 10px; font-size: 10px; }
  .pixplay-footer { margin-inline: 15px; padding-inline: 20px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .game-card__art, .spotlight > img { transition: none; }
}
