:root {
  --ink: #eff0f5;
  --muted: #8c909b;
  --line: rgba(255, 255, 255, 0.09);
  --surface: #14161f;
  --canvas: #0b0c11;
  --accent: #e6ff42;
  --accent-dark: #bdd12d;
  --violet: #9f92ff;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 76% 8%, #1a1c2a 0, transparent 25rem), var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; width: 250px; height: 100vh; padding: 31px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(12, 13, 19, .9); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 12px; color: #fff; text-decoration: none; letter-spacing: .18em; font-size: 16px; font-weight: 800; }
.brand-mark { position: relative; width: 25px; height: 25px; display: block; transform: rotate(45deg); }
.brand-mark i { position: absolute; display: block; border: 2px solid var(--accent); width: 15px; height: 15px; transform: rotate(45deg); }
.brand-mark i:nth-child(1) { left: 5px; top: 5px; }.brand-mark i:nth-child(2) { left: -1px; top: -1px; opacity: .55; }.brand-mark i:nth-child(3) { right: -1px; bottom: -1px; opacity: .55; }
.navigation { display: grid; gap: 5px; margin-top: 55px; }
.nav-link { height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 13px; border-radius: 7px; color: #a6a9b4; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: #20222d; color: #fff; }.nav-link.active { box-shadow: inset 3px 0 var(--accent); }
.nav-icon { width: 18px; color: #c4c6ce; font-family: Arial, sans-serif; font-size: 22px; font-weight: 400; text-align: center; }.nav-link.active .nav-icon { color: var(--accent); }
.nav-link em { margin-left: auto; min-width: 20px; padding: 1px 5px; border-radius: 9px; background: #343642; color: #fff; font-size: 10px; font-style: normal; text-align: center; }.nav-link em[hidden] { display: none; }
.sidebar-bottom { margin-top: auto; }.status-card { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px 10px; border: 1px solid #2a2c36; border-radius: 7px; background: #161820; color: var(--ink); text-align: left; transition: background .2s; }.status-card:hover { background: #20222b; }.status-card strong, .profile strong { display: block; font-size: 11px; }.status-card small, .profile small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }.status-card b { margin-left: auto; color: #999da9; font-size: 20px; font-weight: 400; }.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.profile { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 6px; border: 0; background: none; color: var(--ink); text-align: left; }.profile b { margin-left: auto; color: var(--muted); }.avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #a297f9; border-radius: 50%; background: linear-gradient(135deg, #4e4880, #8a75ad); color: white; font-size: 9px; font-weight: 800; }

.main-content { width: calc(100% - 250px); max-width: 1560px; min-height: 100vh; margin-left: 250px; padding: 0 58px 60px; }
.topbar { height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }.menu-toggle { display: none; }.search { width: 353px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #292b36; border-radius: 5px; background: #15171f; color: #9599a4; }.search span { font-family: Arial; font-size: 25px; transform: rotate(-20deg); }.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }.search input::placeholder { color: #777b86; }.top-actions { display: flex; align-items: center; gap: 15px; }.icon-button { position: relative; width: 35px; height: 35px; border: 0; background: transparent; color: #cacdd5; font-size: 23px; }.icon-button span { position: absolute; top: 6px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }.wallet { display: flex; align-items: center; gap: 7px; padding: 7px 8px 7px 10px; border: 1px solid #292b34; border-radius: 5px; background: #171922; color: #a3a6b0; font-size: 11px; }.wallet strong { color: #e3e4e9; }.wallet b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; background: #2e303a; color: var(--accent); font-size: 15px; }

.view { display: none; animation: slidein .32s ease both; }.view.active { display: block; }@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 43px 0 21px; }.section-heading.compact { align-items: center; margin: 13px 0 26px; }.eyebrow { margin: 0 0 8px; color: #858a97; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .12em; }.eyebrow.accent { color: var(--accent); }.section-heading h1, .section-heading h2 { margin: 0; letter-spacing: -.05em; }.section-heading h1 { font-size: clamp(22px, 2.5vw, 31px); line-height: 1.15; }.section-heading h2 { font-size: 20px; }.system-status { display: flex; align-items: center; gap: 8px; margin: 0; color: #969aa6; font-size: 10px; }.system-status span { width: 6px; height: 6px; border-radius: 50%; background: #4bea9b; box-shadow: 0 0 9px #4bea9b; }.text-button { border: 0; background: none; color: #b9bbc4; font-size: 11px; font-weight: 700; }.text-button:hover { color: var(--accent); }.text-button span { margin-left: 7px; color: var(--accent); font-size: 15px; }.muted { margin: 0; color: var(--muted); font-size: 12px; }

.hero-card { position: relative; min-height: 334px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: linear-gradient(110deg, #171924 7%, #25203e 61%, #111c35); box-shadow: 0 20px 60px rgba(0, 0, 0, .24); }.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 17, .78) 1%, rgba(11, 12, 17, .32) 55%, transparent); pointer-events: none; }.hero-art { position: absolute; inset: 0 0 0 30%; overflow: hidden; background: radial-gradient(ellipse at 70% 25%, rgba(192, 159, 255, .5), transparent 20%), radial-gradient(ellipse at 55% 40%, rgba(255, 255, 255, .18), transparent 32%), linear-gradient(140deg, #101426, #3b285e 48%, #172447 100%); }.moon { position: absolute; top: 42px; right: 20%; width: 122px; height: 122px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #f7ecff, #a992d2 48%, #504574 75%); box-shadow: 0 0 80px #ae91d8; }.mountain { position: absolute; bottom: -2px; clip-path: polygon(0 100%, 46% 15%, 55% 36%, 67% 0, 100% 100%); }.mountain-back { left: 12%; width: 72%; height: 72%; background: linear-gradient(135deg, #4f4c88, #22284d); opacity: .68; }.mountain-front { right: -15%; width: 76%; height: 80%; background: linear-gradient(135deg, #101b3b, #1d1535 80%); }.scanline { position: absolute; inset: 0; background-image: linear-gradient(transparent 96%, rgba(255,255,255,.12) 100%); background-size: 100% 5px; opacity: .09; }.hero-content { position: relative; z-index: 2; width: 48%; padding: 44px 0 38px 48px; }.hero-content h2 { margin: 0; font-size: clamp(37px, 4.4vw, 57px); line-height: .86; letter-spacing: -.08em; }.hero-description { max-width: 330px; margin: 19px 0 19px; color: #d2d2dc; font-size: 12px; line-height: 1.7; }.hero-meta { display: flex; flex-wrap: wrap; gap: 13px; color: #a4a6b2; font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .04em; }.hero-meta span:first-child { color: #d8cfef; }.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 27px; }.primary-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 16px; border: 1px solid #eeff7f; border-radius: 4px; background: var(--accent); color: #15170c; font-size: 11px; font-weight: 800; transition: transform .2s, background .2s; }.primary-button:hover { background: #f0ff72; transform: translateY(-1px); }.primary-button span { font-family: "DM Mono", monospace; font-size: 10px; }.round-button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(5,5,8,.15); color: white; font-size: 17px; }.round-button:hover { border-color: var(--accent); color: var(--accent); }.hero-label { position: absolute; z-index: 3; right: 25px; bottom: 24px; display: flex; align-items: center; gap: 10px; color: #fff; font-family: "DM Mono", monospace; font-size: 10px; }.hero-label i { width: 46px; height: 1px; background: rgba(255,255,255,.6); }.hero-label small { font-size: 7px; letter-spacing: .1em; }

.content-section { margin-top: 40px; }.content-section .section-heading { margin: 0 0 17px; }.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }.game-card { min-width: 0; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--ink); text-align: left; overflow: hidden; }.game-card:hover .game-art { transform: translateY(-4px); filter: brightness(1.1); }.game-art { position: relative; height: 151px; overflow: hidden; border-radius: 5px; background: var(--art); transition: transform .25s, filter .25s; }.game-art::before, .purchase-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 19%, var(--glow), transparent 25%), linear-gradient(145deg, transparent 15%, rgba(255,255,255,.12) 16%, transparent 18%); }.game-art::after { content: attr(data-mark); position: absolute; left: 14px; bottom: 11px; max-width: 76%; color: rgba(255,255,255,.93); font-size: 19px; font-weight: 800; line-height: .9; letter-spacing: -.07em; white-space: pre-line; }.game-art .art-orb { position: absolute; top: 21%; right: 19%; width: 41%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.37); border-radius: 50%; box-shadow: inset 0 0 17px rgba(255,255,255,.25), 0 0 35px var(--glow); }.game-art .art-stripe { position: absolute; right: -10%; bottom: -30%; width: 85%; height: 70%; transform: rotate(-31deg); background: rgba(5,5,10,.3); }.game-card-info { padding: 12px 2px 3px; }.game-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }.game-card h3 { overflow: hidden; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.game-card p { margin: 5px 0 0; color: #8d919c; font-size: 10px; }.price { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; font-size: 11px; font-weight: 800; }.price.sale { color: var(--accent); }.price del { color: #777b87; font-size: 9px; font-weight: 500; }.discount-badge { position: absolute; z-index: 1; top: 9px; right: 9px; padding: 4px 6px; border-radius: 3px; background: var(--accent); color: #16180c; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; }.campaign-pill { position: absolute; z-index: 1; top: 9px; left: 9px; padding: 3px 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; background: rgba(13,14,20,.55); color: white; font-family: "DM Mono", monospace; font-size: 7px; }.large { grid-template-columns: repeat(4, minmax(155px, 1fr)); }.large .game-art { height: 215px; }.large .game-art::after { font-size: 24px; }

.continue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.continue-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #12141c; }.continue-thumb { position: relative; width: 92px; height: 48px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: var(--art); }.continue-thumb::after { content: attr(data-mark); position: absolute; left: 7px; bottom: 7px; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: -.04em; }.continue-copy { min-width: 0; flex: 1; }.continue-copy h3 { margin: 0; font-size: 11px; }.continue-copy p { margin: 5px 0 7px; color: #91949f; font-size: 9px; }.progress { height: 3px; overflow: hidden; border-radius: 3px; background: #2d3039; }.progress span { display: block; height: 100%; background: var(--accent); }.play-button { padding: 6px 9px; border: 1px solid #363842; border-radius: 3px; background: #1c1f28; color: var(--accent); font-size: 11px; }.play-button:hover { border-color: var(--accent); }

.launcher-update { min-height: 30px; padding: 0 10px; border: 1px solid rgba(230,255,66,.62); border-radius: 4px; background: rgba(230,255,66,.12); color: var(--accent); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 600; }.launcher-update:hover { background: rgba(230,255,66,.22); }.launcher-update:disabled { opacity: .65; cursor: wait; }

.discovery-heading { margin-top: 25px; }.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }.chip { padding: 7px 11px; border: 1px solid #333540; border-radius: 15px; background: transparent; color: #aaaeba; font-size: 10px; }.chip:hover, .chip.active { border-color: var(--accent); background: rgba(230,255,66,.1); color: var(--accent); }.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.library-card { padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #12141c; }.library-card .game-art { height: 150px; }.library-card h3 { margin: 11px 0 5px; font-size: 13px; }.library-card p { margin: 0; color: #9699a4; font-size: 10px; }.library-card .primary-button { width: 100%; margin-top: 14px; min-height: 34px; }.download-list { display: grid; gap: 10px; max-width: 800px; }.download-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 15px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #12141c; }.download-thumb { width: 66px; height: 48px; border-radius: 3px; background: var(--art); }.download-copy h3 { margin: 0; font-size: 12px; }.download-copy p { margin: 5px 0 8px; color: #9396a0; font-size: 10px; }.download-copy .progress { max-width: 420px; }.download-state { color: var(--accent); font-family: "DM Mono", monospace; font-size: 9px; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(3, 4, 7, .76); backdrop-filter: blur(6px); }.modal { position: fixed; z-index: 21; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); transform: translate(-50%, -50%); border: 1px solid #343742; border-radius: 8px; background: #171923; box-shadow: 0 24px 100px rgba(0,0,0,.7); }.modal[hidden], .modal-backdrop[hidden] { display: none; }.close-button { position: absolute; z-index: 2; top: 13px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(10,11,16,.6); color: white; font-size: 23px; line-height: 1; }.close-button:hover { color: var(--accent); }.purchase-modal { display: grid; grid-template-columns: 190px 1fr; min-height: 320px; overflow: hidden; }.purchase-cover { position: relative; background: var(--art, linear-gradient(135deg,#5c3f91,#1a2856)); }.purchase-info { padding: 35px 31px 25px; }.purchase-info h2, .admin-modal h2 { margin: 0; font-size: 27px; letter-spacing: -.05em; }.purchase-info > p:not(.eyebrow) { margin: 6px 0; color: var(--muted); font-size: 11px; }.price-summary { display: flex; align-items: baseline; gap: 9px; margin: 27px 0 18px; }.price-summary span { color: var(--muted); font-size: 11px; }.price-summary strong { color: var(--accent); font-size: 22px; }.price-summary del { color: #7a7e88; font-size: 11px; }.primary-button.full { width: 100%; justify-content: space-between; }.purchase-info small { display: block; margin-top: 14px; color: #777b86; font-size: 8px; line-height: 1.5; }.admin-modal { padding: 33px; }.modal-copy { margin: 10px 0 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }.field-label { display: grid; gap: 7px; color: #c1c4cc; font-size: 10px; font-weight: 700; }.field-label select, .field-label input[type="number"] { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #353843; border-radius: 4px; background: #101218; color: var(--ink); font-size: 11px; outline: none; }.form-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 13px; margin-top: 15px; }.field-label output { color: var(--accent); }.field-label input[type="range"] { width: 100%; accent-color: var(--accent); }.campaign-toggle { display: flex; align-items: center; gap: 9px; margin: 22px 0 17px; color: #c6c8d1; font-size: 11px; }.campaign-toggle input { display: none; }.campaign-toggle span { width: 31px; height: 17px; padding: 2px; border-radius: 10px; background: #3a3d49; transition: background .2s; }.campaign-toggle span::after { content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .2s; }.campaign-toggle input:checked + span { background: #a9bf2f; }.campaign-toggle input:checked + span::after { transform: translateX(14px); }.admin-preview { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 20px; padding: 13px; border: 1px solid rgba(230,255,66,.2); border-radius: 5px; background: rgba(230,255,66,.04); }.admin-preview span { color: #bec2cd; font-size: 10px; }.admin-preview strong { grid-row: span 2; color: var(--accent); font-size: 19px; }.admin-preview small { color: #7d828d; font-size: 9px; }.toast { position: fixed; z-index: 30; bottom: 27px; left: 50%; max-width: calc(100vw - 30px); padding: 11px 15px; transform: translate(-50%, 100px); border: 1px solid #47511e; border-radius: 5px; background: #202411; color: #e7fa90; box-shadow: 0 10px 35px rgba(0,0,0,.4); font-size: 11px; opacity: 0; transition: opacity .25s, transform .25s; }.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1050px) { .main-content { padding: 0 32px 50px; }.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.hero-content { width: 58%; }.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sidebar { width: 228px; transform: translateX(-100%); transition: transform .25s; }.sidebar.open { transform: translateX(0); box-shadow: 18px 0 40px rgba(0,0,0,.35); }.main-content { width: 100%; margin-left: 0; padding: 0 18px 40px; }.menu-toggle { display: block; border: 0; background: none; color: var(--ink); font-size: 21px; }.topbar { height: 70px; gap: 10px; }.search { flex: 1; width: auto; }.wallet { display: none; }.section-heading.compact { align-items: flex-start; margin-top: 8px; }.system-status { display: none; }.hero-card { min-height: 385px; }.hero-art { left: 0; opacity: .62; }.hero-content { width: 100%; padding: 43px 25px 28px; }.hero-description { max-width: 280px; }.hero-label { display: none; }.game-grid, .large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.game-art, .large .game-art { height: 145px; }.continue-list, .library-grid { grid-template-columns: 1fr; }.section-heading { margin-top: 32px; }.discovery-heading { align-items: flex-start; flex-direction: column; }.purchase-modal { grid-template-columns: 1fr; }.purchase-cover { height: 105px; }.purchase-info { padding: 24px; }.admin-modal { padding: 27px 21px; } }
@media (max-width: 390px) { .game-grid, .large { grid-template-columns: 1fr; }.top-actions { gap: 1px; }.hero-content h2 { font-size: 38px; } }

.field-label input[type="datetime-local"], .field-label input[type="email"], .field-label input[type="password"], .field-label input[type="text"] { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #353843; border-radius: 4px; background: #101218; color: var(--ink); font-size: 11px; outline: none; }
.field-label input[type="datetime-local"] { color-scheme: dark; padding-right: 4px; }
.audit-trail { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }.audit-trail .eyebrow { margin-bottom: 10px; }.audit-entries { display: grid; gap: 6px; max-height: 100px; overflow: auto; }.audit-entry { display: flex; justify-content: space-between; gap: 10px; color: #aeb1bc; font-size: 9px; }.audit-entry strong { color: #e1e2e7; }.audit-entry time { color: #737783; white-space: nowrap; }
.auth-modal { padding: 35px; }.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; color: #fff; font-size: 13px; letter-spacing: .16em; }.auth-brand .brand-mark { transform: rotate(45deg) scale(.78); transform-origin: center; }.auth-modal h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }.auth-modal form { display: grid; gap: 14px; margin-top: 22px; }.auth-error { min-height: 15px; margin: -5px 0 0; color: #ff9d9d; font-size: 10px; }.auth-switch { width: 100%; margin-top: 17px; border: 0; background: transparent; color: #a9adb7; font-size: 10px; }.auth-switch span { color: var(--accent); font-weight: 800; }.demo-hint { margin: 22px -35px -35px; padding: 14px 35px; border-top: 1px solid var(--line); color: #7e828d; font-size: 9px; line-height: 1.8; }.demo-hint b { color: #b8bbc4; font-family: "DM Mono", monospace; font-weight: 400; }

.secondary-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 14px; border: 1px solid #3d414d; border-radius: 4px; background: #20232d; color: #d8dbe2; font-size: 10px; font-weight: 800; transition: border-color .2s, color .2s; }.secondary-button:hover { border-color: var(--accent); color: var(--accent); }.secondary-button.full { width: 100%; margin-top: 10px; }.library-card .remove-button { width: 100%; margin-top: 7px; }.remove-button { min-height: 30px; border: 1px solid #47353c; border-radius: 3px; background: transparent; color: #d9aab7; font-size: 9px; font-weight: 700; }.remove-button:hover { border-color: #e67792; background: rgba(230,119,146,.08); color: #ffb3c4; }
.publish-modal { padding: 33px; }.publish-modal h2 { margin: 0; font-size: 26px; letter-spacing: -.05em; }.publish-modal form { display: grid; gap: 14px; }.publish-modal textarea { width: 100%; min-height: 75px; resize: vertical; padding: 9px 10px; border: 1px solid #353843; border-radius: 4px; background: #101218; color: var(--ink); font: inherit; font-size: 11px; outline: none; }.publish-modal .form-row { margin-top: 0; }
