@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ============ NATA XCLOUD — design system ============ */
:root {
  color-scheme: dark;
  --bg: #050705;
  --bg-2: #0a0d0a;
  --neon: #39ff14;
  --neon-dark: #123d16;
  --white: #ffffff;
  --gray: #a0a0a0;
  --text: #eef3ee;
  --muted: #a0a0a0;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(14, 19, 14, .62);
  --card: var(--bg-2);
  --danger: #ff5a5a;
  --warn: #ffc94d;
  --info: #5ee1ff;
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 0 0 1px rgba(57, 255, 20, .35), 0 0 24px rgba(57, 255, 20, .28);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 10px 30px -10px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'DM Sans', sans-serif;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(57, 255, 20, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(18, 61, 22, .35), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--neon); color: #000; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1b231b; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--neon-dark); }

/* ---------- marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; overflow: hidden;
  background: linear-gradient(145deg, #1a5c1f, var(--neon-dark)); box-shadow: inset 0 0 0 1px rgba(57, 255, 20, .5), 0 0 22px rgba(57, 255, 20, .25);
  font: 900 24px/1 var(--display); color: var(--white);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 900 21px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.brand-name b { color: var(--neon); font-weight: 900; text-shadow: 0 0 18px rgba(57, 255, 20, .55); }

/* ---------- botões ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--b); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text);
  font: 800 13px/1 var(--font); letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { border-color: rgba(57, 255, 20, .5); background: rgba(57, 255, 20, .06); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--neon); border-color: var(--neon); color: #031002; box-shadow: 0 0 0 0 rgba(57, 255, 20, .5), 0 10px 30px -10px rgba(57, 255, 20, .7); }
.btn-primary:hover { background: #5bff3f; color: #031002; box-shadow: 0 0 34px rgba(57, 255, 20, .55), 0 12px 30px -10px rgba(57, 255, 20, .9); }
.btn-primary::after { /* brilho que atravessa o botão */
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { --b: rgba(255, 90, 90, .45); color: #ff8d8d; }
.btn-danger:hover { background: rgba(255, 90, 90, .1); border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 11px; border-radius: 9px; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: #031002 transparent #031002 transparent; animation: spin .7s linear infinite; }
.btn:not(.btn-primary).loading::before { border-color: var(--neon) transparent var(--neon) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- superfícies ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.panel { border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h2, .section-title { margin: 0 0 4px; font: 800 26px/1.05 var(--display); letter-spacing: .6px; text-transform: uppercase; }
.panel-sub, .muted { color: var(--muted); font-size: 13px; }
.kicker { color: var(--neon); font: 800 11px/1 var(--font); letter-spacing: 3px; text-transform: uppercase; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: #cfd7cf; }
.field small { color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
  color: var(--white); font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--neon) 50%), linear-gradient(135deg, var(--neon) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(57, 255, 20, .12); background: rgba(0, 0, 0, .5); }
.field input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--neon); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status-line { min-height: 18px; font-size: 12px; color: var(--muted); }
.status-line.error { color: #ff9b9b; }
.status-line.ok { color: var(--neon); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 800 10px/1 var(--font); letter-spacing: 1.2px; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .55); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.plain::before { display: none; }
.badge.playable, .badge.ok, .badge.active, .badge.confirmed, .badge.approved, .badge.online { color: var(--neon); border-color: rgba(57, 255, 20, .35); }
.badge.coming_soon, .badge.pending, .badge.warn { color: var(--warn); border-color: rgba(255, 201, 77, .35); }
.badge.maintenance, .badge.info { color: var(--info); border-color: rgba(94, 225, 255, .35); }
.badge.danger, .badge.canceled, .badge.rejected, .badge.refunded, .badge.failed, .badge.expired, .badge.blocked { color: #ff8d8d; border-color: rgba(255, 90, 90, .35); }
.badge.neutral, .badge.offline { color: var(--muted); }

/* ---------- cartões de jogo ---------- */
.game-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 168px), 1fr)); }
.game-card {
  --i: 0;
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  aspect-ratio: 3 / 4; cursor: pointer; isolation: isolate; text-align: left; padding: 0; color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: card-in .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms);
}
.game-card img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; z-index: -2; }
.game-card .fallback { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; font: 900 64px var(--display); color: rgba(57, 255, 20, .25); background: radial-gradient(circle at 30% 20%, #18411b, #070a07 70%); }
.game-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 62%, rgba(3, 5, 3, .96)); }
.game-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: grid; gap: 6px; }
.game-card .title { font: 800 19px/1.02 var(--display); letter-spacing: .4px; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .sub { font-size: 11px; color: #b9c3b9; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.game-card .top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.game-card .play-hint { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: #031002; box-shadow: 0 0 40px rgba(57, 255, 20, .7); opacity: 0; scale: .6; transition: opacity .3s, scale .4s var(--ease); }
.game-card .play-hint .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-6px) scale(1.02); border-color: rgba(57, 255, 20, .55); box-shadow: 0 0 0 1px rgba(57, 255, 20, .4), 0 22px 50px -12px rgba(57, 255, 20, .35), var(--shadow); outline: none; }
.game-card:hover img.cover { transform: scale(1.08); }
.game-card:hover .play-hint, .game-card:focus-visible .play-hint { opacity: 1; scale: 1; }
.game-card.unavailable img.cover { filter: grayscale(.7) brightness(.7); }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); cursor: pointer; color: #fff; transition: transform .2s var(--ease), color .2s, background .2s; }
.fav-btn:hover { transform: scale(1.12); color: var(--neon); }
.fav-btn .icon { width: 17px; height: 17px; }
.fav-btn.on { color: var(--neon); background: rgba(57, 255, 20, .15); border-color: rgba(57, 255, 20, .5); }
.fav-btn.on .icon { fill: currentColor; }
.fav-btn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* trilho horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--card-min, 176px), 200px); gap: 18px; overflow-x: auto; padding: 8px 4px 22px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.section { margin: 38px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 13px; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 700 12px/1 var(--font); cursor: pointer; transition: all .2s var(--ease); color: #d5ddd5; }
.chip:hover { border-color: rgba(57, 255, 20, .5); color: #fff; }
.chip.on { background: var(--neon); border-color: var(--neon); color: #031002; box-shadow: 0 0 20px rgba(57, 255, 20, .35); }
.chip small { opacity: .65; margin-left: 4px; }

/* ---------- diálogo / toast ---------- */
dialog.modal { padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); color: var(--text); width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow), 0 0 60px rgba(57, 255, 20, .08); }
dialog.modal.wide { width: min(920px, calc(100vw - 28px)); }
dialog.modal[open] { animation: modal-in .35s var(--ease); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.modal-body { padding: 26px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 14px 16px; border-radius: 14px; font-size: 13px; border-left: 3px solid var(--neon); animation: toast-in .4s var(--ease); box-shadow: var(--shadow); }
.toast.error { border-left-color: var(--danger); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- casca do app (sidebar + topo) ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 24px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 13, 10, .92), rgba(5, 7, 5, .92)); backdrop-filter: blur(20px); z-index: 20; }
.sidebar .brand { padding: 0 8px; }
.nav { display: grid; gap: 4px; }
.nav-label { padding: 14px 12px 6px; color: #5f6b5f; font: 800 10px/1 var(--font); letter-spacing: 2.4px; text-transform: uppercase; }
.nav a, .nav button {
  position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 12px; border: 0; background: none; width: 100%;
  color: #b8c2b8; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s;
}
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(57, 255, 20, .16), rgba(57, 255, 20, .02)); }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--neon); box-shadow: 0 0 14px var(--neon); }
.nav a.on .icon { color: var(--neon); filter: drop-shadow(0 0 6px rgba(57, 255, 20, .7)); }
.nav .count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--neon); color: #031002; font-size: 11px; font-weight: 800; text-align: center; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.plan-card { padding: 16px; border-radius: 14px; background: linear-gradient(140deg, rgba(57, 255, 20, .16), rgba(18, 61, 22, .3) 60%, rgba(0, 0, 0, .2)); border: 1px solid rgba(57, 255, 20, .25); font-size: 12px; }
.plan-card strong { display: block; font: 800 18px var(--display); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 2px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 16px 34px; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.topbar.scrolled { background: rgba(5, 7, 5, .82); backdrop-filter: blur(18px); border-color: var(--line); }
.search { position: relative; flex: 1; max-width: 520px; }
.search .icon { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search input { padding-left: 44px; border-radius: 999px; background: rgba(255, 255, 255, .045); border-color: var(--line); }
.search kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 700 11px var(--font); color: var(--muted); border: 1px solid var(--line-2); padding: 2px 7px; border-radius: 6px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; transition: all .2s; }
.icon-btn:hover { border-color: rgba(57, 255, 20, .5); color: var(--neon); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); border: 2px solid var(--bg); }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-decoration: none; transition: border-color .2s; }
.profile-chip:hover { border-color: rgba(57, 255, 20, .5); }
.profile-chip span { font-size: 13px; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, #1d6a22, var(--neon-dark)); font: 800 16px var(--display); text-transform: uppercase; box-shadow: 0 0 0 2px rgba(57, 255, 20, .45); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 108px; height: 108px; font-size: 46px; box-shadow: 0 0 0 3px var(--neon), 0 0 40px rgba(57, 255, 20, .35); }
.view { padding: 8px 34px 40px; flex: 1; }
.view.enter { animation: view-in .5s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* menus suspensos */
.popover { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 24px)); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); animation: modal-in .25s var(--ease); z-index: 40; max-height: 70vh; overflow: auto; }
.popover h3 { margin: 8px 10px 10px; font: 800 18px var(--display); text-transform: uppercase; letter-spacing: .5px; }
.note { display: grid; gap: 2px; padding: 11px 12px; border-radius: 12px; font-size: 13px; }
.note:hover { background: rgba(255, 255, 255, .04); }
.note.unread { background: rgba(57, 255, 20, .06); }
.note small { color: var(--muted); font-size: 11px; }

