/* Typer Klubowy - dark purple theme integration */
.tk-wrap,
.tk-admin {
    --tk-bg: #0f172a;
    --tk-panel: #1e293b;
    --tk-panel-2: #111827;
    --tk-border: #334155;
    --tk-border-soft: #475569;
    --tk-text: #e2e8f0;
    --tk-muted: #94a3b8;
    --tk-purple: #6d28d9;
    --tk-purple-2: #8b5cf6;
    --tk-purple-3: #c4b5fd;
    --tk-good: #22c55e;
    --tk-bad: #ef4444;
    --tk-blue: #38bdf8;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, .18), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--tk-text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.tk-wrap *,
.tk-admin * {
    box-sizing: border-box;
}

.tk-wrap h1,
.tk-wrap h2,
.tk-wrap h3,
.tk-admin h1,
.tk-admin h2 {
    margin-top: 0;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0;
}

.tk-wrap h2,
.tk-admin h2 {
    color: var(--tk-purple-3);
}

.tk-box,
.tk-match,
.tk-card,
.tk-admin-card {
    background: var(--tk-panel);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    color: var(--tk-text);
}

.tk-box,
.tk-admin-card {
    padding: 20px;
    margin: 16px 0;
}

.tk-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tk-section-head h2,
.tk-section-head p {
    margin: 0;
}

.tk-alert {
    padding: 11px 13px;
    border-radius: 8px;
    margin: 0 0 12px;
    font-weight: 800;
}

.tk-alert-ok {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .35);
}

.tk-alert-err {
    background: rgba(239, 68, 68, .16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, .35);
}

.tk-alert-info {
    background: rgba(56, 189, 248, .14);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, .32);
}

.tk-analysis-post {
    --tk-bg: #0f172a;
    --tk-panel: #1e293b;
    --tk-panel-2: #111827;
    --tk-border: #334155;
    --tk-border-soft: #475569;
    --tk-text: #e2e8f0;
    --tk-muted: #94a3b8;
    --tk-purple: #6d28d9;
    --tk-purple-2: #8b5cf6;
    --tk-purple-3: #c4b5fd;
    max-width: 980px;
    width: min(100%, 980px);
    margin: 22px auto;
    padding: 20px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, .18), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--tk-text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.tk-analysis-post * {
    box-sizing: border-box;
}

.tk-analysis-post h2,
.tk-analysis-post h3 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
}

.tk-analysis-intro p,
.tk-analysis-text p {
    color: var(--tk-text);
    overflow-wrap: anywhere;
}

.tk-analysis-list {
    display: grid;
    gap: 14px;
}

.tk-analysis-card {
    padding: 16px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background: rgba(30, 41, 59, .92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.tk-analysis-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.tk-analysis-team {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.tk-analysis-team:last-child {
    grid-template-columns: minmax(0, 1fr) 58px;
    text-align: right;
}

.tk-analysis-team div {
    min-width: 0;
}

.tk-analysis-team:last-child img,
.tk-analysis-team:last-child .tk-analysis-logo-missing {
    order: 2;
}

.tk-analysis-team img,
.tk-analysis-logo-missing {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
}

.tk-analysis-logo-missing {
    display: block;
    border: 1px dashed var(--tk-border-soft);
    border-radius: 8px;
}

.tk-analysis-team small {
    display: block;
    color: var(--tk-muted);
    font-weight: 800;
}

.tk-analysis-team strong {
    display: block;
    overflow: visible;
    white-space: nowrap;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
}

.tk-analysis-vs {
    color: var(--tk-purple-3);
    font-weight: 900;
}

.tk-analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.tk-analysis-meta span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: 8px;
    background: rgba(139, 92, 246, .16);
    color: #fff;
}

.tk-analysis-meta .tk-analysis-result.is-hit {
    border-color: rgba(34, 197, 94, .48);
    background: rgba(34, 197, 94, .18);
    color: #bbf7d0;
}

.tk-analysis-meta .tk-analysis-result.is-miss {
    border-color: rgba(239, 68, 68, .5);
    background: rgba(239, 68, 68, .16);
    color: #fecaca;
}

.tk-analysis-result small {
    color: inherit;
    font-weight: 900;
}

.tk-analysis-text p {
    margin: 0 0 12px;
}

.tk-analysis-text p:last-child {
    margin-bottom: 0;
}

.tk-rules-document {
    --tk-rules-ink: #e2e8f0;
    --tk-rules-muted: #94a3b8;
    --tk-rules-panel: #1e293b;
    --tk-rules-panel-2: #111827;
    --tk-rules-border: #334155;
    --tk-rules-purple: #8b5cf6;
    --tk-rules-purple-3: #c4b5fd;
    --tk-rules-blue: #38bdf8;
    width: min(100%, 1040px);
    margin: 24px auto;
    padding: 18px;
    border: 1px solid var(--tk-rules-border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, .22), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--tk-rules-ink);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.tk-rules-document * {
    box-sizing: border-box;
}

.tk-rules-doc-header,
.tk-rules-doc-body,
.tk-rules-doc-footer,
.tk-rules-doc-meta {
    background: rgba(17, 24, 39, .88);
}

.tk-rules-doc-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--tk-rules-border);
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
}

