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

:root {
  --bg: #071321;
  --panel: #0d1d30;
  --panel-2: #10243a;
  --panel-3: #142b43;
  --line: rgba(147, 185, 220, .12);
  --text: #edf6ff;
  --muted: #8da5bb;
  --blue: #37c8f4;
  --blue-2: #168bd1;
  --violet: #8b7cff;
  --green: #4bd6a0;
  --radius: 18px;
  --sidebar: 246px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; padding: 28px 18px 20px; background: #091827; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; font: 700 22px 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: #061521; background: linear-gradient(135deg, #65e3ff, #1989d5); box-shadow: 0 0 24px #1a9bd744; }
.brand-accent { color: var(--blue); }
.side-label { margin: 42px 10px 12px; color: #59758f; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.side-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 11px; color: #8ea7be; font-size: 13px; font-weight: 600; transition: .2s; }
.nav-link:hover, .nav-link.active { color: #e9f9ff; background: linear-gradient(90deg, #123a54, #10283e); }
.nav-link.active { box-shadow: inset 3px 0 var(--blue); }
.nav-icon { width: 18px; text-align: center; font-size: 18px; color: var(--blue); }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom .side-label { margin-top: 0; }
.profile-mini { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: #102238; cursor: pointer; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 50%; color: #052033; background: linear-gradient(135deg, #8beaff, #368edb); font-weight: 800; }
.profile-mini-copy { display: grid; gap: 3px; min-width: 0; }
.profile-mini-copy strong { font-size: 12px; }
.profile-mini-copy small { color: var(--muted); font-size: 10px; }
.chevron { margin-left: auto; color: var(--muted); font-size: 22px; }
.sidebar-note { padding: 0 5px; color: #59758f; font-size: 10px; line-height: 1.6; }
.main-content { max-width: 1600px; margin-left: var(--sidebar); padding: 0 42px; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: 76px; margin: 0 -42px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(7, 19, 33, .9); backdrop-filter: blur(18px); }
.breadcrumb { color: #66829c; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.breadcrumb span { padding: 0 9px; color: #38536d; }
.breadcrumb strong { color: #b5c8d9; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.status-pill { display: flex; align-items: center; gap: 7px; color: #8bb4c8; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); font-size: 11px; cursor: pointer; }
.avatar.tiny { width: 26px; height: 26px; font-size: 10px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; padding: 34px 0 24px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -1.2px; }
.blue-dot { color: var(--blue); }
.subheading { margin: 0; color: var(--muted); font-size: 12px; }
.date-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.date-symbol { color: var(--blue); font-size: 21px; }
.date-chip span:last-child { display: grid; gap: 3px; }
.date-chip small { color: #6f8ba4; font-size: 8px; letter-spacing: 1.3px; }
.date-chip strong { font-size: 10px; letter-spacing: .8px; }
.hero-card { position: relative; display: flex; align-items: center; min-height: 250px; overflow: hidden; padding: 34px 42px; border: 1px solid rgba(77, 190, 240, .2); border-radius: 20px; background: radial-gradient(ellipse at 76% 50%, #14547b 0, transparent 36%), linear-gradient(110deg, #102d48 0%, #0b1c30 65%, #0a1b2d 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 390px; }
.hero-tag { display: inline-block; padding: 6px 9px; border: 1px solid #43c8f44d; border-radius: 5px; color: #8eeaff; background: #0d49624d; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.hero-copy h2 { margin: 13px 0 9px; font-size: clamp(29px, 4vw, 43px); line-height: 1.03; letter-spacing: -1.8px; }
.hero-copy h2 span { color: var(--blue); }
.hero-copy p { max-width: 310px; margin-bottom: 19px; color: #9bb5ca; font-size: 11px; line-height: 1.7; }
.primary-button { display: inline-flex; align-items: center; gap: 20px; padding: 11px 15px; border: 0; border-radius: 8px; color: #042033; background: linear-gradient(100deg, #70e5ff, #2caee8); font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 22px #1e9ed533; transition: transform .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero-art { position: absolute; inset: 0 0 0 47%; overflow: hidden; }
.orbit { position: absolute; width: 280px; height: 110px; top: 70px; left: 25%; border: 1px solid #61d8ff42; border-radius: 50%; transform: rotate(-28deg); }
.orbit-two { width: 350px; height: 150px; top: 48px; left: 16%; transform: rotate(28deg); border-color: #61d8ff24; }
.planet { position: absolute; top: 43px; left: 44%; display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid #9cecff88; border-radius: 50%; color: #c7f6ff; background: radial-gradient(circle at 30% 25%, #69d8f2, #17618d 45%, #0a2948 75%); box-shadow: 0 0 55px #36c8f477, inset -17px -12px 30px #061a35; font: 700 35px 'Space Grotesk'; transform: rotate(-15deg); }
.float-card { position: absolute; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #7deaff44; border-radius: 8px; color: #9deaff; background: #0c263bd9; box-shadow: 0 8px 30px #00101c66; }
.float-card small { font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.float-one { top: 48px; right: 10%; }
.float-two { bottom: 35px; left: 24%; }
.pixel-grid { position: absolute; right: 7%; bottom: 13%; width: 80px; height: 50px; opacity: .25; background-image: radial-gradient(#80e9ff 1px, transparent 1px); background-size: 9px 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 17px 0 36px; }
.stat-card { display: flex; align-items: center; gap: 12px; min-height: 75px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.stat-icon.cyan { color: var(--blue); background: #1c9fca20; }
.stat-icon.violet { color: var(--violet); background: #8b7cff20; }
.stat-icon.green { color: var(--green); background: #4bd6a020; }
.stat-card small { display: block; margin-bottom: 4px; color: #7792aa; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.stat-card strong { font: 700 20px 'Space Grotesk'; }
.stat-card em { color: #718ba2; font-size: 11px; font-style: normal; }
.stat-end { margin-left: auto; color: #55738e; }
.section-block { margin-bottom: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.text-link { color: #78dfff; font-size: 10px; font-weight: 700; }
.text-link span { padding-left: 5px; }
.game-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(270px, 100%); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #7291aa; background: var(--panel); }
.search-box span { font-size: 19px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #66829a; }
.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: #8ca4b9; background: transparent; font-size: 9px; cursor: pointer; }
.filter-pill.selected, .filter-pill:hover { border-color: #38bce655; color: #8feaff; background: #1c9fca1c; }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.game-card { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); transition: transform .2s, border-color .2s; }
.game-card:hover { transform: translateY(-3px); border-color: #3dbde855; }
.game-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 135px; overflow: hidden; padding: 12px; border-radius: 8px; isolation: isolate; }
.game-cover::before, .game-cover::after { position: absolute; z-index: -1; content: ""; }
.game-cover::before { inset: 0; opacity: .8; background-image: linear-gradient(135deg, transparent 45%, #ffffff15 45%, transparent 46%), radial-gradient(circle at 75% 25%, #ffffff2b, transparent 34%); }
.cover-kicker, .cover-corner { color: #ffffffc9; font-size: 7px; font-weight: 700; letter-spacing: 1.2px; }
.cover-corner { align-self: flex-end; padding: 5px 6px; border: 1px solid #ffffff55; border-radius: 4px; font-size: 6px; }
.cover-emoji { position: absolute; top: 27px; right: 18px; font-size: 43px; filter: drop-shadow(0 6px 7px #0007); transform: rotate(-9deg); }
.cover-title { margin-top: auto; color: white; font: 700 22px/ .9 'Space Grotesk'; letter-spacing: -1px; text-shadow: 0 3px 9px #0008; }
.cover-title span { color: #a9f0ff; }
.cover-life { background: linear-gradient(135deg, #164b65, #192e5d 70%, #261d54); }
.cover-bacon { background: linear-gradient(135deg, #7d382c, #3e1d32 80%); }
.cover-crossy { background: linear-gradient(135deg, #26745b, #19465a 70%); }
.cover-minecraft { background: linear-gradient(135deg, #547b4a, #243d36 70%); }
.cover-city { background: linear-gradient(135deg, #5c456f, #25294d 70%); }
.cover-neon { background: linear-gradient(135deg, #164f77, #29235c 70%); }
.cover-2048 { background: linear-gradient(135deg, #98703b, #59412d 75%); }
.game-info { display: flex; align-items: start; justify-content: space-between; gap: 5px; padding: 11px 3px 9px; }
.game-info h3 { margin: 0 0 4px; font-size: 11px; }
.game-info p { margin: 0; color: #819bb1; font-size: 8px; line-height: 1.5; }
.game-type { padding-top: 2px; color: #6fcfe9; font-size: 7px; font-weight: 700; letter-spacing: .7px; white-space: nowrap; }
.game-button { display: flex; justify-content: space-between; width: 100%; padding: 9px 10px; border: 1px solid #2e9fc544; border-radius: 7px; color: #9ceaff; background: #1599c51a; font-size: 9px; font-weight: 700; cursor: pointer; }
.game-button:hover { background: #1599c533; }
.empty-state { padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.panel { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.compact { align-items: center; margin-bottom: 16px; }
.compact h2 { font-size: 18px; }
.panel-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--blue); background: #1c9fca20; font-size: 19px; }
.music-feature { display: flex; align-items: center; gap: 14px; }
.album-art { position: relative; display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; border: 1px solid #48d5ff66; border-radius: 11px; color: #b8f6ff; background: radial-gradient(circle at 30% 25%, #4dc9ed, #175c83 48%, #17234e); font: 700 22px 'Space Grotesk'; box-shadow: 0 0 23px #26b6df33; }
.album-art::after { position: absolute; width: 110px; height: 110px; border: 1px solid #b3f6ff44; border-radius: 50%; content: ""; }
.album-art i { position: absolute; right: 9px; bottom: 5px; color: #a5f2ff; font-size: 17px; font-style: normal; }
.music-copy small { color: var(--blue); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.music-copy h3 { margin: 5px 0; font-size: 14px; }
.music-copy p { margin: 0 0 7px; color: var(--muted); font-size: 9px; }
.music-status { color: #65849d; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.music-actions { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.secondary-button { padding: 8px 11px; border: 1px solid #3abce655; border-radius: 7px; color: #91e8ff; background: #1599c51a; font-size: 9px; font-weight: 700; cursor: pointer; }
.muted-note { color: #66829a; font-size: 8px; }
.achievement-list { display: grid; gap: 11px; }
.achievement-row { display: flex; align-items: center; gap: 10px; }
.achievement-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #172e43; font-size: 16px; }
.achievement-row div { display: grid; gap: 3px; }
.achievement-row strong { font-size: 10px; }
.achievement-row small { color: #7892a9; font-size: 8px; }
.locked { margin-left: auto; color: #657f96; font-size: 7px; font-weight: 700; letter-spacing: .8px; }
.unlocked { color: var(--green); }
.webtools-panel { margin-bottom: 22px; }
.tool-row { display: flex; align-items: center; gap: 12px; }
.tool-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--blue); background: #1c9fca20; font-size: 20px; }
.tool-row div:nth-child(2) { flex: 1; }
.tool-row strong { font-size: 11px; }
.tool-row p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.coming-label { color: #829ab0; font-size: 7px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0 25px; color: #59758e; font-size: 8px; letter-spacing: .5px; }
.footer a { color: #7dcce5; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: #020914c9; backdrop-filter: blur(7px); }
.modal-backdrop.hidden, .hidden { display: none !important; }
.modal-card { position: relative; width: min(100%, 390px); padding: 26px; border: 1px solid #3abce655; border-radius: 17px; background: #0d1d30; box-shadow: 0 25px 80px #0008; }
.modal-card h2 { margin: 0 0 20px; font-size: 23px; }
.modal-close { position: absolute; top: 13px; right: 15px; border: 0; color: #9bb4c9; background: transparent; font-size: 24px; cursor: pointer; }
.modal-label { display: grid; gap: 7px; margin-bottom: 14px; color: #9bb4c9; font-size: 10px; }
.modal-label input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: #081728; }
.modal-label input:focus { border-color: var(--blue); }
.modal-hint { color: #7892a9; font-size: 9px; line-height: 1.6; }
.full-width { justify-content: center; width: 100%; }
.modal-message { min-height: 14px; margin: 10px 0 0; color: var(--green); font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(360px, calc(100% - 44px)); padding: 12px 16px; border: 1px solid #3abce655; border-radius: 9px; color: #dff9ff; background: #102b40; box-shadow: 0 12px 35px #0007; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
body.alt-accent { --blue: #7ca7ff; --blue-2: #507de0; }
body.alt-accent .brand-mark { background: linear-gradient(135deg, #b5caff, #507de0); }
@media (max-width: 1150px) { .main-content { padding: 0 27px; } .topbar { margin: 0 -27px; padding: 0 27px; } .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 246px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 50px #0005; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { justify-content: flex-start; gap: 13px; }
  .breadcrumb { margin-right: auto; }
  .welcome-row { align-items: start; }
  .date-chip { display: none; }
}
@media (max-width: 620px) {
  .main-content { padding: 0 16px; }
  .topbar { min-height: 64px; margin: 0 -16px; padding: 0 16px; }
  .status-pill { display: none; }
  .user-chip { padding-right: 6px; }
  .user-chip #topName { display: none; }
  .welcome-row { padding-top: 27px; }
  .subheading { max-width: 300px; line-height: 1.6; }
  .hero-card { min-height: 250px; padding: 25px; }
  .hero-art { left: 40%; opacity: .55; }
  .planet { left: 35%; width: 120px; height: 120px; }
  .float-one { right: 1%; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 29px; }
  .stat-card { min-height: 62px; }
  .game-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .filter-pill { white-space: nowrap; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-cover { min-height: 120px; }
  .cover-title { font-size: 19px; }
  .cover-emoji { right: 12px; font-size: 35px; }
  .lower-grid { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; line-height: 1.6; }
}
@media (max-width: 360px) { .games-grid { grid-template-columns: 1fr; } .game-cover { min-height: 155px; } }
