:root {
  color-scheme: light;
  --page: #f3f5f0;
  --surface: #ffffff;
  --ink: #202921;
  --muted: #627065;
  --line: #dce2d8;
  --lime: #d9f56b;
  --orange: #fd6b45;
  --danger: #b43726;
  --radius: 24px;
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

/* Keyword Mahjong */
.mj-demo, .mj-demo > div { display: flex; gap: 8px; }
.mj-demo { gap: 24px; margin: 26px 0; }
.mj-tile { display: inline-grid; place-items: center; width: 52px; height: 66px; flex-shrink: 0; padding: 0; border: 1px solid #bcc6b3; border-bottom: 5px solid #6f875c; border-radius: 8px; background: #fffcf2; color: #263a2a; font-size: 1.65rem; font-weight: 800; line-height: 1; box-shadow: 0 2px 0 #dce3d4; }
.mj-tile-small { width: 31px; height: 40px; font-size: 1.05rem; border-bottom-width: 3px; border-radius: 5px; }
.mj-tile.is-selected { background: var(--lime); outline: 3px solid #587b37; outline-offset: 2px; }
.mj-tile.is-drawn { border-color: #d88922; border-bottom-color: #d88922; }
.mj-tile.is-offer, .mj-tile.is-last { background: #ffddcd; }
.mj-tile.is-empty { border: 2px dashed #b8c5ab; color: #7e9272; background: #f3f7ef; box-shadow: none; font-size: 1.25rem; }
.mj-estimate { padding: 12px; border-radius: 10px; background: #f0f5e5; font-size: .8125rem; }
.mj-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mj-seat { border: 1px solid var(--line); border-radius: 15px; padding: 13px 16px; background: #fff; min-width: 0; }
.mj-seat.is-turn { border: 2px solid #688549; padding: 12px 15px; background: #f4f9e9; }
.mj-seat > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mj-seat > div > strong { font-size: 1.2rem; white-space: nowrap; }
.mj-seat p { font-size: .75rem; margin: 6px 0 0; color: var(--muted); }
.mj-reach { color: #ae3b25; font-weight: 800; }
.mj-play-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 20px; align-items: start; }
.mj-hand .panel-heading, .mj-river .panel-heading { padding: 20px; }
.mj-word-groups { display: flex; flex-wrap: wrap; gap: 20px; padding: 0 20px; }
.mj-word-group > span { display: block; font-size: .75rem; margin-bottom: 7px; color: var(--muted); }
.mj-word-group > div, .mj-meld > div { display: flex; gap: 5px; }
.mj-word-group { max-width: 100%; min-width: 0; border-bottom: 3px solid #bfceae; padding-bottom: 9px; }
.mj-word-group.is-pair { margin-inline-end: 8px; border-bottom-color: #93a58a; }
.mj-word-group.is-pair .mj-group-label > span { font-weight: 700; }
.mj-word-group.mj-drop-group { outline: 1px solid #a9b99b; outline-offset: 7px; border-radius: 3px; }
.mj-word-group .mj-group-tiles { flex-wrap: wrap; gap: 6px; }
.mj-word-group .mj-group-label { justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: .75rem; color: var(--muted); }
.mj-word-group.is-new-tile { border-bottom-color: #d88922; }
.mj-join { border: 0; border-radius: 6px; background: #edf2e7; color: #496631; padding: 2px 6px; font-size: .7rem; }
.mj-end-slot { align-self: center; border: 1px dashed #b8c5ab; border-radius: 8px; background: transparent; padding: 10px; color: var(--muted); font-size: .75rem; }
.mj-edit-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 20px 0; }
.mj-edit-tools .button { padding: 7px 10px; font-size: .75rem; }
.mj-preparation { padding: 18px 20px; border-top: 1px solid var(--line); background: #f4f9e9; }
.mj-preparation p { margin: 10px 0 0; font-size: .8125rem; }
.mj-hand h2 small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.mj-tile[data-movable="true"] { cursor: grab; user-select: none; touch-action: none; }
.mj-tile.is-dragging { opacity: .5; }
.mj-drop-target { outline: 2px dashed #587b37; outline-offset: 2px; }
.mj-tile.mj-drop-placeholder { border: 2px dashed #91a77a; background: #f4f8ef; box-shadow: none; }
.mj-drag-preview { position: fixed; z-index: 25; pointer-events: none; background: #fff; outline: 1px solid #a9b99b; outline-offset: 7px; border-radius: 3px; box-shadow: 0 0 0 6px #fff; }
.mj-insert-marker { position: fixed; width: 3px; border-radius: 3px; background: #587b37; transform: translateX(-50%); pointer-events: none; z-index: 30; }
.mj-drag-ghost { position: fixed; pointer-events: none; opacity: .9; transform: rotate(4deg); z-index: 40; box-shadow: 0 5px 16px #263a2a33; }
.mj-tile[data-movable="true"]:active { cursor: grabbing; }
.mj-chi-button { margin-top: 10px; width: 100%; }
.mj-instruction { font-size: .8125rem; color: var(--muted); margin: 18px 20px; }
.mj-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px; }
.mj-actions .button { padding: 9px 15px; font-size: .875rem; }
.mj-call { border-top: 1px solid var(--line); background: #fff9f3; padding-top: 18px; }
.mj-call > p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 20px; font-size: .875rem; }
.mj-call small { display: block; width: 100%; font-size: .75rem; }
.mj-help { margin: 20px; font-size: .8125rem; }
.mj-river-row { padding: 0 20px 18px; }
.mj-river-row > span { font-size: .75rem; color: var(--muted); }
.mj-river-row > div { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mj-discard.is-taken { opacity: .4; }
.mj-meld { margin-top: 10px; }
.mj-meld > span { display: block; font-size: .75rem; margin-bottom: 4px; }
.mj-history { margin: 22px 0; }
.mj-history article { margin: 0 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.mj-history h3 { font-size: 1rem; }
.mj-history p { font-size: .875rem; margin: 12px 0 8px; }
.mj-winning-words { display: flex; flex-wrap: wrap; gap: 10px; }
.mj-winning-words > span { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: #f2f6e9; }
.mj-winning-words small { font-size: .7rem; }
.mj-sources { color: var(--muted); text-align: center; font-size: .7rem; margin: 24px 0 8px; }
@media (max-width: 850px) { .mj-play-layout { grid-template-columns: 1fr; } }
@media (max-width: 500px) {
  .mj-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mj-seat { padding: 10px; }
  .mj-seat.is-turn { padding: 9px; }
  .mj-seat .player-name { font-size: .75rem; flex-wrap: wrap; }
  .mj-seat .pill { display: none; }
  .mj-word-groups { padding: 0 14px; gap: 18px 12px; }
  .mj-word-group .mj-tile { width: 40px; height: 53px; font-size: 1.4rem; }
  .mj-word-group > div { gap: 4px; }
  .mj-actions { margin: 16px 14px; }
  .mj-actions .button { flex: 1 1 auto; }
  .mj-hand .panel-heading, .mj-river .panel-heading { padding: 16px 14px; }
  .mj-hand .panel-heading h2 { font-size: 1rem; }
  .mj-instruction { margin: 16px 14px; }
  .mj-edit-tools { margin: 16px 14px 0; }
  .mj-preparation { padding: 16px 14px; }
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, select, textarea, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #526d00; outline-offset: 4px; }
button { color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 20px; font-weight: 850; }
h2 { font-size: 1.5rem; margin-bottom: 12px; }
h3 { font-size: 1.05rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }
small, .muted { color: var(--muted); font-size: .875rem; }
[hidden] { display: none !important; }
.site-header, #app, .site-footer { max-width: 1200px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.site-header { height: 104px; display: flex; align-items: center; gap: 28px; }
.brand { font-family: Arial, sans-serif; font-size: 32px; font-weight: 900; letter-spacing: -1.8px; text-decoration: none; line-height: 1; }
.brand > span:first-child { color: #667763; }
.brand-dot { color: var(--orange); }
.header-note { color: var(--muted); font-size: .875rem; }
.help-button { margin-left: auto; }
.help-button > span { width: 23px; height: 23px; display: inline-grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: .875rem; line-height: 1; }
#app { min-height: calc(100dvh - 182px); padding-top: 28px; padding-bottom: 32px; }
.site-footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
.button { min-height: 48px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; font-size: .9375rem; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; line-height: 1.5; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover:not(:disabled) { background: #384a39; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover:not(:disabled) { background: #c9e84e; }
.button-secondary { background: white; border-color: var(--line); }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: #e8ede3; }
.button-quiet { background: transparent; }
.button-danger { background: var(--danger); color: white; }
.button-small { padding: 8px 12px; min-height: 44px; font-size: .875rem; }
.full-width { width: 100%; }
.icon-button { border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 24px; border-radius: 10px; }
.icon-button:hover { background: #edf0e8; }
.eyebrow { display: block; font-family: Arial, sans-serif; font-weight: 800; font-size: .75rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.home-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: start; padding-top: 12px; }
.game-intro { padding-top: 18px; }
.game-intro h1 span { display: inline-block; box-shadow: inset 0 -.3em 0 var(--lime); }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; background: #e5eadd; border-radius: 7px; font-size: .8125rem; font-weight: 700; line-height: 1.6; }
.pill-orange { background: #ffe0d3; color: #8c3420; }
.intro-description { max-width: 32em; color: #4b5a4c; line-height: 1.9; }
.word-demo { margin: 26px 0 22px; padding: 22px 24px; background: var(--ink); border-radius: 20px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.word-demo small { color: #c0cdbb; }
.word-demo strong { display: block; font-size: 1.5rem; letter-spacing: .2em; }
.word-demo .hidden-word { border: 1px dashed #7e8b74; padding: 9px 22px; border-radius: 10px; background: #334033; color: var(--lime); font: 800 26px/1.5 Arial, sans-serif; letter-spacing: .2em; }
.mini-rules { list-style: none; padding: 0; display: grid; gap: 15px; margin: 0; counter-reset: steps; }
.mini-rules li { display: flex; align-items: center; gap: 14px; font-size: .9375rem; counter-increment: steps; }
.mini-rules li::before { content: "0" counter(steps); font: 800 .75rem Arial, sans-serif; color: #708063; flex-shrink: 0; border: 1px solid #cbd4c4; border-radius: 50%; width: 29px; height: 29px; display: grid; place-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-panel { padding: 30px; box-shadow: 0 10px 30px #20302005; }
.entry-panel h2 { margin-bottom: 22px; }
.tab-group { display: flex; background: #eef1e9; padding: 5px; border-radius: 13px; gap: 4px; margin-bottom: 26px; }
.tab-group button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: .9375rem; }
.tab-group button[aria-selected="true"] { background: white; box-shadow: 0 2px 6px #2029210b; }
.field { display: block; margin-bottom: 20px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .875rem; margin-bottom: 8px; }
.field-label small { font-size: .75rem; font-weight: 400; }
input, select, textarea { background: #fff; border: 1px solid #cdd5c7; color: var(--ink); border-radius: 10px; padding: 11px 13px; min-height: 48px; width: 100%; }
input::placeholder, textarea::placeholder { color: #7b8879; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: #708843; }
input:read-only { background: #f4f6f0; }
.code-input { text-transform: uppercase; font-family: Consolas, monospace; letter-spacing: .16em; }
.form-note { font-size: .8125rem; margin: 12px 0 0; text-align: center; color: var(--muted); }
.form-error { font-size: .875rem; color: #9d3022; background: #fff0ea; border-radius: 9px; padding: 10px 12px; margin-bottom: 16px; }
details { border-top: 1px solid var(--line); padding: 14px 0 0; margin: 8px 0 22px; }
summary { cursor: pointer; font-size: .875rem; min-height: 40px; font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-grid .field { margin-bottom: 12px; }
.settings-help { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.room-top h1 { font-size: 1.65rem; margin: 0; }
.room-top .eyebrow { margin-bottom: 5px; }
.room-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.code-button { font-family: Consolas, monospace; font-size: 1rem; letter-spacing: .13em; background: white; border: 1px solid var(--line); }
.code-button small { font-size: .75rem; letter-spacing: 0; }
.connection-banner { background: #fff0cf; border: 1px solid #e5c98a; border-radius: 12px; padding: 12px 16px; font-size: .875rem; margin-bottom: 20px; }
.lobby-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.panel-heading { padding: 25px 28px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 1.125rem; }
.count { font: 700 1rem/1.5 Consolas, monospace; color: var(--muted); }
.player-list { list-style: none; margin: 0; padding: 0 16px 16px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 14px; }
.player-row + .player-row { border-top: 1px solid #edf0e8; }
.player-row.is-me { background: #f0f4e8; border-top-color: transparent; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 15px; background: #e0e9d4; font-weight: 800; font-size: 1.0625rem; }
.avatar-1 { background: #fbd9c8; color: #84452c; }
.avatar-2 { background: #d7e5f8; color: #325780; }
.avatar-3 { background: #eee0f5; color: #794e8a; }
.avatar-4 { background: #f4e9b7; color: #75601b; }
.avatar-5 { background: #d0ede4; color: #316453; }
.avatar-6 { background: #efd4da; color: #813e54; }
.avatar-7 { background: #dfdef8; color: #514880; }
.player-info { flex: 1; min-width: 0; }
.player-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .9375rem; font-weight: 700; overflow-wrap: anywhere; }
.player-caption { font-size: .75rem; color: var(--muted); }
.self-tag { font-size: .75rem; font-weight: 400; color: var(--muted); }
.ready-tag { font-size: .8125rem; color: #37631d; white-space: nowrap; }
.waiting-tag { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.kick-button { min-width: 44px; min-height: 44px; padding: 4px; border: none; background: none; font-size: .75rem; color: var(--muted); text-decoration: underline; }
.empty-seat { color: #899381; font-size: .875rem; padding: 16px 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 14px; }
.empty-seat span { font-size: 21px; width: 40px; text-align: center; }
.lobby-bottom { border-top: 1px solid var(--line); padding: 22px 28px; }
.lobby-bottom p { font-size: .875rem; margin-bottom: 14px; }
.lobby-actions { display: flex; gap: 12px; }
.lobby-actions .button { flex: 1; }
.settings-panel { padding: 25px 26px; }
.settings-panel h2 { font-size: 1.125rem; margin-bottom: 20px; }
.share-panel { background: #e7eddc; border-radius: 18px; padding: 22px 24px; margin-top: 20px; }
.share-panel p { margin-bottom: 12px; font-size: .875rem; }
.share-field { display: flex; gap: 8px; }
.share-field input { min-width: 0; font-size: .8125rem; }
.settings-summary { display: grid; gap: 14px; margin: 0 0 20px; }
.settings-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.settings-summary dt { color: var(--muted); }
.settings-summary dd { margin: 0; font-weight: 700; text-align: right; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #354a30; background: var(--ink); color: white; padding: 22px 26px; border-radius: 20px; margin-bottom: 22px; }
.game-bar h2 { font-size: 1.25rem; margin: 0 0 5px; }
.game-bar p { font-size: .875rem; color: #cbd6c3; margin: 0; }
.timer { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.timer span { font-size: .8125rem; color: #cbd6c3; }
.timer strong { font: 700 2.4rem/1.2 Consolas, monospace; letter-spacing: -.05em; color: var(--lime); }
.timer.is-urgent strong { color: #ffad89; }
.play-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.word-list { list-style: none; margin: 0; padding: 0 14px 16px; }
.word-card { padding: 14px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.word-card:last-child { margin-bottom: 0; }
.word-card.is-me { background: #edf4da; border-color: #d9e6b9; }
.word-card.is-out { background: #f1f2ef; border-color: #e2e5dd; }
.word-card.is-out .forbidden-word { color: #788171; }
.word-card .avatar { height: 32px; width: 32px; border-radius: 10px; font-size: .875rem; }
.word-card-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.word-card .player-name { font-size: .8125rem; }
.forbidden-word { display: block; font-size: 1.35rem; font-weight: 800; margin-left: 41px; line-height: 1.5; overflow-wrap: anywhere; }
.secret-word { letter-spacing: .2em; color: #4d6620; font-family: Consolas, monospace; }
.word-card .player-caption { margin-left: 41px; display: block; margin-top: 3px; }
.out-label { background: #fee2d5; color: #9a3527; border-radius: 5px; padding: 2px 6px; font-size: .75rem; }
.chat-panel { display: flex; flex-direction: column; overflow: hidden; height: clamp(510px, 70dvh, 740px); }
.chat-panel .panel-heading { padding: 19px 24px; border-bottom: 1px solid var(--line); }
.chat-messages { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 160px; padding: 24px; scroll-behavior: smooth; }
.chat-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 340px; margin: auto; gap: 8px; }
.chat-empty .empty-symbol { font: 800 3.3rem/1 Arial, sans-serif; color: #9bb86a; letter-spacing: -.12em; margin-bottom: 12px; }
.chat-empty h3 { font-size: 1.125rem; margin-bottom: 0; }
.chat-empty p { font-size: .875rem; color: var(--muted); margin: 0; }
.chat-message { display: flex; gap: 10px; margin-bottom: 20px; }
.chat-message:last-child { margin-bottom: 0; }
.chat-message .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: .875rem; }
.message-body { min-width: 0; max-width: 86%; }
.message-meta { display: flex; align-items: baseline; gap: 10px; font-size: .8125rem; margin-bottom: 5px; }
.message-meta strong { overflow-wrap: anywhere; }
.message-meta time { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; background: #f0f3eb; border-radius: 0 13px 13px; padding: 11px 15px; font-size: .9375rem; }
.chat-message.own-message .message-text { background: #e6f1cd; }
.chat-message.hit-message .message-text { background: #fff0e9; border: 1px solid #f0b399; }
.hit-reason { margin-top: 6px; font-size: .8125rem; font-weight: 700; color: #a53c27; }
.chat-compose { border-top: 1px solid var(--line); padding: 18px 20px 12px; background: white; }
.compose-row { display: flex; align-items: flex-end; gap: 10px; }
.compose-row textarea { resize: none; min-height: 51px; max-height: 140px; height: 54px; font-size: 1rem; }
.compose-row .button { min-height: 54px; flex-shrink: 0; }
.compose-hint { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; color: var(--muted); margin-top: 7px; }
.spectator-notice { margin: 0; font-size: .875rem; text-align: center; padding: 12px; background: #fff0e9; border-radius: 10px; color: #8d432e; }
.room-footnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.room-footnote p { margin: 0; font-size: .8125rem; color: var(--muted); }
.conversation-instructions { margin-bottom: 24px; max-width: 850px; }
.conversation-instructions h2 { font-size: 1.2rem; }
.conversation-instructions p { font-size: .9375rem; margin-bottom: 8px; }
.conversation-instructions .muted { font-size: .8125rem; }
.conversation-board .word-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 22px 22px; }
.conversation-board .word-card { padding: 20px; margin: 0; display: flex; flex-direction: column; }
.conversation-board .forbidden-word { font-size: 1.7rem; margin: 12px 0 6px; }
.conversation-board .player-caption { margin-left: 0; }
.judgment-controls { margin-top: auto; padding-top: 20px; }
.vote-count { display: flex; gap: 7px; align-items: baseline; font-weight: 800; margin-bottom: 10px; }
.vote-count span { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.judgment-controls > .player-caption { min-height: 48px; display: flex; align-items: center; }
.judgment-confirmed { font-size: .875rem; margin-top: 20px; margin-bottom: 0; color: var(--danger); font-weight: 700; }
.judgment-history { margin-top: 22px; }
.result-layout .judgment-history { margin-top: 0; }
.judgment-history ul { list-style: none; margin: 0; padding: 0 28px 20px; }
.judgment-history li { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.judgment-history li > span { margin-left: 16px; font-size: .875rem; color: var(--danger); }
.judgment-history li p { font-size: .8125rem; color: var(--muted); margin: 4px 0 0; }
.judgment-empty { padding: 0 28px 24px; font-size: .875rem; color: var(--muted); margin: 0; }
.result-banner { padding: 30px 32px; border-radius: var(--radius); background: var(--lime); display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.result-banner h2 { font-size: 1.8rem; margin-bottom: 8px; }
.result-banner p { margin-bottom: 0; font-size: .9375rem; }
.result-banner .eyebrow { color: #52631f; }
.result-symbol { font: 900 4.5rem/1 Arial, sans-serif; letter-spacing: -.08em; color: #33450f; padding-right: 6px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.result-list { list-style: none; padding: 0 20px 20px; margin: 0; }
.result-row { display: flex; align-items: flex-start; gap: 12px; padding: 18px 8px; border-top: 1px solid var(--line); }
.result-row .result-detail { flex: 1; min-width: 0; }
.result-word { font-size: .875rem; margin: 4px 0; color: #4d6047; overflow-wrap: anywhere; }
.result-word strong { font-size: 1.125rem; color: var(--ink); }
.result-reason { font-size: .8125rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.result-quote { font-size: .8125rem; padding: 8px 11px; background: #fff0e9; border-radius: 8px; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-score { font: 700 1.0625rem/1.5 Consolas, monospace; white-space: nowrap; }
.result-score small { display: block; font-size: .75rem; font-family: inherit; }
.result-chat { height: 470px; }
.result-actions { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.result-actions p { margin: 0; font-size: .875rem; color: var(--muted); }
dialog { border: 1px solid var(--line); background: white; color: var(--ink); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border-radius: 24px; padding: 28px 32px; box-shadow: 0 24px 90px #14200f30; }
dialog::backdrop { background: #17200e70; backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-top .eyebrow { margin-bottom: 0; }
.rules-list { list-style: none; padding: 0; counter-reset: rules; }
.rules-list li { margin-bottom: 22px; counter-increment: rules; }
.rules-list strong::before { content: counter(rules) ". "; color: #637c32; }
.rules-list p { font-size: .875rem; color: var(--muted); margin: 4px 0 0; }
.rule-note { background: #f1f5e9; padding: 16px; border-radius: 13px; margin-bottom: 20px; font-size: .875rem; }
.rule-note p { margin: 6px 0 0; }
.mj-rulebook { font-size: .875rem; line-height: 1.8; }
.mj-rulebook h2 { line-height: 1.4; }
.mj-rulebook summary { font-size: .9375rem; }
.mj-rulebook ul { padding-left: 1.4em; }
.mj-current-rules { padding: 12px; border-radius: 10px; background: #f3f5f0; color: var(--muted); font-size: .8125rem; }
.mj-word-examples { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; }
.mj-word-examples dt { font-weight: 700; }
.mj-word-examples dd { margin: 0; }
#help-dialog .dialog-top { position: sticky; top: -1px; background: white; z-index: 1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 14px 22px; background: var(--ink); color: white; border-radius: 13px; box-shadow: 0 8px 32px #17200e33; max-width: min(540px, calc(100% - 32px)); width: max-content; font-size: .875rem; z-index: 20; }
.loading-state, .noscript { padding: 80px 20px; text-align: center; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* --- クローバー（So Clover!型） --- */
.site-intro { padding: 10px 0 26px; max-width: 40em; }
.site-intro h1 { margin-bottom: 14px; }
.site-intro h1 span { display: inline-block; box-shadow: inset 0 -.3em 0 var(--lime); }
.site-intro .intro-description { margin-bottom: 0; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.catalog-heading h2 { margin: 0; }
.catalog-layout .entry-panel { padding: 26px; }
.game-cards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.game-card:hover { border-color: #9fb488; transform: translateY(-2px); box-shadow: 0 12px 28px #2030200f; }
.game-card .eyebrow, .game-card .game-meta { margin-bottom: 0; }
.game-card h3 { margin: 0; font-size: 1.3rem; }
.game-card p { margin: 0; font-size: .875rem; color: #4b5a4c; line-height: 1.8; }
.game-card-cta { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .875rem; color: #4d6b1f; }
.game-card-cta::after { content: " →"; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: .875rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.join-layout { max-width: 520px; margin: 0 auto; }
.join-layout .entry-panel { padding: 30px; }
.join-layout h1 { font-size: 2rem; margin-bottom: 8px; }
.join-layout .form-note { margin-top: 18px; }
.clover-demo { margin: 26px 0 22px; padding: 20px 24px; background: var(--ink); border-radius: 20px; color: white; }
.clover-demo p { margin: 12px 0 0; font-size: .8125rem; color: #c0cdbb; }
.clover-demo-leaf { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.clover-demo-leaf span { padding: 8px 16px; border-radius: 11px; background: #334033; font-weight: 700; }
.clover-demo-leaf strong { padding: 9px 20px; border-radius: 11px; background: var(--lime); color: var(--ink); font-size: 1.125rem; }
.clover-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.clover-panel { padding: 24px; }
.clover-panel > .panel-heading { padding: 0 0 4px; }
.clover-panel > .muted { font-size: .8125rem; margin-bottom: 18px; }
.clover-progress { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; margin-bottom: 18px; }
.clover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.clover-leaf { background: #f4f7ef; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.clover-leaf:nth-child(1) { border-radius: 30px 30px 6px 30px; }
.clover-leaf:nth-child(2) { border-radius: 30px 30px 30px 6px; }
.clover-leaf:nth-child(3) { border-radius: 30px 6px 30px 30px; }
.clover-leaf:nth-child(4) { border-radius: 6px 30px 30px 30px; }
.clover-leaf.is-correct { background: #eef8db; border-color: #a9c86a; }
.clover-leaf.is-wrong { background: #fdf0ec; border-color: #e5b6a8; }
.leaf-words, .leaf-slots { display: flex; align-items: center; gap: 6px; }
.leaf-words { flex-wrap: wrap; }
.leaf-plus { color: var(--muted); font-size: .8125rem; }
.word-chip { flex: 1; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; }
.word-chip.is-fixed { display: flex; align-items: center; justify-content: center; }
.word-chip.is-picked { background: var(--lime); border-color: #9cb84e; }
.leaf-field { margin: 0; }
.leaf-field input { min-height: 46px; font-weight: 700; }
.leaf-hint { margin: 0; font-weight: 800; font-size: 1.0625rem; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.leaf-mark { font-size: .8125rem; font-weight: 700; white-space: nowrap; color: #4d7020; }
.is-wrong .leaf-mark { color: var(--danger); }
.leaf-answer { margin: 0; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.card-slot { flex: 1; min-width: 0; min-height: 52px; padding: 10px; border-radius: 13px; border: 1px solid var(--line); background: white; font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; }
.card-slot.is-empty { border: 2px dashed #b9c6b0; background: #fbfcf9; color: #8d9a89; }
.card-slot.is-picked { background: var(--lime); border-color: #9cb84e; }
.card-slot.is-fixed { display: flex; align-items: center; justify-content: center; }
.card-tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: #f4f7ef; border: 1px dashed #c3cfba; border-radius: 18px; margin-bottom: 20px; }
.card-tray .muted { margin: 0; font-size: .8125rem; }
.clover-card { min-height: 46px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: white; font-weight: 700; font-size: .9375rem; }
.clover-card.is-picked { background: var(--lime); border-color: #9cb84e; }
.clover-waiting { margin: 0; padding: 14px; border-radius: 12px; background: #eef1e9; font-size: .875rem; text-align: center; }
.owner-answer { border-top: 0; margin: 0 0 18px; padding: 0; }
.owner-answer summary { color: var(--muted); }
.owner-answer-list { margin: 10px 0 0; padding-left: 1.3em; font-size: .875rem; }
.owner-answer-list li { margin-bottom: 4px; }
.tip-list { margin: 0; padding-left: 1.2em; font-size: .875rem; }
.tip-list li { margin-bottom: 8px; }
.clover-chat { height: clamp(420px, 58dvh, 640px); }
.clover-result-list { list-style: none; margin: 0; padding: 0 24px 20px; }
.clover-result { border-top: 1px solid var(--line); padding: 18px 0; }
.clover-result-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.clover-result-top .result-score { margin-left: auto; }
.clover-answer { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.clover-answer li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 11px; background: #f4f7ef; font-size: .875rem; }
.clover-answer li.is-wrong { background: #fdf0ec; }
.clover-answer strong { min-width: 6em; }
.clover-placed { flex-basis: 100%; color: var(--danger); font-size: .8125rem; }
.clover-decoys { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
@media (min-width: 1000px) { .game-intro { padding-right: 18px; } }
@media (max-width: 900px) {
  .conversation-board .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header, #app, .site-footer { padding-left: 24px; padding-right: 24px; }
  .home-layout { gap: 28px; }
  .entry-panel { padding: 24px; }
  .lobby-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); gap: 16px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .panel-heading, .lobby-bottom { padding-left: 20px; padding-right: 20px; }
  .play-layout { grid-template-columns: 255px minmax(0, 1fr); gap: 16px; }
  .clover-layout { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .9fr); gap: 16px; }
  .clover-panel { padding: 20px; }
  .result-layout { grid-template-columns: 1fr; }
  .result-chat { height: 360px; }
}
@media (max-width: 680px) {
  .conversation-board .word-list { padding: 0 12px 12px; gap: 10px; }
  .conversation-board .word-card { padding: 14px; }
  .conversation-board .forbidden-word { font-size: 1.3rem; }
  .judgment-controls .button { font-size: .8125rem; padding: 10px 6px; }
  .conversation-board .player-name { font-size: .875rem; }
  .site-header, #app, .site-footer { padding-left: 18px; padding-right: 18px; }
  .site-header { height: 82px; gap: 12px; }
  .brand { font-size: 28px; }
  .header-note { display: none; }
  .help-button { padding-right: 0; }
  #app { padding-top: 12px; }
  .home-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .game-intro { padding-top: 0; }
  .game-intro h1 { margin-bottom: 14px; font-size: 2.05rem; }
  .game-intro .eyebrow { margin-bottom: 10px; }
  .game-meta { margin-bottom: 16px; }
  .intro-description { margin-bottom: 0; font-size: .9375rem; }
  .word-demo { display: none; }
  .mini-rules { display: none; }
  .entry-panel { padding: 24px; }
  .site-footer { flex-wrap: wrap; gap: 4px; padding-top: 18px; padding-bottom: 18px; }
  .room-top { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .room-top h1 { font-size: 1.4rem; }
  .room-tools { justify-content: space-between; width: 100%; }
  .lobby-layout { grid-template-columns: 1fr; }
  .lobby-actions { flex-wrap: wrap; }
  .lobby-actions .button { min-width: 130px; }
  .game-bar { padding: 18px; margin-bottom: 16px; gap: 10px; }
  .game-bar h2 { font-size: 1.0625rem; }
  .game-bar p { font-size: .75rem; }
  .timer { display: block; }
  .timer span { display: block; font-size: .75rem; text-align: right; }
  .timer strong { font-size: 2rem; }
  .play-layout { grid-template-columns: 1fr; }
  .clover-layout { grid-template-columns: 1fr; gap: 16px; }
  .clover-demo { display: none; }
  .clover-panel { padding: 16px; }
  .clover-grid { grid-template-columns: 1fr; gap: 8px; }
  .clover-leaf { border-radius: 20px !important; padding: 13px; }
  .clover-result-list { padding: 0 14px 14px; }
  .clover-answer strong { min-width: 0; }
  .site-intro { padding-bottom: 18px; }
  .site-intro h1 { font-size: 2.05rem; }
  .game-cards { grid-template-columns: 1fr; }
  .game-card { padding: 18px 20px; border-radius: 20px; }
  .join-layout .entry-panel { padding: 24px; }
  .word-panel .panel-heading { padding: 16px 18px 12px; }
  .word-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; }
  .word-card { margin: 0; padding: 11px; }
  .word-card .avatar { display: none; }
  .forbidden-word, .word-card .player-caption { margin-left: 0; }
  .forbidden-word { font-size: 1.125rem; }
  .word-card-top { margin-bottom: 5px; }
  .word-card .player-name { font-size: .75rem; }
  .word-card .player-caption { font-size: .75rem; }
  .chat-panel { height: 580px; max-height: 90dvh; }
  .chat-panel .panel-heading { padding: 14px 18px; }
  .chat-messages { padding: 18px 14px; }
  .chat-compose { padding: 14px 12px 10px; }
  .compose-row .button { padding: 10px 14px; }
  .compose-hint .desktop-hint { display: none; }
  .room-footnote { align-items: flex-start; }
  .result-banner { padding: 24px; }
  .result-banner h2 { font-size: 1.4rem; }
  .result-symbol { display: none; }
  .result-list { padding: 0 12px 12px; }
  .result-actions { flex-wrap: wrap; }
  dialog { padding: 24px; }
}
.insider-steps { display: flex; gap: 12px; list-style: none; margin: 0 0 18px; padding: 0; }
.insider-steps li { flex: 1; border-bottom: 3px solid var(--line); padding: 8px 4px; font-size: .875rem; color: var(--muted); }
.insider-steps li[aria-current] { color: var(--ink); border-color: var(--orange); font-weight: 800; }
.insider-steps li > span { font: 700 .75rem Arial, sans-serif; margin-right: 10px; }
.insider-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.insider-sidebar { display: grid; gap: 18px; min-width: 0; }
.insider-role { border: 1px solid var(--line); background: #eaf0df; border-radius: 24px; padding: 24px; }
.insider-role .eyebrow { margin-bottom: 10px; }
.insider-role .role-caption { margin: 0; font-size: .875rem; }
.insider-role h2 { font-size: 1.8rem; margin: 2px 0 10px; }
.insider-role > p { font-size: .875rem; }
.insider-role.is-insider { background: var(--ink); color: white; }
.insider-role.is-insider .eyebrow, .insider-role.is-insider small { color: #d2deca; }
.insider-topic { border-top: 1px solid #8c9d804d; padding-top: 14px; display: grid; gap: 3px; }
.insider-topic > span { font-size: .8125rem; }
.insider-topic strong { font-size: 1.65rem; overflow-wrap: anywhere; }
.insider-panel { padding: 24px; }
.insider-panel h2 { font-size: 1.25rem; }
.insider-panel .settings-help { margin: 14px 0; }
.insider-panel .settings-help:last-child { margin-bottom: 0; }
.insider-panel form + .settings-help { font-size: .75rem; }
#insider-guess-form { border-top: 1px solid var(--line); padding-top: 18px; }
.insider-guide-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; }
.insider-guide-heading h3 { font-size: .9375rem; margin: 0; }
.insider-guide-heading > span { color: var(--muted); font-size: .75rem; }
.insider-last-clue { display: flex; gap: 8px; align-items: baseline; font-size: .8125rem; line-height: 1.6; padding: 10px 0; }
.insider-last-clue .pill { flex-shrink: 0; }
.insider-question-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.insider-question-choice { display: grid; gap: 4px; align-content: start; text-align: left; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f1; color: var(--ink); font: inherit; cursor: pointer; }
.insider-question-choice:hover:not(:disabled) { background: #eaf0df; border-color: var(--ink); }
.insider-question-choice:disabled { opacity: .5; cursor: default; }
.insider-question-choice small { font-size: .6875rem; color: var(--muted); }
.insider-question-choice > span { font-size: .8125rem; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.insider-question-browse { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.insider-question-browse summary { font-size: .875rem; }
.insider-question-browse[open] summary { margin-bottom: 14px; }
.insider-question-browse select { width: 100%; min-width: 0; }
.insider-chat { height: 720px; max-height: 90dvh; }
.insider-yes { background: var(--lime); color: var(--ink); }
.insider-voters { padding: 0; margin: 16px 0; list-style: none; }
.insider-voters li { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.insider-voters .player-name { flex-wrap: wrap; }
.insider-vote-status { padding: 12px; border-radius: 10px; background: #f0f4e9; font-size: .875rem; }
.insider-question-log { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; margin-top: 24px; }
.insider-question-log .chat-message { margin: 12px 0; }
.insider-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.insider-reveal > div { background: #e8efdc; padding: 20px 24px; border-radius: 18px; }
.insider-reveal span { display: block; font-size: .8125rem; color: var(--muted); }
.insider-reveal strong { display: block; font-size: 1.65rem; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .insider-layout { grid-template-columns: 1fr; gap: 18px; }
  .insider-role, .insider-panel { padding: 20px; }
  .insider-role h2 { font-size: 1.5rem; }
  .insider-chat { height: 530px; }
  .insider-steps { gap: 8px; }
  .insider-steps li { font-size: .75rem; }
  .insider-steps li > span { margin-right: 6px; }
  .insider-reveal { grid-template-columns: 1fr; gap: 10px; }
  .insider-reveal strong { font-size: 1.4rem; }
  .insider-layout .compose-hint > span:first-child { max-width: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