.tk-rules-doc-header > div:first-child {
    min-width: 0;
}

.tk-rules-doc-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--tk-rules-purple-3);
    font: 800 12px/1.1 system-ui, -apple-system, Segoe UI, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tk-rules-doc-header h2 {
    margin: 0;
    color: var(--tk-rules-ink);
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
}

.tk-rules-doc-header p {
    margin: 10px 0 0;
    color: var(--tk-rules-muted);
    font: 700 14px/1.4 system-ui, -apple-system, Segoe UI, sans-serif;
}

.tk-rules-doc-logo {
    width: 116px;
    height: 116px;
    justify-self: end;
    display: grid;
    place-items: center;
}

.tk-rules-doc-logo img {
    display: block;
    width: 116px;
    height: 116px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
}

.tk-rules-doc-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-inline: 1px solid var(--tk-rules-border);
    border-top: 1px solid rgba(139, 92, 246, .28);
}

.tk-rules-doc-meta span {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid rgba(51, 65, 85, .85);
    color: var(--tk-rules-ink);
    font: 800 13px/1.35 system-ui, -apple-system, Segoe UI, sans-serif;
}

.tk-rules-doc-meta span:last-child {
    border-right: 0;
}

.tk-rules-doc-meta strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tk-rules-purple-3);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tk-rules-doc-body {
    padding: 28px;
    border-inline: 1px solid var(--tk-rules-border);
}

.tk-rules-doc-body h3,
.tk-rules-doc-footer h3 {
    margin: 0 0 16px;
    color: var(--tk-rules-purple-3);
    font: 900 13px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tk-rules-doc-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    counter-reset: tk-rules;
    list-style: none;
}

.tk-rules-doc-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(51, 65, 85, .9);
    border-radius: 8px;
    background: rgba(30, 41, 59, .86);
    counter-increment: tk-rules;
}

.tk-rules-doc-list li::before {
    content: counter(tk-rules);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tk-rules-purple), var(--tk-rules-blue));
    color: #fff;
    font: 900 18px/1 system-ui, -apple-system, Segoe UI, sans-serif;
}

.tk-rules-doc-list span {
    color: var(--tk-rules-ink);
    font-size: 17px;
    line-height: 1.48;
}

.tk-rules-doc-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
    padding: 24px 28px 30px;
    border: 1px solid var(--tk-rules-border);
    border-top: 1px solid rgba(139, 92, 246, .28);
    border-radius: 0 0 8px 8px;
}

.tk-rules-doc-footer ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--tk-rules-muted);
    font: 700 14px/1.4 system-ui, -apple-system, Segoe UI, sans-serif;
}

.tk-rules-doc-signature {
    align-self: end;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .28);
    text-align: center;
}

.tk-rules-doc-signature span {
    display: block;
    color: var(--tk-rules-muted);
    font: 800 11px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tk-rules-doc-signature strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
}

.tk-btn,
.tk-wrap .button,
.tk-admin .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--tk-border-soft);
    border-radius: 8px;
    background: #334155;
    color: var(--tk-text);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.tk-btn:hover,
.tk-wrap .button:hover,
.tk-admin .button:hover {
    color: #fff;
    border-color: var(--tk-purple-2);
}

