.kk-stamp { color: var(--dim); font-size: 19px; margin-top: -6px; }
.kk-facts { background: var(--panel); border: 3px solid var(--wood); border-left: 8px solid var(--gold); padding: 12px 16px; margin: 18px 0; }
.kk-facts h2 { font-size: 11px; margin: 0 0 8px; color: var(--gold); }
.kk-facts ul { margin: 0; padding-left: 22px; }
.kk-controls { margin: 22px 0 6px; }
.kk-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 4px solid var(--wood); }
.kk-tabs button { font: inherit; font-size: 20px; cursor: pointer; background: #241a10; color: var(--cream); border: 3px solid var(--wood); border-bottom: 0; padding: 8px 12px; }
.kk-tabs button[aria-selected="true"] { background: var(--gold); color: #2a1c00; font-weight: bold; }
.kk-count { display: inline-block; min-width: 26px; padding: 0 5px; background: rgba(0,0,0,.35); color: var(--cream); text-align: center; font-size: 17px; }
.kk-tabs button[aria-selected="true"] .kk-count { background: #2a1c00; }
.kk-row { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 14px 0 10px; }
.kk-field { display: flex; flex-direction: column; gap: 4px; font-size: 18px; color: var(--dim); flex: 1 1 240px; }
.kk-field:last-child { flex: 0 1 240px; }
.kk-field input, .kk-field select { font: inherit; font-size: 21px; padding: 8px 10px; background: #0f0c08; color: var(--cream); border: 3px solid var(--wood); width: 100%; }
.kk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-chip { font: inherit; font-size: 19px; cursor: pointer; background: transparent; color: var(--cream); border: 2px solid var(--wood); border-radius: 999px; padding: 3px 12px; }
.kk-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.kk-chip.kk-clear { border-style: dashed; color: var(--gold); }
.kk-tabs button:focus-visible, .kk-chip:focus-visible, .kk-field input:focus-visible, .kk-field select:focus-visible, .kk-card a:focus-visible, .kk-panel:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kk-panel h2 { font-size: 13px; margin: 26px 0 12px; }
.kk-total { color: var(--dim); }
.article .kk-grid, .article .kk-tags { margin: 0; padding: 0; }
.kk-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.kk-card { background: var(--panel); border: 3px solid var(--wood); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kk-card[hidden], .kk-grid[hidden], .kk-panel[hidden] { display: none; }
.kk-card.kk-muted { opacity: .72; border-style: dashed; }
.kk-head { display: flex; align-items: center; gap: 12px; }
.kk-head > div { flex: 1; min-width: 0; }
.kk-head h3 { margin: 0; font-size: 25px; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.kk-logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: contain; padding: 5px; border: 2px solid var(--wood); }
.kk-initials { display: flex; align-items: center; justify-content: center; padding: 0; background: #2f4f24; color: var(--cream); font-family: 'Press Start 2P', monospace; font-size: 15px; }
.kk-place { margin: 2px 0 0; color: var(--dim); font-size: 20px; }
.kk-rank { flex: 0 0 auto; font-family: 'Press Start 2P', monospace; font-size: 11px; background: #0f0c08; border: 2px solid var(--gold); color: var(--gold); padding: 6px 7px; }
.kk-league, .kk-note, .kk-record, .kk-foot { margin: 0; }
.kk-league { color: var(--dim); font-size: 20px; }
.kk-record { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 20px; }
.kk-record b { color: var(--gold); }
.kk-note { flex: 1; }
.kk-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.kk-tags li { font-size: 17px; border: 1px solid var(--wood); border-radius: 999px; padding: 0 9px; color: var(--dim); }
.kk-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 19px; }
.kk-foot a { margin-left: auto; }
.kk-play { margin: 0; }
.kk-play a { display: inline-block; font-size: 19px; text-decoration: none; background: var(--green); color: #fff; border: 2px solid #0b3d16; padding: 2px 10px; }
.kk-play a:hover, .kk-play a:focus-visible { filter: brightness(1.15); outline: 3px solid #fff; outline-offset: 2px; }
.kk-status { background: #555; color: #fff; padding: 0 8px; font-size: 17px; }
.kk-empty { background: var(--panel); border: 3px dashed var(--wood); padding: 18px; text-align: center; }
.kk-add { margin-top: 30px; background: var(--panel); border: 3px solid var(--wood); padding: 14px 16px; }
.kk-add h2 { font-size: 13px; margin: 4px 0 10px; }
.kk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; }
.kk-form .kk-wide { grid-column: 1 / -1; margin: 0; }
.kk-form .kk-field { flex: none; }
.kk-form textarea { font: inherit; font-size: 21px; padding: 8px 10px; background: #0f0c08; color: var(--cream); border: 3px solid var(--wood); width: 100%; resize: vertical; }
.kk-form textarea:focus-visible, .kk-form button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kk-form button { cursor: pointer; border: 0; }
.kk-form button[disabled] { opacity: .6; cursor: default; }
.kk-help { font-size: 17px; }
.kk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kk-msg:empty { display: none; }
.kk-msg.kk-ok { color: #7fe08a; }
.kk-msg.kk-err { color: #ff9a8a; }
.kk-credit { color: var(--dim); font-size: 18px; margin-top: 22px; }
.kk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .kk-tabs button { flex: 1 1 45%; font-size: 18px; padding: 7px 6px; } .kk-head h3 { font-size: 22px; } }
