@charset "UTF-8";
:root {
  color-scheme:dark;
  --bg:#101419;
  --sidebar:#0b1015;
  --panel:#181f27;
  --panel-hover:#1d2730;
  --line:#2a3540;
  --text:#edf2f4;
  --muted:#93a6b3;
  --accent:#29d9cc;
  --accent-soft:#17383b;
  --warm:#dbb16c;
  --error:#f5a8a8;
  --radius:10px;
  --side:88px;
  font-family:Inter,"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:28px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input {
  font:inherit;
}

button,a,input {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.45;
}

button:disabled:hover {
  transform:none;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

h1,h2,h3,p {
  margin:0;
}

.hidden {
  display:none!important;
}

.skip-link {
  position:fixed;
  top:-80px;
  left:104px;
  z-index:100;
  padding:10px 18px;
  background:var(--accent);
  color:var(--sidebar);
}

.skip-link:focus {
  top:8px;
}

.sidebar {
  width:var(--side);
  position:fixed;
  inset:0 auto 0 0;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  z-index:30;
  display:flex;
  align-items:center;
  flex-direction:column;
}

.brand-symbol {
  display:block;
  width:42px;
  margin:32px 0 42px;
  color:var(--accent);
}

.brand-symbol svg {
  display:block;
  width:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linejoin:round;
}

.side-links {
  display:grid;
  gap:18px;
  width:100%;
  padding:0 11px;
}

.side-links a {
  position:relative;
  min-height:70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:9px;
  color:var(--muted);
  font-size:11px;
  transition:background .18s,color .18s;
}

.side-links a:hover {
  background:var(--panel);
  color:var(--text);
}

.side-links a.active {
  background:var(--accent-soft);
  color:var(--accent);
}

.side-links a.active:before {
  content:"";
  position:absolute;
  left:-11px;
  width:2px;
  height:26px;
  background:var(--accent);
}

.side-links svg {
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.side-caption {
  margin-top:auto;
  padding:24px 0;
  font-size:8px;
  letter-spacing:.12em;
  color:var(--muted);
}

.site-shell {
  margin-left:var(--side);
  position:relative;
}

.topbar {
  height:82px;
  position:absolute;
  inset:0 0 auto;
  z-index:10;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.wordmark {
  font-weight:800;
  letter-spacing:.015em;
  font-size:17px;
  white-space:nowrap;
}

.wordmark span {
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-left:30px;
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:13px;
  color:var(--accent);
  font-size:12px;
  transition:color .18s;
}

.text-link:hover {
  color:#adfff8;
}

.account-link {
  color:var(--text);
  max-width:36%;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--bg);
}

.account-link span:first-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hero {
  position:relative;
  isolation:isolate;
  min-height:640px;
  display:flex;
  align-items:flex-end;
  padding:145px 40px 62px;
  overflow:hidden;
}

.hero-art {
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
}

.hero-art.has-image:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(16,20,25,.82),rgba(16,20,25,.15) 80%),linear-gradient(0deg,var(--bg),rgba(16,20,25,.65) 20%,transparent 72%);
}

.hero-image {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 35%;
}

.hero-selection {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 24px;
  margin:0 0 21px;
}

#hero-default-title {
  color:var(--text);
}

#hero-game-title {
  color:var(--text);
  overflow-wrap:anywhere;
}

#hero-description {
  white-space:pre-line;
  overflow-wrap:anywhere;
}

.preview-status {
  color:var(--muted);
  font-size:11px;
  margin-top:13px;
}

.hero-content {
  position:relative;
  z-index:1;
  max-width:690px;
  animation:rise-in .6s ease both;
}

.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:.13em;
  color:var(--accent);
  margin-bottom:13px;
}

.eyebrow.warm {
  color:var(--warm);
}

h1 {
  font-size:clamp(40px,4.7vw,68px);
  line-height:1.24;
  letter-spacing:-.035em;
  font-weight:750;
}

h1 span {
  color:#c2d0d8;
}

.hero-copy {
  font-size:15px;
  color:#c0ced6;
  line-height:1.9;
  margin-top:25px;
}

.hero-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:35px;
}

.button {
  min-height:46px;
  padding:10px 22px;
  border:1px solid transparent;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-weight:600;
  font-size:13px;
  line-height:1.5;
  transition:background .18s,border-color .18s,color .18s,transform .18s;
}

