:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #101a27;
  color: #f0f6ff;
  --ink: #f0f6ff;
  --muted: #a8bbd0;
  --blue: #66c0f4;
  --edge: rgba(169, 214, 255, .16);
  --green: #94e1bb;
  --amber: #f2bf81;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 660px 390px at 82% 8%, rgba(21, 87, 145, .27), transparent 83%),
    radial-gradient(ellipse 570px 460px at 1% 26%, rgba(34, 78, 119, .16), transparent 90%),
    linear-gradient(180deg, #121d2c 0%, #131e2b 58%, #0e1824 100%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, .bar:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
main { display: block; }
.shell { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(172, 209, 245, .11);
  background: rgba(14, 25, 39, .81);
  backdrop-filter: blur(22px) saturate(138%);
}
.topbar-inner { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; font-size: .97rem; font-weight: 680; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; display: flex; gap: 3px; align-items: end; justify-content: center;
  padding-bottom: 9px; border-radius: 11px; border: 1px solid rgba(180, 223, 255, .33);
  background: linear-gradient(145deg, #35628c, #193850 60%, #143047);
  box-shadow: inset 0 1px 0 rgba(220, 238, 255, .28), 0 4px 13px rgba(0, 0, 0, .2);
}
.brand-mark i { width: 3px; border-radius: 3px; background: #c1eaff; }
.brand-mark i:nth-child(1) { height: 6px; opacity: .68; }
.brand-mark i:nth-child(2) { height: 11px; opacity: .82; }
.brand-mark i:nth-child(3) { height: 16px; }
.nav {
  justify-self: center; display: flex; gap: 3px; align-items: center; padding: 4px;
  border: 1px solid rgba(207, 228, 255, .12); border-radius: 100px; background: rgba(94, 132, 170, .08);
}
.nav a, .refresh, .segmented button {
  border: 1px solid transparent; border-radius: 100px; white-space: nowrap;
  color: var(--muted); font-size: .875rem; font-weight: 600;
}
.nav a { padding: 7px 16px; transition: background .2s, color .2s; }
.nav a[aria-current] {
  color: #e5f4ff; border-color: rgba(207, 237, 255, .16);
  background: linear-gradient(160deg, rgba(165, 211, 250, .23), rgba(127, 176, 228, .09));
  box-shadow: inset 0 1px 0 rgba(222, 242, 255, .13), 0 2px 5px #09111b48;
}
.nav a:hover, .quiet-link:hover, .footer a:hover { color: #fff; }
.refresh {
  justify-self: end; display: flex; gap: 8px; align-items: center; border-color: rgba(183, 221, 255, .18);
  background: rgba(102, 153, 200, .12); padding: 8px 13px; color: #d5e9fc; cursor: pointer;
}
.refresh:hover { background: rgba(102, 153, 200, .26); }
.refresh:disabled { opacity: .65; cursor: wait; }
.refresh-icon { display: inline-block; width: 12px; height: 12px; border: 1.6px solid currentColor; border-right-color: transparent; border-radius: 50%; position: relative; }
.refresh-icon::after { content: ""; position: absolute; right: -3px; top: -1px; border-left: 4px solid currentColor; border-top: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(39deg); }

.glass {
  border: 1px solid var(--edge);
  background: linear-gradient(142deg, rgba(51, 77, 106, .40), rgba(22, 37, 53, .76) 53%, rgba(23, 39, 58, .64));
  box-shadow: inset 0 1px 0 rgba(205, 232, 255, .08), 0 12px 36px rgba(7, 13, 24, .18);
  border-radius: 22px;
}
.hero {
  margin-top: 30px; min-height: 308px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; padding: 44px 48px;
  background:
    radial-gradient(ellipse at 76% 43%, rgba(47, 114, 161, .21), transparent 63%),
    linear-gradient(108deg, #243850 0%, #20374f 38%, #1b3855 76%, #15314c 100%);
  border-color: rgba(166, 211, 250, .27);
  box-shadow: inset 0 1px 0 rgba(205, 232, 255, .19), 0 20px 54px rgba(6, 14, 26, .3);
}
.hero-content { z-index: 1; position: relative; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 30px;
  border: 1px solid rgba(168, 205, 237, .21); color: #c6d9ed;
  background: rgba(9, 23, 37, .44); font-size: .875rem; font-weight: 620;
}
.status-pill i { width: 7px; height: 7px; background: currentColor; display: inline-block; border-radius: 50%; }
.status-pill[data-state="ok"] { color: #abf1cc; border-color: rgba(133, 224, 180, .26); background: #11372e78; }
.status-pill[data-state="ok"] i { box-shadow: 0 0 9px rgba(153, 244, 196, .53); }
.status-pill[data-state="warn"] { color: #ffd194; border-color: rgba(238, 177, 109, .32); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.65rem); letter-spacing: -.05em; line-height: 1.12; margin: 17px 0 13px; }
.hero p { color: #c4d7ed; margin: 0; font-size: 1rem; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #adcae2; font-size: .875rem; margin-top: 27px; }
.hero-meta time { color: #edf8ff; margin-left: 5px; font-variant-numeric: tabular-nums; }
.hero-meta span + span { padding-left: 18px; border-left: 1px solid #b4d9f944; }

.hero-art {
  position: absolute; inset: 0 0 0 auto; width: 58%; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(70% 70% at 70% 66%, rgba(44, 153, 212, .33), transparent 72%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(160, 217, 249, .10) 29px, transparent 30px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(160, 217, 249, .08) 39px, transparent 40px 47px);
  mask-image: linear-gradient(90deg, transparent, #000 37%);
}
.orb {
  position: absolute; width: clamp(180px, 21vw, 300px); aspect-ratio: 1; right: 16%; top: 48%;
  transform: translateY(-50%); border-radius: 50%;
  border: 1px solid #aadeff80; overflow: hidden;
  background:
    radial-gradient(ellipse at 29% 20%, rgba(229, 250, 255, .93), transparent 13%),
    radial-gradient(ellipse at 35% 28%, rgba(119, 193, 241, .78), transparent 41%),
    radial-gradient(ellipse at 46% 103%, #66d9edaa, transparent 51%),
    radial-gradient(ellipse at 41% 38%, #4289b8 6%, #2a537a 45%, #123249 62%, #10273b 77%, #4893ba 98%);
  box-shadow: inset 6px 9px 20px #a6dfff95, inset -19px -11px 31px #0e2d4ccc,
              0 0 28px #3e9ed762, 0 12px 70px #1691db40;
}
.orb-shine {
  position: absolute; inset: 4% 8% 51%; border-radius: 50%;
  background: radial-gradient(ellipse at 29% 27%, #e1f6ff80, transparent 58%);
  filter: blur(6px); transform: rotate(-22deg);
}
.orb-band {
  position: absolute; left: -16%; width: 128%; height: 39%; top: 40%; border-radius: 48%;
  transform: rotate(-25deg);
  background: repeating-linear-gradient(177deg, transparent 0 7px, #93dfff62 8px, #99ddf71f 9px, transparent 11px 15px);
  mask-image: radial-gradient(ellipse at center, #000 12%, #0009 44%, transparent 74%);
  filter: blur(.15px);
}
.orbit {
  position: absolute; top: 52%; right: 6%; width: 57%; aspect-ratio: 2.2;
  border-radius: 50%; transform: translateY(-50%) rotate(-28deg); border: 1px solid #9ddcff60;
  box-shadow: 0 0 11px #a6dcff1f, inset 0 0 14px #6abbe422;
}
.orbit-outer { right: 0; width: 70%; opacity: .46; }
.orbit-inner { width: 46%; right: 11.5%; opacity: .55; }
.orbit-dot { position: absolute; border-radius: 50%; background: #aceaff; box-shadow: 0 0 16px #83d7ff; }
.dot-one { width: 7px; height: 7px; right: 6%; top: 24%; }
.dot-two { width: 5px; height: 5px; right: 56%; top: 76%; }
.dot-three { width: 4px; height: 4px; right: 9%; top: 76%; opacity: .7; }

.load-error { margin-top: 18px; padding: 11px 14px; border: 1px solid #e9ad7160; border-radius: 12px; color: #ffce9e; background: #3e2b1f; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.metric { min-width: 0; min-height: 145px; padding: 17px 19px 15px; }
.metric-head { display: flex; gap: 9px; align-items: center; }
.metric h2 { margin: 0; color: #c7daec; font-size: .9rem; font-weight: 600; }
.metric-value { font-size: clamp(1.72rem, 2.8vw, 2.55rem); line-height: 1.15; font-weight: 665; letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin-top: 9px; }
.metric p { color: var(--muted); font-size: .8125rem; line-height: 1.45; margin: 7px 0 0; }
.metric-icon {
  position: relative; display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px;
  border: 1px solid #a3d9fc3d; border-radius: 8px; color: #9cd9ff; background: linear-gradient(145deg, #3f729c8c, #27425870);
}
.metric-icon::before, .metric-icon::after { content: ""; }
.icon-track::before { width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; }
.icon-track::after { position: absolute; height: 4px; width: 4px; background: currentColor; border-radius: 50%; }
.icon-release::before { width: 11px; height: 10px; border: 1px solid currentColor; border-radius: 2px; }
.icon-release::after { position: absolute; width: 9px; height: 4px; border-block-end: 1px solid currentColor; top: 6px; }
.icon-chart::before { width: 3px; height: 10px; border-radius: 2px; background: currentColor; box-shadow: -4px 3px #9cd9ff85, 4px -2px #b6e4ff; }
.icon-storage::before { width: 11px; height: 9px; border: 1px solid currentColor; border-radius: 3px; }
.icon-storage::after { position: absolute; width: 10px; height: 4px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 30%; }

.activity { margin-top: 29px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 13px; align-items: center; padding-inline: 1px; }
.section-heading h2, .panel h2 { font-size: 1.35rem; margin: 0; font-weight: 670; letter-spacing: -.025em; }
.section-heading p, .panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.activity-grid, .lower-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.activity-grid { align-items: stretch; }
.panel { padding: 20px 21px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.panel-heading h3 { margin: 0; font-size: 1rem; font-weight: 670; }
.quiet { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.segmented { display: flex; gap: 2px; padding: 3px; background: #0d1d2c84; border: 1px solid #a7d0f221; border-radius: 30px; }
.segmented button { background: none; padding: 4px 10px; min-height: 28px; cursor: pointer; font-size: .8125rem; }
.segmented button[aria-pressed="true"] { color: #ecf7ff; background: #557b9e65; border-color: #a8d4f738; box-shadow: inset 0 1px 0 #edf8ff18; }
.chart-summary { display: flex; gap: 9px; align-items: baseline; margin-top: 10px; }
.chart-summary strong { font-size: 1.84rem; font-weight: 660; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chart-summary span { color: var(--muted); font-size: .875rem; }
.graph { height: 157px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-top: 9px; }
.axis { display: flex; flex-direction: column; justify-content: space-between; color: #9ab4cc; text-align: right; font-size: .75rem; font-variant-numeric: tabular-nums; padding-bottom: 19px; }
.bars {
  --columns: 12;
  position: relative; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 8px; align-items: stretch;
}
.bars::before {
  content: ""; position: absolute; inset: 5px 0 21px; pointer-events: none;
  background: linear-gradient(#9fc9ef24, #9fc9ef24) top / 100% 1px no-repeat,
              linear-gradient(#9fc9ef1c, #9fc9ef1c) center / 100% 1px no-repeat,
              linear-gradient(#9fc9ef24, #9fc9ef24) bottom / 100% 1px no-repeat;
}
.time-slot { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) 19px; text-align: center; position: relative; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-self: end; height: 100%; margin-inline: auto; width: min(84%, 38px); }
.bar-part { width: 100%; flex: 0 0 auto; min-height: 0; }
.bar-ok {
  background: linear-gradient(180deg, #91d8fe 0%, #469cd3 24%, #285d86 100%); border-radius: 6px 6px 1px 1px;
  box-shadow: inset 1px 0 #d1f1ff40, inset 0 1px #e2f6ff75, 0 0 10px #53b6ff26;
}
.bar-fail { background: linear-gradient(180deg, #f6c992, #ce8450); border-radius: 5px 5px 0 0; }
.bar-fail + .bar-ok { border-radius: 0 0 1px 1px; }
.bar-tip {
  position: absolute; bottom: calc(100% - 3px); left: 50%; z-index: 3; transform: translateX(-50%);
  min-width: max-content; padding: 6px 8px; border-radius: 8px; border: 1px solid #a4d3f640;
  background: #14283b; box-shadow: 0 7px 12px #050b13a0; color: #dcecff; font-size: .75rem; display: none;
}
.time-slot:hover .bar-tip, .time-slot:focus-within .bar-tip { display: block; }
.time-slot:first-child .bar-tip { transform: translateX(-15%); }
.time-slot:last-child .bar-tip { transform: translateX(-85%); }
.bar-label { align-self: end; color: #b0c5d9; font-variant-numeric: tabular-nums; font-size: .75rem; }
.panel-foot {
  display: flex; gap: 16px; align-items: center; border-top: 1px solid #b6d9f51c;
  margin-top: 11px; padding-top: 11px; font-size: .8125rem; color: #b5cbdf;
}
.legend { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 8px; height: 8px; background: #83cafa; border-radius: 3px; }
.legend.failure i { background: #efaf76; }
.legend b { color: var(--ink); font-weight: 640; }
.panel-foot-end { margin-left: auto; text-align: right; }

.api-head, .endpoint-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(70px, .53fr); gap: 12px; align-items: center; }
.api-head { color: #a5bbd1; margin-top: 15px; padding-bottom: 6px; font-size: .8125rem; }
.api-head span:not(:first-child), .endpoint-row > :not(:first-child) { text-align: right; }
.endpoint-list, .rank-list, .run-list { list-style: none; padding: 0; margin: 0; }
.endpoint-row { padding: 10px 0; border-top: 1px solid #b6d9f518; font-size: .875rem; font-variant-numeric: tabular-nums; }
.api-name { display: flex; align-items: center; gap: 8px; color: #dbeaff; min-width: 0; }
.api-dot { height: 6px; width: 6px; flex: 0 0 6px; background: #83cfac; border-radius: 50%; }
.api-dot.warn { background: #e7aa76; }
.api-total { color: #bbd0e2; }
.api-ms { color: #c2d8ee; white-space: nowrap; }
.error-number { color: #f3bc8f; font-style: normal; }
.empty { color: #aabfd4; font-size: .875rem; margin: 0; padding: 16px 0; }
.lower-grid { margin-top: 19px; }
.side-stack { display: grid; gap: 16px; }
.quiet-link { color: #aee0ff; font-size: .875rem; padding: 4px 0; white-space: nowrap; }
.rank-head, .rank-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(67px, .30fr) minmax(70px, .32fr); column-gap: 12px; align-items: center; }
.rank-head { padding: 11px 0 7px; color: var(--muted); font-size: .8125rem; }
.rank-head > :not(:first-child), .rank-row > :not(:first-child) { text-align: right; }
.rank-row { padding: 9px 0; border-top: 1px solid #b6d9f51a; font-variant-numeric: tabular-nums; }
.rank-game { display: flex; gap: 10px; min-width: 0; align-items: center; }
.rank-index { min-width: 17px; color: #a6c7e2; font-size: .875rem; }
.cover { flex: 0 0 57px; width: 57px; height: 29px; border-radius: 5px; overflow: hidden; background: linear-gradient(145deg, #437fac75, #29445d80); }
.cover img { display: block; height: 100%; width: 100%; object-fit: cover; }
.game-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.game-name:hover { color: #a7dfff; }
.rank-peak { color: #a9bed2; font-size: .875rem; }
.rank-players { font-size: .875rem; font-weight: 640; }
.run-list { margin-top: 10px; }
.run-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #b6d9f518; font-size: .875rem; }
.run-time { color: #b3c9dd; font-variant-numeric: tabular-nums; }
.run-duration { color: var(--muted); margin-left: 10px; font-size: .8125rem; }
.run-counts { display: block; color: var(--muted); margin-top: 3px; font-size: .75rem; }
.run-status { color: var(--green); white-space: nowrap; }
.run-status.warn { color: var(--amber); }
.run-status.neutral { color: var(--muted); }

.footer { display: flex; justify-content: space-between; gap: 10px; padding-block: 23px 28px; margin-top: 7px; color: #a0b6ca; font-size: .8125rem; }
.footer a { color: #b6cee2; white-space: nowrap; }

@media (min-width: 1500px) { .hero { min-height: 330px; } }
@media (max-width: 1100px) { .shell { width: calc(100% - 60px); } }
@media (max-width: 900px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { gap: 12px; }
  .nav a { padding-inline: 11px; }
  .hero { padding-inline: 30px; }
  .metric { padding-inline: 13px; }
  .panel { padding-inline: 16px; }
  .activity-grid, .lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 118px; }
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 0; padding-block: 10px 8px; grid-template-columns: 1fr auto; row-gap: 9px; }
  .brand { font-size: .93rem; }
  .brand-mark { width: 30px; height: 30px; padding-bottom: 7px; }
  .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: stretch; }
  .nav a { flex: 1; text-align: center; padding: 7px 8px; }
  .hero { margin-top: 16px; min-height: 255px; padding: 26px 18px; border-radius: 20px; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(1.95rem, 7vw, 2.8rem); margin-block: 14px 10px; }
  .hero p { max-width: 245px; }
  .hero-meta { gap: 6px 12px; margin-top: 19px; }
  .hero-meta span + span { border-left: 0; padding-left: 0; }
  .hero-art { width: 78%; mask-image: linear-gradient(100deg, transparent 10%, #0008 66%, #000); opacity: .53; }
  .orb { width: 185px; right: -27px; top: 45%; }
  .orbit { width: 74%; right: -12%; }
  .orbit-outer { width: 83%; right: -15%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .metric { min-height: 120px; padding: 13px 12px; border-radius: 18px; }
  .metric-value { font-size: 1.85rem; }
  .metric p { font-size: .79rem; }
  .activity { margin-top: 22px; }
  .activity-grid, .lower-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel { padding: 15px 14px; border-radius: 18px; }
  .panel-foot { gap: 12px; }
  .lower-grid { margin-top: 12px; }
  .side-stack { gap: 12px; }
  .graph { height: 145px; gap: 5px; }
  .bars { gap: 3px; }
  .bars[data-period="day"] .time-slot:nth-child(even) .bar-label { visibility: hidden; }
  .footer { flex-wrap: wrap; font-size: .8125rem; padding-block: 13px 20px; }
}
@media (max-width: 380px) {
  .hero-meta span { width: 100%; }
  .rank-head, .rank-row { grid-template-columns: minmax(0, 1fr) 61px 61px; gap: 7px; }
  .rank-game { gap: 5px; }
  .cover { width: 42px; flex-basis: 42px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Rank, catalog and detail pages share the dashboard's surfaces. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.control {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 14px;
  border: 1px solid #a9d1f847; border-radius: 30px; color: #d8ecff;
  background: linear-gradient(155deg, #375979a6, #22394e9c);
  box-shadow: inset 0 1px 0 #cfe8ff20; font-size: .875rem; font-weight: 630; white-space: nowrap;
  cursor: pointer;
}
.control:hover { border-color: #a9d1f879; background: #3b6286; }
.control.primary { color: #102b40; background: linear-gradient(145deg, #a8ddff, #69baf2); border-color: #a3ddff; }
.control[aria-disabled="true"], .control:disabled { opacity: .42; cursor: default; }
.metric-link { display: block; transition: border-color .18s, background .18s; }
.metric-link:hover { border-color: #a5d8ff70; background: linear-gradient(142deg, #2a4660, #192c40 74%); }
.page-main { min-height: calc(100vh - 145px); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 28px 0 20px; }
.page-heading h1, .game-banner h1 {
  margin: 0; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.14;
  letter-spacing: -.055em; overflow-wrap: anywhere;
}
.page-heading p, .game-banner p { margin: 10px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.full-ranking { margin-top: 4px; }
.full-ranking .rank-row { padding-block: 10px; }
.full-ranking .cover { width: 74px; flex-basis: 74px; height: 35px; }
.full-ranking .game-name { font-size: .97rem; }
.full-ranking .rank-index { min-width: 24px; }
.full-ranking .rank-list a { padding-block: 6px; }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(154px, auto) auto; gap: 10px; margin-bottom: 13px; }
.filters input, .filters select {
  width: 100%; min-height: 42px; border: 1px solid #bddcfd40; border-radius: 12px;
  padding: 8px 12px; color: var(--ink); background: #0b1a2b80; font: inherit;
}
.filters input::placeholder { color: #a1b4c7; }
.filters select {
  appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, #a7c8e7 50%), linear-gradient(135deg, #a7c8e7 50%, transparent 50%);
  background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.filters option { background: #1b2c40; }
.catalog-total { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-head, .catalog-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, .25fr) minmax(76px, .22fr) minmax(76px, .20fr);
  align-items: center; gap: 13px; font-variant-numeric: tabular-nums;
}
.catalog-head, .history-head { color: #abc2d8; font-size: .875rem; padding-bottom: 8px; }
.catalog-head > :nth-child(3), .catalog-reviews { text-align: right; }
.catalog-head > :last-child, .catalog-row > :last-child { justify-self: end; }
.catalog-row { min-height: 58px; padding: 8px 0; border-top: 1px solid #b6d9f51a; }
.catalog-row:hover { background: #8dcaff10; }
.catalog-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.catalog-identity .cover { height: 34px; width: 69px; flex-basis: 69px; }
.catalog-info { display: grid; align-content: center; gap: 4px; min-width: 0; }
.catalog-name, .catalog-id { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.catalog-name { font-size: .96rem; font-weight: 650; }
.catalog-id { font-size: .8125rem; color: #a7c1d7; }
.catalog-release, .catalog-reviews { color: #c5daee; font-size: .875rem; }
.state-marker {
  display: inline-flex; width: max-content; max-width: 100%; border-radius: 20px; padding: 4px 8px;
  border: 1px solid #a9cce553; color: #bdd4e9; background: #1b334a94;
  font-size: .8125rem; white-space: nowrap;
}
.state-marker[data-state="tracking"] { color: #a9e7c7; border-color: #81c7a24b; background: #204d4270; }
.state-marker[data-state="pending"] { color: #f1cf99; background: #56422262; border-color: #d3b67456; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pagination[hidden] { display: none; }
.pagination span { color: #bedaee; font-size: .875rem; min-width: 87px; text-align: center; }

.breadcrumb { display: inline-block; margin: 18px 0 10px; }
.game-banner {
  display: grid; grid-template-columns: minmax(140px, .5fr) minmax(0, 1fr); align-items: center; gap: 23px;
  padding: 19px; background: linear-gradient(135deg, #263e57, #1b344d 60%, #142c42);
}
.detail-cover {
  width: 100%; aspect-ratio: 2.14; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 70% 0%, #4a769e, #1c3c59 48%, #172a3e 90%);
  border: 1px solid #a8d9ff45; box-shadow: 0 9px 20px #08172980;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.title-content h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: 10px; }
.title-content .control { margin-top: 13px; }
.detail-metrics .metric-value { font-size: clamp(1.25rem, 3vw, 2.1rem); }
.game-detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start;
  margin-top: 16px;
}
.profile-description { color: #d2e4f7; line-height: 1.65; overflow-wrap: anywhere; }
.facts {
  display: grid; grid-template-columns: minmax(70px, max-content) minmax(0, 1fr); gap: 9px 16px; margin: 14px 0;
  font-size: .875rem; line-height: 1.55;
}
.facts dt { color: #a8c0d7; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags[hidden] { display: none; }
.tag { color: #c8e4fc; padding: 3px 8px; border-radius: 7px; background: #6394c426; border: 1px solid #a8d3f72b; font-size: .8125rem; }
.history { margin-top: 16px; }
.history-head, .history-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.history-head { margin-top: 14px; }
.history-head > :not(:first-child), .history-cell { text-align: right; }
.history-row { padding: 10px 0; border-top: 1px solid #b6d9f51a; color: #d5e8f9; font-size: .875rem; font-variant-numeric: tabular-nums; }
.history-actions { margin-top: 11px; display: flex; align-items: center; gap: 8px; }
.history-actions[hidden] { display: none; }

@media (max-width: 850px) {
  .topbar-inner .nav a { padding-inline: 9px; }
  .catalog-head, .catalog-row { grid-template-columns: minmax(0, 1fr) 86px 79px 70px; }
}
@media (max-width: 700px) {
  .page-heading { align-items: start; flex-wrap: wrap; padding-top: 19px; gap: 9px; }
  .page-heading p { font-size: .9rem; margin-top: 6px; }
  .nav a { font-size: .8125rem; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters input { grid-column: 1 / -1; }
  .catalog-head, .catalog-row { grid-template-columns: minmax(0, 1fr) max-content; }
  .catalog-head > :nth-child(2), .catalog-head > :nth-child(3), .catalog-release, .catalog-reviews { display: none; }
  .catalog-identity { gap: 8px; }
  .catalog-identity .cover, .full-ranking .cover { width: 54px; flex-basis: 54px; height: 28px; }
  .game-banner { padding: 12px; gap: 13px; grid-template-columns: minmax(95px, .48fr) minmax(0, 1fr); }
  .game-banner p { font-size: .8125rem; }
  .detail-cover { border-radius: 9px; }
  .game-detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .history-head { display: none; }
  .history-row { grid-template-columns: 1fr 1fr; gap: 7px 11px; }
  .history .catalog-list { margin-top: 10px; }
  .sample-day { grid-column: 1 / -1; color: #e4f2ff; font-weight: 640; }
  .history-cell { display: flex; justify-content: space-between; gap: 6px; font-size: .8125rem; }
  .history-cell::before { content: attr(data-label); color: #abbed0; text-align: left; }
}
@media (max-width: 425px) {
  .pagination .secondary-page { display: none; }
  .control { min-height: 36px; padding-inline: 11px; }
  .full-ranking .rank-head, .full-ranking .rank-row { grid-template-columns: minmax(0, 1fr) 64px 57px; gap: 7px; }
  .full-ranking .cover { width: 39px; flex-basis: 39px; height: 23px; }
  .full-ranking .rank-game { gap: 5px; }
}

.overview-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.icon-pause::before { width: 4px; height: 10px; border-inline: 2px solid currentColor; }
.rank-title { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.rank-title .game-name { display: block; max-width: 100%; }
.launch-badge {
  border-radius: 6px; padding: 1px 5px; color: #a9e3ff; background: #32638c70;
  border: 1px solid #80c4ed40; font-size: .75rem; white-space: nowrap;
}
.full-ranking .rank-title .game-name { padding: 0; }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.game-actions .control { margin-top: 9px; }
.release-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.release-chart > .empty { grid-column: 1 / -1; }
.release-day {
  min-width: 0; min-height: 132px; display: grid; justify-items: center;
  grid-template-rows: auto 1fr auto; gap: 7px; padding: 10px 4px;
  color: #c9e0f4; border: 1px solid #86b7e520; border-radius: 13px;
  background: linear-gradient(155deg, #3e5d781f, #0c1e2e40);
  font-variant-numeric: tabular-nums;
}
.release-day:hover, .release-day[aria-current] { border-color: #8ad4ff9c; background: #254a67ad; }
.release-day strong { font-size: 1.14rem; color: #f2f8ff; }
.release-day time { font-size: .85rem; }
.release-bar-surface { width: min(55%, 36px); min-width: 11px; height: 67px; display: flex; align-items: end; }
.release-bar-fill {
  width: 100%; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #a8e5ff, #50a5da 27%, #2a6288);
}
.release-catalog { margin-top: 16px; }
.release-catalog .catalog-total { margin: 7px 0 12px; }

@media (max-width: 800px) {
  .overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-chart { gap: 3px; }
  .release-day { min-height: 102px; padding: 6px 2px; border-radius: 8px; gap: 4px; }
  .release-day strong { font-size: .9rem; }
  .release-day time { font-size: .72rem; }
  .release-bar-surface { height: 47px; }
}
