:root {
  --ink: #151426;
  --muted: #727186;
  --line: #e9e7f0;
  --surface: #ffffff;
  --bg: #f1f2f6;
  --purple: #536178;
  --purple-dark: #333e52;
  --sidebar: #111929;
  --danger: #d73d59;
  --success: #16865b;
  --shadow: 0 12px 35px rgba(30, 24, 67, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
.app-shell { min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #182236, #0d1422); border-radius: 13px; color: #fff; display: flex; flex-direction: column; height: calc(100vh - 26px); left: 16px; padding: 25px 16px 18px; position: fixed; top: 13px; width: 250px; z-index: 20; }
.brand { align-items: center; display: flex; gap: 12px; margin: 0 8px 34px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font: 700 17px "Space Grotesk"; }
.brand small { color: #9d9ab8; font-size: 11px; margin-top: 2px; }
.brand-mark { align-items: center; background: linear-gradient(135deg, #8b72ff, #5e3bda); border-radius: 12px; box-shadow: 0 8px 20px rgba(108,76,241,.3); display: inline-flex; font: 700 13px "Space Grotesk"; height: 40px; justify-content: center; letter-spacing: -.5px; width: 40px; }
.brand-mark.small { border-radius: 8px; height: 30px; width: 30px; }
.brand-mark.large { border-radius: 18px; font-size: 24px; height: 72px; width: 72px; }
.brand-word { font: italic 700 17px "Space Grotesk"; letter-spacing: -.8px; padding: 8px 0; }.brand-word span { color: #d9b762; }
.nav { flex: 1; overflow-y: auto; }
.nav-label { color: #6f6c89; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; margin: 25px 12px 8px; text-transform: uppercase; }
.nav-item { align-items: center; border-radius: 9px; color: #b8b6ca; display: flex; gap: 11px; margin: 3px 0; min-height: 42px; padding: 10px 12px; transition: .2s; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.13); border-left: 3px solid #e0b94f; color: #fff; padding-left: 9px; }
.nav-icon { color: #8f8ba8; font-size: 20px; line-height: 1; width: 23px; }
.studio-link small { background: rgba(255,255,255,.08); border-radius: 10px; font-size: 10px; margin-left: auto; padding: 2px 7px; }
.studio-number { align-items: center; background: #2b2942; border-radius: 7px; display: flex; font-size: 10px; height: 23px; justify-content: center; width: 23px; }
.active .studio-number { background: #d4ae4f; color: #111929; }
.nav-empty { color: #706d87; display: block; font-size: 12px; padding: 8px 12px; }
.sidebar-footer { color: #b4b1c6; padding: 17px 7px 0; text-align: center; }
.footer-logo { align-items: center; display: flex; font-size: 12px; font-weight: 600; gap: 9px; }
.version { color: #a8adba; display: block; font-size: 10px; margin: 8px 0 0; }
.footer-emblem { display: block; height: 88px; margin: 0 auto 14px; object-fit: contain; width: 88px; }
.main { margin-left: 286px; min-height: 100vh; }
.topbar { align-items: center; background: transparent; display: flex; height: 88px; justify-content: space-between; padding: 0 36px; position: relative; z-index: 10; }
.topbar h1 { font-size: 20px; margin: 1px 0 0; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 0 0 3px; text-transform: uppercase; }
.eyebrow.light { color: #a995ff; }
.user-menu { align-items: center; display: flex; gap: 10px; }
.avatar { align-items: center; background: #eeeaff; border-radius: 50%; color: var(--purple); display: inline-flex; font-weight: 700; height: 38px; justify-content: center; width: 38px; }
.avatar { overflow: hidden; }.avatar img { height: 100%; object-fit: cover; width: 100%; }
.user-copy { display: flex; flex-direction: column; margin-right: 9px; }
.user-copy strong { font-size: 13px; }
.user-copy small { color: var(--muted); font-size: 11px; }
.content { margin: 0 auto; max-width: 1500px; padding: 4px 36px 36px; }
.page-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 25px; }
.page-heading h2 { font-size: 28px; letter-spacing: -.7px; margin: 0 0 5px; }
.page-heading p:last-child { color: var(--muted); margin: 0; }
.stake-link { color: #52617a; text-decoration: underline; text-decoration-color: #b7bdc8; text-underline-offset: 3px; }.stake-link:hover { color: var(--ink); }
.button { align-items: center; border: 0; border-radius: 9px; display: inline-flex; font-weight: 600; justify-content: center; min-height: 43px; padding: 0 18px; transition: .2s; }
.button.primary { background: var(--purple); box-shadow: 0 7px 17px rgba(108,76,241,.2); color: #fff; }
.button.primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.button:disabled,.button.loading { cursor: wait; opacity: .72; pointer-events: none; transform: none; }
.button.secondary { background: #f0edff; color: var(--purple); }
.button.ghost { background: transparent; border: 1px solid var(--line); color: #5f5c70; }
.button.compact { min-height: 36px; padding: 0 13px; }
.button.full { width: 100%; }
.stats-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.stat-card { align-items: center; background: var(--surface); border: 1px solid #efedf4; border-radius: 15px; box-shadow: var(--shadow); display: flex; gap: 15px; padding: 21px; }
.stat-icon { align-items: center; border-radius: 12px; display: flex; font-size: 11px; font-weight: 700; height: 46px; justify-content: center; width: 46px; }
.stat-icon.violet { background: #eee9ff; color: #6d4df2; }.stat-icon.blue { background: #e5f1ff; color: #3280d6; }.stat-icon.green { background: #e1f7ed; color: #16865b; }.stat-icon.orange { background: #fff0db; color: #c77815; }
.stat-card div { display: flex; flex-direction: column; }
.stat-card strong { font: 700 25px "Space Grotesk"; }
.stat-card div span { color: var(--muted); font-size: 12px; margin-top: 1px; }
.panel { background: var(--surface); border: 1px solid #eceaf2; border-radius: 15px; box-shadow: 0 5px 18px rgba(30, 34, 45, .05); overflow: hidden; }
.panel-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 20px 22px; }
.panel-heading h3 { font-size: 16px; margin: 0 0 4px; }.panel-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; } th { color: #8b899b; font-size: 10px; letter-spacing: .7px; text-align: left; text-transform: uppercase; } th, td { border-bottom: 1px solid #efedf4; padding: 15px 22px; } tbody tr:last-child td { border-bottom: 0; } td { color: #686678; font-size: 13px; } td strong { color: var(--ink); }
.badge { border-radius: 20px; display: inline-flex; font-size: 10px; font-weight: 600; padding: 4px 9px; }.badge.neutral { background: #f0eff5; color: #656273; }.badge.system { background: #ede9ff; color: var(--purple); vertical-align: 2px; }.badge.you { background: #e3f7ed; color: var(--success); }
.actions { display: flex; gap: 14px; }.text-link { color: var(--purple); font-size: 12px; font-weight: 600; }
.split-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(300px, .72fr) minmax(430px, 1.28fr); }.split-layout.wide-form { grid-template-columns: minmax(330px, .85fr) minmax(480px, 1.15fr); }
.form-panel { position: sticky; top: 106px; }
.stack-form { display: flex; flex-direction: column; gap: 17px; padding: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }.field > span, fieldset legend { color: #464355; font-size: 12px; font-weight: 600; }
.field > span em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 400; }
.field input, .field select { background: #fbfafe; border: 1px solid #dddbe6; border-radius: 9px; color: var(--ink); height: 45px; outline: none; padding: 0 13px; transition: .2s; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,76,241,.1); }
.field input::placeholder { color: #aaa7b7; }
.password-control { display: block; position: relative; }
.field .password-control input { padding-right: 48px; }
.password-toggle { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #8a8798; cursor: pointer; display: flex; height: 33px; justify-content: center; padding: 0; position: absolute; right: 7px; top: 6px; transition: .2s; width: 33px; }
.password-toggle:hover { background: #f0eef6; color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid rgba(108,76,241,.45); outline-offset: 2px; }
.eye-icon { border: 1.8px solid currentColor; border-radius: 75% 15%; display: block; height: 14px; position: relative; transform: rotate(45deg); width: 14px; }
.eye-icon:after { background: currentColor; border-radius: 50%; content: ""; height: 5px; left: 3.5px; position: absolute; top: 3.5px; width: 5px; }
.password-toggle.is-visible .eye-icon:before { background: currentColor; content: ""; height: 20px; left: 6px; position: absolute; top: -4px; transform: rotate(90deg); width: 2px; }
.file-field input { height: auto; padding: 10px; }.file-field input::file-selector-button { background: #eef0f4; border: 0; border-radius: 6px; color: #364158; cursor: pointer; font-weight: 600; margin-right: 10px; padding: 8px 10px; }.file-field small { color: var(--muted); font-size: 10px; }
.standalone-form { max-width: 680px; }.form-actions { border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; padding-top: 18px; }.field > small { color: var(--muted); font-size: 10px; }.current-logo { align-items: center; display: flex; gap: 9px; margin: 2px 0 5px; }.current-logo img { background: #f0f1f4; border-radius: 9px; height: 48px; object-fit: contain; width: 48px; }.current-logo small { color: var(--muted); font-size: 10px; }
.user-image-preview img { border-radius: 50%; object-fit: cover; }
.list-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 72px; padding: 12px 20px; }.list-row:last-child { border-bottom: 0; }
.list-primary { align-items: center; display: flex; gap: 12px; min-width: 0; }.list-primary > div { display: flex; flex-direction: column; min-width: 0; }.list-primary strong { font-size: 13px; }.list-primary small { color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.list-icon { align-items: center; background: #eeeaff; border-radius: 10px; color: var(--purple); display: flex; flex: 0 0 auto; font-size: 10px; font-weight: 700; height: 38px; justify-content: center; width: 38px; }.list-icon.blue { background: #e5f1ff; color: #3280d6; }
.game-list-logo { background: #f0f1f4; border-radius: 9px; height: 38px; object-fit: contain; padding: 3px; width: 38px; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 7px; display: flex; font-size: 21px; height: 30px; justify-content: center; width: 30px; }.icon-button.danger { color: #b6b2bf; }.icon-button.danger:hover { background: #fff0f2; color: var(--danger); }
.row-actions { align-items: center; color: var(--purple); display: flex; font-size: 11px; font-weight: 700; gap: 10px; }
.edit-link { background: #eef0f4; border-radius: 7px; color: #3f4b60; padding: 7px 10px; }
.permission-list { border: 0; margin: 0; padding: 0; }.permission-list legend { margin-bottom: 9px; }
.check-row { align-items: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; gap: 10px; margin-bottom: 7px; padding: 10px; }.check-row input { display: none; }.check-box { align-items: center; border: 1px solid #d6d3e1; border-radius: 5px; color: transparent; display: flex; height: 19px; justify-content: center; width: 19px; }.check-row input:checked + .check-box { background: var(--purple); border-color: var(--purple); color: #fff; }
.role-card { border-bottom: 1px solid var(--line); padding: 18px 21px; }.role-card:last-child { border-bottom: 0; }.role-top { display: flex; justify-content: space-between; }.role-top h3 { font-size: 14px; margin: 0 0 4px; }.role-top p { color: var(--muted); font-size: 11px; margin: 0; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }.permission-tags span { background: #f5f3f9; border-radius: 5px; color: #716e80; font-size: 10px; padding: 5px 7px; }.permission-tags em { color: #aaa7b3; font-size: 11px; }
.switch-row { align-items: center; display: flex; justify-content: space-between; position: relative; }.switch-row > span { display: flex; flex-direction: column; }.switch-row small { color: var(--muted); font-size: 10px; margin-top: 3px; }.switch-row input { height: 1px; opacity: 0; position: absolute; width: 1px; }.switch-row i { background: #d7d4df; border-radius: 20px; height: 25px; position: relative; transition: .2s; width: 44px; }.switch-row i:after { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); content: ""; height: 19px; left: 3px; position: absolute; top: 3px; transition: .2s; width: 19px; }.switch-row input:checked + i { background: var(--purple); }.switch-row input:checked + i:after { transform: translateX(19px); }
.user-meta { align-items: center; display: flex; gap: 12px; margin-left: auto; margin-right: 18px; }.status { align-items: center; color: var(--muted); display: inline-flex; font-size: 10px; gap: 5px; }.status i { background: #aaa; border-radius: 50%; height: 6px; width: 6px; }.status.enabled i { background: #20a876; }.status.enabled { color: var(--success); }.status.disabled i { background: #d65868; }.text-button { background: none; border: 0; color: var(--purple); font-size: 11px; font-weight: 600; padding: 5px; }.list-avatar { height: 38px; width: 38px; }
.games-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, 242px); justify-content: start; }
.game-card { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 5px 14px rgba(28,34,45,.06); display: flex; flex-direction: column; height: 192px; padding: 22px; width: 242px; }
.game-art { align-items: center; background: #0b0d12 !important; border-radius: 11px; color: #fff; display: flex; height: 48px; justify-content: center; overflow: hidden; position: relative; width: 48px; }.game-art > span { font: italic 700 29px Georgia, serif; }.game-art > img { height: 100%; object-fit: contain; width: 100%; }.game-art:before { display: none; }
.game-card > h3 { font: 600 15px "DM Sans", sans-serif; margin: 20px 0 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.game-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: auto; }.game-actions .button { font-size: 11px; min-height: 39px; padding: 0 8px; }.button.alpha,.button.beta { background: #f7efdf; color: #9a6f27; }.button.alpha:hover,.button.beta:hover { background: #efe2c8; }
.no-links { color: var(--muted); font-size: 10px; grid-column: 1 / -1; padding-top: 7px; }.muted-dash { color: #aaa7b3; }
.empty-state { color: var(--muted); padding: 60px 25px; text-align: center; }.empty-state > span { align-items: center; background: #f0edff; border-radius: 50%; color: var(--purple); display: inline-flex; font-size: 26px; height: 55px; justify-content: center; margin-bottom: 13px; width: 55px; }.empty-state h3 { color: var(--ink); margin-bottom: 7px; }.empty-state p { margin-bottom: 15px; }.empty-state.small { padding: 32px 20px; }
.alert { border-radius: 10px; font-size: 12px; margin-bottom: 20px; padding: 12px 15px; transition: .4s; }.alert.success { background: #e3f7ed; border: 1px solid #c8eddb; color: #13714e; }.alert.error { background: #fff0f2; border: 1px solid #f3d7dc; color: #b8344c; }.alert.fade { opacity: 0; transform: translateY(-5px); }
.alert.warning { background: #fff7e6; border: 1px solid #f0dfb8; color: #8a641f; }
.table-game { align-items: center; display: inline-flex; gap: 9px; }.table-game img { border-radius: 7px; height: 30px; object-fit: contain; width: 30px; }
.login-page { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }.login-visual { align-items: center; background: #18162e; color: #fff; display: flex; overflow: hidden; padding: 10%; position: relative; }.visual-grid { background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 44px 44px; inset: 0; position: absolute; transform: perspective(500px) rotateX(20deg) scale(1.3); }.login-visual:after { background: radial-gradient(circle, rgba(111,75,243,.5), transparent 65%); content: ""; filter: blur(10px); height: 500px; position: absolute; right: -160px; top: 0; width: 500px; }.visual-content { max-width: 570px; position: relative; z-index: 1; }.visual-content .eyebrow { margin-top: 35px; }.visual-content h1 { font-size: clamp(40px,5vw,66px); letter-spacing: -2.5px; line-height: 1.02; margin: 12px 0 25px; }.visual-content > p:last-child { color: #aaa6c3; font-size: 16px; line-height: 1.7; max-width: 480px; }
.login-panel { align-items: center; background: #faf9fc; display: flex; justify-content: center; padding: 35px; }.login-card { max-width: 390px; width: 100%; }.login-card h2 { font-size: 30px; letter-spacing: -1px; margin: 5px 0 7px; }.login-card .muted { color: var(--muted); margin-bottom: 30px; }.login-card .field { margin-bottom: 17px; }.login-card .button { margin-top: 6px; }.login-note { color: #9b98a8; font-size: 10px; margin-top: 18px; text-align: center; }.mobile-brand { align-items: center; display: none; font: 700 16px "Space Grotesk"; gap: 10px; margin-bottom: 45px; }
.menu-toggle { background: none; border: 0; display: none; font-size: 22px; }.sidebar-backdrop { display: none; }.error-page { margin: 8vh auto; max-width: 650px; }
@media (max-width: 1080px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.split-layout,.split-layout.wide-form { grid-template-columns: 1fr; }.form-panel { position: static; }.user-meta { display: none; } }
@media (max-width: 760px) {
  .sidebar { left: 0; top: 0; height: 100vh; border-radius: 0; transform: translateX(-100%); transition: .25s; }.menu-open .sidebar { transform: translateX(0); }.menu-open .sidebar-backdrop { background: rgba(12,10,30,.45); display: block; inset: 0; position: fixed; z-index: 15; }
  .main { margin-left: 0; }.menu-toggle { display: block; }.topbar { height: 72px; padding: 0 17px; }.topbar > div:nth-child(2) { margin-right: auto; }.topbar h1 { font-size: 16px; }.topbar .eyebrow,.user-copy { display: none; }.topbar .avatar { height: 34px; width: 34px; }.topbar .button { font-size: 11px; min-height: 32px; padding: 0 10px; }.content { padding: 23px 16px; }.page-heading { align-items: start; gap: 15px; }.page-heading h2 { font-size: 24px; }.stats-grid { gap: 10px; grid-template-columns: 1fr 1fr; }.stat-card { gap: 10px; padding: 15px; }.stat-icon { height: 38px; width: 38px; }.stat-card strong { font-size: 21px; }.panel-heading { padding: 17px; }.list-row { padding: 12px 15px; }.user-row { align-items: flex-start; flex-wrap: wrap; }.user-row .row-actions { margin-left: 50px; }.login-page { display: block; }.login-visual { display: none; }.login-panel { min-height: 100vh; padding: 25px; }.mobile-brand { display: flex; }.games-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }.game-card { width: 100%; }
}
