/*
GeoRankle Geo Journey 1.0
history.css

Visual design for the Daily Challenge history calendar created by
game-history-view.js.

Used by:
- .geo-journey
- .geo-journey-header
- .geo-journey-period
- .geo-journey-calendar-panel
- .geo-journey-calendar
- .geo-journey-details
*/

/* =========================================================
   Component foundation
   ========================================================= */

.geo-journey {
    --history-ink: #111827;
    --history-muted: #64748b;
    --history-soft: #94a3b8;
    --history-blue: #1292f2;
    --history-blue-dark: #0875c9;
    --history-blue-soft: #eaf6ff;
    --history-blue-border: #cfe9ff;
    --history-yellow: #ffd400;
    --history-yellow-soft: #fff8cf;
    --history-green: #16a66a;
    --history-green-dark: #087a4b;
    --history-green-soft: #e7faef;
    --history-green-border: #b9efcf;
    --history-red: #ef4444;
    --history-red-dark: #c92f3f;
    --history-red-soft: #fff0f1;
    --history-red-border: #ffcdd2;
    --history-border: #e2eaf4;
    --history-surface: #ffffff;
    --history-surface-soft: #f7faff;
    --history-shadow: rgba(15, 23, 42, 0.08);

    position: relative;

    width: 100%;
    min-width: 0;
    margin-top: 30px;
    padding-top: 26px;

    border-top: 1px solid var(--history-border);

    color: var(--history-ink);

    font-family:
        Nunito,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.geo-journey *,
.geo-journey *::before,
.geo-journey *::after {
    box-sizing: border-box;
}

.geo-journey button {
    font: inherit;
}

/* =========================================================
   Header
   ========================================================= */

.geo-journey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}

.geo-journey-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.geo-journey-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border: 1px solid var(--history-blue-border);
    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--history-blue-soft) 100%
        );

    font-size: 22px;
    line-height: 1;

    box-shadow:
        0 8px 18px rgba(18, 146, 242, 0.10),
        inset 0 1px 0 #ffffff;
}

.geo-journey-heading-text {
    min-width: 0;
}

.stats-summary .geo-journey-title,
.geo-journey-title {
    margin: 0;

    color: var(--history-ink);

    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.geo-journey-subtitle {
    margin: 4px 0 0;

    color: var(--history-muted);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.geo-journey-today-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    min-height: 40px;
    margin: 0;
    padding: 9px 16px;

    border: 1px solid var(--history-blue-border);
    border-radius: 13px;

    appearance: none;
    -webkit-appearance: none;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eef8ff 100%
        );

    color: var(--history-blue-dark);
    cursor: pointer;

    font-size: 13px;
    font-weight: 900;
    line-height: 1;

    box-shadow:
        0 6px 14px rgba(18, 146, 242, 0.08),
        inset 0 1px 0 #ffffff;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

.geo-journey-today-button:hover {
    border-color: #8fd0ff;

    transform: translateY(-1px);

    box-shadow:
        0 9px 18px rgba(18, 146, 242, 0.14),
        inset 0 1px 0 #ffffff;
}

.geo-journey-today-button:active {
    transform: translateY(1px);
}

.geo-journey-today-button:focus-visible,
.geo-journey-range-button:focus-visible,
.geo-journey-month-button:focus-visible,
.geo-journey-day:focus-visible {
    outline: 3px solid rgba(18, 146, 242, 0.26);
    outline-offset: 3px;
}

/* =========================================================
   Range filters and period summary
   ========================================================= */

.geo-journey-period {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(330px, 1.15fr);
    align-items: stretch;
    gap: 14px;

    margin-bottom: 16px;
}

.geo-journey-range-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;

    min-width: 0;
    padding: 5px;

    border: 1px solid var(--history-border);
    border-radius: 15px;

    background: #edf3fa;

    box-shadow:
        inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

.geo-journey-range-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 11px;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    color: var(--history-muted);
    cursor: pointer;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.geo-journey-range-button:hover:not(.is-active) {
    color: #334155;
    background: rgba(255, 255, 255, 0.60);
}

.geo-journey-range-button.is-active {
    border-color: var(--history-blue-border);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #edf8ff 100%
        );

    color: var(--history-blue-dark);

    box-shadow:
        0 5px 12px rgba(18, 146, 242, 0.10),
        inset 0 1px 0 #ffffff;
}