/* tabela de dados (admin + perfil) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; padding: 12px 14px; color: var(--muted); font: 800 10px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: rgba(57, 255, 20, .035); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thumb { width: 42px; height: 56px; border-radius: 8px; object-fit: cover; background: #111; flex: none; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cell-main strong { display: block; }

/* tabs */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 9px 16px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 700 13px var(--font); cursor: pointer; white-space: nowrap; transition: all .2s; }
.tab.on { background: var(--neon); color: #031002; box-shadow: 0 0 18px rgba(57, 255, 20, .3); }

/* skeleton */
.skeleton { background: linear-gradient(90deg, #0d110d 0%, #162016 50%, #0d110d 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- carregamento de página ---------- */
.page-loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity .5s, visibility .5s; }
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-ring { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(57, 255, 20, .15); border-top-color: var(--neon); animation: spin .9s linear infinite; box-shadow: 0 0 30px rgba(57, 255, 20, .2); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) { :root { --sidebar: 84px; } .sidebar .brand-name, .nav a span, .nav button span, .nav-label, .plan-card, .nav .count { display: none; } .nav a, .nav button { justify-content: center; } .sidebar { padding: 22px 12px; } .sidebar .brand { justify-content: center; padding: 0; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  .sidebar .brand, .sidebar-foot, .nav-label, .nav .mobile-hide { display: none; }
  .nav { display: flex; flex: 1; justify-content: space-around; gap: 0; }
  .nav a, .nav button { flex-direction: column; gap: 3px; padding: 8px 6px; font-size: 10px; width: auto; }
  .nav a span, .nav button span { display: block; }
  .nav a.on::before { left: 22%; right: 22%; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .mobile-brand { display: flex; }
  .topbar .mobile-brand .brand-name { display: none; }
  .search { min-width: 0; }
  .search kbd, .main > .topbar .profile-chip { display: none; }
  .view { padding: 4px 16px 100px; }
  .game-grid { gap: 12px; --card-min: 140px; }
  .rail { grid-auto-columns: 150px; gap: 12px; }
  .panel { padding: 18px; }
  .toasts { bottom: 90px; left: 16px; right: 16px; max-width: none; }
}
.mobile-brand { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
