/* Standalone Steam collection desk; no shared page styles are changed. */
body.steam-life-page { margin: 0; color: #503b45; background: radial-gradient(ellipse at 85% 0, #ffe0ea, transparent 55%), #fff4f7; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.steam-life-page * { box-sizing: border-box; }
.steam-life-page a { color: inherit; text-decoration: none; }
.steam-life-page button, .steam-life-page input { font: inherit; }
.steam-life-page button { cursor: pointer; }
.steam-life-page button:disabled { opacity: .45; cursor: default; }
.steam-life-page :focus-visible { outline: 3px solid #aa496e; outline-offset: 4px; }
.steam-life-page [hidden], .steam-life-page .is-hidden { display: none; }
body.steam-life-page .steam-page-shell.site-shell--wide { width: min(1440px, calc(100% - 48px)); padding: 16px 0 12px; min-height: var(--site-shell-viewport-height,100dvh); }
.steam-header { position: relative; z-index: 20; margin-bottom: 14px; }
.steam-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: 46px 1fr; flex: 1 0 auto; border: 1px solid #ebcbd7; border-radius: 24px; background: #fffafb; box-shadow: 0 22px 70px #9c476515; min-height: 570px; overflow: clip; }
.museum-masthead { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #efdbe3; font-size: 10px; letter-spacing: 2px; color: #8b6575; }
.museum-masthead b { margin-left: 14px; color: #b64d76; }
.steam-layout > main { grid-column: 2; grid-row: 2; min-width: 0; padding: 28px 32px; }
.overview-section { height: 100%; display: grid; align-content: center; }
.steam-side-nav { grid-column: 1; grid-row: 2; padding: 24px 14px; background: #fcebf1; border-right: 1px solid #efdbe3; display: flex; flex-direction: column; gap: 6px; }
.collection-brand { margin: 0 12px 30px; }
.collection-brand > span { display: block; font: italic 64px Georgia, serif; letter-spacing: -7px; color: #a44d70; }
.collection-brand small { display: block; color: #967280; line-height: 1.8; margin-top: 8px; font-size: 11px; letter-spacing: 2px; }
.steam-side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; color: #7d606c; font-size: 13px; }
.steam-side-nav a:hover { background: #fff8fb; }
.steam-side-nav a.is-active { background: #a94e71; color: white; box-shadow: 0 5px 12px #a94e7120; }
.side-bar { opacity: .65; }
.steam-section { margin: 0; }
.eyebrow { margin: 0 0 9px; font-size: 10px; letter-spacing: 3px; color: #a2647e; text-transform: uppercase; }
.steam-section h1 { margin: 0; font-size: clamp(30px, 3vw, 48px); font-weight: 600; letter-spacing: -2px; }
.hero-subtitle { font-size: 20px; line-height: 1.7; color: #956b7d; margin: 20px 0 30px; }
.overview-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 450px; }
.profile-row { display: flex; align-items: center; gap: 14px; }
.avatar-placeholder { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border: 4px solid white; border-radius: 50%; background: #f2ccdb; color: #934a66; font: italic 22px Georgia, serif; box-shadow: 0 0 0 1px #efd6e0; }
.profile-name { font-size: 19px; margin: 0 0 5px; font-weight: 650; }
.profile-note { font-size: 12px; line-height: 1.7; color: #876c78; margin: 0; max-width: 380px; }
.steam-sync-panel { margin-top: 24px; }
.steam-sync-button, .mosaic-toggle, .library-pagination button { padding: 9px 14px; background: #fff; color: #944a67; border: 1px solid #e5bdce; border-radius: 8px; font-size: 12px; }
.steam-sync-button:hover, .library-pagination button:not(:disabled):hover { background: #f9dfeb; }
.steam-sync-panel p, .steam-data-status { font-size: 11px; color: #876c78; line-height: 1.6; max-width: 400px; }
.steam-data-status.is-error { color: #a13c51; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-item { padding: 22px 18px; background: #f9eaf0; border-radius: 14px; min-width: 0; }
.stat-item:nth-child(2), .stat-item:nth-child(3) { background: #f5dce6; }
.stat-item span, .stat-item em { display: block; color: #866776; font-size: 11px; font-style: normal; }
.stat-item strong { display: block; font-size: clamp(19px, 2.1vw, 30px); font-weight: 500; margin: 10px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-item:last-child strong { font-size: 17px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: 28px; font-weight: 550; margin: 0; letter-spacing: -1px; }
.section-heading p:last-child { font-size: 12px; color: #876c78; margin: 9px 0 0; line-height: 1.6; }
.recent-grid, .achievement-grid, .screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card, .achievement-card, .bucket-card { min-width: 0; border: 1px solid #eed9e2; border-radius: 12px; background: #fff; overflow: hidden; }
.game-cover, .library-cover { position: relative; background: linear-gradient(135deg, #edc1d1, #f5e2ea); overflow: hidden; }
.game-cover { height: 90px; }
.game-cover img, .library-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.game-cover span, .library-cover span { display: block; padding: 16px; color: #865a6e; font-size: 14px; }
.game-card-body { padding: 12px; }
.status-pill { color: #a04c6c; font-size: 10px; }
.game-card h3, .achievement-card h3 { margin: 5px 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.game-meta { display: flex; gap: 20px; margin: 8px 0; font-size: 11px; }
.game-meta div { display: flex; gap: 6px; }
.game-meta dt, .card-caption { color: #876c78; }
.game-meta dd { margin: 0; }
.card-caption { font-size: 10px; margin: 5px 0 0; }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px 12px; border-bottom: 1px solid #ecd9e1; }
.rank-number { color: #b26d89; font: italic 24px Georgia, serif; }
.rank-main h3 { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.rank-main p { color: #876c78; font-size: 10px; margin: 5px 0 0; }
.rank-hours { font-size: 13px; color: #a44d70; }
.rank-percent { font-size: 10px; color: #876c78; }
.bucket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bucket-card { padding: 15px; }
.bucket-top { display: flex; justify-content: space-between; gap: 10px; }
.bucket-top h3, .bucket-top strong { font-size: 13px; margin: 0; font-weight: 550; }
.bucket-card p { font-size: 11px; color: #876c78; margin: 9px 0; }
.bucket-bar, .progress-line { height: 4px; background: #f5e8ed; border-radius: 4px; overflow: hidden; }
.bucket-bar span, .progress-line span { display: block; height: 100%; background: #ce89a5; }
.achievement-summary { display: flex; gap: 28px; margin-bottom: 22px; padding: 16px; background: #f9eaf0; border-radius: 12px; }
.achievement-summary span { display: block; color: #876c78; font-size: 11px; }
.achievement-summary strong { display: block; font-size: 26px; font-weight: 500; margin-top: 6px; }
.achievement-card { padding: 18px; }
.achievement-icon { width: 28px; height: 28px; border: 6px double #c3839c; border-radius: 50%; margin-bottom: 12px; }
.achievement-card p { font-size: 11px; color: #876c78; margin: 0; }
.perfect-card { background: #fff5e9; }
.screenshot-card { display: grid; place-items: center; height: 160px; border: 1px dashed #dcb8c8; border-radius: 12px; background: #fcf0f5; color: #997180; font-size: 12px; }
.library-toolbar, .library-actions, .filter-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.library-toolbar { justify-content: space-between; }
.search-box span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-box input { width: 180px; max-width: 100%; background: #fff; border: 1px solid #e8ceda; border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #503b45; }
.filter-pills button { padding: 7px 10px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: #836575; font-size: 11px; }
.filter-pills button.is-active { background: #f3dbe5; color: #874160; }
.library-mode-note { font-size: 11px; color: #876c78; margin: 12px 0; }
.library-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 14px; font-size: 11px; color: #876c78; }
.game-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.library-game-card { min-width: 0; border-radius: 10px; border: 1px solid #edd6e0; overflow: hidden; background: white; }
.library-cover { height: 94px; }
.library-game-info { padding: 10px; }
.library-game-info h3 { font-size: 12px; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-game-info p { font-size: 10px; color: #876c78; margin: 0; }
.library-panel.is-mosaic-mode .game-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 24px; grid-auto-flow: dense; gap: 5px; }
.library-panel.is-mosaic-mode .library-cover { height: 100%; }
.library-panel.is-mosaic-mode .library-game-info { display: none; }
.library-panel.is-mosaic-mode .size-xl { grid-column: span 3; grid-row: span 3; }
.library-panel.is-mosaic-mode .size-lg, .library-panel.is-mosaic-mode .size-md { grid-column: span 2; grid-row: span 2; }
.library-panel.is-mosaic-mode .size-sm, .library-panel.is-mosaic-mode .size-xs { grid-column: span 2; grid-row: span 1; }
.library-panel.is-mosaic-mode .library-cover span { font-size: 10px; padding: 5px; }
.empty-state { grid-column: 1 / -1; padding: 36px; text-align: center; color: #876c78; background: #f9eaf0; border-radius: 12px; font-size: 13px; }
.steam-footer { display: flex; justify-content: space-between; gap: 16px; padding: 10px 4px 0; color: #876c78; font-size: 10px; }
.steam-page-shell.site-shell--feature > .site-footer { margin-top: 6px; padding-top: 0; font-size: 10px; }
@media (min-width: 1000px) and (min-height: 760px) {
  .steam-layout { min-height: calc(var(--site-shell-viewport-height,100dvh) - 194px); }
}
@media (max-width: 1000px) {
  .steam-layout { grid-template-columns: 148px minmax(0, 1fr); }
  .steam-layout > main { padding: 24px; }
  .overview-hero { gap: 22px; }
  .rank-row { gap: 7px; padding-inline: 0; }
  .library-toolbar { gap: 10px; }
}
@media (min-width: 681px) and (max-height: 800px) {
  .steam-layout > main { padding: 18px 26px; }
  .section-heading { margin-bottom: 14px; }
  .game-cover { height: 70px; }
  .game-card-body { padding: 10px; }
  .overview-hero { min-height: 430px; }
  .library-cover { height: 80px; }
}
@media (max-width: 680px) {
  body.steam-life-page .steam-page-shell.site-shell--wide { width: calc(100% - 20px); padding: 8px 0; }
  .steam-header .site-nav-wrap { display: grid; overflow: visible; }
  .steam-header .site-auth { justify-content: flex-start; }
  .steam-layout { display: flex; flex-direction: column; border-radius: 16px; min-height: 0; }
  .museum-masthead { padding: 14px; font-size: 9px; letter-spacing: 1px; }
  .steam-side-nav { order: 1; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid #efdbe3; }
  .collection-brand, .side-bar { display: none; }
  .steam-side-nav a { padding: 8px 10px; font-size: 11px; }
  .steam-layout > main { order: 2; padding: 20px 16px; }
  .overview-hero { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .hero-subtitle { font-size: 16px; margin: 12px 0 18px; }
  .overview-section { height: auto; }
  .overview-section .eyebrow { font-size: 9px; margin-bottom: 6px; }
  .overview-section .hero-subtitle { font-size: 14px; margin: 8px 0 14px; }
  .steam-sync-panel { margin-top: 16px; }
  .stat-item { padding: 12px; }
  .stat-item strong { font-size: 23px; margin: 7px 0; }
  .stat-item em { font-size: 10px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 24px; }
  .recent-grid, .achievement-grid, .screenshot-grid, .bucket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-meta { flex-direction: column; gap: 4px; }
  .rank-list { grid-template-columns: 1fr; gap: 0; }
  .achievement-summary { gap: 12px; flex-wrap: wrap; }
  .achievement-summary > div { flex: 1 0 40%; }
  .game-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-panel.is-mosaic-mode .game-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .library-pagination { justify-content: space-between; gap: 5px; font-size: 10px; }
  .library-pagination button { padding: 8px; }
  .steam-footer { flex-wrap: wrap; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .steam-life-page * { scroll-behavior: auto; }
}