.geo-journey-period-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    min-width: 0;
}

.geo-journey-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 50px;
    padding: 7px 8px;

    border: 1px solid var(--history-border);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            var(--history-surface) 0%,
            var(--history-surface-soft) 100%
        );

    text-align: center;

    box-shadow:
        0 5px 13px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 #ffffff;
}

.geo-journey-summary-value {
    display: block;

    max-width: 100%;

    overflow: hidden;

    color: var(--history-ink);

    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-journey-summary-label {
    display: block;

    margin-top: 4px;

    color: var(--history-muted);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

/* =========================================================
   Calendar panel
   ========================================================= */

.geo-journey-calendar-panel {
    padding: 18px;

    border: 1px solid var(--history-border);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(18, 146, 242, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbff 100%
        );

    box-shadow:
        0 10px 24px var(--history-shadow),
        inset 0 1px 0 #ffffff;
}

.geo-journey-month-navigation {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;

    margin-bottom: 11px;
}

.stats-summary .geo-journey-month-title,
.geo-journey-month-title {
    margin: 0;

    color: var(--history-ink);

    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.geo-journey-month-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 0 3px;

    border: 1px solid var(--history-border);
    border-radius: 13px;

    appearance: none;
    -webkit-appearance: none;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #eef5fb
        );

    color: #334155;
    cursor: pointer;

    font-size: 28px;
    font-weight: 800;
    line-height: 1;

    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 #ffffff;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.geo-journey-month-button:hover:not(:disabled) {
    border-color: #9fd7ff;

    color: var(--history-blue-dark);

    transform: translateY(-1px);

    box-shadow:
        0 8px 16px rgba(18, 146, 242, 0.12),
        inset 0 1px 0 #ffffff;
}

.geo-journey-month-button:active:not(:disabled) {
    transform: translateY(1px);
}

.geo-journey-month-button:disabled {
    border-color: #edf1f6;
    background: #f5f7fa;
    color: #cbd5e1;
    cursor: default;
    box-shadow: none;
}

/* =========================================================
   Calendar legend
   ========================================================= */

.geo-journey-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 15px;

    min-height: 24px;
    margin-bottom: 10px;
}

.geo-journey-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--history-muted);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.geo-journey-legend-dot {
    display: block;

    width: 8px;
    height: 8px;

    border: 1px solid transparent;
    border-radius: 50%;
}

.geo-journey-legend-dot.is-win {
    border-color: var(--history-green);
    background: var(--history-green);
}

.geo-journey-legend-dot.is-loss {
    border-color: var(--history-red);
    background: var(--history-red);
}

.geo-journey-legend-dot.is-empty {
    border-color: #cbd5e1;
    background: #ffffff;
}

/* =========================================================
   Calendar grid and days
   ========================================================= */

.geo-journey-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;

    width: 100%;
    min-width: 0;
}

.geo-journey-weekday {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 24px;

    color: var(--history-soft);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.geo-journey-day-spacer {
    display: block;
    min-width: 0;
    aspect-ratio: 1 / 0.86;
}

.geo-journey-day {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 0.86;
    margin: 0;
    padding: 3px;

    border: 1px solid var(--history-border);
    border-radius: 12px;

    appearance: none;
    -webkit-appearance: none;

    background: var(--history-surface);

    color: #475569;
    cursor: pointer;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: center;

    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);

    transition:
        transform 0.14s ease,
        border-color 0.14s ease,
        color 0.14s ease,
        background-color 0.14s ease,
        box-shadow 0.14s ease;
}

.geo-journey-day:hover:not(:disabled) {
    z-index: 1;

    border-color: #9fd7ff;

    color: var(--history-blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 7px 14px rgba(18, 146, 242, 0.13),
        inset 0 1px 0 #ffffff;
}

.geo-journey-day:active:not(:disabled) {
    transform: translateY(0);
}

.geo-journey-day.is-win {
    border-color: var(--history-green-border);

    background:
        linear-gradient(
            180deg,
            #f5fff9 0%,
            var(--history-green-soft) 100%
        );

    color: var(--history-green-dark);
}

.geo-journey-day.is-loss {
    border-color: var(--history-red-border);

    background:
        linear-gradient(
            180deg,
            #fffafa 0%,
            var(--history-red-soft) 100%
        );

    color: var(--history-red-dark);
}

.geo-journey-day.is-future {
    border-color: #edf1f6;
    background: #f7f9fc;
    color: #cbd5e1;
    cursor: default;
    box-shadow: none;
}

.geo-journey-day.is-today::before {
    content: "";

    position: absolute;
    top: 4px;
    right: 4px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--history-blue);

    box-shadow:
        0 0 0 2px rgba(18, 146, 242, 0.12);
}

