/* Additive community menus. Existing lobby, official tournament cards, and table styles are unchanged. */
#communityMenuBar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 10px;
  flex: 0 0 auto;
}
#communityMenuBar .community-menu-btn {
  min-height: 42px;
  flex-direction: row;
  gap: 5px;
  padding: 8px 6px;
  min-width: 0;
}
/* 로비 기능 바(.lobby-feature-icon)와 같은 선 아이콘 규격 — 금색 stroke, 활성 시 진갈색 */
#communityMenuBar .community-menu-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #f2c14e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
#communityMenuBar .is-active .community-menu-icon { stroke: #241703; filter: none; }
#communityMenuBar .community-menu-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f5c96b; color: #241703; font-size: 10px; }
#communityMenuBar .community-menu-count[hidden] { display: none; }
#communityMenuBar .community-menu-new { color: #f5c96b; font-size: 8px; letter-spacing: .06em; }
#communityMenuBar .is-active .community-menu-new { color: #573708; }
@media (max-width:360px) { #communityMenuBar { gap:6px; padding-inline:10px; } }
@media (max-width:390px) { #communityMenuBar .community-menu-new { display:none; } #communityMenuBar .community-menu-icon { width:19px; height:19px; flex-basis:19px; } }

#communityMenuRoot { width: min(100%, 620px); margin: 0 auto; color: #f3e6c2; font-size: 13px; }
#communityMenuRoot * { box-sizing: border-box; }
#communityMenuRoot button,
#communityMenuRoot input,
#communityMenuRoot select,
#communityMenuRoot textarea { font-family: inherit; }
#communityMenuRoot button { cursor: pointer; }
#communityMenuRoot button:disabled { cursor: default; }
#communityMenuRoot [hidden] { display: none !important; }
#communityMenuRoot .mp-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; }
#communityMenuRoot .mp-filter button { min-height: 35px; border: 1px solid rgba(181, 154, 94, .4); border-radius: 8px; background: #241b0d; color: #b8a87f; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-filter button.is-active { border-color: #f0c95c; background: rgba(245,187,69,.14); color: #ffd76a; }
#communityMenuRoot .mp-primary { display: block; width: 100%; min-height: 41px; padding: 10px; border: 1px solid #e5a61f; border-radius: 10px; background: linear-gradient(180deg,#ffd45a,#e5a61f); color: #241703; font-size: 14px; font-weight: 900; }
#communityMenuRoot .mp-primary:disabled { opacity: .6; }

/* Personal structures live inside the existing create form and feature panel. */
#communityMenuRoot .mp-blind-heading { display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0; }
#communityMenuRoot .mp-blind-heading > span:first-child { color:#d8c69a;font-size:12px;font-weight:800; }
#communityMenuRoot .mp-blind-heading .mp-link { font-size:11px; }
#communityMenuRoot .mp-blind-selection { min-height:64px;background:var(--cocoa-input,#332a24); }
#communityMenuRoot .mp-blind-selection strong { display:block;color:var(--cocoa-text,#fff3e0);font-size:13px;white-space:normal;line-height:1.5; }
#communityMenuRoot .mp-blind-selection small { display:block;margin-top:4px;font-size:10.5px;color:var(--cocoa-muted,#d4c4aa); }
#communityMenuRoot .mp-blind-status { display:inline-block;flex-shrink:0;padding:3px 7px;border-radius:99px;border:1px solid #8f7143;color:#efd294;background:#493b25;font-size:10px;font-style:normal;font-weight:700; }
#communityMenuRoot .mp-blind-status.is-approved { color:#c6e9a7;background:#34452d;border-color:#617e47; }
#communityMenuRoot .mp-blind-card { display:grid;gap:8px;width:100%;min-width:0;padding:14px;border:1px solid var(--cocoa-border,#9c753f);border-radius:12px;background:var(--cocoa-input,#332a24);color:var(--cocoa-text,#fff3e0);text-align:left; }
#communityMenuRoot .mp-blind-card.is-selected { border-color:#f5c96b;box-shadow:0 0 0 1px #f5c96b inset; }
#communityMenuRoot .mp-blind-card strong { min-width:0;font-size:14px;overflow-wrap:anywhere; }
#communityMenuRoot .mp-blind-card span,#communityMenuRoot .mp-blind-card small { font-size:11px;line-height:1.6; }
#communityMenuRoot .mp-blind-card .mp-blind-heading strong small { color:var(--cocoa-muted,#d4c4aa);font-weight:500; }
#communityMenuRoot .mp-blind-feedback { margin:0;color:#efd294;font-size:11px;line-height:1.6;overflow-wrap:anywhere; }
#communityMenuRoot .mp-blind-levels { max-height:360px;overflow:auto;border:1px solid rgba(181,154,94,.45);border-radius:10px; }
#communityMenuRoot .mp-blind-levels table { width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px; }
#communityMenuRoot .mp-blind-levels th { position:sticky;top:0;z-index:1;background:var(--cocoa-panel,#382e27);color:var(--cocoa-muted,#d4c4aa);padding:10px 2px;text-align:center; }
#communityMenuRoot .mp-blind-levels th:first-child { width:28px; }
#communityMenuRoot .mp-blind-levels th:last-child { width:30px; }
#communityMenuRoot .mp-blind-levels td { padding:5px 2px;border-top:1px solid #675139;text-align:center; }
#communityMenuRoot .mp-blind-levels input { width:100%;height:44px;padding:3px 1px;font-size:11px;text-align:center;border-radius:6px;appearance:textfield; }
#communityMenuRoot .mp-blind-levels input::-webkit-inner-spin-button { -webkit-appearance:none; }
#communityMenuRoot [data-form="blind"] button[type="submit"] { min-height:44px; }
#communityMenuRoot .mp-primary.is-complete { border-color: #69963f; background: rgba(73,119,39,.25); color: #bcec94; }
#communityMenuRoot .mp-list-heading { display: flex; justify-content: space-between; align-items: center; margin: 19px 2px 9px; color: #d8c69a; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-list-heading small { color: #8f8264; font-size: 11px; font-weight: 400; }
#communityMenuRoot .mp-first-heading { margin-top: 0; }
#communityMenuRoot .mp-room-card,
#communityMenuRoot .mp-detail.is-social-game,
#communityMenuRoot .mp-invitation { padding: 12px !important; border: 2.5px solid #7a5220 !important; border-radius: 15px; background: linear-gradient(180deg, #4a3218, #33220e) !important; box-shadow: 0 3px 0 #2a1a08 !important; }
#communityMenuRoot .mp-room-card { margin-bottom: 10px; }
#communityMenuRoot .mp-room-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b8a87f; font-size: 10px; }
#communityMenuRoot .mp-tag { display: inline-flex; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(240,201,92,.3); background: rgba(245,187,69,.1); color: #d8c69a; font-weight: 800; }
#communityMenuRoot .mp-room-card .club-row { padding: 10px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#communityMenuRoot .mp-room-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#communityMenuRoot .mp-room-main strong { color: #f3e6c2; font-size: 14px; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
#communityMenuRoot .mp-room-main small { color: #a89a78; font-size: 11px; }
#communityMenuRoot .mp-prize { padding: 10px 0; margin-top: 2px; font-size: 11px; color: #ffd76a; }
#communityMenuRoot .mp-room-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid rgba(181,154,94,.18); gap: 5px; }
#communityMenuRoot .mp-room-bottom > span { color: #b8a87f; font-size: 11px; }
#communityMenuRoot .mp-room-bottom b { color: #f3e6c2; }
#communityMenuRoot .mp-room-bottom em { margin-left: 6px; color: #b8d4a0; font-size: 10px; font-style: normal; }
#communityMenuRoot .mp-small-primary { padding: 6px 12px; border: 0; border-radius: 8px; background: linear-gradient(180deg,#f5bb45,#d99427); color: #241703; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-footnote { margin: 15px 0 4px; color: #8f8264; font-size: 11px; line-height: 1.5; text-align: center; }
/* 시작 버튼 비활성 이유 (호스트 혼자일 때) */
#communityMenuRoot .mp-start-hint { margin: 6px 2px 12px; color: #d8c69a; font-size: 12px; text-align: left; }
#communityMenuRoot .mp-start-hint b { color: #ffe680; font-weight: 800; }
#communityMenuRoot .mp-create-form { display: grid; gap: 14px; margin: 0; }
#communityMenuRoot .mp-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
#communityMenuRoot .mp-field > span,
#communityMenuRoot .mp-prize-fields legend { color: #d8c69a; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-field small { color: #8f8264; font-size: 10px; line-height: 1.4; }
#communityMenuRoot .mp-field input,
#communityMenuRoot .mp-field select,
#communityMenuRoot .mp-field textarea,
#communityMenuRoot .mp-prize-fields > input { min-width: 0; width: 100%; height: 40px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(181,154,94,.45); background: #1c150a; color: #f3e6c2; font-size: 13px; }
#communityMenuRoot .mp-field textarea { min-height: 78px; height: auto; resize: vertical; line-height: 1.6; }
#communityMenuRoot input::placeholder { color: #817353; }
#communityMenuRoot .mp-grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#communityMenuRoot .mp-rule-summary { margin-top: -6px; padding: 8px 10px; border-radius: 7px; background: rgba(245,187,69,.07); color: #b8a87f; font-size: 10px; line-height: 1.5; }
#communityMenuRoot .mp-prize-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
#communityMenuRoot .mp-prize-fields legend { margin-bottom: 7px; }
#communityMenuRoot .mp-prize-fields legend small { margin-left: 4px; color: #8f8264; font-size: 10px; font-weight: 400; }
#communityMenuRoot .mp-prize-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
#communityMenuRoot .mp-prize-options label { position: relative; display: flex; min-width: 0; }
#communityMenuRoot .mp-prize-options input { position: absolute; opacity: 0; }
#communityMenuRoot .mp-prize-options span { display: flex; align-items: center; justify-content: center; width: 100%; height: 35px; border: 1px solid rgba(181,154,94,.4); border-radius: 8px; background: #241b0d; color: #b8a87f; font-size: 11px; }
#communityMenuRoot .mp-prize-options input:checked + span { border-color: #f0c95c; color: #ffd76a; background: rgba(245,187,69,.14); }
#communityMenuRoot .mp-prize-options input:focus-visible + span { outline: 2px solid #ffd76a; outline-offset: 2px; }
#communityMenuRoot .mp-prize-fields > input { margin-top: 8px; }
#communityMenuRoot .mp-create-form > .mp-primary { margin-top: 2px; }
/* 만들기 폼 — 토너먼트 종류 카드 3개 + 더 보기, 시작·공개·프라이즈 요약 한 줄. 나머지는 .mp-advanced 안. */
#communityMenuRoot .mp-type-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
#communityMenuRoot .mp-type-card { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 10px 9px; text-align: left; border-radius: 12px; border: 2px solid rgba(181,154,94,.6); background: #1d1408; color: #ffe680; cursor: pointer; }
#communityMenuRoot .mp-type-card strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; color: #ffe680; font-size: 13px; font-weight: 900; line-height: 1.25; }
#communityMenuRoot .mp-type-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c6b697; font-size: 10.5px; font-weight: 600; }
#communityMenuRoot .mp-type-card.is-selected { border-color: #f5c96b; background: linear-gradient(180deg,#3d2a10,#2a1c0a); }
#communityMenuRoot .mp-type-card:disabled { cursor: default; opacity: .9; }
#communityMenuRoot .mp-type-badge { position: absolute; top: -8px; right: 8px; padding: 1px 6px; border-radius: 999px; background: #f5c96b; color: #241703; font-size: 9px; font-style: normal; font-weight: 900; }
#communityMenuRoot .mp-link.mp-type-more { align-self: flex-start; justify-self: start; margin-top: -4px; text-decoration: none; }
#communityMenuRoot .mp-setup-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid rgba(181,154,94,.6); border-radius: 12px; background: #1d1408; color: #d8c69a; font-size: 12.5px; text-align: left; cursor: pointer; }
#communityMenuRoot .mp-setup-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#communityMenuRoot .mp-setup-summary b { flex: none; color: #ffe680; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-inbox-list { border: 1px solid rgba(181,154,94,.32); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg,rgba(48,37,19,.76),rgba(28,21,10,.9)); }
#communityMenuRoot .mp-message-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 88px; padding: 13px 10px; border: 0; background: transparent; text-align: left; }
#communityMenuRoot .mp-message-row[data-action="operator-support"] { min-height: 67px; margin-bottom: 8px; border: 1px solid #9d742c; border-radius: 12px; background: linear-gradient(110deg,#493315,#302314); }
#communityMenuRoot .mp-message-row + .mp-message-row { border-top: 1px solid rgba(181,154,94,.18); }
#communityMenuRoot .mp-person-icon { display: inline-flex; flex: 0 0 36px; width: 36px; height: 36px; justify-content: center; align-items: center; border: 1px solid #b38c40; border-radius: 50%; background: #594018; color: #f7d984; font-family: 'Jua',sans-serif; font-size: 18px; }
#communityMenuRoot .mp-person-icon.is-verified { border-color: #f3c455; background: #694812; color: #ffe49e; }
#communityMenuRoot .mp-person-icon.is-store { border-radius: 10px; background: #26301b; border-color: #648b48; color: #bed3a2; }
#communityMenuRoot .mp-message-copy { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
#communityMenuRoot .mp-message-copy strong { color: #f3e6c2; font-size: 13px; }
#communityMenuRoot .mp-message-copy > span { color: #a89a78; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#communityMenuRoot .mp-message-tail { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
#communityMenuRoot .mp-message-tail time { color: #8f8264; font-size: 9px; white-space: nowrap; }
#communityMenuRoot .mp-message-tail b { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e6a62b; color: #241703; font-size: 10px; }
#communityMenuRoot .mp-conversation-head { display: flex; gap: 9px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(181,154,94,.18); }
#communityMenuRoot .mp-conversation-head > div { display: flex; flex-direction: column; gap: 3px; }
#communityMenuRoot .mp-conversation-head strong { color: #f3e6c2; font-size: 13px; }
#communityMenuRoot .mp-conversation-head small { color: #8f8264; font-size: 10px; }
#communityMenuRoot .mp-date-divider { margin: 12px 0; color: #8f8264; font-size: 10px; text-align: center; }
#communityMenuRoot .mp-conversation-messages { display: flex; flex-direction: column; gap: 10px; }
#communityMenuRoot .mp-bubble-row { display: flex; align-items: flex-end; gap: 5px; }
#communityMenuRoot .mp-bubble { max-width: 80%; padding: 9px 11px; border: 1px solid rgba(181,154,94,.32); border-radius: 0 10px 10px 10px; background: #2b2111; color: #f3e6c2; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#communityMenuRoot .mp-bubble-row time { color: #8f8264; font-size: 8px; padding-bottom: 1px; white-space: nowrap; }
#communityMenuRoot .mp-bubble-row.is-me { justify-content: flex-end; }
#communityMenuRoot .is-me .mp-bubble { border-radius: 10px 0 10px 10px; border-color: #b58025; background: #5d4218; color: #ffe29a; }
#communityMenuRoot .mp-invitation { width: 85%; padding: 12px; margin: 0; }
#communityMenuRoot .mp-invitation-label { margin-bottom: 8px; color: #ffd76a; font-size: 10px; font-weight: 800; }
#communityMenuRoot .mp-invitation > strong { color: #f3e6c2; font-size: 13px; }
#communityMenuRoot .mp-invitation > p { margin: 7px 0; color: #a89a78; font-size: 11px; line-height: 1.6; }
#communityMenuRoot .mp-invitation-prize { color: #d8c69a; font-size: 11px; }
#communityMenuRoot .mp-invitation .mp-primary { min-height: 33px; margin-top: 10px; padding: 7px; font-size: 12px; }
#communityMenuRoot .mp-compose { margin-top: 18px; }
#communityMenuRoot .mp-compose input { min-width: 0; font-size: 12px; }
#communityMenuRoot .mp-compose button { font-size: 12px; }
#communityMenuRoot .mp-detail h3 { color: #ffe680; font-size: 16px; line-height: 1.5; margin: 14px 0 6px; }
#communityMenuRoot .mp-detail dl { margin: 16px 0 0; }
#communityMenuRoot .mp-detail dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(181,154,94,.18); }
#communityMenuRoot .mp-detail dt { color: #a89a78; font-size: 11px; white-space: nowrap; }
#communityMenuRoot .mp-detail dd { margin: 0; color: #f3e6c2; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
#communityMenuRoot .mp-detail-intro { margin: 14px 2px; color: #b8a87f; font-size: 12px; line-height: 1.7; }
#communityMenuRoot .mp-secondary { width: 100%; min-height: 38px; margin-top: 8px; border: 1px solid rgba(181,154,94,.4); border-radius: 9px; background: #241b0d; color: #d8c69a; font-size: 12px; font-weight: 700; }

/* Preserve the approved two-button row within the original lobby's flex layout. */
body.holdem-lobby-active #lobby > #communityMenuBar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 25;
}
#communityMenuBar[hidden] { display: none; }
#communityMenuBar .community-menu-btn:focus-visible,
#communityMenuRoot button:focus-visible,
#communityMenuRoot input:focus-visible,
#communityMenuRoot select:focus-visible,
#communityMenuRoot textarea:focus-visible,
#communityMenuRoot summary:focus-visible {
  outline: 2px solid #ffd76a;
  outline-offset: 3px;
}
#communityMenuRoot { min-width: 0; line-height: 1.5; }
#communityMenuRoot button { -webkit-tap-highlight-color: transparent; }
#communityMenuRoot button:disabled { cursor: default; }
#communityMenuRoot .mp-secondary:disabled,
#communityMenuRoot .mp-small-primary:disabled,
#communityMenuRoot .mp-link:disabled { opacity: .5; }
#communityMenuRoot input,
#communityMenuRoot select,
#communityMenuRoot textarea { color-scheme: dark; }
#communityMenuRoot input[type="checkbox"] { accent-color: #f0c95c; }
#communityMenuRoot .mp-detail { min-width: 0; }
#communityMenuRoot .mp-detail .club-my-desc { color: #c7b78f; }
#communityMenuRoot .mp-room-meta { flex-wrap: wrap; }
#communityMenuRoot .mp-room-main small { overflow-wrap: anywhere; }
#communityMenuRoot .mp-tag { line-height: 1.3; }
#communityMenuRoot .mp-tag.is-live { border-color: #769a57; background: #324122; color: #d0e5b0; }
#communityMenuRoot .mp-tag.is-closed { border-color: #857256; background: #3b3020; color: #c6b697; }
#communityMenuRoot .mp-list-heading { gap: 8px; }
#communityMenuRoot .mp-list-heading small { flex-shrink: 0; }