.tk-btn-primary,
.tk-wrap .button-primary,
.tk-admin .button-primary {
    background: linear-gradient(135deg, var(--tk-purple), var(--tk-purple-2));
    border-color: var(--tk-purple-2);
    color: #fff;
    box-shadow: 0 6px 16px rgba(109, 40, 217, .35);
}

.tk-admin-shortcut {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .38);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.tk-admin-shortcut:hover,
.tk-admin-shortcut:focus {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    text-decoration: none;
}

.tk-main-menu-user > span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.tk-panel-nav-wrap {
    margin-bottom: 12px;
}

.tk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tk-actions form {
    margin: 0;
}

.tk-backup-actions {
    margin: 14px 0;
}

.tk-admin-details {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background: var(--tk-bg);
}

.tk-admin-details summary {
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.tk-form {
    max-width: 460px;
    margin: 20px auto;
}

.tk-profile-form {
    max-width: 640px;
    margin: 18px 0;
}

.tk-profile-form h3 {
    margin: 8px 0 0;
    color: var(--tk-text);
}

.tk-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.tk-profile-stats div {
    padding: 14px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background: var(--tk-bg);
    text-align: center;
}

.tk-profile-stats strong {
    display: block;
    color: var(--tk-purple-3);
    font-size: 26px;
    line-height: 1;
}

.tk-profile-stats span {
    display: block;
    margin-top: 5px;
    color: var(--tk-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tk-form-ranking {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background: var(--tk-bg);
}

.tk-form-ranking h3 {
    margin: 0 0 10px;
}

.tk-form-ranking ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-form-ranking li {
    display: grid;
    grid-template-columns: 44px minmax(120px, 1fr) minmax(100px, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: var(--tk-panel-2);
}

.tk-form-ranking li.is-mine {
    outline: 2px solid rgba(250, 204, 21, .42);
    background: rgba(250, 204, 21, .08);
}

.tk-form-ranking li span,
.tk-form-ranking li b {
    color: var(--tk-purple-3);
    font-weight: 900;
}

.tk-form-ranking li small {
    color: var(--tk-muted);
    font-weight: 800;
}

.tk-logout-form {
    margin-top: 12px;
}

.tk-form-note {
    margin: 12px 0 0;
    color: var(--tk-muted);
    font-size: 13px;
}

.tk-form-note a,
.tk-admin a {
    color: var(--tk-purple-3);
}

.tk-mode-vote .tk-hero {
    margin-bottom: 16px;
}

.tk-mode-vote-box .tk-section-head {
    align-items: center;
}

.tk-countdown-box {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(56, 189, 248, .32);
    border-radius: 8px;
    background: rgba(56, 189, 248, .12);
    color: #bae6fd;
    font-weight: 900;
}

.tk-countdown-box strong {
    color: #fff;
}

.tk-mode-vote-form {
    display: grid;
    gap: 14px;
}

.tk-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tk-mode-option {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    min-height: 150px;
    padding: 16px;
    border: 2px solid var(--tk-border);
    border-radius: 8px;
    background: var(--tk-bg);
    cursor: pointer;
}

.tk-mode-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tk-mode-badge {
    display: inline-flex;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--tk-border-soft);
    border-radius: 8px;
    background: rgba(139, 92, 246, .16);
    color: var(--tk-purple-3);
    font-size: 22px;
    font-weight: 1000;
}

.tk-mode-option strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
}

.tk-mode-option small {
    grid-column: 2;
    color: var(--tk-muted);
    font-weight: 800;
    line-height: 1.35;
}

.tk-mode-option:has(input:checked) {
    border-color: #facc15;
    background: rgba(250, 204, 21, .09);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .18);
}

.tk-mode-option:has(input:checked) .tk-mode-badge {
    border-color: rgba(250, 204, 21, .7);
    background: rgba(250, 204, 21, .18);
    color: #fde68a;
}

.tk-mode-option:has(input:focus-visible) {
    outline: 3px solid rgba(139, 92, 246, .35);
    outline-offset: 2px;
}

.tk-code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.tk-theme-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(139, 92, 246, .38);
}

.tk-hero .tk-theme-logo {
    width: 86px;
    height: 86px;
}

.tk-form label,
.tk-admin-form label {
    display: grid;
    gap: 5px;
    font-weight: 800;
    color: var(--tk-text);
}