.geo-journey-day.is-selected {
    z-index: 2;

    border-color: var(--history-blue);

    box-shadow:
        0 0 0 3px rgba(18, 146, 242, 0.14),
        0 7px 15px rgba(18, 146, 242, 0.12),
        inset 0 1px 0 #ffffff;
}

.geo-journey-day-marker {
    position: absolute;
    right: 3px;
    bottom: 2px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 10px;
    height: 10px;

    font-size: 8px;
    font-weight: 1000;
    line-height: 1;
}

.geo-journey-day.is-win .geo-journey-day-marker {
    color: var(--history-green);
}

.geo-journey-day.is-loss .geo-journey-day-marker {
    color: var(--history-red);
}

.geo-journey-month-summary {
    margin: 13px 0 0;

    color: var(--history-muted);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

/* =========================================================
   Selected-day details
   ========================================================= */

.geo-journey-details {
    margin-top: 14px;
}

.geo-journey-details-empty,
.geo-journey-result {
    min-width: 0;

    border: 1px solid var(--history-border);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faff 100%
        );

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 #ffffff;
}

.geo-journey-details-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 84px;
    padding: 16px 18px;
}

.geo-journey-details-empty-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid var(--history-blue-border);
    border-radius: 13px;

    background: var(--history-blue-soft);

    font-size: 20px;
    line-height: 1;
}

.geo-journey-details-empty-content {
    min-width: 0;
}

