* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0b0d10;
    color: #f2f5f7;
    font-family: 'Inter', Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

.typer-shell {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 40px;
}

.typer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.typer-top h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 1;
    letter-spacing: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.session-pill {
    min-width: 150px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #15191f;
    color: #b9c2cc;
    text-align: center;
    font-weight: 700;
}

.session-pill.active {
    border-color: rgba(110, 231, 183, 0.45);
    background: rgba(20, 83, 45, 0.28);
    color: #d1fae5;
}

.info-button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(244, 201, 93, 0.34);
    border-radius: 8px;
    background: rgba(244, 201, 93, 0.12);
    color: #fde68a;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.info-button:hover {
    border-color: rgba(244, 201, 93, 0.55);
    background: rgba(244, 201, 93, 0.18);
    transform: translateY(-1px);
}

.typer-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.side-panel,
.matches-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel,
.ranking-panel,
.daily-picks-panel,
.daily-single-picks-panel,
.filters-bar,
.summary-strip,
.message-bar,
.match-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #13171d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.auth-panel,
.ranking-panel,
.daily-picks-panel,
.daily-single-picks-panel {
    padding: 16px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.ghost-button,
.primary-button,
.save-button,
.auth-tab,
.pick-option {
    min-height: 38px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ghost-button {
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a2028;
    color: #cbd5df;
}

.ghost-button:hover,
.primary-button:hover,
.save-button:hover,
.auth-tab:hover,
.pick-option:hover {
    transform: translateY(-1px);
}

.primary-button,
.save-button {
    padding: 0 16px;
    background: #f4c95d;
    color: #161208;
    font-weight: 800;
}

.primary-button:disabled,
.save-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-note {
    margin: 0;
    color: #9ba7b4;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 8px;
    background: #0e1116;
}

.auth-tab {
    background: transparent;
    color: #9ba7b4;
    font-weight: 800;
}

.auth-tab.active {
    background: #243142;
    color: #f8fafc;
}

label {
    display: grid;
    gap: 7px;
    color: #9ba7b4;
    font-size: 0.78rem;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: #0c1015;
    color: #f8fafc;
    padding: 0 12px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #6ee7b7;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.12);
}

.user-card {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #0e1513;
    border: 1px solid rgba(110, 231, 183, 0.18);
}

.user-card span {
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 800;
}

.user-card strong {
    font-size: 1.2rem;
}

.ranking-list {
    display: grid;
    gap: 8px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #0f1319;
}

.ranking-button {
    width: 100%;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.ranking-button:hover,
.ranking-button:focus-visible {
    background: #151c25;
    outline: 1px solid rgba(110, 231, 183, 0.35);
}

.ranking-place {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #263241;
    font-weight: 900;
}

.ranking-row:first-child .ranking-place {
    background: #f4c95d;
    color: #171103;
}

.ranking-nick {
    overflow: hidden;
    color: #f8fafc;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-meta {
    color: #8c98a6;
    font-size: 0.74rem;
    font-weight: 700;
}

.ranking-points {
    color: #6ee7b7;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: right;
}

.history-button {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(244, 201, 93, 0.34);
    border-radius: 8px;
    background: rgba(244, 201, 93, 0.1);
    color: #fde68a;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    padding: 10px 12px;
}

.history-button:hover,
.history-button:focus-visible {
    background: rgba(244, 201, 93, 0.17);
    outline: 1px solid rgba(244, 201, 93, 0.42);
}

.daily-picks-nav {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.daily-picks-nav strong {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
}

.daily-picks-arrow {
    display: grid;
    place-items: center;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #171d24;
    color: #f8fafc;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 900;
}

.daily-picks-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.daily-picks-arrow:not(:disabled):hover,
.daily-picks-arrow:not(:disabled):focus-visible {
    border-color: rgba(110, 231, 183, 0.42);
    background: #1c2631;
    outline: none;
}

.daily-picks-list {
    display: grid;
    gap: 10px;
}

.daily-section-note {
    margin: -2px 0 12px;
    color: #8c98a6;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.daily-pick-card {
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #0f1319;
    color: inherit;
    text-align: left;
}

.single-pick-card {
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.single-pick-card:hover,
.single-pick-card:focus-visible {
    border-color: rgba(110, 231, 183, 0.28);
    outline: none;
    transform: translateY(-1px);
}

.daily-pick-card.best {
    border-left-color: rgba(110, 231, 183, 0.72);
    background: linear-gradient(90deg, rgba(20, 83, 45, 0.2), #0f1319 45%);
}

.daily-pick-card.worst {
    border-left-color: rgba(248, 113, 113, 0.66);
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.18), #0f1319 45%);
}

.daily-pick-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aab4bf;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.daily-pick-card.best .daily-pick-title span {
    color: #86efac;
}

.daily-pick-card.worst .daily-pick-title span {
    color: #fca5a5;
}

.daily-pick-player {
    overflow: hidden;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-pick-score {
    color: #f4c95d;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.daily-pick-meta {
    display: grid;
    gap: 3px;
    color: #8c98a6;
    font-size: 0.74rem;
    font-weight: 800;
}

.daily-pick-empty {
    color: #8c98a6;
    font-size: 0.82rem;
    font-weight: 800;
}

.filters-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
    gap: 12px;
    padding: 14px;
    position: sticky;
    top: 10px;
    z-index: 20;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.summary-strip div {
    display: grid;
    gap: 3px;
    padding: 14px;
    background: #13171d;
}

.summary-strip strong {
    font-size: 1.5rem;
}

.summary-strip span {
    color: #8c98a6;
    font-size: 0.78rem;
    font-weight: 800;
}

.message-bar {
    padding: 12px 14px;
    color: #f8fafc;
    font-weight: 700;
}

.message-bar.success {
    border-color: rgba(110, 231, 183, 0.32);
    background: rgba(20, 83, 45, 0.34);
}

.message-bar.error {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.34);
}

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

.match-card {
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.match-card:hover,
.match-card.expanded {
    border-color: rgba(110, 231, 183, 0.24);
}

.match-card.locked {
    border-color: rgba(248, 113, 113, 0.18);
}

.match-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #171d24;
}

.match-card:not(.expanded) .match-header {
    border-bottom: 0;
}

.match-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    background: #263241;
    color: #b9c2cc;
    font-size: 0.74rem;
    font-weight: 800;
}

.lock-tag {
    background: rgba(127, 29, 29, 0.55);
    color: #fecaca;
}

.settled-tag {
    background: rgba(113, 63, 18, 0.56);
    color: #fde68a;
}

.match-teams {
    display: grid;
    gap: 8px;
}

.team-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.team-number {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #0e1116;
    color: #f4c95d;
    font-weight: 900;
}

.team-name {
    overflow: hidden;
    font-size: 1.2rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-code {
    color: #8c98a6;
    font-size: 0.82rem;
    font-weight: 900;
}

.match-meta {
    display: grid;
    gap: 5px;
    min-width: 220px;
    color: #aab4bf;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
}

.expand-indicator {
    color: #6ee7b7;
    font-size: 0.9rem;
}

.match-body {
    display: grid;
    gap: 12px;
    padding: 14px;
    cursor: default;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.event-row {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.event-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d7dee7;
    font-size: 0.82rem;
    font-weight: 900;
}

.event-points {
    color: #f4c95d;
    font-size: 0.74rem;
    white-space: nowrap;
}

.pick-options {
    display: grid;
    grid-template-columns: repeat(var(--option-count, 2), minmax(0, 1fr));
    gap: 6px;
}

.pick-option {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #171d24;
    color: #cbd5df;
    font-size: 0.84rem;
    font-weight: 900;
    overflow: hidden;
    padding: 6px 8px;
}

.pick-option.selected {
    border-color: rgba(110, 231, 183, 0.55);
    background: #153b32;
    color: #d1fae5;
}

.pick-option.correct-option {
    border-color: rgba(244, 201, 93, 0.75);
    box-shadow: inset 0 0 0 1px rgba(244, 201, 93, 0.22);
}

.pick-option.selected.correct-option {
    border-color: rgba(110, 231, 183, 0.8);
    background: #164735;
}

.pick-option.selected.wrong-option {
    border-color: rgba(248, 113, 113, 0.75);
    background: rgba(127, 29, 29, 0.42);
    color: #fecaca;
}

.pick-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.correct-marker {
    color: #f4c95d;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.pick-share {
    color: #8c98a6;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

.pick-option.selected .pick-share {
    color: #bbf7d0;
}

.pick-option.selected.wrong-option .pick-share {
    color: #fecaca;
}

.match-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.save-state {
    color: #8c98a6;
    font-size: 0.8rem;
    font-weight: 800;
}

.empty-state {
    padding: 16px;
    border-radius: 8px;
    background: #0f1319;
    color: #8c98a6;
    font-weight: 700;
    text-align: center;
}

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 7, 12, 0.82);
}

.info-modal-content {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #13171d;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
    padding: 18px;
}

.info-sections {
    display: grid;
    gap: 12px;
}

.info-sections section {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.info-sections h3,
.info-sections p {
    margin: 0;
}

.info-sections h3 {
    color: #f4c95d;
    font-size: 0.92rem;
}

.info-sections p {
    color: #cbd5df;
    font-size: 0.92rem;
    line-height: 1.55;
}

.player-profile-content {
    width: min(940px, 100%);
}

.single-pick-content {
    width: min(940px, 100%);
}

.player-profile-body {
    display: grid;
    gap: 12px;
}

.single-pick-body {
    display: grid;
    gap: 12px;
}

.single-pick-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.single-pick-summary div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.single-pick-summary span {
    color: #8c98a6;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.single-pick-summary strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(244, 201, 93, 0.18);
    border-radius: 8px;
    background: rgba(113, 63, 18, 0.2);
    color: #fde68a;
    font-size: 0.86rem;
    font-weight: 800;
}

.profile-matches {
    display: grid;
    gap: 10px;
}

.profile-match-card {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.profile-match-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-match-top h3,
.profile-match-top p {
    margin: 0;
}

.profile-match-top h3 {
    color: #f8fafc;
    font-size: 1rem;
}

.profile-match-top p,
.profile-match-top span {
    color: #8c98a6;
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-picks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    border-left: 3px solid transparent;
    padding: 9px 10px;
    border-radius: 8px;
    background: #171d24;
}

.profile-pick-correct {
    border-left-color: rgba(110, 231, 183, 0.72);
    background: linear-gradient(90deg, rgba(20, 83, 45, 0.2), #171d24 48%);
}

.profile-pick-wrong {
    border-left-color: rgba(248, 113, 113, 0.68);
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.18), #171d24 48%);
}

.profile-pick span {
    overflow: hidden;
    color: #aab4bf;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-pick strong {
    color: #e5edf6;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.profile-pick-correct strong {
    color: #d7fbe6;
}

.profile-pick-wrong strong {
    color: #ffd8d8;
}

.profile-pick em {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5df;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.profile-pick-correct em {
    background: rgba(22, 101, 52, 0.34);
    color: #86efac;
}

.profile-pick-wrong em {
    background: rgba(153, 27, 27, 0.3);
    color: #fca5a5;
}

.profile-hidden {
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #8c98a6;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.ranking-history-content {
    width: min(1480px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
}

.ranking-history-body {
    display: grid;
    gap: 14px;
}

.history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.history-toolbar strong {
    display: block;
    color: #f8fafc;
    font-size: 0.92rem;
}

.history-toolbar span {
    color: #8c98a6;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.history-actions button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #171d24;
    color: #cbd5df;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 7px 10px;
}

.history-actions button:hover,
.history-actions button:focus-visible {
    border-color: rgba(110, 231, 183, 0.42);
    color: #f8fafc;
    outline: none;
}

.history-actions button.active {
    border-color: rgba(110, 231, 183, 0.52);
    background: rgba(20, 83, 45, 0.28);
    color: #d1fae5;
}

.history-player-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: #111820;
    color: #aab4bf;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.history-filter-chip.selected {
    border-color: rgba(255, 255, 255, 0.18);
    background: #171d24;
    color: #f8fafc;
}

.history-filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.history-filter-chip i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--history-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--history-color) 18%, transparent);
}

.history-filter-chip strong {
    color: #8c98a6;
    font-size: 0.72rem;
}

.history-chart-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0f1319;
}

.history-chart {
    display: block;
    min-width: 1120px;
    width: 100%;
    height: auto;
}

.history-chart-bg {
    fill: #0f1319;
}

.history-grid {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.history-axis {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
}

.history-axis-label {
    fill: #8c98a6;
    font-size: 12px;
    font-weight: 800;
}

.history-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.4;
    transition: opacity 0.15s ease, stroke-width 0.15s ease;
}

.history-hit-line {
    fill: none;
    opacity: 0;
    pointer-events: stroke;
    stroke: transparent;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 20;
}

.history-player-series:hover .history-line {
    opacity: 1;
    stroke-width: 5;
}

.history-point {
    stroke: #0f1319;
    stroke-width: 2;
    cursor: pointer;
}

.history-end-label {
    cursor: pointer;
}

.history-end-label line {
    opacity: 0.45;
    stroke-dasharray: 3 4;
    stroke-width: 1.5;
}

.history-end-label text {
    font-size: 13px;
    font-weight: 900;
    paint-order: stroke;
    stroke: #0f1319;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #171d24;
    color: #cbd5df;
    font-size: 0.78rem;
    font-weight: 900;
}

.history-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--history-color);
}

.history-tooltip {
    position: fixed;
    z-index: 5000;
    min-width: 210px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(13, 18, 25, 0.96);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
    color: #d7dee7;
    font-size: 0.78rem;
    font-weight: 800;
    pointer-events: none;
}

.history-tooltip strong,
.history-tooltip span {
    display: block;
}

.history-tooltip strong {
    color: #f8fafc;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.history-tooltip span {
    color: #8c98a6;
    margin-bottom: 8px;
}

.history-tooltip div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
}

.history-tooltip b {
    color: #f8fafc;
}

.history-tooltip em {
    font-style: normal;
}

.history-tooltip-up em {
    color: #86efac;
}

.history-tooltip-down em {
    color: #fca5a5;
}

.history-tooltip-same em {
    color: #f8fafc;
}

.hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .typer-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .typer-shell {
        width: min(100% - 24px, 720px);
        padding-top: 68px;
    }

    .typer-top {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .side-panel,
    .filters-bar,
    .events-grid,
    .profile-picks-grid,
    .single-pick-summary {
        grid-template-columns: 1fr;
    }

    .profile-match-top {
        flex-direction: column;
    }

    .filters-bar {
        position: static;
    }

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

    .match-meta {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .summary-strip {
        grid-template-columns: 1fr;
    }

    .team-name {
        font-size: 1rem;
        white-space: normal;
    }

    .match-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .save-button {
        width: 100%;
    }
}
