/* Workshop, leaderboard and terms pages: Steam Workshop-style layout under the site header. */
.ws-body { --ws-bg: #1b2838; --ws-panel: #16202d; --ws-panel-2: #213146; --ws-line: #2a475e; --ws-text: #c6d4df; --ws-dim: #8f98a0; --ws-blue: #66c0f4; --ws-green-1: #75b022; --ws-green-2: #588a1b; background: var(--ws-bg); }
.ws { background: var(--ws-bg); color: var(--ws-text); padding-top: 80px; min-height: 70vh; }
.ws a { color: var(--ws-blue); }
.ws a:hover { color: #fff; }
.ws-muted { color: var(--ws-dim); font-size: 13px; }
.ws-hint { color: var(--ws-dim); font-size: 12px; line-height: 1.4; margin: 8px 0 0; }

/* top bar */
.ws-bar { background: linear-gradient(180deg, #171a21, #1b2838); border-bottom: 1px solid #000; }
.ws-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.ws-bar-title { font-size: 22px; font-weight: 700; color: #fff !important; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.ws-bar-title span { color: var(--accent); }
.ws-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.ws-tabs a, .ws-subtabs a { padding: 8px 14px; color: var(--ws-text) !important; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid transparent; }
.ws-tabs a:hover, .ws-subtabs a:hover { color: #fff !important; }
.ws-tabs a.is-active, .ws-subtabs a.is-active { color: #fff !important; border-bottom-color: var(--ws-blue); }
.ws-tab-make { color: var(--accent) !important; }
.ws-account { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ws-me { color: #fff; font-weight: 600; }
.ws-avatar { width: 28px; height: 28px; border-radius: 2px; vertical-align: middle; }
.ws-link { background: none; border: 0; padding: 0; color: var(--ws-blue); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.ws-link:hover { color: #fff; }
.ws-steam-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: linear-gradient(90deg, #06bfff, #2d73ff); color: #fff !important; text-decoration: none; border-radius: 2px; font-size: 13px; font-weight: 600; }
.ws-steam-btn:hover { filter: brightness(1.1); }
.ws-steam-icon { width: 18px; height: 18px; }

/* hero */
.ws-hero { background: radial-gradient(ellipse at 30% 0%, #2a475e 0%, transparent 60%), linear-gradient(180deg, #1b2838, #16202d); border-bottom: 1px solid #000; }
.ws-hero-inner { max-width: 1200px; margin: 0 auto; padding: 34px 20px 30px; }
.ws-hero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.ws-hero p { max-width: 760px; margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: var(--ws-text); }
.ws-search { display: flex; gap: 8px; max-width: 560px; }
.ws-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.ws-acct-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); border-top: 3px solid #06bfff; }
.ws-acct-title { color: #fff; font-size: 18px; font-weight: 700; }
.ws-steam-btn--big { justify-content: center; padding: 13px 18px; font-size: 17px; border-radius: 3px; }
.ws-steam-btn--big .ws-steam-icon { width: 24px; height: 24px; }
.ws-acct-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; line-height: 1.4; }
.ws-acct-list li { position: relative; padding-left: 22px; }
.ws-acct-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ws-acct-list li.is-need::before { content: '\2191'; color: #06bfff; }
.ws-acct-list li.is-free::before { content: '\2713'; color: #a4d007; }
.ws-acct-fine { font-size: 11.5px; color: #8f98a0; }
.ws-acct-who { display: flex; align-items: center; gap: 14px; }
.ws-avatar--big { width: 56px; height: 56px; }
.ws-acct-small { font-size: 12px; color: #8f98a0; text-transform: uppercase; letter-spacing: 1px; }
.ws-me--big { font-size: 20px; }
.ws-acct-actions { display: flex; gap: 8px; }
.ws-acct-actions .ws-btn { flex: 1; text-align: center; }
.ws-acct-links { display: flex; gap: 16px; }

/* inputs and buttons */
.ws-input { box-sizing: border-box; width: 100%; padding: 8px 10px; background: #316282; background: rgba(0,0,0,.3); color: #fff; border: 1px solid #000; border-radius: 3px; font: inherit; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.ws-input:focus { outline: 1px solid var(--ws-blue); }
select.ws-input { width: auto; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 2px; background: linear-gradient(180deg, #67c1f5, #417a9b); color: #fff !important; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ws-btn:hover { background: linear-gradient(180deg, #7fd0ff, #4a8db3); }
.ws-btn.is-on { background: linear-gradient(180deg, #d9534f, #a03b38); }
.ws-btn--green { background: linear-gradient(180deg, var(--ws-green-1), var(--ws-green-2)); color: #d2efa9 !important; }
.ws-btn--green:hover { background: linear-gradient(180deg, #8ed629, #6aa621); color: #fff !important; }
.ws-btn--danger { background: linear-gradient(180deg, #8b2e2b, #5e1f1d); }
.ws-btn--danger:hover { background: linear-gradient(180deg, #a83a36, #742622); }
.ws-btn--big { padding: 12px 18px; font-size: 17px; font-weight: 600; }
.ws-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* browse layout */
.ws-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.ws-wrap--item { display: block; }
.ws-side-title { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--ws-dim); }
.ws-side .ws-side-title:not(:first-child) { margin-top: 26px; }
.ws-tags { display: flex; flex-direction: column; gap: 2px; }
.ws-tags a { padding: 5px 10px; color: var(--ws-text) !important; text-decoration: none; font-size: 14px; border-radius: 2px; }
.ws-tags a:hover { background: var(--ws-panel-2); }
.ws-tags a.is-active { background: var(--ws-panel-2); color: #fff !important; box-shadow: inset 3px 0 0 var(--ws-blue); }
.ws-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ws-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ws-dim); }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ws-tile { display: flex; flex-direction: column; background: var(--ws-panel); text-decoration: none; color: var(--ws-text) !important; border-radius: 3px; overflow: hidden; transition: transform 150ms, box-shadow 150ms; }
.ws-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.ws-tile-img { aspect-ratio: 1; background: #000; display: grid; place-items: center; overflow: hidden; }
.ws-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.ws-tile-noimg { font-size: 64px; font-weight: 700; color: var(--ws-line); text-transform: uppercase; }
.ws-tile-title { padding: 8px 10px 0; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tile-author { padding: 0 10px; font-size: 12px; color: var(--ws-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tile-stats { display: flex; gap: 12px; padding: 6px 10px 10px; font-size: 12px; color: var(--ws-dim); }
.ws-pager { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.ws-pager a { min-width: 32px; padding: 6px 8px; text-align: center; background: var(--ws-panel); color: var(--ws-text) !important; text-decoration: none; border-radius: 2px; }
.ws-pager a.is-active { background: var(--ws-blue); color: #000 !important; }
.ws-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; background: var(--ws-panel); border-radius: 3px; }
.ws-empty h3 { margin: 0 0 8px; color: #fff; }

/* pack page */
.ws-crumbs { font-size: 13px; color: var(--ws-dim); margin-bottom: 10px; }
.ws-alert { padding: 10px 14px; margin-bottom: 14px; background: #4a1c1a; border: 1px solid #8b2e2b; color: #f3c7c5; }
.ws-item { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.ws-title { margin: 0; font-size: 30px; color: #fff; font-weight: 700; }
.ws-byline { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; font-size: 14px; }
.ws-big { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; overflow: hidden; border-radius: 2px; }
.ws-big img { width: 100%; height: 100%; object-fit: contain; }
.ws-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.ws-strip button { flex: none; width: 116px; height: 66px; padding: 0; border: 2px solid transparent; background: #000; cursor: pointer; opacity: .7; }
.ws-strip button.is-active, .ws-strip button:hover { border-color: var(--ws-blue); opacity: 1; }
.ws-strip img { width: 100%; height: 100%; object-fit: cover; }
.ws-subtabs { display: flex; gap: 4px; margin: 22px 0 12px; border-bottom: 1px solid var(--ws-line); flex-wrap: wrap; }
.ws-desc p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; white-space: normal; }
.ws-note { padding: 10px 0; border-bottom: 1px solid var(--ws-line); font-size: 14px; }
.ws-note-head { display: flex; justify-content: space-between; color: #fff; font-weight: 600; margin-bottom: 4px; }
.ws-note-head span { color: var(--ws-dim); font-weight: 400; font-size: 12px; }
.ws-item-side { display: flex; flex-direction: column; gap: 12px; }
.ws-panel { background: var(--ws-panel); padding: 14px; border-radius: 3px; display: flex; flex-direction: column; gap: 8px; }
.ws-panel--cta { background: linear-gradient(180deg, #24384e, var(--ws-panel)); }
.ws-panel--admin { border: 1px solid #8b2e2b; }
.ws-panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--ws-dim); }
.ws-stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-stats td { padding: 4px 0; }
.ws-stats td:first-child { color: var(--ws-dim); }
.ws-stats td:last-child { text-align: right; color: #fff; }
.ws-tagline { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-tagline a { padding: 3px 8px; background: var(--ws-panel-2); font-size: 12px; border-radius: 2px; text-decoration: none; }
.ws-report { align-self: flex-start; font-size: 12px; color: var(--ws-dim); }
.ws-report-row p { margin: 6px 0; }

/* modal */
.ws-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.7); }
.ws-modal-box { width: min(480px, 92vw); padding: 20px; background: var(--ws-panel); border-top: 3px solid var(--ws-blue); display: flex; flex-direction: column; gap: 10px; color: var(--ws-text); }
.ws-modal-box h3 { margin: 0; color: #fff; }

/* leaderboard */
.lb-hero .ws-hero-inner { padding-bottom: 24px; }
.lb-account { justify-content: flex-end; margin-bottom: 4px; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lb-table th { text-align: left; padding: 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ws-dim); border-bottom: 1px solid var(--ws-line); }
.lb-table td { padding: 8px 10px; border-bottom: 1px solid rgba(42, 71, 94, .5); }
.lb-table tr:hover td { background: rgba(255,255,255,.02); }
.lb-table tr.is-me td { background: rgba(102, 192, 244, .1); }
.lb-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.lb-main { color: #fff; font-weight: 700; }
.lb-place { width: 40px; color: var(--ws-dim); font-weight: 700; }
.lb-top-1 .lb-place { color: #e4ae39; }
.lb-top-2 .lb-place { color: #c9ced6; }
.lb-top-3 .lb-place { color: #cd7f32; }
.lb-player { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.lb-player img, .lb-noav { width: 32px; height: 32px; border-radius: 2px; background: var(--ws-panel-2); flex: none; }
.lb-count { margin-top: 12px; }

/* terms */
.terms-body { max-width: 860px; }
.terms-body h2 { margin: 30px 0 10px; color: #fff; font-size: 20px; }
.terms-body p, .terms-body li { font-size: 15px; line-height: 1.6; }
.terms-account { justify-content: flex-start; margin: 10px 0; }

@media (max-width: 900px) {
  .ws-wrap { grid-template-columns: 1fr; }
  .ws-item { grid-template-columns: 1fr; }
  .ws-side { order: 2; }
  .lb-hide { display: none; }
  .ws-account { margin-left: 0; }
  .ws-hero-split { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ws-hero h1 { font-size: 26px; }
  .ws-bar-title { font-size: 18px; }
}