.geo-journey-details-date {
    display: block;

    color: #334155;

    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.geo-journey-details-message {
    margin: 3px 0 0;

    color: var(--history-muted);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.geo-journey-result {
    position: relative;

    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;

    padding: 14px 16px;
    overflow: hidden;
}

.geo-journey-result::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    border-radius: 4px;
}

.geo-journey-result.is-win::before {
    background: var(--history-green);
}

.geo-journey-result.is-loss::before {
    background: var(--history-red);
}

.geo-journey-result-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 43px;

    overflow: hidden;

    border: 1px solid var(--history-border);
    border-radius: 12px;

    background: #f3f6fa;

    font-size: 32px;
    line-height: 1;

    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.geo-journey-result-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.geo-journey-result-date {
    display: block;

    max-width: 100%;

    overflow: hidden;

    color: var(--history-muted);

    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.geo-journey-result-country {
    display: block;

    max-width: 100%;
    margin-top: 3px;

    overflow: hidden;

    color: var(--history-ink);

    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-journey-result-meta {
    display: block;

    max-width: 100%;
    margin-top: 4px;

    overflow: hidden;

    color: var(--history-muted);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-journey-result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 65px;
    min-height: 42px;
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-size: 18px;
    font-weight: 1000;
    line-height: 1;
    text-align: center;
}

.geo-journey-result.is-win .geo-journey-result-status {
    border-color: var(--history-green-border);
    background: var(--history-green-soft);
    color: var(--history-green-dark);
}

.geo-journey-result.is-loss .geo-journey-result-status {
    border-color: var(--history-red-border);
    background: var(--history-red-soft);
    color: var(--history-red-dark);
}

.geo-journey-result-squares {
    grid-column: 2 / -1;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;

    min-width: 0;
    margin-top: -3px;
}

.geo-journey-result-square {
    display: inline-block;

    font-size: 11px;
    line-height: 1;
}

/* =========================================================
   Dark color scheme
   ========================================================= */

@media (prefers-color-scheme: dark) {

    .geo-journey {
        --history-ink: #f8fafc;
        --history-muted: #cbd5e1;
        --history-soft: #94a3b8;
        --history-blue-soft: #142c43;
        --history-blue-border: #28577b;
        --history-green-soft: #123a2a;
        --history-green-border: #246646;
        --history-red-soft: #452126;
        --history-red-border: #74323c;
        --history-border: #334155;
        --history-surface: #1e293b;
        --history-surface-soft: #172235;
        --history-shadow: rgba(0, 0, 0, 0.28);
    }

    .geo-journey-heading-icon,
    .geo-journey-today-button,
    .geo-journey-range-button.is-active,
    .geo-journey-summary-item,
    .geo-journey-month-button,
    .geo-journey-calendar-panel,
    .geo-journey-details-empty,
    .geo-journey-result {
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .geo-journey-heading-icon,
    .geo-journey-today-button,
    .geo-journey-range-button.is-active,
    .geo-journey-summary-item,
    .geo-journey-calendar-panel,
    .geo-journey-details-empty,
    .geo-journey-result {
        background:
            linear-gradient(
                180deg,
                #1e293b 0%,
                #172235 100%
            );
    }

    .geo-journey-range-filters {
        border-color: #334155;
        background: #111b2a;
    }

    .geo-journey-range-button:hover:not(.is-active) {
        color: #f1f5f9;
        background: rgba(255, 255, 255, 0.05);
    }

    .geo-journey-month-button {
        background:
            linear-gradient(
                180deg,
                #253247,
                #1b2738
            );

        color: #e2e8f0;
    }

    .geo-journey-month-button:disabled {
        border-color: #293548;
        background: #182234;
        color: #526177;
    }

    .geo-journey-day {
        background: #1e293b;
        color: #cbd5e1;

        box-shadow:
            0 3px 8px rgba(0, 0, 0, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.035);
    }

    .geo-journey-day.is-win {
        background:
            linear-gradient(
                180deg,
                #173b2d,
                #123326
            );

        color: #79e4aa;
    }

    .geo-journey-day.is-loss {
        background:
            linear-gradient(
                180deg,
                #47232a,
                #392027
            );

        color: #ff9aa5;
    }

    .geo-journey-day.is-future {
        border-color: #293548;
        background: #172131;
        color: #526177;
    }

    .geo-journey-day.is-selected {
        border-color: #38a9ff;

        box-shadow:
            0 0 0 3px rgba(18, 146, 242, 0.20),
            0 7px 15px rgba(0, 0, 0, 0.22);
    }

    .geo-journey-legend-dot.is-empty {
        border-color: #64748b;
        background: #1e293b;
    }

    .geo-journey-details-empty-icon {
        border-color: #28577b;
        background: #142c43;
    }

    .geo-journey-details-date {
        color: #e2e8f0;
    }

    .geo-journey-result-flag {
        border-color: #475569;
        background: #253247;
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 760px) {

    .geo-journey-period {
        grid-template-columns: 1fr;
    }

    .geo-journey-period-summary {
        min-height: 54px;
    }

    .geo-journey-calendar-panel {
        padding: 16px;
    }

    .geo-journey-calendar {
        gap: 6px;
    }

    .geo-journey-day {
        border-radius: 10px;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {

    .geo-journey {
        margin-top: 24px;
        padding-top: 22px;
    }

    .geo-journey-header {
        align-items: flex-start;
        gap: 10px;
    }

    .geo-journey-heading {
        gap: 9px;
    }

    .geo-journey-heading-icon {
        width: 40px;
        height: 40px;

        border-radius: 13px;

        font-size: 19px;
    }

    .stats-summary .geo-journey-title,
    .geo-journey-title {
        font-size: 18px;
    }

    .geo-journey-subtitle {
        margin-top: 3px;
        font-size: 11px;
    }

    .geo-journey-today-button {
        min-width: 62px;
        min-height: 37px;
        padding: 8px 11px;

        border-radius: 12px;

        font-size: 11px;
    }

    .geo-journey-period {
        gap: 10px;
        margin-bottom: 12px;
    }

    .geo-journey-range-button {
        min-height: 35px;
        padding: 7px 5px;

        font-size: 10px;
    }

    .geo-journey-period-summary {
        gap: 5px;
    }

    .geo-journey-summary-item {
        min-height: 48px;
        padding: 7px 4px;

        border-radius: 11px;
    }

    .geo-journey-summary-value {
        font-size: 15px;
    }

    .geo-journey-summary-label {
        font-size: 8px;
    }

    .geo-journey-calendar-panel {
        padding: 12px 9px 13px;

        border-radius: 17px;
    }

    .geo-journey-month-navigation {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 7px;
        margin-bottom: 8px;
    }

    .stats-summary .geo-journey-month-title,
    .geo-journey-month-title {
        font-size: 15px;
    }

    .geo-journey-month-button {
        width: 36px;
        height: 36px;

        border-radius: 11px;

        font-size: 25px;
    }

    .geo-journey-legend {
        gap: 6px 10px;
        margin-bottom: 7px;
    }

    .geo-journey-legend-item {
        gap: 4px;
        font-size: 8px;
    }

    .geo-journey-legend-dot {
        width: 6px;
        height: 6px;
    }

    .geo-journey-calendar {
        gap: 4px;
    }

    .geo-journey-weekday {
        min-height: 20px;
        font-size: 8px;
    }

    .geo-journey-day,
    .geo-journey-day-spacer {
        aspect-ratio: 1 / 0.93;
    }

    .geo-journey-day {
        padding: 2px;

        border-radius: 8px;

        font-size: 10px;
    }

    .geo-journey-day.is-selected {
        box-shadow:
            0 0 0 2px rgba(18, 146, 242, 0.17),
            0 5px 10px rgba(18, 146, 242, 0.10);
    }

    .geo-journey-day-marker {
        right: 2px;
        bottom: 1px;

        font-size: 6px;
    }

    .geo-journey-day.is-today::before {
        top: 3px;
        right: 3px;

        width: 4px;
        height: 4px;
    }

    .geo-journey-month-summary {
        margin-top: 10px;
        font-size: 9px;
    }

    .geo-journey-details {
        margin-top: 11px;
    }

    .geo-journey-details-empty {
        justify-content: flex-start;

        min-height: 74px;
        padding: 13px;

        border-radius: 15px;
    }

    .geo-journey-details-empty-icon {
        width: 35px;
        height: 35px;

        border-radius: 11px;

        font-size: 17px;
    }

    .geo-journey-details-message {
        font-size: 10px;
    }

    .geo-journey-result {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 9px;

        padding: 12px 10px 12px 13px;

        border-radius: 15px;
    }

    .geo-journey-result-flag {
        width: 44px;
        height: 37px;

        border-radius: 10px;

        font-size: 27px;
    }

    .geo-journey-result-date {
        font-size: 8px;
    }

    .geo-journey-result-country {
        font-size: 14px;
    }

    .geo-journey-result-meta {
        font-size: 9px;
    }

    .geo-journey-result-status {
        min-width: 50px;
        min-height: 37px;
        padding: 7px 8px;

        border-radius: 11px;

        font-size: 15px;
    }

    .geo-journey-result-square {
        font-size: 9px;
    }
}

/* =========================================================
   Very small screens
   ========================================================= */

@media (max-width: 360px) {

    .geo-journey-period-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .geo-journey-calendar {
        gap: 3px;
    }

    .geo-journey-day {
        border-radius: 7px;
        font-size: 9px;
    }

    .geo-journey-result {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .geo-journey-result-flag {
        width: 40px;
        height: 34px;
        font-size: 24px;
    }

    .geo-journey-result-status {
        min-width: 45px;
        padding-inline: 6px;
        font-size: 14px;
    }
}

/* =========================================================
   Accessibility preferences
   ========================================================= */

@media (prefers-contrast: more) {

    .geo-journey,
    .geo-journey-heading-icon,
    .geo-journey-today-button,
    .geo-journey-range-filters,
    .geo-journey-range-button,
    .geo-journey-summary-item,
    .geo-journey-calendar-panel,
    .geo-journey-month-button,
    .geo-journey-day,
    .geo-journey-details-empty,
    .geo-journey-result,
    .geo-journey-result-status {
        border-width: 2px;
    }

    .geo-journey-day.is-win {
        color: #00643b;
    }

    .geo-journey-day.is-loss {
        color: #a81026;
    }
}

@media (prefers-reduced-motion: reduce) {

    .geo-journey-today-button,
    .geo-journey-range-button,
    .geo-journey-month-button,
    .geo-journey-day {
        transition: none;
    }

    .geo-journey-today-button:hover,
    .geo-journey-month-button:hover:not(:disabled),
    .geo-journey-day:hover:not(:disabled) {
        transform: none;
    }
}