.tk-form input,
.tk-form select,
.tk-admin-form input,
.tk-admin-form select,
.tk-admin-form textarea,
.tk-result-form input {
    width: 100%;
    border: 1px solid var(--tk-border-soft);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--tk-bg);
    color: var(--tk-text);
}

.tk-form input:focus,
.tk-form select:focus,
.tk-admin-form input:focus,
.tk-admin-form select:focus,
.tk-admin-form textarea:focus,
.tk-result-form input:focus {
    outline: none;
    border-color: var(--tk-purple-2);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}

.tk-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
}

.tk-check input {
    width: auto;
}

.tk-hero {
    text-align: center;
    padding: 30px 16px 18px;
    border: 1px solid rgba(139, 92, 246, .28);
    border-radius: 8px;
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
    box-shadow: 0 10px 30px rgba(109, 40, 217, .35);
}

.tk-hero span,
.tk-club-head span {
    display: inline-block;
    color: #ddd6fe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tk-hero h2 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: 44px;
    line-height: 1;
}

.tk-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: #ede9fe;
}

.tk-tabs,
.tk-view-tabs,
.tk-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tk-tabs,
.tk-view-tabs {
    justify-content: center;
}

.tk-tabs button,
.tk-view-tabs button,
.tk-admin-tabs a {
    border: 1px solid var(--tk-border-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--tk-text);
    padding: 9px 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.tk-tabs button.is-active,
.tk-view-tabs button.is-active,
.tk-admin-tabs a.is-active {
    background: var(--tk-purple);
    border-color: var(--tk-purple-2);
    color: #fff;
}

.tk-tabs button.is-locked {
    border-color: rgba(74, 222, 128, .35);
    color: #bbf7d0;
}

.tk-view-panel {
    display: none;
}

.tk-view-panel.is-active {
    display: block;
}

.tk-league-switch {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.tk-league-panel {
    display: none;
}

.tk-league-panel.is-active {
    display: block;
}

.tk-club-carousel {
    display: none;
    align-items: center;
    gap: 10px;
}

.tk-club-carousel.is-active {
    display: flex;
}

.tk-club-carousel.is-locked {
    justify-content: center;
}

.tk-selected-clubs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.tk-selected-club {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(74, 222, 128, .32);
    border-radius: 8px;
    background: rgba(22, 163, 74, .12);
}

.tk-selected-club img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
}

.tk-selected-club span,
.tk-selected-club small {
    display: block;
    color: #bbf7d0;
    font-weight: 800;
}

.tk-selected-club strong {
    display: block;
    color: #fff;
}

.tk-club-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(174px, 210px);
    gap: 14px;
    overflow-x: auto;
    padding: 12px 4px 20px;
    scroll-snap-type: x mandatory;
}

.tk-club-form {
    scroll-snap-align: center;
}

.tk-club-form.is-selected {
    position: relative;
}

.tk-club-card {
    position: relative;
    width: 100%;
    min-height: 250px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(15, 23, 42, .42)),
        var(--tk-panel);
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.tk-club-card:hover {
    border-color: var(--tk-purple-2);
    transform: translateY(-2px);
}

.tk-club-form.is-selected .tk-club-card,
.tk-club-card.is-selected {
    border-color: #facc15;
    background:
        linear-gradient(180deg, rgba(250, 204, 21, .16), rgba(139, 92, 246, .18)),
        var(--tk-panel);
    box-shadow:
        0 0 0 3px rgba(250, 204, 21, .35),
        0 0 0 7px rgba(139, 92, 246, .28),
        0 16px 34px rgba(0, 0, 0, .42);
    transform: translateY(-4px);
}

.tk-choice-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    padding: 6px 9px;
    border-radius: 8px;
    background: #facc15;
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .32);
}

.tk-club-form.is-selected .tk-choice-mark,
.tk-club-card.is-selected .tk-choice-mark {
    display: inline-flex;
}

.tk-club-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
}

.tk-club-card strong {
    color: #fff;
    text-align: center;
    line-height: 1.15;
}

.tk-club-card small {
    color: var(--tk-muted);
    font-weight: 700;
}

.tk-club-choice {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    margin: 16px 0;
    padding: 16px;
    border: 2px solid #facc15;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(250, 204, 21, .14), rgba(139, 92, 246, .2)),
        var(--tk-panel);
    box-shadow:
        0 0 0 4px rgba(250, 204, 21, .12),
        0 12px 30px rgba(0, 0, 0, .34);
}

