*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    --accent:#38bdf8;
    min-height:100vh;
    font-family:"Inter",sans-serif;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
        linear-gradient(135deg, #020617 0%, #08111f 48%, #020617 100%);
    color:#f8fafc;
}

.navbar{
    position:sticky;
    top:0;
    z-index:10;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:18px 28px;
    background:rgba(2,6,23,0.88);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

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

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    font-size:28px;
    font-weight:800;
}

.logo span,
.eyebrow{
    color:var(--accent);
}

.phase-badge{
    padding:5px 9px;
    border:1px solid rgba(125,211,252,0.42);
    border-radius:999px;
    background:rgba(56,189,248,0.14);
    color:#bae6fd;
    font-size:11px;
    font-style:normal;
    font-weight:800;
    letter-spacing:0.06em;
    text-transform:uppercase;
}

.btn{
    border:none;
    border-radius:14px;
    padding:12px 18px;
    background:rgba(255,255,255,0.08);
    color:#f8fafc;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
}

.page{
    width:min(1220px, calc(100vw - 36px));
    margin:30px auto 64px;
}

.country-page{
    padding-top:18px;
}

.hero{
    display:grid;
    grid-template-columns:minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap:18px;
    margin-bottom:18px;
}

.stats-polished-hero{
    grid-template-columns:1fr;
}

.panel,
.stat-card,
.row-card,
.hub-card{
    background:rgba(15,23,42,0.84);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter:blur(16px);
}

.panel{
    border-radius:24px;
    padding:24px;
}

.stats-loading-panel{
    max-width:860px;
    margin:8vh auto 0;
    overflow:hidden;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.94), rgba(8,47,73,0.66)),
        radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 36%);
}

.stats-loading-panel h1{
    margin-top:10px;
}

.stats-load-meter{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:14px;
    align-items:center;
    margin-top:26px;
}

.stats-load-progress{
    position:relative;
    height:12px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06);
}

.stats-load-progress::after{
    content:"";
    position:absolute;
    inset:0;
    width:42%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation:statsLoadSweep 1.35s linear infinite;
}

.stats-load-progress span{
    position:absolute;
    inset:0 auto 0 0;
    width:5%;
    border-radius:999px;
    background:linear-gradient(90deg, var(--accent), #22c55e);
    transition:width 260ms ease;
}

.stats-load-percent{
    min-width:44px;
    color:#e0f2fe;
    font-size:14px;
    font-weight:900;
    text-align:right;
}

.stats-load-steps{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:10px;
    margin-top:22px;
}

.stats-load-step{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    background:rgba(2,6,23,0.32);
    color:#94a3b8;
    font-size:12px;
    font-weight:800;
}

.stats-load-step-dot{
    width:9px;
    height:9px;
    flex:0 0 auto;
    border-radius:999px;
    background:rgba(148,163,184,0.5);
}

.stats-load-step.active{
    color:#e0f2fe;
    border-color:color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,0.08));
}

.stats-load-step.active .stats-load-step-dot{
    background:var(--accent);
    box-shadow:0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.stats-load-step.done{
    color:#bbf7d0;
    border-color:rgba(34,197,94,0.32);
}

.stats-load-step.done .stats-load-step-dot{
    background:#22c55e;
}

.stats-error-detail{
    margin-top:18px;
    padding:14px 16px;
    border:1px solid rgba(248,113,113,0.28);
    border-radius:14px;
    background:rgba(127,29,29,0.22);
    color:#fecaca;
    font-size:13px;
    font-weight:800;
    word-break:break-word;
}

@keyframes statsLoadSweep{
    from{ transform:translateX(-110%); }
    to{ transform:translateX(250%); }
}

.stats-polished-hero .panel:first-child{
    position:relative;
    min-height:290px;
    overflow:hidden;
    padding:30px;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.94), rgba(8,47,73,0.72)),
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 34%);
}

.stats-story-hero .panel:first-child{
    min-height:330px;
}

.stats-polished-hero.no-inline-metric .panel:first-child{
    min-height:190px;
    padding:24px 30px;
}

.stats-polished-hero .panel:first-child::after{
    content:"";
    position:absolute;
    inset:auto -12% -42% 38%;
    height:260px;
    background:radial-gradient(circle, rgba(125,211,252,0.18), transparent 66%);
    pointer-events:none;
}

