:root {
  color-scheme: dark;
  --bg: #111116;
  --panel: #19191f;
  --panel-2: #202027;
  --line: rgba(255,255,255,.075);
  --text: #f6f5f8;
  --muted: #96949f;
  --purple: #a78bfa;
  --purple-2: #8b5cf6;
  --green: #35d399;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 218px; position: fixed; inset: 0 auto 0 0; background: #101015; border-right: 1px solid var(--line); padding: 27px 16px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; text-decoration: none; color: white; margin-bottom: 48px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg,#c4b5fd,#7c3aed); color: #17131f; font-weight: 900; font-size: 19px; transform: rotate(-7deg); }
.brand-name { font-size: 22px; letter-spacing: -.9px; font-weight: 800; }
.side-nav { display: grid; gap: 8px; }
.nav-item { border: 0; background: transparent; min-height: 48px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; gap: 14px; text-align: left; color: #aaa8b2; cursor: pointer; transition: .18s; }
.nav-item:hover { background: #1c1b23; color: white; }
.nav-item.active { background: rgba(167,139,250,.14); color: #c4b5fd; }
.nav-icon { width: 23px; text-align: center; font-size: 24px; line-height: 1; }
.soon { margin-left: auto; color: #777481; font-size: 9px; }
.profile-nav { margin-top: 8px; }
.mini-avatar { width: 29px; height: 29px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 800; color: white; border: 2px solid rgba(255,255,255,.13); }
.avatar-you { background: linear-gradient(145deg,#7dd3fc,#7c3aed); }
.sidebar-bottom { margin-top: auto; padding: 12px 9px 0; }
.sidebar-status { font-size: 10px; color: #8f8c99; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #35d39970; }
.sidebar-version { color: #5f5c68; font-size: 9px; letter-spacing: 1.2px; margin-top: 13px; }
.main-content { margin-left: 218px; min-height: 100vh; }
.topbar { height: 82px; display: flex; align-items: center; padding: 0 clamp(24px,4vw,64px); border-bottom: 1px solid var(--line); gap: 22px; position: sticky; top: 0; z-index: 10; background: rgba(17,17,22,.88); backdrop-filter: blur(18px); }
.search-box { width: min(560px, 58vw); height: 45px; background: #202027; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: center; padding: 0 14px; gap: 10px; transition: .2s; }
.search-box:focus-within { border-color: #8b5cf6a8; box-shadow: 0 0 0 3px #8b5cf61c; }
.search-icon { font-size: 27px; color: #c8c5d0; transform: rotate(-20deg); }
.search-box input { background: transparent; border: 0; outline: 0; color: white; width: 100%; min-width: 0; font-size: 14px; }
.search-box input::placeholder { color: #888590; }
kbd { border: 1px solid #44414d; border-radius: 5px; color: #777481; font-size: 10px; padding: 2px 6px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.icon-button, .account-button { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; font-size: 22px; color: #d7d4df; position: relative; }
.icon-button:hover, .account-button:hover { background: #292731; }
.notification-button i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; top: 6px; right: 7px; }
.currency-pill { border: 1px solid #393441; background: #201d29; border-radius: 20px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; color: #ddd6fe; font-size: 12px; cursor: pointer; }
.coin-icon { color: #c4b5fd; }
.currency-label { color: #9b96a7; }
.account-button { display: flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px; }
.account-chevron { color: #9995a2; }
.mobile-menu, .mobile-brand { display: none; }
.page-wrap { max-width: 1600px; padding: 35px clamp(24px,4vw,64px) 30px; margin: 0 auto; }
.welcome-row { min-height: 128px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.eyebrow { color: #a78bfa; letter-spacing: 2px; font-size: 9px; font-weight: 700; margin: 0 0 10px; }
h1 { font-size: clamp(25px,3vw,34px); margin: 0; letter-spacing: -1.2px; }
.welcome-subtitle { color: var(--muted); margin: 9px 0 0; font-size: 13px; }
.welcome-decoration { width: 190px; height: 120px; position: relative; opacity: .8; }
.orb { position: absolute; width: 105px; height: 105px; right: 25px; top: 7px; border-radius: 35px; transform: rotate(25deg); background: radial-gradient(circle at 30% 25%,#d8b4fe,#8b5cf6 48%,#4c1d95); box-shadow: 0 15px 55px #8b5cf64a; }
.spark { position: absolute; color: #d8b4fe; z-index: 1; }
.spark-one { right: 150px; top: 17px; font-size: 24px; }
.spark-two { right: 9px; bottom: 16px; font-size: 32px; }
.section-block { margin-top: 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.section-note { color: #817e8a; font-size: 11px; display: inline-block; margin-top: 5px; }
.text-button { border: 1px solid #494052; background: #211d29; color: #c4b5fd; border-radius: 9px; padding: 9px 12px; font-size: 11px; cursor: pointer; }
.text-button:hover { background: #30263f; }
.friend-strip { display: flex; gap: 19px; overflow-x: auto; padding: 3px 1px 8px; scrollbar-width: thin; scrollbar-color: #383340 transparent; }
.friend { flex: 0 0 83px; border: 0; background: transparent; cursor: pointer; padding: 0; text-align: center; }
.friend-avatar-wrap { width: 68px; height: 68px; margin: 0 auto 8px; position: relative; }
.friend-avatar { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; font-size: 25px; font-weight: 800; color: #fff; background: var(--avatar-bg); border: 1px solid #ffffff12; box-shadow: inset 0 0 20px #ffffff0b; }
.friend-avatar-wrap::after { content: ""; position: absolute; width: 11px; height: 11px; right: -2px; bottom: 0; border: 3px solid var(--bg); border-radius: 50%; background: var(--presence); }
.friend-name { display: block; font-size: 10px; color: #d9d6df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-activity { display: block; font-size: 9px; color: #777481; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend.add-friend .friend-avatar { background: #22212a; color: #b9a5f6; border: 1px dashed #625778; font-size: 29px; }
.friend.add-friend .friend-name { color: #b8a8e7; }
.tabs { display: flex; gap: 5px; background: #1b1a21; padding: 4px; border-radius: 10px; }
.tab { border: 0; background: transparent; color: #8f8b98; padding: 8px 13px; border-radius: 7px; font-size: 11px; cursor: pointer; }
.tab.active { color: #eee9ff; background: #393044; box-shadow: inset 0 0 0 1px #5c4c70; }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 18px; }
.game-card { min-width: 0; cursor: pointer; }
.game-art { aspect-ratio: 1.62; border-radius: 13px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; background: var(--art-bg); transition: transform .2s, box-shadow .2s; }
.game-card:hover .game-art { transform: translateY(-3px); box-shadow: 0 12px 30px #0006; }
.game-art::before, .game-art::after { content: ""; position: absolute; z-index: -1; }
.art-scene::before { inset: 0; background: linear-gradient(140deg,#ffffff18,transparent 45%),repeating-linear-gradient(90deg,transparent 0 45px,#ffffff0a 46px 48px); }
.art-scene::after { width: 170px; height: 85px; border-radius: 50%; background: #ffffff20; filter: blur(25px); bottom: -28px; }
.art-symbol { font-size: clamp(48px,7vw,82px); filter: drop-shadow(0 10px 8px #0005); transform: rotate(-7deg); }
.art-tag { position: absolute; top: 12px; left: 12px; background: #111116aa; border: 1px solid #ffffff24; border-radius: 6px; padding: 5px 8px; font-size: 9px; font-weight: 700; backdrop-filter: blur(8px); }
.art-bottom { position: absolute; bottom: 12px; left: 13px; right: 13px; display: flex; align-items: end; justify-content: space-between; }
.art-title { font-weight: 800; font-size: clamp(15px,2vw,22px); text-shadow: 0 2px 8px #0008; }
.art-mini { font-size: 10px; color: #ffffffc9; }
.game-info { padding: 11px 2px 0; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-title { font-size: 13px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.game-rating { font-size: 10px; color: #aaa5b2; white-space: nowrap; }
.game-meta { margin-top: 6px; display: flex; gap: 12px; color: #85818e; font-size: 10px; }
.game-meta span { display: flex; align-items: center; gap: 4px; }
.empty-state { text-align: center; padding: 65px 15px; color: #888491; }
.empty-state span { font-size: 34px; }
.empty-state h3 { color: #ddd9e5; margin: 10px 0 5px; }
.empty-state p { font-size: 12px; }
.hidden { display: none !important; }
.footer { border-top: 1px solid var(--line); margin-top: 55px; padding-top: 18px; display: flex; gap: 20px; color: #686572; font-size: 10px; }
.footer a { color: #85818e; text-decoration: none; margin-left: auto; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,20px); background: #292431; border: 1px solid #51445f; color: #eee9ff; border-radius: 10px; padding: 11px 16px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; box-shadow: 0 10px 35px #0008; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.modal { border: 1px solid #494052; border-radius: 18px; padding: 0; background: #1a1921; color: white; width: min(410px,calc(100% - 32px)); box-shadow: 0 25px 90px #000b; }
.modal::backdrop { background: #050409b8; backdrop-filter: blur(5px); }
.modal-card { padding: 30px; display: flex; flex-direction: column; position: relative; }
.modal-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; color: #aaa5b2; font-size: 25px; cursor: pointer; }
.modal-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #342844; color: #c4b5fd; font-size: 25px; }
.modal-card h2 { margin: 17px 0 5px; font-size: 20px; }
.modal-card p { margin: 0 0 18px; color: #96919f; font-size: 12px; }
.modal-card input { background: #111116; border: 1px solid #3c3745; border-radius: 9px; padding: 12px; color: white; outline: none; }
.modal-card input:focus { border-color: #a78bfa; }
.primary-button { margin-top: 12px; border: 0; border-radius: 9px; padding: 12px; color: #17131f; background: #c4b5fd; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: #ddd6fe; }
.modal-card small { color: #777481; font-size: 10px; margin-top: 13px; text-align: center; }
@media (max-width: 1050px) { .sidebar { width: 75px; padding-inline: 10px; } .brand { justify-content: center; padding: 0; } .brand-name, .nav-item > span:not(.nav-icon):not(.mini-avatar), .sidebar-bottom { display: none; } .nav-item { justify-content: center; padding: 0; } .main-content { margin-left: 75px; } .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .sidebar { width: 250px; transform: translateX(-105%); transition: transform .22s; box-shadow: 20px 0 60px #0008; }
  .sidebar.open { transform: translateX(0); }
  .brand { justify-content: flex-start; padding: 0 9px; } .brand-name { display: inline; }
  .nav-item { justify-content: flex-start; padding: 0 12px; } .nav-item > span:not(.nav-icon):not(.mini-avatar) { display: inline; }
  .sidebar-bottom { display: block; } .main-content { margin-left: 0; }
  .topbar { height: 66px; padding: 0 15px; gap: 10px; }
  .mobile-menu { display: block; flex: 0 0 34px; }
  .mobile-brand { display: block; color: white; text-decoration: none; font-weight: 800; font-size: 16px; white-space: nowrap; }
  .search-box { height: 39px; width: auto; flex: 1; padding: 0 9px; gap: 5px; }
  .search-box input { font-size: 11px; } .search-icon { font-size: 21px; }
  .search-box kbd, .currency-pill, .account-chevron { display: none; }
  .top-actions { gap: 4px; } .notification-button { width: 31px; }
  .page-wrap { padding: 24px 16px; }
  .welcome-row { min-height: 112px; } .welcome-decoration { width: 100px; transform: scale(.72); transform-origin: right center; margin-left: -35px; }
  .section-block { margin-top: 27px; } .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .compact-heading { flex-direction: row; align-items: center; }
  .tabs { width: 100%; } .tab { flex: 1; padding-inline: 5px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 11px; }
  .game-art { border-radius: 10px; aspect-ratio: 1.25; }
  .art-tag { top: 7px; left: 7px; font-size: 8px; } .art-bottom { bottom: 8px; left: 9px; right: 9px; }
  .game-title { font-size: 11px; } .game-rating { font-size: 9px; } .game-meta { font-size: 9px; gap: 7px; }
  .footer { flex-wrap: wrap; gap: 9px 15px; } .footer a { margin-left: 0; }
}
@media (max-width: 380px) { .mobile-brand { display: none; } .game-grid { grid-template-columns: 1fr; } .game-art { aspect-ratio: 1.7; } }