/* Loading, empty, and actionable failure states remain inside the existing panel. */
#communityMenuRoot .mp-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(240,201,92,.32);
  border-radius: 9px;
  background: #302411;
  color: #edd5a0;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#communityMenuRoot .mp-notice.is-error,
#communityMenuRoot .mp-notice[role="alert"] {
  border-color: #98634a;
  background: #352017;
  color: #ffd0b8;
}
#communityMenuRoot .mp-notice.is-success { border-color: #64854b; background: #243019; color: #cce4ae; }
#communityMenuRoot .mp-notice.is-loading { color: #d8c69a; }
#communityMenuRoot .mp-notice .mp-secondary { background: transparent; }
#communityMenuRoot .mp-empty { padding: 30px 12px; color: #b8a87f; text-align: center; font-size: 12px; line-height: 1.8; }
#communityMenuRoot .mp-empty strong { display: block; margin-bottom: 5px; color: #f3e6c2; font-size: 14px; }
#communityMenuRoot .mp-empty p { margin: 4px 0; }
#communityMenuRoot .mp-empty .mp-primary { margin-top: 16px; }

/* Shared actions and short forms. */
#communityMenuRoot .mp-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
#communityMenuRoot .mp-actions > button { min-width: 0; margin: 0; padding-inline: 7px; }
#communityMenuRoot .mp-actions > :only-child { grid-column: 1 / -1; }
#communityMenuRoot .mp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
#communityMenuRoot .mp-toolbar .mp-secondary { width: auto; min-height: 34px; margin: 0; padding: 6px 10px; }
#communityMenuRoot .mp-toolbar > .mp-list-heading { margin: 0; }
#communityMenuRoot .mp-link { width: auto; min-height: 30px; padding: 4px 5px; border: 0; background: transparent; color: #e8c272; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#communityMenuRoot .mp-secondary.is-danger { border-color: #95664f; color: #edb197; }
#communityMenuRoot .mp-link.is-danger { color: #edb197; }
#communityMenuRoot .mp-search { display: flex; align-items: stretch; gap: 7px; margin: 0 0 14px; }
#communityMenuRoot .mp-search input { flex: 1; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid rgba(181,154,94,.45); border-radius: 9px; background: #1c150a; color: #f3e6c2; font-size: 13px; }
#communityMenuRoot .mp-search > button { flex: 0 0 auto; width: auto; min-height: 40px; margin: 0; padding: 8px 13px; }
#communityMenuRoot .mp-field:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; }
#communityMenuRoot .mp-field > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
#communityMenuRoot .mp-field input:disabled,
#communityMenuRoot .mp-field select:disabled { opacity: .65; }
#communityMenuRoot .mp-prize-place { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: end; gap: 6px; margin-top: 8px; }
#communityMenuRoot .mp-prize-place > input,
#communityMenuRoot .mp-prize-place > select { min-width: 0; width: 100%; height: 40px; padding: 8px; border: 1px solid rgba(181,154,94,.45); border-radius: 9px; background: #1c150a; color: #f3e6c2; font-size: 12px; }
#communityMenuRoot .mp-prize-place > button { min-height: 40px; }
#communityMenuRoot .mp-prize-place > .mp-field { margin: 0; }

