:root {
  color-scheme: dark;
  --bg: #0c0e13;
  --surface: #13161e;
  --surface-2: #191d27;
  --surface-3: #212633;
  --line: #2b3140;
  --text: #f5f7fb;
  --muted: #939caf;
  --accent: #a7ff5f;
  --accent-strong: #7be72d;
  --accent-ink: #102006;
  --cyan: #70e5ff;
  --danger: #ff7d8e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 76% 0%, rgba(167,255,95,.08), transparent 28rem), var(--bg); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.04); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text small { margin-top: 3px; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .04em; }
.shell { max-width: 1240px; margin: 0 auto; padding: 54px 24px 80px; }
.tool-head { max-width: 760px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { margin-bottom: 8px; font-size: 1.55rem; letter-spacing: -.035em; }
h3 { margin-bottom: 0; font-size: 1.05rem; }
.lead, .muted { color: var(--muted); line-height: 1.65; }
.lead { margin: 0; font-size: 1rem; }

.chip, .tag-button, .choice-row button, .segmented button { border: 1px solid var(--line); background: var(--surface); color: #dbe0ea; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.chip:hover, .tag-button:hover, .choice-row button:hover, .segmented button:hover { border-color: #475064; transform: translateY(-1px); }
.chip { border-radius: 999px; padding: 9px 12px; font-size: .875rem; font-weight: 700; }
.chip.active, .tag-button.active, .choice-row button.active, .segmented button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); gap: 18px; align-items: start; }
.filter-panel, .result-panel, .member-panel, .group-panel { background: rgba(19,22,30,.93); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-panel { padding: 24px; }
.result-panel { position: sticky; top: 20px; padding: 24px; }
.filter-block { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { margin-bottom: 18px; }
.filter-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .94rem; font-weight: 800; }
.filter-label strong { color: var(--accent); }
.filter-help { display: block; margin-top: 9px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.filter-help[hidden] { display: none; }
.segmented, .choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button, .choice-row button { min-height: 42px; border-radius: 12px; padding: 0 14px; font-size: .9rem; font-weight: 750; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); }
.segmented button { padding-inline: 8px; }
.segmented button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.tag-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.all-tags { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tag-button { border-radius: 999px; padding: 8px 11px; font-size: .84rem; font-weight: 700; }
.tag-button.dynamic { border-color: rgba(167,255,95,.28); background: rgba(167,255,95,.06); }
.tag-button.dynamic.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.required-tag-control { display: grid; gap: 6px; margin-top: 12px; }
.required-tag-control label { color: #c8ced7; font-size: .78rem; font-weight: 800; }
.required-tag-control select { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: #dbe0ea; padding: 0 9px; }
.required-tag-control select[multiple] { padding: 6px 9px; }
.required-tag-control small { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.text-button { border: 0; background: transparent; color: var(--cyan); padding: 0; font-size: .82rem; font-weight: 800; }

.toggle-list { display: grid; gap: 4px; padding-bottom: 0; border-bottom: 0; }
.toggle-list label { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 10px 2px; cursor: pointer; }
.toggle-list label + label { border-top: 1px solid var(--line); }
.toggle-list span { display: grid; gap: 3px; }
.toggle-list strong { font-size: .9rem; }
.toggle-list small { color: var(--muted); font-size: .77rem; }
input[type="checkbox"] { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #303646; position: relative; transition: .2s ease; flex: 0 0 auto; }
input[type="checkbox"]::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: white; transition: .2s ease; }
input[type="checkbox"]:checked { background: var(--accent); }
input[type="checkbox"]:checked::after { transform: translateX(18px); background: var(--accent-ink); }

.primary-button, .secondary-button, .ghost-button, .share-box button, .inline-form button { border: 0; border-radius: 12px; min-height: 46px; padding: 0 16px; font-weight: 850; }
.primary-button { width: 100%; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { width: 100%; margin-top: 16px; background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.ghost-button { background: transparent; color: #d9dfeb; border: 1px solid var(--line); }
.top-actions .ghost-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ghost-button.small { min-height: 36px; padding-inline: 11px; font-size: .8rem; }
.result-head, .room-top, .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.filter-actions .ghost-button { min-width: 108px; }
.selection-summary { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-top: 12px; }
.summary-chip { padding: 6px 8px; border-radius: 8px; background: #202633; color: #d3d9e4; font-size: .74rem; font-weight: 750; }
.result-status { min-height: 22px; margin: 10px 0 14px; color: var(--muted); font-size: .84rem; }
.results { display: grid; gap: 10px; }
.game-card { position: relative; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(160deg, rgba(255,255,255,.035), transparent 55%), var(--surface-2); padding: 17px; overflow: hidden; }
.game-card.clickable { cursor: pointer; transition: transform .14s ease, border-color .14s ease; }
.game-card.clickable:hover { transform: translateY(-2px); border-color: rgba(167,255,95,.45); }
.game-card.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.game-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(167,255,95,.25); }
.game-rank { position: absolute; right: 15px; top: 13px; color: #525c70; font-weight: 900; font-size: 1.55rem; letter-spacing: -.05em; }
.game-title { padding-right: 38px; margin-bottom: 8px; font-size: 1.05rem; font-weight: 850; letter-spacing: -.02em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { padding: 5px 7px; border-radius: 7px; background: #252b39; color: #c9d0dc; font-size: .72rem; font-weight: 750; }
.badge.hot { color: var(--accent); background: rgba(167,255,95,.1); }
.tag-match-detail { display: grid; gap: 6px; margin: 2px 0 10px; }
.tag-match-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: .74rem; }
.tag-match-line > span { min-width: 38px; color: var(--accent); font-weight: 850; }
.tag-match-line b { padding: 4px 7px; border-radius: 7px; background: rgba(167,255,95,.1); color: var(--accent); font-weight: 800; }
.tag-match-line.missing > span { color: var(--muted); }
.tag-match-line.missing b { background: #252b39; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.game-reason { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.vote-row button { border: 1px solid var(--line); background: transparent; color: #dce2ed; border-radius: 9px; padding: 7px 10px; font-weight: 800; font-size: .78rem; }
.vote-row button.active { border-color: var(--accent); background: rgba(167,255,95,.12); color: var(--accent); }
.vote-count { color: var(--muted); font-size: .78rem; }
.empty { display: grid; place-items: center; min-height: 260px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 24px; line-height: 1.6; }

.room-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.steam-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.steam-top { margin-bottom: 14px; }
.steam-lead { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.steam-grid { display: grid; grid-template-columns: 420px minmax(0,1fr); gap: 1px; border: 1px solid var(--line); background: #171c22; }
.steam-input-panel, .steam-result-panel { padding: 18px; }
.steam-input-panel { position: sticky; top: 18px; align-self: start; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; background: #171c22; }
.steam-result-panel { background: #1b2027; }
.steam-auth-panel { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #343b43; }
.steam-login-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 2px; background: #1b2838; color: #fff; font-size: .78rem; font-weight: 800; }
.steam-auth-help { margin: 7px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.steam-privacy-note { margin: 10px 0 0; padding: 9px 10px; border: 1px solid #4b4535; background: #211f1a; color: #d8c79f; font-size: .7rem; line-height: 1.5; }
.steam-friend-search { width: 100%; height: 36px; margin-top: 10px; padding: 0 9px; border: 1px solid #343c45; border-radius: 2px; background: #15191f; color: #e6e8eb; font-size: .72rem; }
.steam-friend-search:focus { outline: 1px solid #4f94c8; outline-offset: 1px; }
.steam-options { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #343b43; }
.steam-account-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.steam-account-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.steam-account-row .text-button { margin-left: auto; flex: 0 0 auto; }
.steam-avatar { width: 30px; height: 30px; border-radius: 2px; background: #252c34; }
.steam-friend-list { display: grid; gap: 5px; max-height: 260px; margin-top: 10px; overflow: auto; }
.steam-friend { display: grid; grid-template-columns: 28px minmax(0,1fr) 24px; gap: 8px; align-items: center; min-height: 46px; padding: 7px; border: 1px solid #343b43; background: #15191f; cursor: pointer; }
.steam-friend:hover, .steam-friend:focus-within { border-color: #4f94c8; }
.steam-friend img { width: 28px; height: 28px; border-radius: 2px; }
.steam-friend span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.steam-friend input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; accent-color: #4f94c8; }
.steam-friend input[type="checkbox"]::after { content: none; }
.steam-friend-empty { padding: 12px 8px; color: var(--muted); font-size: .7rem; text-align: center; }
.steam-friend-compare { margin-top: 10px; }
.steam-manual { border: 0; }
.steam-manual-title { margin-bottom: 9px; color: #b9c1ca; font-size: .72rem; font-weight: 800; cursor: pointer; }
.steam-manual-title::marker { color: #7f8994; }
.steam-profile-rows { display: grid; gap: 8px; }
.steam-profile-row { display: grid; grid-template-columns: 56px 100px minmax(0,1fr) 34px; gap: 6px; align-items: center; }
.steam-person-label { color: #9ea7b0; font-size: .7rem; font-weight: 800; }
.steam-profile-row input { min-width: 0; height: 36px; padding: 0 9px; border: 1px solid #343c45; border-radius: 2px; background: #15191f; color: #e6e8eb; font-size: .72rem; }
.steam-profile-row input:focus { outline: 1px solid #4f94c8; outline-offset: 1px; }
.steam-remove { min-height: 36px; padding: 0; }
.steam-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.steam-participant-status { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.steam-participant { padding: 5px 7px; border: 1px solid #3a444f; background: #20262d; color: #aeb7c0; font-size: .68rem; }
.steam-participant.ok { border-color: #356f56; color: #9dd4b8; }
.steam-participant.error { border-color: #744545; color: #e0aaaa; }
.steam-private-help { flex-basis: 100%; margin: 4px 0 0; color: #d8b985; font-size: .7rem; line-height: 1.5; }
.steam-results { display: grid; gap: 18px; }
.steam-bucket { padding-top: 14px; border-top: 1px solid #343b43; background: #1b2027; }
.steam-bucket-head { position: sticky; top: 14px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px; background: #1b2027; border-bottom: 1px solid #343b43; box-shadow: 0 -14px 0 #1b2027; }
.steam-free-bucket { border-top-color: #356f56; }
.steam-free-bucket .steam-bucket-head { border-left: 3px solid #4b946f; }
.steam-bucket-buy-0 .steam-bucket-head { border-left: 3px solid #4f94c8; }
.steam-bucket-buy-1 .steam-bucket-head { border-left: 3px solid #9d844f; }
.steam-bucket-buy-2 .steam-bucket-head { border-left: 3px solid #9a6256; }
.steam-bucket-summary { margin: -2px 0 10px; color: var(--muted); font-size: .7rem; }
.steam-bucket-head h3 { margin: 0; color: #dce2e8; font-size: 1rem; }
.steam-bucket-head span { color: #8f99a3; font-size: .74rem; }
.steam-show-more { display: block; width: 100%; margin-top: 8px; }
.steam-empty { min-height: 140px; }
.room-top { margin-bottom: 18px; }
.share-box { display: flex; min-width: min(100%, 440px); }
.share-box input, .inline-form input { min-width: 0; flex: 1; min-height: 43px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); outline: none; }
.share-box input { border-radius: 10px 0 0 10px; }
.share-box button { min-height: 43px; border-radius: 0 10px 10px 0; background: var(--accent); color: var(--accent-ink); }
.room-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 18px; align-items: start; }
.member-panel, .group-panel { padding: 22px; }
.join-form { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.join-form label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.inline-form { display: flex; }
.inline-form input { border-radius: 10px 0 0 10px; }
.inline-form button { border-radius: 0 10px 10px 0; background: var(--accent); color: var(--accent-ink); }
.members { display: grid; gap: 8px; margin-top: 12px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: var(--surface-2); border-radius: 10px; }
.member strong { font-size: .86rem; }
.member small { color: var(--muted); font-size: .72rem; }
.count-pill { padding: 5px 8px; border-radius: 999px; background: #252b39; color: #cbd2df; font-size: .75rem; font-weight: 800; }
.group-summary { margin: 12px 0 14px; padding: 11px 12px; border-radius: 10px; background: rgba(112,229,255,.07); color: #bfd8df; font-size: .82rem; line-height: 1.5; }

.seo-copy { max-width: 860px; margin: 70px auto 0; padding: 34px 0 0; border-top: 1px solid var(--line); }
.seo-copy p { color: var(--muted); line-height: 1.8; }
.seo-related-title { margin: 22px 0 10px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: #cbd2df; font-size: .82rem; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; padding: 11px 15px; border-radius: 10px; background: #f4f7fa; color: #10141b; box-shadow: var(--shadow); font-size: .86rem; font-weight: 800; }

@media (max-width: 900px) {
  .shell { padding-top: 34px; }
  .layout, .room-grid, .steam-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .room-top { align-items: flex-start; flex-direction: column; }
  .share-box { width: 100%; }
}

@media (max-width: 560px) {
  .topbar { height: 62px; padding: 0 16px; }
  .top-actions .ghost-button { font-size: .75rem; padding: 0 10px; min-height: 38px; }
  .shell { padding: 28px 14px 60px; }
  h1 { font-size: 2.2rem; }
  .filter-panel, .result-panel, .member-panel, .group-panel { padding: 17px; border-radius: 15px; }
  .segmented button, .choice-row button { font-size: .82rem; padding-inline: 10px; }
  .result-head { align-items: flex-start; }
  .filter-actions { grid-template-columns: 1fr; }
  .filter-actions .ghost-button { width: 100%; }
  .room-section { margin-top: 22px; }
  .steam-profile-row { grid-template-columns: 50px minmax(0,1fr) 34px; }
  .steam-profile-row input[data-steam-field="profile"] { grid-column: 1 / -1; }
}

/* Classic launcher theme */
:root {
  --bg: #171a1e;
  --surface: #15191f;
  --surface-2: #1d232a;
  --surface-3: #252c34;
  --line: #343b43;
  --text: #e6e8eb;
  --muted: #929aa4;
  --accent: #4f94c8;
  --accent-strong: #65a9d8;
  --accent-ink: #ffffff;
  --cyan: #69baf1;
  --radius: 3px;
  --shadow: none;
}

body { background: #171a1e; }
.topbar { max-width: none; height: 58px; margin: 0; padding: 0 max(20px, calc((100vw - 1440px) / 2 + 20px)); background: #101318; border-bottom: 1px solid #2b3138; }
.brand { min-width: 190px; color: #fff; font-size: 1rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 2px; background: #3c7fb1; color: #fff; font-size: .78rem; }
.main-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.main-nav a { display: inline-flex; align-items: center; padding: 0 14px; border-bottom: 2px solid transparent; color: #929aa4; font-size: .78rem; font-weight: 750; }
.main-nav a:hover { color: #d9dde2; background: #15191f; }
.main-nav a.active { color: #fff; border-bottom-color: #4f94c8; }
.top-actions { display: flex; gap: 7px; margin-left: auto; }
.top-actions .ghost-button { min-height: 34px; padding: 0 11px; border-radius: 2px; background: #1b2027; border-color: #333a43; color: #b8c0c8; font-size: .72rem; }
.language-control { display: inline-flex; align-items: center; }
.language-control select { height: 34px; min-width: 96px; padding: 0 26px 0 9px; border: 1px solid #333a43; border-radius: 2px; background: #1b2027; color: #d4d9df; font-size: .72rem; cursor: pointer; }
.language-control select:focus { outline: 1px solid #4f94c8; outline-offset: 1px; }
.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; }

.shell { max-width: 1440px; padding: 24px 20px 60px; }
.tool-head { display: flex; align-items: baseline; gap: 14px; max-width: none; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #343b43; }
.tool-head .eyebrow { order: 2; margin: 0; color: #72808d; font-size: .65rem; letter-spacing: .09em; }
.tool-head h1 { margin: 0; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; color: #fff; }
.tool-head .lead { margin-left: auto; color: #7f8791; font-size: .75rem; }
.eyebrow { color: #67b7ff; }

.layout { grid-template-columns: 360px minmax(0, 1fr); gap: 0; border: 1px solid #343b43; background: #1b2027; }
.filter-panel, .result-panel, .member-panel, .group-panel { border: 0; border-radius: 0; box-shadow: none; background: #15191f; }
.filter-panel { padding: 18px; border-right: 1px solid #343b43; }
.result-panel { position: static; min-height: 0; padding: 18px 22px 22px; background: #1b2027; }
.filter-block { padding-bottom: 16px; margin-bottom: 16px; border-color: #303740; }
.filter-label { margin-bottom: 8px; color: #b3bac2; font-size: .76rem; letter-spacing: .01em; }
.filter-label strong { color: #67b7ff; }
.segmented, .choice-row { gap: 5px; }
.segmented button, .choice-row button, .tag-button { min-height: 30px; border-radius: 2px; background: #242a31; border-color: #343c45; color: #b7bec6; font-size: .72rem; font-weight: 700; }
.segmented button, .choice-row button { padding: 0 9px; }
.tag-button { padding: 5px 8px; }
.chip:hover, .tag-button:hover, .choice-row button:hover, .segmented button:hover { border-color: #4b5965; transform: none; background: #2a323b; }
.chip.active, .tag-button.active, .choice-row button.active, .segmented button.active { background: #234f73; border-color: #3c83b7; color: #fff; }
.tag-button.dynamic { background: #20262d; border-color: #3a444f; color: #9fcdf0; }
.tag-button.dynamic.active { background: #234f73; border-color: #4f94c8; color: #fff; }
.required-tag-control select { background: #242a31; border-color: #343c45; color: #d7dde4; }
.tag-grid { gap: 5px; }
.all-tags { margin-top: 6px; padding-top: 8px; border-top: 1px solid #303740; }
.text-button { color: #67b7ff; font-size: .7rem; }

.toggle-list { gap: 0; }
.toggle-list label { min-height: 44px; padding: 7px 2px; }
.toggle-list strong { font-size: .76rem; }
.toggle-list small { font-size: .66rem; }
input[type="checkbox"] { width: 34px; height: 18px; border-radius: 2px; background: #303740; }
input[type="checkbox"]::after { width: 12px; height: 12px; top: 3px; left: 3px; border-radius: 1px; }
input[type="checkbox"]:checked { background: #3c7fb1; }
input[type="checkbox"]:checked::after { transform: translateX(16px); background: #fff; }

.filter-actions { gap: 6px; }
.primary-button, .secondary-button, .ghost-button, .share-box button, .inline-form button { min-height: 38px; border-radius: 2px; font-size: .76rem; }
.primary-button { background: #3c7fb1; color: #fff; }
.primary-button:hover { background: #4b91c3; }
.ghost-button { background: #20262d; border-color: #39414a; color: #c5cbd2; }
.secondary-button { margin-top: 12px; background: #222930; border-color: #39414a; color: #cbd1d7; }

.result-head { min-height: 42px; padding-bottom: 10px; border-bottom: 1px solid #3a4149; }
.result-head h2 { margin: 0; font-size: 1rem; color: #fff; letter-spacing: -.01em; }
.result-head .eyebrow { margin-bottom: 3px; font-size: .62rem; color: #67b7ff; }
.selection-summary { min-height: 26px; margin-top: 9px; gap: 4px; }
.summary-chip { padding: 4px 6px; border-radius: 2px; background: #252c34; color: #b8c0c8; font-size: .66rem; }
.result-status { min-height: 18px; margin: 7px 0 10px; color: #8c949d; font-size: .72rem; }
.results { gap: 0; border-top: 1px solid #343b43; }
.game-card { display: grid; grid-template-columns: 180px minmax(0,1fr); min-height: 112px; padding: 10px 40px 10px 10px; border: 0; border-bottom: 1px solid #343b43; border-radius: 0; background: #1b2027; overflow: hidden; }
.game-card.clickable:hover { transform: none; border-color: #3d4650; background: #20262d; }
.game-card.clickable:focus-visible { outline: 1px solid #67b7ff; outline-offset: -1px; }
.game-card.selected { border-color: #4f94c8; box-shadow: inset 3px 0 #4f94c8; background: #1d2933; }
.game-thumb { position: relative; display: grid; place-items: center; width: 164px; height: 92px; align-self: center; overflow: hidden; background: #11161b; border: 1px solid #303840; color: #59636c; font-size: .58rem; letter-spacing: .08em; }
.game-thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.game-thumb span { position: relative; z-index: 0; }
.game-card-body { min-width: 0; padding: 2px 8px 2px 2px; }
.game-rank { right: 10px; top: 10px; color: #66717c; font-size: 1rem; }
.game-title { margin-bottom: 6px; padding-right: 0; color: #fff; font-size: .9rem; }
.badges { gap: 4px; margin-bottom: 7px; }
.badge { padding: 3px 5px; border-radius: 2px; background: #2c343d; color: #b9c1c8; font-size: .62rem; }
.badge.hot { background: #20394b; color: #7cc6f3; }
.tag-match-detail { gap: 4px; margin: 1px 0 7px; }
.tag-match-line { gap: 4px; font-size: .64rem; }
.tag-match-line > span { min-width: 34px; color: #67b7ff; }
.tag-match-line b { padding: 2px 5px; border-radius: 2px; background: #20394b; color: #8bcdf4; }
.tag-match-line.missing b { background: #2b3138; color: #7b858e; }
.game-reason { color: #8f97a0; font-size: .7rem; line-height: 1.45; }
.vote-row { margin-top: 7px; padding-top: 7px; }
.vote-row button { border-radius: 2px; font-size: .68rem; }
.vote-row button.active { border-color: #4f94c8; background: #20394b; color: #8bcdf4; }
.empty { min-height: 300px; border-radius: 0; border-color: #3a4149; }

.room-section { margin-top: 24px; padding-top: 20px; }
.room-grid { grid-template-columns: 320px minmax(0,1fr); gap: 1px; background: #343b43; border: 1px solid #343b43; }
.member-panel, .group-panel { padding: 18px; background: #171c22; }
.member, .group-summary, .count-pill { border-radius: 2px; }
.member { background: #20262d; }
.group-summary { background: #1f2d37; color: #a9c9dc; }
.share-box input, .inline-form input { background: #15191f; }
.room-overview { margin-bottom: 24px; padding: 18px; border: 1px solid #343b43; background: #171c22; }
.room-overview .room-top { margin-bottom: 14px; }
.room-overview .member-panel { padding: 0; background: transparent; }
.room-overview .members { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.member-main { min-width: 0; }
.member-preferences { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.member-preferences .summary-chip { font-size: .64rem; }

.seo-copy { max-width: 1040px; margin-top: 42px; padding-top: 24px; }
.seo-copy h2 { font-size: 1.05rem; }
.seo-copy p { font-size: .78rem; }
.seo-links a { border-radius: 2px; font-size: .7rem; }
.route-copy { margin: 18px 0; padding: 15px 16px; border: 1px solid #303840; background: #15191f; }
.route-copy h3 { margin: 0 0 7px; color: #dce2e8; font-size: .86rem; }
.route-copy p { margin: 0; }
.seo-game-list { margin: 24px 0; }
.seo-game-list > h3 { margin: 0 0 8px; color: #eef2f6; font-size: 1rem; }
.seo-game-list > p { margin: 0 0 14px; }
.seo-game-updated { margin-top: -7px !important; color: #747e88 !important; font-size: .66rem !important; }
.seo-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seo-game-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 132px 1fr; min-height: 82px; border: 1px solid #303840; background: #15191f; }
.seo-game-card img { width: 132px; height: 100%; min-height: 82px; object-fit: cover; }
.seo-game-card-body { min-width: 0; padding: 10px 12px; }
.seo-game-card h4 { margin: 0 0 6px; font-size: .82rem; line-height: 1.35; }
.seo-game-card h4 a { color: #eef2f6; }
.seo-game-card p { margin: 0; font-size: .68rem; line-height: 1.55; }
.seo-game-card .seo-game-facts { color: #c5ccd4; }
.seo-game-rank { position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 22px; padding: 2px 5px; border: 1px solid #56616c; background: rgba(17, 20, 25, .9); color: #f0f3f6; font-size: .62rem; text-align: center; }
.seo-game-note { margin-top: 10px !important; font-size: .68rem !important; color: #737d87 !important; }
@media (max-width: 720px) {
  .seo-game-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .seo-game-card { grid-template-columns: 104px 1fr; }
  .seo-game-card img { width: 104px; }
}
.site-footer { max-width: 1440px; margin: 28px auto 0; padding: 22px 20px 34px; border-top: 1px solid #303840; color: #7f8791; font-size: .7rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.site-footer a { color: #b8c0c8; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; line-height: 1.6; }
.info-shell { max-width: 900px; margin: 0 auto; padding: 56px 20px 32px; }
.info-page { padding: 28px; border: 1px solid #343b43; background: #1b2027; }
.info-page h1 { margin: 6px 0 8px; color: #fff; font-size: 2rem; }
.info-page h2 { margin: 28px 0 8px; color: #dce2e8; font-size: 1.02rem; }
.info-page p { color: #a6aeb7; line-height: 1.8; }
.info-updated { margin-top: 0; color: #6f7882 !important; font-size: .72rem; }

#room-section, #recommend-section, #steam-section, .steam-bucket { scroll-margin-top: 72px; }
.mobile-edit-filters { display: none; width: 100%; min-height: 38px; margin-bottom: 10px; border: 1px solid #3c83b7; background: #20394b; color: #d9efff; font-weight: 800; }
.advanced-filters { margin-top: 10px; border-top: 1px solid #303740; }
.advanced-filters > summary { padding: 10px 0 6px; color: #9fcdf0; font-size: .76rem; font-weight: 800; cursor: pointer; }
.advanced-filter-body { padding-top: 2px; }
.advanced-toggle-list { margin-top: 10px; border-top: 1px solid #303740; }
.steam-friend:has(input:checked) { border-color: #4f94c8; background: #1d2b36; box-shadow: inset 3px 0 #4f94c8; }
.steam-bucket-nav { position: sticky; top: 14px; z-index: 6; display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 0; background: #1b2027; border-bottom: 1px solid #343b43; }
.steam-bucket-nav button { min-height: 34px; padding: 0 9px; border: 1px solid #394550; background: #20262d; color: #c5cdd5; font: inherit; font-size: .76rem; cursor: pointer; }
.steam-bucket-nav button:hover { border-color: #4f94c8; background: #26333e; }
.steam-bucket-nav strong { margin-left: 3px; color: #67b7ff; }
.steam-bucket-head { position: static; min-height: 48px; box-shadow: none; }
.result-status { font-size: .76rem; }
.summary-chip { font-size: .7rem; }
.badge { font-size: .68rem; }
.game-reason { font-size: .76rem; }
.steam-auth-help, .steam-friend span, .steam-friend-empty, .steam-manual-title, .steam-profile-row input, .steam-person-label, .steam-bucket-summary { font-size: .76rem; }
.steam-participant { font-size: .74rem; }
.steam-private-help, .steam-bucket-head span { font-size: .76rem; }

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .layout { grid-template-columns: 320px minmax(0, 1fr); }
  .game-card { grid-template-columns: 150px minmax(0,1fr); }
  .game-thumb { width: 136px; height: 76px; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 58px; flex-wrap: wrap; padding-bottom: 7px; }
  .main-nav { display: flex; order: 3; width: 100%; height: 36px; margin-top: 4px; }
  .main-nav a { flex: 1; justify-content: center; padding: 0 8px; }
  #open-room-button { display: none; }
  .tool-head { display: block; }
  .tool-head .eyebrow { margin-top: 5px; }
  .tool-head .lead { margin-top: 7px; }
  .layout, .room-grid, .steam-grid { grid-template-columns: 1fr; }
  .filter-panel { border-right: 0; border-bottom: 1px solid #343b43; }
  .steam-input-panel { position: static; max-height: none; overflow: visible; }
  .steam-login-button, .steam-friend-search, .steam-profile-row input, .steam-remove, .steam-actions button, .steam-friend-compare { min-height: 44px; }
  .steam-friend-search, .steam-profile-row input { height: 44px; }
  .steam-bucket-nav { position: static; }
  .room-overview .members { grid-template-columns: 1fr; }
  .filter-panel.is-mobile-collapsed > .filter-block,
  .filter-panel.is-mobile-collapsed > .filter-actions { display: none; }
  .filter-panel.is-mobile-collapsed .mobile-edit-filters { display: block; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .brand { min-width: auto; }
  .brand > span:last-child { display: none; }
  .language-control select { min-width: 78px; max-width: 92px; }
  .shell { padding: 18px 10px 44px; }
  .filter-block { padding-bottom: 12px; margin-bottom: 12px; }
  .game-card { grid-template-columns: 110px minmax(0,1fr); padding-right: 30px; }
  .game-thumb { width: 98px; height: 55px; }
  .info-shell { padding: 28px 10px 20px; }
  .info-page { padding: 20px 16px; }
  .info-page h1 { font-size: 1.55rem; }
  .site-footer { padding-inline: 12px; }
}
