@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --page: #0c1018;
  --panel: #121925;
  --panel-light: #192331;
  --line: rgba(204, 218, 240, 0.09);
  --muted: #8995a7;
  --text: #f5f7fb;
  --purple: #9a75ff;
  --purple-bright: #b69aff;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 70% -20%, rgba(68, 88, 150, 0.14), transparent 40%),
    var(--page);
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 238px;
  padding: 28px 17px 18px;
  background: rgba(16, 22, 32, 0.96);
  border-right: 1px solid var(--line);
}

.brand, .mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.brand { margin: 1px 0 43px 7px; }
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: white;
  font-size: 22px;
  line-height: 1;
  border-radius: 12px;
  background: linear-gradient(140deg, #ff8cbb 0%, #aa7bff 48%, #69b8ff 100%);
  box-shadow: 0 7px 24px rgba(157, 112, 255, 0.26);
}
.brand-name { font: 700 18px 'Space Grotesk', sans-serif; letter-spacing: -0.9px; }
.brand-name span { color: #af99ff; }
.nav-label, .section-kicker, .eyebrow, .dialog-kicker {
  color: #778397;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.nav-label { margin: 0 0 12px 12px; }
.side-nav { display: grid; gap: 5px; }
.nav-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a1adbf;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.nav-button:hover { color: white; background: rgba(255,255,255,.045); }
.nav-button.is-active { color: white; background: #24283b; box-shadow: inset 2px 0 #aa8bff; }
.nav-icon { width: 19px; color: #a893ff; font-size: 19px; text-align: center; }

.sidebar-note {
  margin-top: auto;
  padding: 17px 15px;
  border: 1px solid rgba(166, 136, 255, .16);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(119, 87, 211, .12), rgba(37, 48, 71, .14));
}
.sidebar-note-icon { margin-bottom: 7px; color: #b79cff; font-size: 25px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 19px 9px 1px; color: #778397; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #72d8aa; box-shadow: 0 0 11px rgba(114, 216, 170, .4); }

.page-column { min-height: 100vh; margin-left: 238px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 clamp(22px, 4.2vw, 62px);
  background: rgba(12, 16, 24, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.mobile-brand, .menu-button { display: none; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(390px, 56vw);
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(211, 222, 240, .08);
  border-radius: 11px;
  background: #151d29;
  color: #7f8a9d;
}
.search-icon { font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: white; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #7e899b; }
.search-box kbd { padding: 3px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: #748197; font: 10px 'DM Sans', sans-serif; white-space: nowrap; }
.sign-in-button { margin-left: auto; padding: 9px 17px; border: 0; border-radius: 9px; background: linear-gradient(130deg, #a26fff, #8259e9); box-shadow: 0 5px 18px rgba(133, 89, 233, .18); font-size: 12px; font-weight: 700; cursor: pointer; }
.sign-in-button:hover, .play-button:hover, .dialog-done:hover { filter: brightness(1.1); transform: translateY(-1px); }

.main-content { width: min(1170px, 100%); margin: 0 auto; padding: 31px clamp(22px, 4.2vw, 62px) 25px; }
.welcome-card {
  position: relative;
  display: flex;
  min-height: 252px;
  align-items: center;
  overflow: hidden;
  padding: 33px 39px;
  border: 1px solid rgba(191, 177, 255, .13);
  border-radius: 21px;
  background: linear-gradient(108deg, #191d30 0%, #1c2035 50%, #24203e 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.welcome-card::before, .welcome-card::after { position: absolute; content: ''; border-radius: 50%; pointer-events: none; }
.welcome-card::before { width: 430px; height: 430px; right: -30px; top: -225px; background: rgba(125, 105, 255, .12); filter: blur(48px); }
.welcome-card::after { width: 330px; height: 180px; left: 36%; bottom: -160px; background: rgba(90, 123, 220, .12); filter: blur(38px); }
.welcome-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #b49eff; font-size: 9px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #c39fff; box-shadow: 0 0 9px #bd91ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Segoe UI', sans-serif; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.13; letter-spacing: -1.7px; }
h1 span { color: #bdacff; }
.welcome-copy > p { margin: 13px 0 17px; color: #a5aec0; font-size: 13px; }
.welcome-footnote { display: flex; align-items: center; gap: 7px; color: #9ea8bb; font-size: 11px; }
.welcome-footnote span { color: #b69cff; font-size: 19px; line-height: 1; }
.moon-art { position: absolute; width: 250px; height: 230px; right: 37px; top: 50%; transform: translateY(-50%); }
.moon-glow { position: absolute; inset: 41px 38px 30px; border-radius: 50%; background: radial-gradient(circle, rgba(191, 153, 255, .28), rgba(117, 122, 246, .1) 52%, transparent 73%); filter: blur(16px); }
.moon-core { position: absolute; display: grid; place-items: center; width: 106px; height: 106px; left: 71px; top: 60px; border: 1px solid rgba(255,255,255,.62); border-radius: 36px; background: linear-gradient(145deg, #ffafd3, #aa89ff 57%, #6eb9ff); color: white; font-size: 55px; line-height: 1; box-shadow: 0 0 42px rgba(164, 135, 255, .5), inset -10px -12px 18px rgba(70, 68, 158, .2), inset 8px 8px 19px rgba(255,255,255,.3); transform: rotate(-9deg); }
.orbit { position: absolute; inset: 37px 17px; border: 1px solid rgba(206, 191, 255, .23); border-radius: 50%; transform: rotate(-22deg); }
.orbit-two { inset: 52px 0; border-color: rgba(124, 192, 255, .2); transform: rotate(37deg); }
.spark { position: absolute; color: #c7b5ff; }
.spark-one { left: 21px; top: 34px; font-size: 15px; }
.spark-two { right: 19px; top: 67px; font-size: 20px; }
.spark-three { left: 54px; bottom: 26px; font-size: 29px; color: #88ccff; }

.library-section { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-kicker { margin-bottom: 7px; font-size: 9px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; letter-spacing: -.7px; }
.game-count { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 6px; border-radius: 7px; background: #20293a; color: #9da9bc; font: 600 10px 'DM Sans', sans-serif; }
.filter-pills { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #111722; }
.filter-pill { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #8f9bae; font-size: 10px; cursor: pointer; }
.filter-pill:hover { color: white; }
.filter-pill.is-selected { background: #292442; color: #d7cbff; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid rgba(206, 221, 242, .08); border-radius: 15px; background: #141c28; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(181, 156, 255, .34); box-shadow: 0 14px 35px rgba(0,0,0,.23); }
.game-art { position: relative; display: grid; height: 152px; place-items: center; overflow: hidden; }
.game-art::before, .game-art::after { position: absolute; content: ''; border-radius: 50%; }
.art-roblox { background: linear-gradient(145deg, #303d50, #171d28 76%); }
.art-roblox::before { width: 160px; height: 160px; right: -35px; top: -81px; background: rgba(126, 149, 194, .23); filter: blur(16px); }
.art-roblox::after { width: 190px; height: 100px; left: -44px; bottom: -68px; background: rgba(113, 130, 159, .2); filter: blur(20px); }
.art-fortnite { background: linear-gradient(135deg, #126b9a, #2144a1 56%, #6b3fa3); }
.art-fortnite::before { width: 200px; height: 140px; right: -65px; top: -67px; background: rgba(132, 219, 255, .3); filter: blur(20px); }
.art-fortnite::after { width: 185px; height: 95px; left: -20px; bottom: -68px; background: rgba(199, 138, 255, .31); filter: blur(20px); }
.art-clash { background: linear-gradient(145deg, #9a542b, #bd7938 48%, #503a54); }
.art-clash::before { width: 180px; height: 140px; left: -70px; top: -73px; background: rgba(255, 217, 111, .27); filter: blur(21px); }
.art-clash::after { width: 160px; height: 130px; right: -50px; bottom: -70px; background: rgba(255, 153, 98, .28); filter: blur(20px); }
.art-badge { position: relative; z-index: 1; display: grid; width: 82px; height: 82px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 23px; color: white; text-shadow: 0 3px 12px rgba(0,0,0,.25); box-shadow: 0 12px 26px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.25); }
.art-roblox .art-badge { background: linear-gradient(145deg, #2f3746, #141820); transform: rotate(-7deg); }
.roblox-diamond { display: block; width: 39px; height: 39px; border: 8px solid #f4f6fa; border-radius: 3px; transform: rotate(45deg); }
.art-fortnite .art-badge { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(145deg, rgba(231,248,255,.24), rgba(28,81,181,.55)); font: 700 28px 'Space Grotesk', sans-serif; letter-spacing: -2px; }
.art-clash .art-badge { border-radius: 26px 26px 31px 31px; background: linear-gradient(145deg, #ffcb64, #e57445 65%, #a64e50); font-size: 40px; }
.art-sheen { position: absolute; z-index: 2; top: 9px; left: 12px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(11,15,23,.24); color: rgba(255,255,255,.74); font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.favorite-button { position: absolute; z-index: 3; top: 9px; right: 10px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(9,12,19,.4); color: rgba(255,255,255,.78); font-size: 19px; cursor: pointer; }
.favorite-button:hover, .favorite-button.is-favorite { color: #ff9bb5; }
.game-info { padding: 13px 14px 14px; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-info h3 { overflow: hidden; margin: 0; font-size: 14px; letter-spacing: -.25px; text-overflow: ellipsis; white-space: nowrap; }
.game-genre { margin: 5px 0 13px; color: #8c98aa; font-size: 10px; }
.game-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unlimited-label { display: inline-flex; align-items: center; gap: 5px; color: #92a1b7; font-size: 9px; }
.unlimited-label span { color: #b89eff; font-size: 14px; }
.play-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #9d70f3, #7654db); color: white; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 150ms ease, filter 150ms ease; }
.play-button span { font-size: 10px; }
.empty-state { padding: 44px 20px; border: 1px dashed rgba(190,204,227,.16); border-radius: 14px; text-align: center; }
.empty-icon { color: #a68aff; font-size: 32px; }
.empty-state h3 { margin: 8px 0; font-size: 17px; }
.empty-state p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.text-button { padding: 0; border: 0; background: none; color: #c0adff; font-size: 12px; cursor: pointer; }
.notice-card { display: flex; align-items: center; gap: 13px; margin-top: 25px; padding: 14px 16px; border: 1px solid rgba(132, 177, 231, .1); border-radius: 12px; background: rgba(34, 51, 73, .31); }
.notice-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(135, 159, 255, .12); color: #a8baff; font-size: 21px; }
.notice-card strong { display: block; margin-bottom: 4px; font-size: 11px; }
.notice-card p { margin: 0; color: #8d9aae; font-size: 10px; line-height: 1.5; }
.notice-arrow { margin-left: auto; color: #7d8ba0; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 2px 4px; color: #657184; font-size: 9px; }
.footer-dot { padding: 0 4px; color: #9c82ef; }

.game-dialog { position: fixed; width: min(410px, calc(100vw - 30px)); padding: 30px; overflow: visible; border: 1px solid rgba(207, 193, 255, .18); border-radius: 20px; background: #171d2a; color: var(--text); text-align: center; box-shadow: 0 25px 90px rgba(0,0,0,.55); }
.game-dialog::backdrop { background: rgba(5, 8, 14, .72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 13px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255,255,255,.06); color: #b7c0ce; font-size: 22px; cursor: pointer; }
.dialog-game-mark { display: grid; width: 63px; height: 63px; place-items: center; margin: 0 auto 17px; border-radius: 19px; background: linear-gradient(145deg, #8670ec, #4d77c9); font: 700 18px 'Space Grotesk', sans-serif; box-shadow: 0 10px 28px rgba(118, 103, 227, .27); }
.dialog-game-mark.art-mark-roblox { background: linear-gradient(145deg, #495263, #202631); }
.dialog-game-mark.art-mark-fortnite { background: linear-gradient(145deg, #25a3d3, #6153d4); }
.dialog-game-mark.art-mark-clash { background: linear-gradient(145deg, #f3bb58, #bd5849); font-size: 29px; }
.account-mark { font-size: 30px; }
.dialog-kicker { margin: 0 0 8px; color: #a991ff; font-size: 9px; }
.game-dialog h2 { margin: 0 0 9px; font-size: 23px; }
.dialog-message { margin: 0 auto 16px; color: #9da9bb; font-size: 12px; line-height: 1.65; }
.dialog-session { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 8px 11px; border: 1px solid rgba(111, 208, 164, .12); border-radius: 8px; background: rgba(64, 150, 111, .08); color: #aab9ba; font-size: 10px; }
.dialog-done { display: block; width: 100%; padding: 11px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #9d70f3, #7654db); color: white; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform 150ms ease, filter 150ms ease; }

.mobile-backdrop[hidden] { display: none; }

@media (max-width: 980px) {
  .sidebar { width: 205px; }
  .page-column { margin-left: 205px; }
  .main-content { padding-right: 25px; padding-left: 25px; }
  .welcome-card { padding-left: 28px; }
  .moon-art { right: 8px; opacity: .83; transform: translateY(-50%) scale(.86); }
  .game-grid { gap: 11px; }
  .game-info { padding-right: 11px; padding-left: 11px; }
}

@media (max-width: 720px) {
  .sidebar { z-index: 12; width: 250px; transform: translateX(-102%); transition: transform 200ms ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar .brand { display: none; }
  .sidebar-note { margin-top: 28px; }
  .page-column { margin-left: 0; }
  .topbar { height: 64px; gap: 10px; padding: 0 16px; }
  .menu-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #bdc6d5; font-size: 20px; cursor: pointer; }
  .mobile-brand { display: inline-flex; gap: 7px; flex: 0 0 auto; }
  .mobile-brand .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 19px; }
  .mobile-brand .brand-name { font-size: 15px; }
  .search-box { width: auto; flex: 1; height: 37px; margin-left: auto; padding: 0 9px; }
  .search-box kbd { display: none; }
  .sign-in-button { padding: 9px 11px; font-size: 10px; }
  .mobile-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 11; display: block; background: rgba(3,5,10,.62); }
  .main-content { padding: 19px 16px 20px; }
  .welcome-card { min-height: 222px; padding: 25px 22px; border-radius: 17px; }
  .welcome-copy { max-width: 75%; }
  h1 { font-size: clamp(24px, 6vw, 31px); letter-spacing: -1.2px; }
  .welcome-copy > p { max-width: 230px; font-size: 11px; line-height: 1.45; }
  .welcome-footnote { font-size: 9px; }
  .moon-art { right: -57px; opacity: .43; transform: translateY(-50%) scale(.76); }
  .library-section { margin-top: 28px; }
  .section-heading { align-items: center; margin-bottom: 13px; }
  .section-heading h2 { font-size: 19px; }
  .filter-pills { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .game-art { height: 125px; }
  .art-badge { transform: scale(.86); }
  .art-roblox .art-badge { transform: rotate(-7deg) scale(.86); }
  .game-info { padding: 11px 10px 12px; }
  .game-info h3 { font-size: 12px; }
  .game-genre { margin: 5px 0 11px; font-size: 9px; }
  .unlimited-label { gap: 3px; font-size: 8px; }
  .play-button { gap: 5px; padding: 7px 8px; font-size: 9px; }
  .notice-card { align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px; }
  .notice-icon { width: 31px; height: 31px; }
  .notice-card p { font-size: 9px; }
  .page-footer { flex-direction: column; gap: 6px; padding-top: 18px; }
}

@media (max-width: 390px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .mobile-brand .brand-name { font-size: 13px; }
  .search-box { gap: 5px; }
  .sign-in-button { padding: 8px 9px; }
  .welcome-card { padding-right: 14px; padding-left: 17px; }
  .welcome-copy { max-width: 83%; }
  .game-grid { gap: 8px; }
  .game-info { padding-right: 8px; padding-left: 8px; }
  .unlimited-label { font-size: 7px; }
  .play-button { padding: 7px; }
}
