.steam-head { align-items: end; grid-template-columns: minmax(0, 1fr) auto; }
.steam-sync { display: flex; grid-column: 2; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.steam-sync #steam-status { margin: 0; color: var(--muted); font: 400 12px/1.5 var(--sans); }
.steam-sync button { flex: none; }
.steam-overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin: 0 0 24px; }
.steam-feature { position: relative; display: flex; align-items: end; isolation: isolate; min-height: 176px; overflow: hidden; border-radius: 12px; color: #fff; background: #212e31; }
.steam-feature-cover { position: absolute; inset: 0 0 0 30%; z-index: -2; }
.steam-feature-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.steam-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #212e31 5%, #212e31df 28%, #212e3140 70%), linear-gradient(0deg, #131a1de8, transparent 85%); }
.steam-feature-copy { min-width: 0; padding: 20px 22px; }
.steam-feature-label, .steam-feature-note { margin: 0; font-size: 12px; color: #d2ddd9; }
.steam-feature-label { font-weight: 600; }
.steam-feature-label.is-playing { color: #c6f4c8; }
.steam-feature-label.is-playing::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.steam-feature-copy h2 { margin: 6px 0 3px; color: inherit; font: 650 clamp(21px, 3vw, 34px)/1.13 var(--sans); overflow-wrap: anywhere; }
.steam-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.steam-summary > div { min-width: 0; padding: 12px 15px; align-content: center; }
.steam-summary > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.steam-summary > div:last-child { border-left: 1px solid var(--line); }
.steam-summary dt, .steam-game-row small { color: var(--muted); font: 400 11px/1.4 var(--sans); }
.steam-summary dd { margin: 3px 0 0; color: var(--text); font: 650 clamp(17px, 2.2vw, 25px)/1.15 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.steam-summary > div:first-child dd { color: var(--accent); font-size: clamp(24px, 3vw, 36px); }
.steam-library { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.steam-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 13px 16px; }
.steam-toolbar h2 { margin: 0; font: 650 17px/1.35 var(--sans); }
.steam-filters { display: flex; align-items: center; gap: 8px; }
.steam-filters input, .steam-filters select { min-width: 0; margin: 0; height: 36px; padding: 4px 9px; }
.steam-filters input { width: min(28vw, 230px); }
.steam-filters select { width: auto; }
.steam-game, .steam-games > p { border-top: 1px solid var(--line); }
.steam-games > p { margin: 0; padding: 16px; }
.steam-game-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(155px, 24%) 52px; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; list-style: none; }
.steam-game-row::-webkit-details-marker { display: none; }
.steam-game-row:hover, .steam-game[open] > summary { background: var(--panel-2); }
.steam-game-row:focus-visible { outline-offset: -3px; }
.steam-game-cover { display: block; aspect-ratio: 920 / 430; overflow: hidden; border-radius: 5px; background: linear-gradient(130deg, var(--bg-2), var(--panel-2)); }
.steam-game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.steam-game-identity { display: grid; gap: 4px; min-width: 0; }
.steam-game-identity strong { font-size: 14px; overflow-wrap: anywhere; line-height: 1.25; }
.steam-game-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.steam-game-stats span { display: grid; gap: 2px; }
.steam-game-stats strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.steam-game-toggle { justify-self: end; color: var(--accent); font-size: 12px; white-space: nowrap; }
.steam-game-toggle::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 2px 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.steam-game[open] .steam-game-toggle::after { transform: rotate(225deg); }
.steam-achievements { max-height: 22rem; overflow: auto; padding: 8px 18px 14px; font-size: 13px; }
.steam-achievements p { margin: 6px 0; }
#steam-more { display: block; margin: 6px auto; }
#steam-more[hidden] { display: none; }
@media (max-width: 720px) {
  .steam-head { grid-template-columns: 1fr; }
  .steam-sync { grid-column: 1; justify-content: flex-start; }
  .steam-overview { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
  .steam-feature { min-height: 145px; }
  .steam-summary { grid-template-columns: 1.1fr 1fr .75fr; }
  .steam-summary > div { padding: 10px 11px; }
  .steam-summary > div:first-child { grid-column: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .steam-summary > div:first-child dd { font-size: clamp(17px, 2.2vw, 25px); }
  .steam-game-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 5px 9px; padding: 9px 11px; }
  .steam-game-cover { grid-row: span 2; }
  .steam-game-identity { grid-column: 2; }
  .steam-game-stats { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px 12px; }
  .steam-game-stats span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; }
  .steam-game-stats strong { font-size: 12px; }
  .steam-game-toggle { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 420px) {
  .steam-toolbar { padding-inline: 11px; }
  .steam-filters { width: 100%; }
  .steam-filters input { flex: 1 1 0; width: 0; }
  .steam-filters select { flex: 0 1 auto; max-width: 48%; }
}