.tk-club-choice[hidden] {
    display: none;
}

.tk-club-choice span {
    display: block;
    color: #fef3c7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tk-club-choice strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
}

.tk-club-choice small {
    display: block;
    margin-top: 3px;
    color: var(--tk-purple-3);
    font-weight: 800;
}

.tk-club-choice img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
}

.tk-club-choice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tk-arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--tk-border-soft);
    border-radius: 50%;
    background: #334155;
    color: var(--tk-purple-3);
    font-size: 30px;
    cursor: pointer;
}

.tk-club-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin: 0 0 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
    color: #fff;
    box-shadow: 0 10px 30px rgba(109, 40, 217, .3);
}

.tk-club-head img {
    width: 102px;
    height: 102px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
}

.tk-club-head h2 {
    margin: 4px 0 0;
    color: #fff;
}

.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.tk-card {
    padding: 18px;
    text-align: center;
}

.tk-card strong {
    display: block;
    color: var(--tk-purple-3);
    font-size: 30px;
    line-height: 1;
}

.tk-card span,
.tk-muted {
    color: var(--tk-muted);
}

.tk-start-head {
    margin: 0 0 14px;
}

.tk-start-head h2 {
    margin: 0 0 4px;
    color: #fff;
}

.tk-start-head p {
    margin: 0;
}

.tk-post-list {
    display: grid;
    gap: 14px;
}

.tk-post-card {
    display: grid;
    gap: 8px;
}

.tk-post-card span {
    color: var(--tk-purple-3);
    font-size: 12px;
    font-weight: 900;
}

.tk-post-card h3,
.tk-post-card p {
    margin: 0;
}

.tk-post-card h3 {
    color: #fff;
}

.tk-post-card .tk-btn {
    justify-self: start;
    margin-top: 4px;
}

.tk-match-line {
    color: #fff;
    font-weight: 800;
}

.tk-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.tk-rules span {
    background: rgba(139, 92, 246, .16);
    color: var(--tk-purple-3);
    border: 1px solid rgba(139, 92, 246, .32);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
}

.tk-schedule {
    display: grid;
    gap: 14px;
}

.tk-round-block {
    display: grid;
    gap: 10px;
}

.tk-round-block h3 {
    margin: 4px 0 0;
    color: var(--tk-purple-3);
}

.tk-match {
    padding: 16px;
}

.tk-match.is-open {
    border-color: var(--tk-purple-2);
}

.tk-match header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tk-match header div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.tk-match header .tk-teams-line,
.tk-teams-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.tk-table .tk-teams-line {
    font-size: 14px;
}

.tk-teams-line.is-compact {
    gap: 6px;
}

.tk-team {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #fff;
    font-size: inherit;
    font-weight: 900;
    text-transform: none;
}

.tk-team strong {
    min-width: 0;
    color: inherit;
    line-height: 1.2;
}

.tk-team-vs {
    color: var(--tk-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tk-team-logo {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45));
}

