.salon-games { background: #e8edf5; }
.salon-games [hidden] { display: none !important; }
.salon-games-jump { margin: 16px 0 0 12px; }
.salon-games-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.salon-games-heading h2 { max-width: 760px; margin: 0 0 16px; font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.12; font-weight: 500; }
.salon-games-heading p { max-width: 650px; margin: 0; }
.salon-games-note { flex-shrink: 0; padding-left: 24px; border-left: 2px solid #5b5f9b; font-size: 17px; }
.salon-games-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.salon-game-choice { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; background: #fff; border-radius: 12px; }
.salon-game-symbol { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e8edf5; color: #272b52; font-family: var(--serif); font-size: 48px; line-height: 1; }
.salon-game-symbol-quiz { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.salon-game-symbol-expressions { background: #faf0cd; padding-bottom: 20px; }
.salon-game-symbol-pairs { background: #e3efdf; }
.salon-game-choice .salon-game-detail { margin: 24px 0 10px; font-size: 15px; color: #505777; }
.salon-game-choice h3 { margin: 0; font-family: var(--serif); font-size: 29px; line-height: 1.2; }
.salon-game-choice p { margin: 16px 0 24px; }
.salon-game-choice .button { margin-top: auto; width: 100%; white-space: normal; text-align: center; min-height: 52px; }
.salon-game-player { padding: clamp(20px, 4vw, 48px); background: #fff; border: 2px solid #5b5f9b; border-radius: 16px; scroll-margin-top: 110px; }
.salon-game-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.salon-game-toolbar p { margin: 0; font-weight: 700; }
.salon-game-player h3 { font-family: var(--serif); font-size: clamp(27px, 3vw, 40px); line-height: 1.25; margin: 16px 0 24px; }
.salon-game-progress { color: #505777; font-weight: 600; }
.salon-game-answers { display: grid; gap: 12px; max-width: 800px; }
.salon-game-answer { border: 2px solid #9a9db4; background: #fff; color: #262741; border-radius: 10px; padding: 18px 22px; font-size: 21px; text-align: left; min-height: 60px; cursor: pointer; }
.salon-game-answer:hover:not([aria-disabled="true"]) { background: #e8edf5; border-color: #272b52; }
.salon-game-answer.is-correct { background: #e3efdf; border-color: #437344; color: #244d29; }
.salon-game-answer.is-incorrect { border-style: dashed; }
.salon-game-feedback { max-width: 800px; font-size: 20px; }
.salon-game-feedback:empty { display: none; }
.salon-game-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.salon-pairs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 800px; }
.salon-pair-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 135px; padding: 12px 6px; border: 2px solid #5b5f9b; border-radius: 12px; background: #272b52; color: #fff; font-size: 40px; cursor: pointer; }
.salon-pair-card small { font-family: var(--sans); font-size: 16px; }
.salon-pair-card.is-turned { background: #f8f5f2; color: #262741; }
.salon-pair-card.is-matched { background: #e3efdf; border-color: #437344; color: #244d29; }
.salon-games button:focus-visible { outline: 3px solid #272b52; outline-offset: 4px; }
.salon-games button:disabled { opacity: .6; cursor: default; }
.salon-player-profile { margin-bottom: 24px; }
.salon-player-profile summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.salon-profile-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.salon-game-levels { display: flex; flex-wrap: wrap; gap: 14px; border: 0; padding: 0; margin: 0 0 28px; }
.salon-game-levels legend { margin-bottom: 12px; font-weight: 700; }
.salon-game-levels label { flex: 1 1 180px; display: flex; align-items: center; gap: 12px; padding: 18px; background: white; border: 2px solid #9a9db4; border-radius: 10px; cursor: pointer; }
.salon-game-levels label:has(input:checked) { border-color: #272b52; background: #f1effa; }
.salon-game-levels small { display: block; }
.salon-games input[type=radio], .salon-games input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; accent-color: #5b5f9b; }
.salon-score-form { display: grid; gap: 18px; max-width: 670px; }
.salon-score-form > label, .salon-ranking-filters label { display: grid; gap: 6px; font-weight: 600; }
.salon-score-form input:not([type=checkbox]), .salon-ranking-filters select { min-width: 0; width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: #262741; background: white; border: 2px solid #9a9db4; border-radius: 8px; }
.salon-games .salon-form-choice { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.5; }
.salon-form-choice input { margin-top: 4px; }
.salon-player-signup { max-width: 750px; padding: 24px 0; }
.salon-player-signup h4 { font-family: var(--serif); font-size: 30px; margin: 0; }
.salon-player-signup > .button { margin-top: 18px; }
.salon-score-form .button { white-space: normal; }
.salon-game-actions { margin-top: 28px; }
.salon-score-number { font-family: var(--serif); font-size: 64px; margin: 10px 0; color: #272b52; }
.salon-recovery-code { border: 2px solid #5b5f9b; background: #fff; padding: 22px; margin: 24px 0; border-radius: 12px; }
.salon-recovery-code code { display: block; overflow-wrap: anywhere; font-size: 22px; user-select: all; }
.salon-leaderboard { margin-top: 48px; padding-top: 32px; border-top: 1px solid #9a9db4; }
.salon-leaderboard h3 { font-family: var(--serif); font-size: 34px; margin: 0; }
.salon-ranking-filters { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.salon-ranking-filters label { flex: 1 1 220px; }
.salon-leaderboard table { width: 100%; border-collapse: collapse; background: white; }
.salon-leaderboard caption { text-align: left; padding: 12px 0; font-weight: 600; }
.salon-leaderboard th, .salon-leaderboard td { text-align: left; padding: 16px; border-bottom: 1px solid #d1d6e4; overflow-wrap: anywhere; }
.salon-leaderboard th:last-child, .salon-leaderboard td:last-child { text-align: right; white-space: nowrap; }
.salon-leaderboard th:first-child, .salon-leaderboard td:first-child { width: 70px; }
.salon-leaderboard .salon-game-detail { font-size: 16px; }
.salon-arcade-screen { background: #272b52; color: #fff; border: 3px solid #7378a8; border-radius: 14px; padding: clamp(12px, 3vw, 28px); }
.salon-arcade-screen .salon-arcade-label { margin: 0 0 8px; color: #efc768; font-family: "Courier New", monospace; font-size: 30px; font-weight: 700; letter-spacing: .12em; }
.salon-games .salon-arcade-screen table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #fff; background: transparent; }
.salon-games .salon-arcade-screen caption { text-align: left; padding: 8px 0 20px; color: #e1e4f5; }
.salon-games .salon-arcade-screen th, .salon-games .salon-arcade-screen td { padding: 14px 10px; border-bottom: 1px solid #5b6087; text-align: left; overflow-wrap: anywhere; }
.salon-games .salon-arcade-screen th:first-child { width: 64px; }
.salon-games .salon-arcade-screen th:last-child { width: 80px; }
.salon-games .salon-arcade-screen td:last-child, .salon-games .salon-arcade-screen th:last-child { text-align: right; }
.salon-arcade-rank, .salon-arcade-points { font-family: "Courier New", monospace; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 23px; }
.salon-games .salon-arcade-screen .is-current-player { background: #efc768; color: #272b52; font-weight: 700; }
.salon-personal-rank { font-weight: 700; color: #272b52; }
.salon-result-ranking { margin: 28px 0; }
.salon-result-ranking h4 { margin: 0 0 18px; font-family: var(--serif); font-size: 26px; }
.salon-games [role=alert] { padding: 18px; border: 2px solid #944427; border-radius: 10px; background: #fff; }
@media (max-width: 700px) {
  .salon-games-heading { display: block; }
  .salon-games-note { display: block; margin-top: 24px; }
  .salon-games-jump { margin-left: 0; }
  .salon-game-choice { padding: 24px; }
  .salon-pairs-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .salon-pair-card { min-height: 112px; font-size: 30px; }
  .salon-pair-card small { font-size: 14px; }
  .salon-game-toolbar .button { padding: 12px 16px; }
}