/* Game rules come from the administrator's live game catalogue. */
#communityMenuRoot .mp-rule-details,
#communityMenuRoot .mp-advanced { min-width: 0; margin: 0; border: 1px solid rgba(181,154,94,.3); border-radius: 9px; background: #21190d; }
#communityMenuRoot .mp-rule-details > summary,
#communityMenuRoot .mp-advanced > summary { padding: 10px 11px; color: #d8c69a; font-size: 12px; font-weight: 800; cursor: pointer; }
#communityMenuRoot .mp-rule-details[open] > summary,
#communityMenuRoot .mp-advanced[open] > summary { border-bottom: 1px solid rgba(181,154,94,.2); }
#communityMenuRoot .mp-rule-details > :not(summary),
#communityMenuRoot .mp-advanced > :not(summary) { margin: 10px; }
#communityMenuRoot .mp-rule-details .mp-rule-summary { background: transparent; padding: 0; }
#communityMenuRoot .mp-rule-details p { color: #b8a87f; font-size: 11px; line-height: 1.7; }
#communityMenuRoot .mp-rule-details table,
#communityMenuRoot .mp-results table { width: calc(100% - 20px); border-collapse: collapse; table-layout: fixed; color: #d8c69a; font-size: 10px; }
#communityMenuRoot .mp-rule-details th,
#communityMenuRoot .mp-rule-details td,
#communityMenuRoot .mp-results th,
#communityMenuRoot .mp-results td { padding: 7px 4px; border-bottom: 1px solid rgba(181,154,94,.18); text-align: left; overflow-wrap: anywhere; }
#communityMenuRoot .mp-rule-details th,
#communityMenuRoot .mp-results th { color: #f3e6c2; font-weight: 800; }
#communityMenuRoot .mp-rule-details dl { margin: 10px; }
#communityMenuRoot .mp-rule-details dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 11px; }
#communityMenuRoot .mp-rule-details dt { color: #a89a78; }
#communityMenuRoot .mp-rule-details dd { margin: 0; color: #f3e6c2; text-align: right; }
/* 만들기 폼 세부 설정 본문 — details 직계 마진 병합(10/12/20px 뒤섞임) 대신 grid gap 으로 균일하게.
   .mp-advanced > :not(summary) 의 margin:10px 은 상세(roomView)의 규칙 details 가 아직 쓰므로 그대로 두고 본문만 덮어쓴다. */