.tk-teams-line.is-compact .tk-team-logo,
.tk-table .tk-team-logo {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.tk-match header span {
    color: var(--tk-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tk-match header .tk-team {
    color: #fff;
    font-size: inherit;
    text-transform: none;
}

.tk-match header .tk-team-vs {
    color: var(--tk-muted);
}

.tk-match header p {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}

.tk-match header p span {
    background: var(--tk-panel-2);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--tk-muted);
}

.tk-match header p .tk-bonus-badge {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.tk-bonus-table-note {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
    font-size: 11px;
    font-weight: 900;
}

.tk-match .is-club,
.tk-table .is-club {
    color: var(--tk-purple-3);
}

.tk-unlock-note {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(250, 204, 21, .35);
    border-radius: 8px;
    background: rgba(250, 204, 21, .12);
    color: #fde68a;
    font-weight: 900;
}

.tk-unlock-note small {
    color: rgba(253, 230, 138, .82);
    font-weight: 800;
}

.tk-deadline-note {
    display: flex;
    margin: 12px 0 0;
    border-color: rgba(74, 222, 128, .32);
    background: rgba(22, 163, 74, .12);
    color: #bbf7d0;
}

.tk-deadline-note small {
    color: rgba(187, 247, 208, .82);
}

.tk-score,
.tk-my-bet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.tk-my-bet b {
    color: var(--tk-purple-3);
}

.tk-my-bet small {
    color: var(--tk-muted);
    font-weight: 800;
}

.tk-bet-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(196, 181, 253, .35);
    border-radius: 8px;
    background: rgba(139, 92, 246, .22);
    color: #fff;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.tk-pick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 10px;
}

.tk-pick-grid input {
    position: absolute;
    opacity: 0;
}

.tk-pick-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 52px;
    border: 1px solid var(--tk-border-soft);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    color: var(--tk-text);
    background: var(--tk-bg);
    font-weight: 900;
    cursor: pointer;
}

.tk-pick-grid b {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.tk-pick-grid small {
    color: var(--tk-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.tk-pick-grid input:checked + span {
    background: var(--tk-purple);
    border-color: var(--tk-purple-2);
    color: #fff;
}

.tk-pick-grid input:checked + span small {
    color: rgba(255, 255, 255, .86);
}

.tk-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.tk-table,
.tk-admin .widefat {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--tk-bg);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    overflow: hidden;
    color: var(--tk-text);
}

.tk-table th,
.tk-table td,
.tk-admin .widefat th,
.tk-admin .widefat td {
    border-bottom: 1px solid var(--tk-border);
    padding: 10px;
    text-align: left;
    color: var(--tk-text);
}

.tk-table th,
.tk-admin .widefat th {
    background: rgba(139, 92, 246, .12);
    color: var(--tk-purple-3);
    font-size: 12px;
    text-transform: uppercase;
}

.tk-rounds-table td:first-child {
    width: 112px;
}

.tk-rounds-table td:first-child small {
    color: var(--tk-muted);
    font-weight: 800;
    margin-left: 2px;
}

.tk-round-phase {
    display: inline-flex;
    margin-top: 5px;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(139, 92, 246, .16);
    color: var(--tk-purple-3);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.tk-status {
    display: inline-flex;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.tk-status-open { background: rgba(56, 189, 248, .18); color: #7dd3fc; }
.tk-status-hit { background: rgba(34, 197, 94, .18); color: #86efac; }
.tk-status-miss { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.tk-status-waiting,
.tk-status-pending,
.tk-status-closed { background: rgba(148, 163, 184, .14); color: #cbd5e1; }

.tk-rank-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    background: rgba(148, 163, 184, .12);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.tk-rank-change.is-up {
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.tk-rank-change.is-down {
    border-color: rgba(239, 68, 68, .42);
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
}

.tk-rank-change.is-new {
    border-color: rgba(56, 189, 248, .36);
    background: rgba(56, 189, 248, .13);
    color: #7dd3fc;
}

.tk-admin-tabs {
    margin-top: 18px;
}

.tk-admin-panel {
    max-width: 1180px;
}

.wp-admin .tk-admin {
    max-width: none;
    margin: 20px 20px 0 0;
}

.tk-admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
}

.tk-admin-form.full {
    grid-template-columns: 1fr;
}

.tk-admin-form textarea {
    min-height: 160px;
}

.wp-admin .tk-admin .tk-admin-card p,
.wp-admin .tk-admin .tk-admin-card em,
.wp-admin .tk-admin .tk-admin-card label {
    color: var(--tk-text);
}

.wp-admin .tk-admin .notice p {
    color: #1d2327;
}

.wp-admin .tk-admin input,
.wp-admin .tk-admin select,
.wp-admin .tk-admin textarea {
    background: var(--tk-bg) !important;
    color: var(--tk-text) !important;
    border-color: var(--tk-border-soft) !important;
}

.wp-admin .tk-admin input::placeholder,
.wp-admin .tk-admin textarea::placeholder {
    color: var(--tk-muted) !important;
}

.wp-admin .tk-admin select option,
.wp-admin .tk-admin select optgroup {
    background: var(--tk-panel-2);
    color: var(--tk-text);
}

.wp-admin .tk-admin .widefat,
.wp-admin .tk-admin .widefat tbody tr,
.wp-admin .tk-admin .widefat.striped > tbody > :nth-child(odd),
.wp-admin .tk-admin .widefat.striped > tbody > :nth-child(even) {
    background: var(--tk-bg);
    color: var(--tk-text);
}

.wp-admin .tk-admin .widefat tbody tr:nth-child(even) {
    background: var(--tk-panel-2);
}

.wp-admin .tk-admin .widefat th {
    background: rgba(139, 92, 246, .18);
    color: var(--tk-purple-3);
}

.wp-admin .tk-admin .widefat td,
.wp-admin .tk-admin .widefat td p,
.wp-admin .tk-admin .widefat td span,
.wp-admin .tk-admin .widefat td em {
    color: var(--tk-text);
}

.tk-admin-table form {
    margin: 0;
}

.tk-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tk-inline-form select {
    min-width: 190px;
}

.tk-admin-club-choice {
    display: grid;
    grid-template-columns: 36px minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 190px;
}

.tk-admin-club-choice img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35));
}

.tk-admin-club-choice strong {
    color: var(--tk-text);
    line-height: 1.2;
}

.tk-admin-club-choice .tk-inline-form {
    grid-column: 1 / -1;
}

.tk-setting-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tk-setting-check input {
    width: auto !important;
}

.tk-admin .button.tk-danger-button,
.wp-admin .tk-admin .button.tk-danger-button {
    border-color: rgba(239, 68, 68, .55);
    background: rgba(239, 68, 68, .16);
    color: #fecaca;
}

.tk-admin .button.tk-danger-button:hover,
.wp-admin .tk-admin .button.tk-danger-button:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, .28);
    color: #fff;
}

.tk-code-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(139, 92, 246, .18);
    color: #fff;
    border: 1px solid rgba(139, 92, 246, .32);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
}

.tk-result-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.tk-result-form input {
    width: 70px;
}

.tk-admin-bet-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.tk-player-bets-table td {
    vertical-align: top;
}

.tk-bet-log {
    display: grid;
    gap: 6px;
    min-width: 210px;
    max-width: 320px;
}

.tk-bet-log p {
    margin: 0;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: rgba(15, 23, 42, .36);
    color: var(--tk-text);
    font-size: 12px;
    line-height: 1.35;
}

.tk-bet-log strong {
    color: var(--tk-purple-3);
}

.tk-filter-form {
    margin-bottom: 14px;
}

.tk-postpone-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(130px, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.tk-postpone-form input {
    min-width: 0;
}

.tk-match-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tk-club-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 24px 12px;
    overflow: auto;
    background: rgba(2, 6, 23, .94);
    backdrop-filter: blur(10px);
}

.tk-club-gate .tk-wrap {
    margin-top: 0;
}

.tk-push-status,
.tk-system-list div {
    padding: 10px 12px;
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    background: var(--tk-bg);
    color: var(--tk-text);
    font-weight: 800;
}

.tk-push-status.is-ok,
.tk-system-list div.is-ok {
    border-color: rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
}

.tk-push-status.is-warn,
.tk-system-list div.is-warn {
    border-color: rgba(250, 204, 21, .35);
    background: rgba(250, 204, 21, .1);
    color: #fde68a;
}

.tk-push-status.is-error {
    border-color: rgba(239, 68, 68, .38);
    background: rgba(239, 68, 68, .12);
    color: #fecaca;
}

.tk-system-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.tk-system-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tk-system-list span {
    font-weight: 900;
}

.tk-report-preview table {
    width: 100%;
    border-collapse: collapse;
    color: var(--tk-text);
}

.tk-report-preview th,
.tk-report-preview td {
    padding: 8px;
    border: 1px solid var(--tk-border);
}

@media (max-width: 760px) {
    .tk-wrap,
    .tk-admin {
        padding: 12px;
        overflow-wrap: break-word;
    }

    .tk-analysis-post {
        width: 100%;
        margin: 14px 0;
        padding: 14px;
    }

    .tk-analysis-teams {
        grid-template-columns: 1fr;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .tk-analysis-team,
    .tk-analysis-team:last-child {
        grid-template-columns: 44px max-content;
        width: max-content;
        min-width: 100%;
        text-align: left;
    }

    .tk-analysis-team div,
    .tk-analysis-team strong {
        min-width: max-content;
    }

    .tk-analysis-team:last-child img,
    .tk-analysis-team:last-child .tk-analysis-logo-missing {
        order: 0;
    }

    .tk-analysis-team img,
    .tk-analysis-logo-missing {
        width: 44px;
        height: 44px;
    }

    .tk-analysis-team strong {
        font-size: 16px;
    }

    .tk-analysis-vs {
        display: none;
    }

    .tk-rules-document {
        margin: 12px 0;
        padding: 10px;
    }

    .tk-rules-doc-header {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tk-rules-doc-header h2 {
        font-size: 27px;
    }

    .tk-rules-doc-logo {
        width: 92px;
        height: 92px;
        justify-self: start;
    }

    .tk-rules-doc-logo img {
        width: 92px;
        height: 92px;
    }

    .tk-rules-doc-meta {
        grid-template-columns: 1fr;
    }

    .tk-rules-doc-meta span {
        border-right: 0;
        border-bottom: 1px solid rgba(185, 133, 47, .28);
    }

    .tk-rules-doc-meta span:last-child {
        border-bottom: 0;
    }

    .tk-rules-doc-body {
        padding: 18px;
    }

    .tk-rules-doc-list li {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 12px;
    }

    .tk-rules-doc-list li::before {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .tk-rules-doc-list span {
        font-size: 15px;
    }

    .tk-rules-doc-footer {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tk-rules-doc-signature {
        max-width: 240px;
    }

    .tk-hero h2 {
        font-size: 32px;
        line-height: 1.08;
    }

    .tk-mode-options {
        grid-template-columns: 1fr;
    }

    .tk-mode-option {
        min-height: auto;
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 14px;
    }

    .tk-mode-badge {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .tk-mode-option strong {
        font-size: 16px;
    }

    .tk-tabs,
    .tk-view-tabs,
    .tk-admin-tabs {
        justify-content: flex-start;
    }

    .tk-tabs button,
    .tk-view-tabs button,
    .tk-admin-tabs a,
    .tk-btn,
    .tk-wrap .button,
    .tk-admin .button {
        white-space: normal;
        text-align: center;
    }

    .tk-main-menu-user > span {
        white-space: normal;
    }

    .tk-league-switch {
        justify-content: stretch;
    }

    .tk-league-switch .tk-btn {
        width: 100%;
    }

    .tk-section-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tk-arrow {
        display: none;
    }

    .tk-admin-shortcut {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    .tk-form-ranking li {
        grid-template-columns: 40px 1fr;
    }

    .tk-form-ranking li small {
        grid-column: 2 / -1;
    }

    .tk-form-ranking li b {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .tk-postpone-form {
        grid-template-columns: 1fr;
    }

    .tk-club-track {
        grid-auto-columns: minmax(158px, 78vw);
    }

    .tk-club-choice {
        grid-template-columns: auto 1fr;
    }

    .tk-club-choice-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .tk-club-choice-actions .tk-btn {
        flex: 1 1 150px;
    }

    .tk-club-head {
        align-items: flex-start;
    }

    .tk-club-head img {
        width: 78px;
        height: 78px;
    }

    .tk-pick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-match {
        padding: 12px;
    }

    .tk-match header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tk-match header div,
    .tk-match header .tk-team {
        font-size: 16px;
    }

    .tk-match header .tk-teams-line {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tk-match header p {
        justify-content: flex-start;
        width: 100%;
    }

    .tk-team {
        align-items: flex-start;
    }

    .tk-team strong,
    .tk-club-head h2,
    .tk-selected-club strong,
    .tk-club-choice strong,
    .tk-club-card strong {
        overflow-wrap: break-word;
    }

    .tk-table .tk-teams-line {
        display: inline-flex;
        width: auto;
    }

    .tk-table th,
    .tk-table td,
    .tk-admin .widefat th,
    .tk-admin .widefat td {
        padding: 9px;
        vertical-align: top;
    }

    .tk-inline-form,
    .tk-result-form,
    .tk-match-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tk-inline-form select,
    .tk-result-form input,
    .tk-admin-bet-form,
    .tk-admin-club-choice,
    .tk-bet-log {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .tk-report-preview {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tk-report-preview table {
        min-width: 680px;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .tk-table-wrap::before {
        content: "Tabela jest szersza. Przesun palcem albo obroc telefon.";
        display: block;
        margin: 0 0 8px;
        padding: 8px 10px;
        border: 1px solid rgba(56, 189, 248, .32);
        border-radius: 8px;
        background: rgba(56, 189, 248, .12);
        color: #bae6fd;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.25;
    }
}
