/* A quieter Gather: one clear action and readable, useful details. */
:root { --muted: #65665c; }
.topbar { max-width: 1240px; margin: auto; padding: 0 40px; border: 0; height: 88px; }
.brand { font-size: 20px; gap: 11px; }
.brand-mark { width: 34px; height: 34px; font-size: 24px; }
.join-entry { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 10px 17px; background: transparent; border: 1px solid #cbcbbd; border-radius: 24px; font-size: 13px; cursor: pointer; }
.join-entry:hover { background: #e9ecdf; border-color: #75816c; }
.page-shell { width: min(1160px, calc(100% - 80px)); }
.hero { min-height: 0; padding: 60px 0 48px; border: 0; grid-template-columns: 1fr auto; gap: 30px; }
.hero h1 { font-size: clamp(46px, 5.5vw, 74px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -.05em; }
.hero h1 em { color: #ba5b46; }
.hero-description { max-width: none; font-size: 15px; color: var(--muted); margin: 0; }
.gather-flower { font: 190px/1 Georgia, serif; color: #d99173; padding-right: 42px; transform: rotate(12deg); user-select: none; }
.games-section { padding: 8px 0 48px; }
.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { border-radius: 16px; overflow: hidden; border-color: #e0ddd1; }
.game-art { height: 216px; }
.game-art-sun { width: 152px; height: 152px; top: 28px; right: 32px; }
.tile-doodle-a { top: 34px; left: 18%; font-size: 88px; }
.tile-doodle-b { top: 58px; right: 21%; font-size: 52px; }
.tile-doodle-c { bottom: 24px; right: 43%; font-size: 42px; }
.odd-art-word { font-size: 20px; padding: 12px 16px; border-radius: 4px; }
.odd-art-word-a { top: 32px; left: 12%; }
.odd-art-word-b { top: 24px; right: 10%; background: #51624d; }
.odd-art-word-c { bottom: 44px; right: 12%; background: #875d4d; }
.odd-art-word-d { bottom: 22px; left: 15%; background: #51624d; }
.game-art-mafia::before { background: radial-gradient(ellipse at 55% 35%, #666750, #343d34 60%, #232e28); }
.mafia-art-orbit { top: 20%; height: 64%; width: 70%; left: 14%; }
.mafia-art-eye { top: 53%; left: 43%; font-size: 66px; }
.mafia-art-moon { top: 17%; right: 20%; font-size: 49px; }
.game-card-body { padding: 24px; }
.card-title { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.card-title h2 { font: 500 clamp(22px, 2.1vw, 28px)/1.15 var(--serif); letter-spacing: -.035em; margin: 0; }
.game-arrow { font-size: 23px; color: #607052; }
.game-card-body p { max-width: none; font-size: 13px; line-height: 1.6; color: #67675b; margin: 12px 0 24px; }
.game-card-meta { justify-content: space-between; font: 12px var(--sans); letter-spacing: 0; color: #646659; }
.footer { align-items: center; padding: 20px 0 28px; font: 12px var(--sans); letter-spacing: 0; color: #747367; }
.footer > span:last-child { font: 24px var(--serif); color: #617255; }
.modal { border-radius: 20px; padding: 34px; }
.modal h2 { font-size: 40px; line-height: 1.08; margin-bottom: 20px; }
.modal-kicker { color: #686a5c; font: 12px var(--sans); letter-spacing: 0; }
.modal-topline { min-height: 26px; padding-right: 32px; }
.game-rules { margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.game-rules summary { padding: 0 0 15px; font-size: 13px; cursor: pointer; color: #53644c; }
.game-rules .modal-description { font-size: 14px; color: #626356; margin: 0 0 18px; }
.field-label { font: 13px var(--sans); letter-spacing: 0; color: #555b4d; }
.text-input { height: 48px; border-radius: 8px; font-size: 16px; }
.text-input::placeholder { color: #7b7e70; }
.button { min-height: 48px; height: auto; border-radius: 8px; padding: 13px 16px; font-size: 14px; }
.button-secondary { margin-top: 10px; }
.icon-button { width: 44px; height: 44px; }
.form-message { font-size: 13px; }
.room-main, .room-sidebar { border-radius: 16px; }
.room-title { margin-bottom: 18px; }
.room-subtitle, .room-callout, .mafia-callout { font-size: 14px; color: #626653; }
.room-eyebrow, .people-count, .code-label, .mafia-kicker, .mafia-step-label { color: #696c5c; font-size: 11px; letter-spacing: .07em; }
.room-main .room-subtitle:empty { display: none; }
.code-box { gap: 16px; border-radius: 10px; padding: 22px 18px; }
.code-value { font-size: clamp(22px, 4vw, 32px); }
.copy-button { min-height: 44px; border-radius: 8px; font-size: 13px; }
.player-name, .clue-nickname, .mafia-person-name { font-size: 13px; }
.player-status { font-size: 11px; color: #707263; }
.player-status:empty { display: none; }
.avatar { width: 34px; height: 34px; font-size: 15px; }
.kick-button { min-width: 40px; min-height: 44px; font-size: 20px; }
.leave-button { min-height: 44px; font-size: 12px; color: #6e7161; }
.clue-row { border-radius: 8px; padding: 16px; }
.clue-number { font-size: 25px; }
.guess-lock, .private-word-note, .mafia-private-note, .mafia-invite-note { font-size: 12px; color: #686b5d; line-height: 1.6; }
.private-word { border-radius: 12px; padding: 26px; }
.private-word-value { margin: 22px 0 14px; }
.private-word-label, .private-word-label span { color: #626653; font-size: 10px; }
.odd-wait-card, .mafia-role-card, .mafia-night-card, .mafia-result-card, .mafia-morning-card, .mafia-dead-card, .mafia-wait-card { border-radius: 12px; }
.odd-wait-card p, .finish-banner, .vote-results > p { font-size: 13px; }
.vote-choice { min-height: 48px; font-size: 14px; border-radius: 8px; }
.mafia-choice { border-radius: 8px; }
.mafia-choice > span:nth-child(2) { font-size: 14px; }
.mafia-display-link { font-size: 11px; min-height: 44px; border-radius: 8px; }
.toast { max-width: calc(100% - 32px); border-radius: 10px; font-size: 13px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #ad543e; outline-offset: 4px; }
body:has(#room-screen:not(.is-hidden)) .join-entry { display: none; }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 48px); }
  .game-grid { gap: 14px; }
  .game-card-body { padding: 18px; }
  .game-card-body p { min-height: 42px; }
  .gather-flower { font-size: 140px; padding-right: 0; }
}
@media (max-width: 700px) {
  .topbar { height: 76px; padding: 0 22px; }
  .page-shell { width: calc(100% - 40px); }
  .hero { padding: 32px 0; grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: clamp(39px, 9.5vw, 60px); margin-bottom: 16px; }
  .hero-description { font-size: 14px; max-width: 300px; }
  .gather-flower { display: none; }
  .game-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; border-radius: 12px; }
  .game-art { height: 100%; min-height: 151px; }
  .game-card-body { padding: 20px 16px; }
  .card-title h2 { font-size: 23px; }
  .game-arrow { font-size: 19px; }
  .game-card-body p { min-height: 0; margin: 8px 0 16px; font-size: 12px; }
  .game-card-meta { font-size: 11px; gap: 6px; flex-wrap: wrap; }
  .game-art-sun { width: 95px; height: 95px; right: -30px; top: 34px; }
  .tile-doodle-a { left: 12px; top: 20px; font-size: 65px; }
  .tile-doodle-b { right: 10px; top: 67px; font-size: 36px; }
  .tile-doodle-c { right: 48px; bottom: 14px; font-size: 27px; }
  .game-art-odd .odd-art-word { font-size: 11px; padding: 7px; }
  .odd-art-word-a { left: 9px; top: 22px; }
  .odd-art-word-b { right: -12px; top: 55px; }
  .odd-art-word-c { right: 13px; bottom: 12px; }
  .odd-art-word-d { left: -12px; bottom: 40px; }
  .mafia-art-eye { font-size: 50px; left: 44%; top: 59%; }
  .mafia-art-moon { font-size: 31px; right: 14%; }
  .games-section { padding: 0 0 32px; }
  .footer { flex-direction: row; font-size: 11px; }
  .modal { padding: 30px 24px; }
  .code-box { flex-wrap: wrap; }
  .room-screen { padding-top: 12px; }
  .room-main, .room-sidebar { padding: 22px; }
  .room-main .guess-form .button { min-width: 90px; }
}
@media (max-width: 350px) {
  .game-card { grid-template-columns: 88px minmax(0, 1fr); }
  .game-card-body { padding: 17px 12px; }
  .card-title h2 { font-size: 21px; }
  .join-entry { padding: 9px 12px; gap: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .game-card:hover, .button:hover, .vote-choice:hover, .mafia-choice:hover { transform: none; }
}