#communityMenuRoot .mp-advanced > .mp-advanced-body { display: grid; gap: 12px; margin: 0; padding: 10px; }
#communityMenuRoot .mp-advanced-body > .mp-prize-place { margin-top: 0; }
#communityMenuRoot .mp-advanced-body > .mp-link { justify-self: start; }

/* Participants and results use the same compact list proportions as clubs. */
#communityMenuRoot .mp-members { display: grid; gap: 0; margin: 0; }
#communityMenuRoot .mp-member { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; border-bottom: 1px solid rgba(181,154,94,.18); }
#communityMenuRoot .mp-member > div,
#communityMenuRoot .mp-member-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
#communityMenuRoot .mp-member strong { color: #f3e6c2; font-size: 12px; overflow-wrap: anywhere; }
#communityMenuRoot .mp-member small { color: #a89a78; font-size: 10px; }
#communityMenuRoot .mp-member > .mp-secondary { width: auto; min-height: 32px; margin: 0; padding: 5px 9px; }
#communityMenuRoot .mp-member > .mp-person-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
#communityMenuRoot .mp-results { margin-top: 15px; }
#communityMenuRoot .mp-results h3 { color: #f3e6c2; font-size: 14px; }
#communityMenuRoot .mp-results table { width: 100%; }

/* Personal conversations stay inside the existing feature panel. */
#communityMenuRoot .mp-conversation-head { min-width: 0; }
#communityMenuRoot .mp-conversation-head > div { flex: 1; min-width: 0; }
#communityMenuRoot .mp-conversation-head strong { overflow-wrap: anywhere; }
#communityMenuRoot .mp-conversation-head .mp-link { flex: 0 0 auto; }
#communityMenuRoot .mp-conversation-messages { padding-top: 12px; }
#communityMenuRoot .mp-bubble { white-space: pre-wrap; }
#communityMenuRoot .mp-attachment { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 10px; border: 1px solid #7a5220; border-radius: 9px; background: #33220e; color: #d8c69a; font-size: 11px; }
#communityMenuRoot .mp-attachment > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#communityMenuRoot .mp-attachment > button { flex-shrink: 0; }
#communityMenuRoot .mp-compose { display: flex; align-items: flex-end; gap: 7px; }
#communityMenuRoot .mp-compose input,
#communityMenuRoot .mp-compose textarea { flex: 1; min-width: 0; min-height: 40px; padding: 10px; border: 1px solid rgba(181,154,94,.5); border-radius: 10px; background: #1c150a; color: #f3e6c2; font-size: 12px; line-height: 1.5; }
#communityMenuRoot .mp-compose textarea { height: 42px; max-height: 140px; resize: vertical; }
#communityMenuRoot .mp-compose > button { flex: 0 0 auto; width: auto; min-height: 40px; margin: 0; padding: 9px 13px; border: 1px solid #b77915; border-radius: 10px; background: linear-gradient(180deg,#f5bb45,#d99427); color: #241703; font-size: 12px; font-weight: 800; }

