/* C4: preserves screenshot's left-logo/right-copy header with five-tab bar. */
.tx-layout-05.tx-c4 .tx-header{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;text-align:left;margin:0 auto;max-width:1600px;padding:18px 18px 9px;background:transparent}
.tx-c4 .tx-c4-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;margin-bottom:14px}
.tx-c4 .tx-c4-actions-left,.tx-c4 .tx-c4-actions-right{display:flex;align-items:center;gap:10px}
.tx-c4 .tx-c4-actions .classic-header-control{position:static;transform:none;margin:0;flex:none;min-width:46px;height:46px}
.tx-c4 .tx-c4-actions .beta-feedback-btn{position:static;display:inline-flex;align-items:center;min-height:46px;margin:0;padding:8px 14px}
.tx-c4 .tx-c4-music{background:#241a12;color:#e5c285;border:1px solid #866037;padding:10px 15px;min-height:46px;border-radius:12px;cursor:pointer;font-weight:600}
.tx-c4 .tx-c4-mast{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:30px;margin:0 0 13px;padding:0 6px}
.tx-c4 .tx-c4-brand{min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:5px}
.tx-c4 .tx-c4-brand .tx59-brand{margin:0;line-height:1.12;text-align:center;max-width:100%}
.tx-c4 .tx-c4-brand .tx59-wordmark{position:relative;display:inline-flex;align-items:flex-start;width:min(400px,100%);max-width:100%;padding:0}
.tx-c4 .tx-c4-brand .tx-header-wordmark-img{display:block;width:100%;height:auto;margin:0}
.tx-c4 .tx-c4-brand .tx59-tm{position:absolute;top:14%;left:91.6%;right:auto;line-height:1;font:700 14px Georgia,serif;color:#d9b76f;transform:none}
.tx-c4 .tx-c4-brand .tx59-tagline{font:italic clamp(18px,2vw,24px) Georgia,serif;letter-spacing:.015em;margin:0;color:#edd398}
.tx-c4 .tx-c4-brand .tx-c4-philosophy{font:italic 600 clamp(15px,1.55vw,20px) Georgia,serif;color:#cbb68b;margin:1px 0 0}
.tx-c4 .tx-c4-brand .tx-header-meta-row{order:5;margin:4px 0 0;justify-content:flex-start}
.tx-layout-05.tx-c4 #tx-beta-badge{display:inline-block;font:600 11px system-ui;color:#bfa16e;padding:4px 9px;border-radius:100px;border:1px solid #705636;background:#1c1b13}
.tx-c4 .tx-c4-hero{border-left:1px solid #55472e;padding:16px 0 16px 6%;min-width:0}
.tx-c4 .tx-c4-hero h2{font:400 clamp(21px,1.8vw,28px)/1.35 Georgia,serif;color:#d4c09b;margin:0;max-width:460px}
.tx-c4 .tx-c4-tabs{max-width:1600px;margin:0 auto 12px;width:100%;border-top:1px solid #493d28;border-bottom:1px solid #493d28;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px 18px;box-sizing:border-box}
.tx-c4 .tx-c4-tabs :is(button,a){border:1px solid transparent;border-radius:9px;background:transparent;color:#e6d9bf;font:600 clamp(12px,1.3vw,17px) system-ui;padding:14px 6px;min-height:52px;cursor:pointer}
.tx-c4 .tx-c4-tabs :is(button,a)[aria-current=page]{background:#e2be77;border-color:#e2be77;color:#131313}
.tx-c4 .tx-c4-tabs :is(button,a):focus-visible,.tx-c4 .tx-c4-music:focus-visible{outline:3px solid #7cdaee;outline-offset:2px}
.tx-layout-05.tx-c4 .tx-header>.tx-header-rule{display:none}
@media(max-width:760px){.tx-layout-05.tx-c4 .tx-header{padding:12px 10px}.tx-c4 .tx-c4-mast{grid-template-columns:1fr;gap:9px}.tx-c4 .tx-c4-hero{padding:10px 0 13px 15px}.tx-c4 .tx-c4-hero h2{font-size:clamp(19px,3vw,22px)}.tx-c4 .tx-c4-tabs{display:flex;overflow-x:auto;gap:6px;padding:8px 10px;scrollbar-width:thin}.tx-c4 .tx-c4-tabs :is(button,a){flex:0 0 auto;min-height:44px;padding:10px 13px}.tx-c4 .tx-c4-brand .tx59-wordmark{width:min(380px,77vw)}}
@media(max-width:430px){.tx-c4 .tx-c4-actions .beta-feedback-btn{padding:8px}.tx-c4 .tx-c4-actions .tx59-feedback-text{font-size:12px}.tx-c4 .tx-c4-actions{gap:6px}.tx-c4 .tx-c4-actions-left,.tx-c4 .tx-c4-actions-right{gap:5px}.tx-c4 .tx-c4-music{font-size:12px;padding:8px}}

/* Public beta: version in Feedback, a proper horizontal menu and compatible responsive placement. */
.tx-c4 .tx-c4-actions .tx-c4-version {border-left:1px solid #9d7b4a;margin-left:12px;padding-left:11px;opacity:.9;font:600 12px/1.1 system-ui;letter-spacing:.045em}
.tx-c4 .tx-c4-brand .tx-header-meta-row{position:absolute!important; width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.tx-c4 .tx-c4-connect{max-width:1600px;margin:24px auto;border:1px solid #5a4429;border-radius:12px;padding:18px 22px;background:#111214;color:#e5d1a9}
.tx-c4 .tx-c4-connect h3{margin:0 0 8px;font:700 13px system-ui;letter-spacing:.15em;text-transform:uppercase;color:#c5a369}
.tx-c4 .tx-c4-connect p{margin:0;font:500 clamp(18px,2vw,24px) Georgia,serif}
@media (max-width:430px){.tx-c4 .tx-c4-actions .tx-c4-version{padding-left:6px;margin-left:6px;font-size:10px}}
/* Three featured milestone badges: 10 | 1000 | 100. Keep 1000 centered on wide screens. */
@media (min-width: 920px) {
  .tx-c4 #classic-badges > .tx59-trophy-grid,
  .tx-c4 #classic-badges .tx59-trophy-grid:first-of-type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Real page links retain the reviewed tab presentation. */
.tx-c4 .tx-c4-tabs a{display:flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
#tx-page-intro{max-width:1100px;margin:24px auto;padding:24px;color:#e6d9bf;line-height:1.6}
#tx-page-intro img{max-width:min(420px,100%);height:auto}
#tx-page-intro[hidden]{display:none}

/* Match native Table Talk and Game History panels to the surrounding sections. */
.tx-c4 .layout-native > :is(#under-board-commentary,#history-card){background:#352416;border:1px solid #65492d;border-radius:8px;box-shadow:none;padding:0 14px}
.tx-c4 .layout-native :is(#under-board-commentary-title,#history-title){min-height:48px;margin:0;padding:12px 92px 12px 0;border:0;color:#e0bd86;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:.06em;text-transform:none}
.tx-c4 .layout-native > :is(#under-board-commentary,#history-card):not(.tx-collapsed):not(.hx-collapsed){padding-bottom:14px}
.tx-c4 .layout-native :is(#under-board-commentary-title,#history-title):focus-visible{outline:2px solid #f6cd65;outline-offset:2px}

/* Optional support through the owner-approved PayPal link. */
.tx-c4 #tx-support{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px;padding:18px;border:1px solid #65492d;border-radius:12px;background:#241a12;color:#e6d9bf}
.tx-c4 #tx-support h3{margin:0 0 8px;color:#e8c47b;font-size:17px}
.tx-c4 #tx-support p{margin:0 0 8px;line-height:1.5}
.tx-c4 #tx-support .tx-support-note{font-size:12px;color:#cbb68b;margin-bottom:0}
.tx-c4 .tx-support-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:10px 18px;box-sizing:border-box;border:1px solid #e2be77;border-radius:9px;background:#e2be77;color:#16120c;text-decoration:none;text-align:center;font:600 14px system-ui}
.tx-c4 .tx-support-button:hover{background:#f0ce8c}
.tx-c4 .tx-support-button:focus-visible{outline:3px solid #7cdaee;outline-offset:3px}
@media(max-width:760px){.tx-c4 #tx-support{align-items:stretch;flex-direction:column;gap:14px}.tx-c4 .tx-support-button{width:100%}}