.stats-polished-hero .eyebrow,
.stats-polished-hero h1,
.stats-polished-hero .sub{
    position:relative;
    z-index:1;
}

.panel-link{
    display:block;
    color:inherit;
    text-decoration:none;
    transition:transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.panel-link:hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb, var(--accent) 48%, rgba(255,255,255,0.08));
    box-shadow:0 16px 44px rgba(0,0,0,0.38);
}

.panel-action{
    display:inline-flex;
    margin-top:16px;
    color:var(--accent);
    font-size:13px;
    font-weight:800;
}

.stats-callout{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    color:#cbd5e1;
    line-height:1.5;
}

.stats-callout strong{
    color:#f8fafc;
    font-size:20px;
}

.stats-callout span{
    max-width:720px;
}

.eyebrow{
    margin-bottom:10px;
    font-size:13px;
    font-weight:800;
    letter-spacing:0.08em;
    text-transform:uppercase;
}

h1{
    margin-bottom:12px;
    font-size:38px;
    line-height:1.05;
}

.stats-polished-hero h1{
    max-width:760px;
    font-size:clamp(36px, 4.5vw, 60px);
}

.stats-story-hero h1{
    font-size:clamp(40px, 5vw, 68px);
}

.sub{
    max-width:760px;
    color:#cbd5e1;
    line-height:1.55;
}

.hero-metric{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:190px;
}

.stats-story-hero .hero-metric{
    min-height:330px;
    background:
        linear-gradient(180deg, rgba(14,165,233,0.16), rgba(15,23,42,0.9)),
        rgba(15,23,42,0.84);
}

.hero-inline-metric{
    position:relative;
    z-index:1;
    width:min(360px, 100%);
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-top:28px;
    padding:18px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:20px;
    background:rgba(2,6,23,0.42);
    box-shadow:0 12px 34px rgba(0,0,0,0.24);
}

.hero-inline-metric .hero-number{
    font-size:56px;
}

.hero-inline-metric .stat-note{
    max-width:150px;
    text-align:right;
}

.hero-number{
    color:#e0f2fe;
    font-size:72px;
    font-weight:800;
    line-height:0.95;
}

.hero-label,
.stat-note,
.hub-note{
    color:#94a3b8;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
    margin-bottom:18px;
}

.story-stat-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr));
}

.detail-summary-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
}

.detail-summary-grid.summary-count-3{
    grid-template-columns:repeat(3, minmax(0, 1fr));
}

.stat-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    padding:18px;
}

.story-stat-grid .stat-card{
    min-height:142px;
    padding:18px 18px 16px;
    background:
        linear-gradient(180deg, rgba(30,41,59,0.94), rgba(15,23,42,0.84)),
        rgba(15,23,42,0.84);
}

.story-stat-grid .stat-card::after{
    content:"";
    position:absolute;
    inset:auto -32px -44px auto;
    width:100px;
    height:100px;
    border-radius:999px;
    background:color-mix(in srgb, var(--accent) 18%, transparent);
}

.stat-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    margin-bottom:14px;
    border-radius:13px;
    background:color-mix(in srgb, var(--accent) 18%, rgba(15,23,42,0.88));
    color:#e0f2fe;
    font-size:19px;
}

.detail-summary-grid .stat-card{
    min-height:138px;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon number"
        "icon note";
    align-items:center;
    column-gap:16px;
    padding:20px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, rgba(15,23,42,0.94)), rgba(15,23,42,0.84)),
        rgba(15,23,42,0.84);
}

.detail-summary-grid .stat-card::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:5px;
    background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #f8fafc), color-mix(in srgb, var(--accent) 34%, transparent));
}

.detail-summary-grid .stat-card::after{
    content:"";
    position:absolute;
    right:-38px;
    bottom:-48px;
    width:126px;
    height:126px;
    border-radius:999px;
    background:radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
}

.detail-summary-grid .stat-icon{
    grid-area:icon;
    width:54px;
    height:54px;
    margin:0;
    border:1px solid color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,0.08));
    border-radius:18px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, rgba(15,23,42,0.86)), rgba(15,23,42,0.76));
    box-shadow:0 14px 30px color-mix(in srgb, var(--accent) 16%, transparent);
    font-size:25px;
}