/* 오래된 방: 시작 예정 없이 하루 넘게 잠잠한 방은 목록 뒤에 흐리게 둔다. */
#communityMenuRoot .mp-tcard.is-idle { opacity: .72; border-style: dashed !important; }
#communityMenuRoot .mp-idle-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: -4px 0 8px; color: #b8a87f; font-size: 11px; line-height: 1.5; }
#communityMenuRoot .mp-idle-note em { color: #8f8264; font-size: 10px; font-style: normal; }

/* 예약 시작 카운트다운: 큰 숫자 + 최소 인원 진행바. */
#communityMenuRoot .mp-countdown { margin: 12px 0 0; padding: 12px 14px; border: 1px solid rgba(240,201,92,.35); border-radius: 12px; background: linear-gradient(180deg, #2f2210, #241a0b); }
#communityMenuRoot .mp-countdown-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #d8c69a; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-countdown-head b { color: #ffe680; font-family: 'Jua', sans-serif; font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
#communityMenuRoot .mp-countdown-bar { height: 7px; margin: 10px 0 8px; border-radius: 4px; background: rgba(181,154,94,.22); overflow: hidden; }
#communityMenuRoot .mp-countdown-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e5a61f, #ffd45a); transition: width .4s ease; }
#communityMenuRoot .mp-countdown small { display: block; color: #a89a78; font-size: 11px; line-height: 1.6; }