.button svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.button.primary {
  background:var(--accent);
  color:#092b2a;
}

.button.primary:hover:not(:disabled) {
  background:#71e6dc;
  transform:translateY(-1px);
}

.button.secondary {
  background:var(--panel);
  border-color:var(--line);
  color:var(--text);
}

.button.secondary:hover:not(:disabled) {
  background:var(--panel-hover);
  border-color:#4a626e;
}

.button.small {
  font-size:11px;
  min-height:36px;
  padding:8px 13px;
  font-weight:400;
}

.hero-note {
  font-size:10px;
  color:var(--muted);
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
}

.hero-note span {
  color:#7f949f;
}

#download {
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  gap:48px;
  align-items:center;
  padding-top:126px;
  padding-bottom:48px;
  min-height:660px;
}

#download .hero-content { min-width:0; }
.hero-shortcuts { position:relative; z-index:1; min-width:0; }
.hero-shortcuts-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; padding:7px 8px; border-radius:6px; background:#101419e6; }
.hero-shortcuts-heading h2 { font-size:12px; font-weight:500; color:var(--text); }
.hero-shortcuts-heading > span { font-size:10px; color:var(--muted); }
.hero-games { display:flex; position:relative; flex-direction:column; gap:10px; max-height:436px; overflow-y:auto; overflow-x:hidden; padding:2px; scrollbar-width:none; -ms-overflow-style:none; overscroll-behavior:contain; }
html::-webkit-scrollbar, .hero-games::-webkit-scrollbar, .game-grid::-webkit-scrollbar { display:none; width:0; height:0; }
.shortcut-empty { font-size:12px; color:var(--muted); padding:26px 18px; border:1px solid var(--line); border-radius:7px; background:var(--panel); }
.shortcut-game { display:block; position:relative; flex:0 0 auto; width:100%; padding:0; border:0; border-radius:7px; background:#101419eb; color:var(--text); text-align:left; }
.shortcut-game .game-cover::after { content:""; position:absolute; inset:25% 0 0; z-index:1; background:linear-gradient(transparent,#0b1015e8); pointer-events:none; }
.shortcut-game .game-card-name { position:absolute; z-index:2; left:10px; right:10px; bottom:8px; font-size:12px; line-height:1.5; margin:0; text-align:left; color:#edf2f4; text-shadow:0 1px 3px #000; }
.shortcut-game .game-cover-fallback { padding-bottom:32px; }
.hero-more { display:flex; justify-content:center; align-items:center; gap:10px; margin-top:9px; padding:7px 10px; border-radius:6px; background:#101419e6; color:var(--text); font-size:12px; }
.hero-more strong { color:var(--accent); font-size:14px; font-weight:600; }
.hero-more:hover { background:var(--panel); }

.content-section {
  max-width:1380px;
  margin:0 auto;
  padding:46px 40px;
}

.start-section {
  padding-top:0;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:24px;
}

.section-heading h2,.query-copy h2 {
  font-size:29px;
  line-height:1.3;
  letter-spacing:-.025em;
}

.section-heading p:not(.eyebrow) {
  font-size:12px;
  color:var(--muted);
  margin-top:12px;
}

.compact-heading {
  display:block;
  margin-bottom:21px;
}

.compact-heading .eyebrow {
  margin-bottom:7px;
}

.compact-heading h2 {
  font-size:23px;
}

.compact-heading>p:last-child {
  margin-top:8px;
}

.start-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.start-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  position:relative;
}

.step-number {
  color:#526674;
  font-size:11px;
  letter-spacing:.1em;
  position:absolute;
  right:22px;
  top:22px;
}

.start-card h3 {
  font-size:15px;
  font-weight:600;
  margin:2px 32px 10px 0;
}

.start-card p {
  color:var(--muted);
  font-size:12px;
  max-width:290px;
  min-height:43px;
}

.start-card a {
  margin-top:22px;
}

.section-status {
  color:var(--muted);
  font-size:11px;
  margin-bottom:14px;
  min-height:19px;
}

.section-status.error {
  color:var(--warm);
}

.section-status:empty { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.library-toolbar { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:25px 0 24px; padding-bottom:23px; border-bottom:1px solid var(--line); }
.game-search { display:flex; align-items:center; width:min(470px,100%); border:1px solid #34424e; border-radius:7px; background:var(--panel); overflow:hidden; }
.game-search:focus-within { border-color:var(--accent); }
.game-search svg { width:18px; height:18px; margin-left:14px; flex-shrink:0; fill:none; stroke:var(--muted); stroke-width:1.6; }
.game-search input { border:0; border-radius:0; background:transparent; min-height:42px; padding:10px 12px; font-size:12px; }
.game-search input:focus { outline:none; }
.game-search .text-button { padding:9px 12px 9px 0; font-size:10px; white-space:nowrap; }
.search-submit { align-self:stretch; flex-shrink:0; padding:8px 20px; border:0; border-left:1px solid #2e5556; background:var(--accent-soft); color:var(--accent); font-size:12px; }
.search-submit:hover { background:#204a4b; }
.result-count { color:var(--muted); font-size:11px; white-space:nowrap; }

/* Keep the title and search above the independently scrollable results.
   The section fits between the anchor offset and the viewport bottom. */
#games {
  display:flex;
  flex-direction:column;
  height:calc(100vh - 52px);
  height:calc(100dvh - 52px);
  min-height:460px;
  max-height:900px;
  padding-top:24px;
  padding-bottom:0;
}
#games > .section-heading,#games > .library-toolbar,#games > .section-status { flex:0 0 auto; }
#games > .section-heading { margin-bottom:12px; }
#games > .library-toolbar { margin-top:16px; margin-bottom:18px; padding-bottom:16px; }

.game-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px 22px;
  flex:1 1 auto;
  min-height:180px;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
  padding:2px 2px 12px;
  scrollbar-width:none;
  -ms-overflow-style:none;
  overscroll-behavior:contain;
}

.game-card {
  min-width:0;
}

.game-preview { display:block; width:100%; padding:0; border:0; background:transparent; color:var(--text); text-align:center; }
.game-cover { display:grid; place-items:center; position:relative; aspect-ratio:16/9; width:100%; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:var(--panel); transition:border-color .18s; }
.game-cover-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; pointer-events:none; transition:opacity .18s; }
.game-cover.is-loaded .game-cover-image { opacity:1; }
.game-cover-fallback { color:#8095a3; font-size:11px; padding:12px; }
.game-cover.is-loaded .game-cover-fallback { visibility:hidden; }
.game-cover-selected { display:none; position:absolute; right:8px; top:8px; padding:3px 8px; border-radius:4px; color:var(--accent); background:#0b1418e8; font-size:10px; }
.game-preview.selected .game-cover-selected { display:block; }
.game-card-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:13px; line-height:1.65; font-weight:400; color:#becdd6; margin-top:10px; min-height:22px; }
.game-preview:hover .game-cover,.shortcut-game:hover .game-cover { border-color:#748a96; }
.game-preview.selected .game-cover,.shortcut-game.selected .game-cover { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.game-preview.selected .game-card-name,.shortcut-game.selected .game-card-name { color:var(--accent); }
.game-preview:hover .game-card-name,.shortcut-game:hover .game-card-name { color:var(--text); }
.empty-state .text-button { margin-top:17px; color:var(--accent); }

.empty-state {
  grid-column:1/-1;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  padding:46px 24px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

.text-button {
  border:0;
  padding:6px 0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
}

.text-button:hover:not(:disabled) {
  color:var(--accent);
}

.query-panel {
  display:grid;
  grid-template-columns:1fr 1.65fr;
  gap:60px;
  border-top:1px solid var(--line);
  padding-top:50px;
  padding-bottom:22px;
}

.query-copy p:not(.eyebrow) {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  margin:20px 0;
}

.query-workspace {
  align-self:center;
  min-width:0;
}

.query-form label,.auth-form label {
  display:block;
  font-size:12px;
  color:#b8c8d1;
  margin-bottom:9px;
}

input {
  width:100%;
  min-width:0;
  min-height:46px;
  border:1px solid #34424e;
  border-radius:7px;
  background:#11171d;
  color:var(--text);
  padding:11px 14px;
  transition:border-color .18s;
}

input:hover {
  border-color:#526674;
}

input:focus {
  outline:none;
  border-color:var(--accent);
}

input::placeholder {
  color:#667d8b;
  font-size:12px;
}

input:disabled {
  opacity:.55;
}

.input-row {
  display:flex;
  gap:9px;
}

.input-row .button {
  white-space:nowrap;
  flex-shrink:0;
}

.form-message {
  font-size:12px;
  line-height:1.7;
  min-height:20px;
  margin-top:10px;
  overflow-wrap:anywhere;
}

.form-message:empty {
  margin-top:0;
  min-height:0;
}

.form-message.error {
  color:var(--error);
}

.form-message.success {
  color:var(--accent);
}

.field-note {
  font-size:11px;
  line-height:1.8;
  color:#7f949f;
  margin-top:15px;
}

.query-result {
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:22px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  padding:19px 21px;
  gap:18px;
}

.query-result>div:last-child {
  grid-column:1/-1;
}

.query-result span,.account-stat span {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-bottom:5px;
}

.query-result strong {
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
}

strong[data-status=active] {
  color:var(--accent);
}

strong[data-status=expired],strong[data-status=disabled],strong[data-status=unpaid] {
  color:var(--warm);
}

.site-footer {
  max-width:1300px;
  margin:30px 40px 0;
  border-top:1px solid var(--line);
  padding:24px 0 28px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
  color:#7f949f;
}

.site-footer b {
  color:#b0c2cc;
  letter-spacing:.03em;
  font-size:10px;
  margin-right:18px;
}

.btn-spinner {
  width:14px;
  height:14px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  display:inline-block;
  animation:spin .7s linear infinite;
}

.page-account .topbar {
  position:relative;
}

.account-layout {
  min-height:calc(100vh - 187px);
  max-width:1380px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:38px;
  padding:12px 40px 35px;
  align-items:center;
}

.account-visual {
  isolation:isolate;
  position:relative;
  min-height:590px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:38px 28px 48px;
  overflow:hidden;
}

.account-visual h1 {
  font-size:clamp(32px,3.5vw,51px);
}

.account-visual .hero-copy {
  font-size:13px;
  max-width:320px;
  margin-top:20px;
}

.account-visual .text-link {
  margin-top:27px;
}

.account-workspace {
  width:100%;
  max-width:500px;
  justify-self:end;
}

.account-panel {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:30px;
}

.panel-heading {
  font-size:22px;
  margin-bottom:8px;
  letter-spacing:-.02em;
}

.panel-lead {
  font-size:12px;
  color:var(--muted);
  margin-bottom:24px;
}

.auth-tabs {
  display:flex;
  gap:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
}

.auth-tabs button {
  border:0;
  border-bottom:2px solid transparent;
  background:none;
  color:var(--muted);
  font-size:13px;
  padding:0 3px 12px;
  margin-bottom:-1px;
}

.auth-tabs button.active {
  border-bottom-color:var(--accent);
  color:var(--accent);
}

.auth-form>input {
  margin-bottom:18px;
}

.auth-submit {
  width:100%;
  margin-top:18px;
}

.auth-switch {
  text-align:center;
  color:var(--muted);
  font-size:11px;
  margin-top:20px;
}

.link-button {
  color:var(--accent);
  border:0;
  background:none;
  padding:2px 5px;
  font-size:inherit;
}

.account-head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:23px;
  border-bottom:1px solid var(--line);
}

.account-head>div {
  min-width:0;
}

.account-name {
  display:block;
  font-size:22px;
  font-weight:600;
  overflow-wrap:anywhere;
  line-height:1.5;
}

.account-head small {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-top:4px;
}

.account-stats {
  display:grid;
  grid-template-columns:1fr;
  gap:19px;
  padding:24px 0;
}

.account-stat strong {
  font-size:18px;
  font-weight:500;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.account-stat:last-child strong {
  font-size:15px;
}

.account-actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
  gap:15px;
}

.account-view .auth-form {
  border-top:1px solid var(--line);
  padding-top:22px;
}

.account-view .input-row {
  flex-direction:column;
}

.account-view .input-row button {
  min-height:42px;
}

.account-hint {
  font-size:11px;
  color:var(--muted);
  line-height:1.85;
  margin:20px 2px 0;
}

.account-note {
  border-left:2px solid var(--accent);
  padding-left:13px;
  margin-top:20px;
  color:var(--muted);
  font-size:11px;
}

.session-loading {
  text-align:center;
  padding:50px 10px;
  color:var(--muted);
}

.session-loading .btn-spinner {
  color:var(--accent);
  margin-bottom:15px;
}

.notice {
  border-radius:6px;
  font-size:12px;
  line-height:1.8;
  padding:12px 14px;
  margin-bottom:22px;
  background:var(--accent-soft);
  color:var(--accent);
  overflow-wrap:anywhere;
}

.notice.error {
  background:#35262a;
  color:var(--error);
}

.notice:empty {
  display:none;
}

.not-found {
  min-height:calc(100vh - 100px);
  padding-top:180px;
}

.not-found .hero-content {
  max-width:800px;
}

.not-found h1 {
  font-size:clamp(38px,6vw,70px);
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

@keyframes rise-in {
  from {
    opacity:0;
    transform:translateY(8px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media(min-width:1500px) {
  .hero {
    padding-left:max(40px,calc((100% - 1300px)/2));
    padding-right:max(40px,calc((100% - 1300px)/2));
    min-height:690px;
  }
  .site-footer {
    margin-left:auto;
    margin-right:auto;
  }
  .hero-image {
    object-position:center 38%;
  }
}

@media(max-width:1100px) {
  .hero {
    min-height:610px;
  }
  .hero-image {
    object-position:59% center;
  }
  .hero-content {
    max-width:590px;
  }
  .game-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #download { grid-template-columns:minmax(0,1fr) 180px; gap:28px; }
  #download h1 { font-size:48px; }
  .query-panel {
    gap:35px;
    grid-template-columns:1fr 1.5fr;
  }
  .account-layout {
    gap:12px;
    padding-left:20px;
    padding-right:28px;
    grid-template-columns:.85fr 1fr;
  }
  .account-visual {
    padding:30px 14px;
  }
  .account-panel {
    padding:24px;
  }
  .start-card {
    padding:20px;
  }
  .start-card p {
    min-height:65px;
  }
  .wordmark span {
    margin-left:18px;
  }
}

@media(max-width:780px) {
  #download { grid-template-columns:1fr; gap:35px; padding-top:120px; }
  #download h1 { font-size:47px; }
  .hero-games { max-height:400px; gap:12px; }
  .hero-shortcuts-heading { margin-bottom:12px; }
  .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px 16px; }
  :root {
    --side:70px;
  }
  .side-links {
    padding:0 7px;
    gap:15px;
  }
  .side-links a.active:before {
    left:-7px;
  }
  .brand-symbol {
    width:36px;
  }
  .topbar {
    padding:0 24px;
  }
  .wordmark {
    font-size:15px;
  }
  .wordmark span {
    display:none;
  }
  .hero {
    padding:135px 24px 45px;
    min-height:590px;
  }
  .hero-image {
    object-position:62% center;
  }
  .hero-content {
    max-width:510px;
  }
  .hero h1 {
    font-size:47px;
  }
  .hero-copy {
    font-size:13px;
  }
  .hero-note {
    display:block;
  }
  .hero-note span {
    display:block;
    margin-top:4px;
  }
  .content-section {
    padding:36px 24px;
  }
  .start-section {
    padding-top:8px;
  }
  .start-grid {
    grid-template-columns:1fr;
  }
  .start-card {
    padding:22px 24px;
    display:grid;
    grid-template-columns:1fr auto;
    column-gap:20px;
  }
  .start-card h3 {
    margin-right:0;
  }
  .start-card p {
    min-height:0;
    grid-column:1;
    max-width:380px;
  }
  .start-card a {
    grid-column:2;
    grid-row:1/3;
    align-self:center;
    margin:0;
  }
  .step-number {
    display:none;
  }
  .query-panel {
    grid-template-columns:1fr;
    gap:30px;
    padding-top:32px;
  }
  .query-copy h2 br {
    display:none;
  }
  .query-copy p:not(.eyebrow) {
    margin:14px 0 10px;
  }
  .site-footer {
    margin-left:24px;
    margin-right:24px;
    flex-direction:column;
    gap:7px;
  }
  .account-layout {
    display:block;
    padding:0 24px 35px;
  }
  .account-visual {
    height:auto;
    min-height:260px;
    justify-content:end;
    padding:25px 8px 28px;
  }
  .account-visual h1 {
    font-size:34px;
  }
  .account-visual .hero-copy {
    font-size:12px;
    margin-top:14px;
  }
  .account-visual .text-link {
    margin-top:16px;
  }
  .account-workspace {
    max-width:none;
  }
  .account-panel {
    padding:27px;
  }
  .account-visual h1 br {
    display:none;
  }
}

@media(max-width:540px) {
  :root {
    --side:0px;
  }
  body {
    padding-bottom:66px;
  }
  #games {
    height:calc(100vh - 110px);
    height:calc(100dvh - 110px);
    padding-top:20px;
  }
  .sidebar {
    width:100%;
    height:66px;
    inset:auto 0 0;
    border-right:0;
    border-top:1px solid var(--line);
    background:#0b1015;
  }
  .brand-symbol,.side-caption {
    display:none;
  }
  .side-links {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:4px 8px;
    gap:4px;
  }
  .side-links a {
    min-height:57px;
    gap:3px;
    font-size:9px;
    border-radius:6px;
  }
  .side-links a svg {
    width:19px;
    height:19px;
  }
  .side-links a.active:before {
    top:-5px;
    left:calc(50% - 13px);
    width:26px;
    height:2px;
  }
  .topbar {
    height:70px;
    padding:0 20px;
  }
  .wordmark {
    font-size:15px;
  }
  .account-link {
    font-size:11px;
    max-width:48%;
  }
  .hero {
    padding:145px 20px 36px;
    min-height:595px;
    align-items:flex-end;
  }
  .hero-image {
    object-position:59% center;
  }
  .hero-art.has-image:after {
    background:linear-gradient(90deg,rgba(16,20,25,.62),rgba(16,20,25,.2)),linear-gradient(0deg,var(--bg),rgba(16,20,25,.76) 38%,rgba(16,20,25,.04) 90%);
  }
  .hero h1 {
    font-size:41px;
  }
  .hero-copy {
    margin-top:19px;
    max-width:340px;
  }
  .hero-actions {
    gap:9px;
    margin-top:27px;
  }
  .hero-actions .button {
    font-size:12px;
    padding:11px 15px;
    min-height:44px;
  }
  .hero-actions .button svg {
    display:none;
  }
  .hero-note {
    margin-top:16px;
  }
  .content-section {
    padding:32px 20px;
  }
  .start-section {
    padding-top:10px;
  }
  .section-heading {
    gap:16px;
    align-items:start;
  }
  .section-heading h2 {
    font-size:26px;
  }
  .section-heading p:not(.eyebrow) {
    font-size:11px;
  }
  .section-heading .button {
    padding:7px 9px;
    white-space:nowrap;
    font-size:10px;
  }
  .compact-heading h2 {
    font-size:22px;
  }
  .start-card {
    padding:21px;
    display:block;
  }
  .start-card h3 {
    font-size:14px;
  }
  .start-card p {
    font-size:12px;
  }
  .start-card a {
    margin-top:15px;
  }
  .start-grid {
    gap:11px;
  }
  .game-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 13px;
  }
  #download { padding-top:116px; gap:30px; padding-bottom:28px; }
  #download h1 { font-size:39px; }
  .hero-games { gap:9px; max-height:380px; }
  .shortcut-game .game-card-name { font-size:12px; }
  .game-card-name { font-size:11px; margin-top:8px; }
  .game-cover-fallback { font-size:9px; }
  .library-toolbar { align-items:stretch; flex-direction:column; gap:11px; margin:20px 0; padding-bottom:17px; }
  .game-search { width:100%; }
  .search-submit { padding-inline:15px; }
  .result-count { font-size:10px; }
  .query-panel {
    gap:25px;
    padding-top:28px;
  }
  .query-copy h2 {
    font-size:28px;
  }
  .input-row {
    flex-direction:column;
  }
  .input-row .button {
    min-height:43px;
  }
  .site-footer {
    margin:24px 20px 0;
    font-size:9px;
    padding:20px 0 24px;
  }
  .account-layout {
    padding:0 20px 26px;
  }
  .account-visual {
    min-height:250px;
    padding-left:0;
    padding-right:0;
  }
  .account-visual h1 {
    font-size:32px;
  }
  .account-panel {
    padding:23px 20px;
  }
  .account-hint {
    font-size:10px;
  }
  .account-name {
    font-size:21px;
  }
  .page-account .topbar {
    height:72px;
  }
  .account-head .text-button {
    white-space:nowrap;
    font-size:11px;
  }
  .not-found {
    padding-top:160px;
    min-height:calc(100vh - 180px);
  }
  .not-found h1 {
    font-size:38px;
  }
  .skip-link {
    left:12px;
  }
  .hero-content {
    animation:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
  .button:hover {
    transform:none!important;
  }
}

.site-shell.full-width { margin-left: 0; }