.detail-summary-grid .stat-label,
.detail-summary-grid .stat-number,
.detail-summary-grid .stat-note{
    position:relative;
    z-index:1;
    min-width:0;
}

.detail-summary-grid .stat-label{
    grid-area:label;
    align-self:end;
    color:#cbd5e1;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.08em;
    text-transform:uppercase;
}

.detail-summary-grid .stat-number{
    grid-area:number;
    margin-top:4px;
    color:#f8fafc;
    font-size:clamp(25px, 3vw, 36px);
    line-height:1.05;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.detail-summary-grid .stat-number-long{
    font-size:clamp(18px, 2vw, 24px);
    line-height:1.18;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    word-break:normal;
}

.detail-summary-grid .stat-number-xlong{
    font-size:clamp(16px, 1.65vw, 20px);
    line-height:1.2;
}

.detail-summary-grid .stat-number-country{
    font-size:clamp(20px, 2.35vw, 32px);
    line-height:1.12;
    overflow:visible;
    overflow-wrap:break-word;
    text-overflow:clip;
    white-space:normal;
}

.detail-summary-grid .stat-note{
    grid-area:note;
    margin-top:4px;
    color:#a7b5c8;
    font-size:12px;
}

.stat-label{
    color:#94a3b8;
    font-size:13px;
}

.stat-number{
    margin-top:10px;
    font-size:32px;
    font-weight:800;
}

.stat-note{
    margin-top:8px;
    font-size:13px;
    line-height:1.4;
}

.layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.wide{
    grid-column:1 / -1;
}

.section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.section-title-with-controls{
    align-items:flex-start;
}

.section-title-with-controls h2{
    margin-bottom:3px;
}

.section-title span{
    color:#94a3b8;
    font-size:13px;
}

.stat-table-filter{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
    padding:7px 9px 7px 11px;
    border:1px solid color-mix(in srgb, var(--accent) 32%, rgba(255,255,255,0.1));
    border-radius:999px;
    background:rgba(15,23,42,0.72);
    color:#cbd5e1;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.02em;
    white-space:nowrap;
}

.stat-table-filter span{
    color:#e0f2fe;
    font-size:12px;
}

.stat-table-filter select{
    min-width:142px;
    max-width:210px;
    border:none;
    outline:none;
    background:transparent;
    color:#f8fafc;
    font:inherit;
}

.stat-table-filter option{
    color:#0f172a;
    background:#f8fafc;
}

.top-list,
.row-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.list-row{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:14px;
    align-items:center;
}

.list-name{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
}

.list-count{
    color:#e0f2fe;
    font-weight:800;
}

.bar{
    grid-column:1 / -1;
    height:7px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    overflow:hidden;
}

.bar span{
    display:block;
    height:100%;
    background:var(--accent);
}

.stats-table{
    width:100%;
    border-collapse:collapse;
}

.stats-table th,
.stats-table td{
    padding:12px 10px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    color:#cbd5e1;
    text-align:left;
    font-size:14px;
}

.stats-table th{
    color:#94a3b8;
    font-size:12px;
    letter-spacing:0.06em;
    text-transform:uppercase;
}

.stats-table td:first-child{
    color:#f8fafc;
    font-weight:800;
}

.stats-paywall-panel{
    position:relative;
    overflow:hidden;
    border-color:color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,0.08));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, rgba(15,23,42,0.94)), rgba(15,23,42,0.86)),
        rgba(15,23,42,0.84);
}

.stats-paywall-panel::after{
    content:"";
    position:absolute;
    right:-70px;
    bottom:-86px;
    width:210px;
    height:210px;
    border-radius:999px;
    background:radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%);
    pointer-events:none;
}

.stats-paywall-content{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    gap:16px;
    align-items:start;
    color:#cbd5e1;
}

.paywall-lock{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(2,6,23,0.5);
    border:1px solid color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,0.08));
    box-shadow:0 14px 30px color-mix(in srgb, var(--accent) 14%, transparent);
    font-size:24px;
}

.stats-paywall-content strong{
    display:block;
    color:#f8fafc;
    font-size:20px;
    margin-bottom:6px;
}

.stats-paywall-content p{
    max-width:760px;
    line-height:1.55;
}

.paywall-button{
    display:inline-flex;
    margin-top:16px;
    background:var(--accent);
    color:#020617;
}