/* 봇 참가자 표시 — 어드민/개발 봇 투입(/api/admin/holdem/tournament/{id}/bots) 전용으로 유지한다.
   유저용 '봇으로 빈자리 채우기' 는 2026-10-05 폐지(버튼·엔드포인트 제거). 지우지 말 것. */
#communityMenuRoot .mp-member.is-bot .mp-person-icon { border-style: dashed; background: #3a2d16; color: #c7b78f; }
#communityMenuRoot .mp-member.is-bot strong { color: #d8c69a; }

/* 종료된 방의 결과 카드와 누적 기록. */
#communityMenuRoot .mp-results.is-card { padding: 14px; border: 1px solid rgba(240,201,92,.32); border-radius: 12px; background: #2b2111; }
#communityMenuRoot .mp-results.is-card > strong { display: block; color: #d8c69a; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-results.is-card > p { margin: 6px 0 0; color: #ffe680; font-family: 'Jua', sans-serif; font-size: 20px; line-height: 1.3; }
#communityMenuRoot .mp-results-total { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(181,154,94,.35); color: #b8a87f; font-size: 11px; line-height: 1.6; }
#communityMenuRoot .mp-results + .mp-primary { margin-top: 10px; }

/* 내정보 시트의 연습 기록 한 줄(전역 로드). */
.myinfo-sheet .myinfo-practice-line { margin: -6px 2px 12px; color: #c9ae76; font-size: 11.5px; line-height: 1.5; text-align: center; }

@media (max-width: 360px) {
  #communityMenuRoot .mp-countdown-head b { font-size: 24px; }
  #communityMenuRoot .mp-room-card,
  #communityMenuRoot .mp-detail.is-social-game { padding: 10px !important; }
  #communityMenuRoot .mp-grid-two { gap: 8px; }
  #communityMenuRoot .mp-field input,
  #communityMenuRoot .mp-field select { padding-inline: 8px; font-size: 12px; }
  #communityMenuRoot .mp-room-bottom em { display: block; margin: 2px 0 0; }
  #communityMenuRoot .mp-message-row { padding-inline: 8px; }
  #communityMenuRoot .mp-message-tail time { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
  #communityMenuRoot .mp-type-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ── 친목게임 = 일반 토너와 같은 규격. 구분은 마스코트 알약 배지 하나. ── */
#communityMenuRoot .mp-badge-mascot { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff6dc; border: 2px solid #8a5a1e; box-shadow: 0 1px 0 #8a5a1e; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 12px; line-height: 1; color: #5a3208; white-space: nowrap; }
#communityMenuRoot .mp-badge-mascot img { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8a5a1e; background: #17120b; object-fit: cover; display: block; }
#communityMenuRoot .tcard.mp-tcard { margin: 0 0 8px; cursor: pointer; }
#communityMenuRoot .tcard.mp-tcard .tcard-head { padding-right: 0; }
#communityMenuRoot .tcard.mp-tcard:focus-visible { outline: 2px solid #ffd76a; outline-offset: 2px; }
#communityMenuRoot .tcard.mp-tcard .countdown.is-live { color: #2f7fbf; }
#communityMenuRoot .mp-td-head { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; }
#communityMenuRoot .mp-td-title { color: #ffe680; font-size: 16px; font-weight: 800; letter-spacing: .2px; line-height: 1.35; overflow-wrap: anywhere; }
#communityMenuRoot .mp-td-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
#communityMenuRoot .mp-td-tags > span:not(.mp-badge-mascot):not(.status-pill) { padding: 4px 9px; border: 1px solid rgba(201,174,118,.22); border-radius: 7px; background: linear-gradient(180deg, rgba(153,116,28,.44), rgba(96,71,13,.54)); color: #f3e6c2; font-size: 12px; font-weight: 800; }
#communityMenuRoot .mp-td-tags > .status-pill { font-size: 10px; }
#communityMenuRoot .mp-td-banner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 100px; margin: 0 0 12px; padding: 18px 16px 14px; overflow: hidden; border: 3px solid #d99a1e; border-radius: 20px; background: linear-gradient(180deg, #ffedc4, #ffe0a1); box-shadow: 0 6px 0 rgba(138,90,20,.85), 0 14px 26px rgba(0,0,0,.35); }
#communityMenuRoot .mp-td-banner::before { content: ""; position: absolute; top: 9px; left: 14px; width: 52px; height: 12px; background: radial-gradient(circle 5px at 6px 6px, #7ecb5f 55%, #4f8f2f 60%, transparent 65%), radial-gradient(circle 5px at 25px 6px, #ffd43b 55%, #d99a1e 60%, transparent 65%), radial-gradient(circle 5px at 44px 6px, #f0d9ad 55%, #d9b97a 60%, transparent 65%); pointer-events: none; }
#communityMenuRoot .mp-td-banner .td-banner-prize { flex: 1 1 auto; min-width: 0; }
#communityMenuRoot .mp-td-banner .td-banner-prize-value { display: block; font-size: 22px; line-height: 1.25; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#communityMenuRoot .mp-td-banner .td-banner-time { flex: 0 0 auto; max-width: 52%; }
#communityMenuRoot .mp-td-banner .td-banner-time em { display: block; font-style: normal; font-size: 11px; }
#communityMenuRoot .mp-td-core { margin: 0 0 12px; border-radius: 14px; }

/* 클럽 방송 쪽지 (2026-09-27): 클럽 공지 라벨 + 클럽 대회 첨부 카드 */
#communityMenuRoot .mp-bubble.is-club { border-color: rgba(240, 201, 92, .55); background: #33260f; }
#communityMenuRoot .mp-club-label { display: block; margin-bottom: 4px; color: #ffd76a; font-size: 10.5px; font-weight: 900; letter-spacing: .01em; }
#communityMenuRoot .mp-invitation.is-club-event { border-color: #b58025 !important; background: linear-gradient(180deg, #4a3218, #2c1d0a) !important; }

/* 친목방 '연습 레인지 허용' (2026-10 기록·레인지 1차 묶음, W5).
   기존 .mp-field:has(> input[type=checkbox]) 는 가로 한 줄 정렬이라, 라벨 아래로 도움말이 줄바꿈되도록 세로 묶음을 둔다. */
#communityMenuRoot .mp-create-form .mp-field.mp-range-option { flex-direction: row; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid rgba(181,154,94,.3); border-radius: 9px; background: #21190d; }
#communityMenuRoot .mp-range-option > input[type="checkbox"] { margin-top: 1px; cursor: pointer; }
#communityMenuRoot .mp-range-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#communityMenuRoot .mp-range-text label { color: #f3e6c2; font-size: 12.5px; font-weight: 800; line-height: 1.35; cursor: pointer; }
#communityMenuRoot .mp-range-text small { color: #a89a78; font-size: 10.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
#communityMenuRoot .tcard.mp-tcard .mp-range-badge { letter-spacing: 0; white-space: nowrap; }
/* '레인지 허용' 배지가 붙으면 배지 줄이 길어져 방 이름이 몇 글자만 남는다(360px 에서 '레인지 …').
   이런 카드는 방 이름을 첫 줄 전체에 두고 배지들을 아랫줄로 내린다 — 이름 끝 글자(방 A/B)가 보이게. */
#communityMenuRoot .tcard.mp-tcard .tcard-head:has(.mp-range-badge) { flex-wrap: wrap; row-gap: 5px; }
#communityMenuRoot .tcard.mp-tcard .tcard-head:has(.mp-range-badge) > h3 { flex: 1 0 100%; }
#communityMenuRoot .tcard.mp-tcard .tcard-head:has(.mp-range-badge) > .status-pill { margin-left: auto; }
@media (max-width: 360px) {
  #communityMenuRoot .tcard.mp-tcard .mp-range-badge { padding: 2px 5px; }
}