.paired-stat-tables{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.paired-stat-tables h3{
    margin-bottom:10px;
    color:#e0f2fe;
    font-size:15px;
}

.row-card{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:12px;
    padding:14px;
    border-radius:16px;
}

.row-main{
    font-weight:800;
}

.row-meta{
    margin-top:6px;
    color:#94a3b8;
    font-size:13px;
    line-height:1.45;
}

.row-date{
    color:#e0f2fe;
    font-weight:800;
    white-space:nowrap;
}

.country-visit-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.country-visit-row{
    display:grid;
    grid-template-columns:auto auto minmax(0, 1fr);
    align-items:center;
    gap:14px;
    padding:14px;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    background:rgba(15,23,42,0.58);
    color:inherit;
    text-decoration:none;
}

.country-visit-row:hover .country-name{
    color:#38bdf8;
}

.country-drill-map{
    width:100%;
    min-height:520px;
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(125,211,252,0.18);
    background:#0f172a;
}

.country-rank{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:rgba(234,179,8,0.14);
    color:#fef3c7;
    font-weight:900;
}

.country-flag{
    font-size:28px;
    line-height:1;
}

.country-name{
    overflow:hidden;
    color:#f8fafc;
    font-weight:900;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.country-meta{
    margin-top:4px;
    color:#94a3b8;
    font-size:13px;
    line-height:1.45;
}

.hub-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
    gap:12px;
}

.hub-card{
    min-height:154px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:16px;
    border-radius:18px;
    color:#f8fafc;
    text-decoration:none;
    transition:transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-card:hover{
    transform:translateY(-2px);
    border-color:var(--accent);
    background:rgba(15,23,42,0.95);
}

.hub-icon{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:rgba(255,255,255,0.07);
    font-size:23px;
}

.hub-title{
    margin-top:12px;
    font-size:18px;
    font-weight:800;
}

.hub-note{
    margin-top:8px;
    line-height:1.45;
    font-size:13px;
}

.hub-action{
    margin-top:14px;
    color:#e0f2fe;
    font-size:13px;
    font-weight:800;
}

.hub-navigation{
    padding:22px;
}

.hub-section-title{
    align-items:flex-end;
}

.hub-section-title h2{
    margin-top:4px;
    font-size:24px;
}

.hub-section-title .eyebrow{
    display:block;
    margin-bottom:0;
}

.hero-graphic,
.map-sparkline{
    position:absolute;
    z-index:0;
    right:24px;
    bottom:20px;
    width:min(58%, 640px);
    opacity:0.78;
    pointer-events:none;
}

.stats-detail-hero .hero-graphic{
    width:min(48%, 540px);
    opacity:0.68;
}

.hero-graphic svg,
.map-sparkline svg{
    display:block;
    width:100%;
    height:auto;
}

.hero-graphic circle,
.map-sparkline circle{
    fill:var(--accent);
    stroke:#f8fafc;
    stroke-width:4px;
}

.spark-land{
    fill:rgba(148,163,184,0.13);
    stroke:rgba(226,232,240,0.16);
    stroke-width:2px;
}

.spark-route{
    fill:none;
    stroke-linecap:round;
    stroke-width:5px;
}

.route-one{
    stroke:#38bdf8;
}

.route-two{
    stroke:#22c55e;
    opacity:0.78;
}

.route-three{
    stroke:#f97316;
    opacity:0.84;
}

.graphic-soft-fill{
    fill:rgba(148,163,184,0.13);
    stroke:rgba(226,232,240,0.16);
    stroke-width:2px;
}

.graphic-line,
.graphic-rail,
.graphic-wave{
    fill:none;
    stroke:var(--accent);
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:6px;
}

.graphic-line.route-two,
.graphic-wave.wave-two{
    opacity:0.6;
}

.graphic-line.route-three{
    opacity:0.5;
}

.flight-line{
    stroke-dasharray:2 14;
}

.plane-shape,
.ship-shape,
.ship-top,
.graphic-accent,
.graphic-card-shape,
.graphic-ticket,
.graphic-star{
    fill:color-mix(in srgb, var(--accent) 76%, #f8fafc);
    stroke:rgba(248,250,252,0.55);
    stroke-width:2px;
}

.graphic-dot{
    fill:var(--accent);
    stroke:#f8fafc;
    stroke-width:4px;
}

.graphic-rail{
    stroke:#22c55e;
    stroke-width:7px;
}

.graphic-rail.rail-lower{
    opacity:0.68;
}

.graphic-tie{
    fill:none;
    stroke:rgba(226,232,240,0.35);
    stroke-linecap:round;
    stroke-width:5px;
}

.graphic-wave{
    stroke:#06b6d4;
    stroke-width:5px;
}

.sea-line{
    stroke:#67e8f9;
}

.graphic-road{
    fill:none;
    stroke:color-mix(in srgb, var(--accent) 72%, #111827);
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:34px;
}

.graphic-road-center{
    fill:none;
    stroke:rgba(248,250,252,0.72);
    stroke-dasharray:18 18;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:4px;
}

.car-shape,
.car-roof{
    fill:#fb923c;
}

.graphic-window{
    fill:rgba(248,250,252,0.78);
    stroke:none;
}

.building-main,
.building-side{
    fill:rgba(219,39,119,0.72);
}

.graphic-globe{
    fill:rgba(14,165,233,0.12);
    stroke:rgba(226,232,240,0.3);
    stroke-width:4px;
}

.country-land,
.country-land-two{
    fill:rgba(234,179,8,0.28);
}

.graphic-ticket{
    fill:rgba(251,113,133,0.48);
}

.graphic-star{
    fill:#fda4af;
    stroke:#ffe4e6;
}

.empty{
    color:#94a3b8;
    line-height:1.55;
}

@media(max-width:980px){
    .hero,
    .layout{
        grid-template-columns:1fr;
    }

    .stat-grid,
    .story-stat-grid{
        grid-template-columns:1fr 1fr;
    }

    .detail-summary-grid{
        grid-template-columns:1fr;
    }

    .detail-summary-grid.summary-count-3{
        grid-template-columns:1fr;
    }

    .stats-polished-hero .panel:first-child{
        min-height:240px;
    }

    .stats-polished-hero.no-inline-metric .panel:first-child{
        min-height:170px;
    }

    .hero-graphic,
    .map-sparkline{
        position:relative;
        right:auto;
        bottom:auto;
        width:100%;
        margin-top:24px;
    }
}

@media(max-width:620px){
    *{
        transition:none !important;
    }

    body{
        background:
            radial-gradient(circle at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
            linear-gradient(180deg, #020617 0%, #07111f 52%, #020617 100%);
    }

    .navbar{
        align-items:center;
        flex-direction:row;
        gap:10px;
        padding:12px;
        padding-top:calc(12px + env(safe-area-inset-top, 0px));
    }

    .logo{
        min-width:0;
        flex:1;
        gap:6px;
        font-size:20px;
        line-height:1;
    }

    .phase-badge{
        padding:4px 7px;
        font-size:9px;
    }

    .nav-actions{
        display:grid;
        grid-template-columns:1fr;
        flex:0 0 auto;
        gap:6px;
    }

    .nav-actions .btn{
        min-height:34px;
        padding:8px 10px;
        border-radius:11px;
        font-size:12px;
        text-align:center;
        white-space:nowrap;
    }

    .panel,
    .stat-card,
    .row-card,
    .hub-card{
        box-shadow:0 6px 18px rgba(0,0,0,0.22);
        backdrop-filter:none;
    }

    .page{
        width:100%;
        margin:14px auto 44px;
        padding:0 12px;
    }

    .stat-grid,
    .story-stat-grid{
        display:flex;
        gap:10px;
        margin-right:-12px;
        margin-left:-12px;
        padding:0 12px 8px;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
    }

    .stat-grid::-webkit-scrollbar,
    .story-stat-grid::-webkit-scrollbar{
        display:none;
    }

    .country-page{
        padding-top:24px;
    }

    h1{
        font-size:32px;
    }

    .hero-number{
        font-size:58px;
    }

    .stats-polished-hero .panel:first-child{
        min-height:auto;
        padding:20px;
        border-radius:22px;
    }

    .stats-polished-hero.no-inline-metric .panel:first-child{
        padding:18px;
    }

    .stats-polished-hero h1{
        font-size:32px;
    }

    .sub{
        line-height:1.45;
        font-size:14px;
    }

    .hero-inline-metric{
        align-items:flex-start;
        flex-direction:row;
        width:100%;
        margin-top:18px;
        padding:14px;
        border-radius:16px;
    }

    .hero-inline-metric .stat-note{
        max-width:135px;
        text-align:right;
    }

    .hero-inline-metric .hero-number{
        font-size:42px;
    }

    .hero-graphic,
    .map-sparkline{
        margin-top:16px;
    }

    .stats-detail-hero .hero-graphic{
        display:none;
    }

    .stats-story-hero .hero-graphic{
        opacity:0.48;
    }

    .stat-card{
        min-width:210px;
        scroll-snap-align:start;
    }

    .section-title-with-controls{
        flex-direction:column;
        align-items:stretch;
    }

    .stat-table-filter{
        width:100%;
        justify-content:space-between;
        margin-left:0;
        border-radius:14px;
    }

    .stat-table-filter select{
        min-width:0;
        max-width:none;
        flex:1;
        text-align:right;
    }

    .story-stat-grid .stat-card{
        min-height:120px;
    }

    .detail-summary-grid .stat-card{
        min-width:260px;
        min-height:132px;
        padding:16px;
        column-gap:12px;
    }

    .detail-summary-grid .stat-icon{
        width:46px;
        height:46px;
        border-radius:15px;
        font-size:22px;
    }

    .detail-summary-grid .stat-number{
        font-size:26px;
    }

    .detail-summary-grid .stat-number-long{
        font-size:18px;
        line-height:1.18;
        white-space:normal;
        overflow:visible;
        text-overflow:clip;
        overflow-wrap:anywhere;
    }

    .detail-summary-grid .stat-number-xlong{
        font-size:16px;
    }

    .detail-summary-grid .stat-number-country{
        font-size:20px;
        line-height:1.14;
        overflow-wrap:break-word;
        word-break:normal;
    }

    .hub-section-title{
        align-items:flex-start;
        flex-direction:column;
    }

    .panel{
        padding:18px;
        border-radius:20px;
    }

    .stats-loading-panel{
        margin-top:28px;
    }

    .stats-load-meter{
        grid-template-columns:1fr;
        gap:8px;
    }

    .stats-load-percent{
        text-align:left;
    }

    .stats-load-steps{
        grid-template-columns:1fr;
    }

    .layout{
        gap:12px;
    }

    .section-title{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .section-title h2{
        font-size:20px;
    }

    .hub-grid{
        grid-template-columns:1fr;
    }

    .hub-card{
        min-height:124px;
    }

    .stats-table{
        display:block;
        width:100%;
    }

    .stats-table thead{
        display:none;
    }

    .stats-table tbody,
    .stats-table tr,
    .stats-table td{
        display:block;
        width:100%;
    }

    .stats-table tr{
        margin-bottom:10px;
        padding:12px;
        border:1px solid rgba(255,255,255,0.08);
        border-radius:16px;
        background:rgba(15,23,42,0.56);
    }

    .stats-table td{
        display:grid;
        grid-template-columns:minmax(92px, 0.42fr) minmax(0, 1fr);
        gap:12px;
        align-items:start;
        padding:7px 0;
        border-bottom:1px solid rgba(255,255,255,0.06);
        font-size:13px;
        word-break:break-word;
    }

    .stats-table td:last-child{
        border-bottom:none;
    }

    .stats-table td::before{
        content:attr(data-label);
        color:#94a3b8;
        font-size:11px;
        font-weight:900;
        letter-spacing:0.06em;
        text-transform:uppercase;
    }

    .stats-table td:first-child{
        font-size:14px;
    }

    .stat-load-more{
        width:100%;
        margin-top:8px;
        border:1px solid color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,0.08));
        background:rgba(15,23,42,0.86);
        color:#e0f2fe;
    }

    .paired-stat-tables{
        grid-template-columns:1fr;
    }

    .row-card{
        grid-template-columns:1fr;
    }

    .country-visit-row{
        grid-template-columns:auto minmax(0, 1fr);
        gap:10px 12px;
        padding:12px;
    }

    .country-rank{
        grid-row:1 / span 2;
        width:30px;
        height:30px;
        font-size:13px;
    }

    .country-flag{
        font-size:24px;
    }

    .country-visit-copy{
        grid-column:2;
    }
}
