.world-terminal-page {
    min-height: 100vh;
    margin: 0;
    padding: clamp(8px, 1.6vw, 24px);
    overflow-x: hidden;
    background: #030708;
    color: #b8fce8;
    font-family: var(--mono);
}

.world-terminal-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    opacity: 0.36;
    pointer-events: none;
    background-image: linear-gradient(rgba(103, 255, 224, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 255, 224, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
}

.world-terminal {
    position: fixed;
    inset: clamp(8px, 1.6vh, 20px) clamp(8px, 1.4vw, 26px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(120, 255, 235, 0.42);
    background: rgba(3, 12, 14, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 20px 80px rgba(0, 0, 0, 0.7), inset 0 0 70px rgba(0, 0, 0, 0.62);
    overflow: hidden;
}

.world-terminal-titlebar,
.world-terminal-statusbar,
.world-terminal-panel-head {
    display: flex;
    align-items: center;
}

.world-terminal-titlebar {
    gap: 0.85rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(120, 255, 235, 0.28);
    background: linear-gradient(180deg, rgba(12, 30, 34, 0.98), rgba(5, 16, 18, 0.98));
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.world-terminal-dots { display: inline-flex; gap: 6px; }
.world-terminal-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2d4040; }
.world-terminal-dots i:first-child { background: #ff4d5b; }
.world-terminal-dots i:nth-child(2) { background: #e1b64e; }
.world-terminal-dots i:last-child { background: #57d895; }
.world-terminal-path { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.world-terminal-caret { display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -2px; background: #a5ffe8; animation: world-caret 1s steps(2, end) infinite; }
.world-terminal-state { color: #63e59a; text-transform: uppercase; }
.world-terminal-heading { padding: 0.9rem clamp(1rem, 2.5vw, 2.4rem) 0.75rem; border-bottom: 1px solid rgba(120, 255, 235, 0.14); }
.world-terminal-kicker { margin: 0 0 0.35rem; color: #ff7e89; font-size: 0.7rem; letter-spacing: 0.14em; }
.world-terminal-heading h1 { margin: 0; color: #d3fff4; font-size: clamp(1.35rem, 3vw, 2.2rem); letter-spacing: 0.04em; text-transform: uppercase; }
.world-terminal-heading > p:last-child { margin: 0.45rem 0 0; color: rgba(184, 252, 232, 0.64); font-size: 0.82rem; }

.world-terminal .lab-hex-main.is-active {
    background: linear-gradient(180deg, rgba(120, 255, 235, 0.9), rgba(120, 255, 235, 0.42));
    color: rgba(210, 255, 250, 0.98);
    box-shadow: 0 0 14px rgba(120, 255, 235, 0.38);
}

.world-terminal .lab-hex-main.is-active span { background: rgba(8, 34, 34, 0.92); }

.world-terminal .around-world-layout { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: 1px; padding: clamp(0.55rem, 1vw, 0.8rem); background: rgba(120, 255, 235, 0.1); }
.world-terminal-panel { min-width: 0; border: 1px solid rgba(120, 255, 235, 0.26); border-radius: 0; background: rgba(3, 16, 19, 0.84); box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.35); }
.world-terminal-panel-head { justify-content: space-between; gap: 0.8rem; min-height: 39px; padding: 0 0.75rem; border-bottom: 1px solid rgba(120, 255, 235, 0.22); background: rgba(14, 39, 40, 0.6); }
.world-terminal-panel-head h2 { margin: 0; color: #a5ffe8; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; }
.world-terminal-panel-head span { color: rgba(255, 137, 147, 0.86); font-size: 0.6rem; letter-spacing: 0.08em; }

.world-terminal .world-map-shell { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.world-terminal .world-map-toolbar { top: 3.3rem; right: 0.7rem; }
.world-terminal .map-zoom-btn { min-width: 2rem; height: 2rem; border-color: rgba(120, 255, 235, 0.45); border-radius: 0; background: rgba(2, 13, 16, 0.92); color: #a5ffe8; font-family: inherit; font-size: 0.82rem; }
.world-terminal .map-zoom-btn:hover, .world-terminal .map-zoom-btn:focus-visible { border-color: #ff6976; background: rgba(226, 0, 26, 0.24); }
.world-terminal .map-zoom-reset { padding: 0 0.45rem; font-size: 0.65rem; }
.world-terminal .world-map-canvas { flex: 1; min-height: 0; background: radial-gradient(ellipse at center, rgba(15, 64, 68, 0.46), rgba(2, 12, 15, 0.92) 72%); }
.world-terminal .world-map-canvas svg { height: 100%; }
.world-terminal .world-ocean { fill: transparent; }
.world-terminal .world-country { fill: #112c31; stroke: rgba(165, 255, 232, 0.3); }
.world-terminal .world-country.is-visited { fill: #168c72; }
.world-terminal .world-country.is-hovered { fill: #f0bf62; stroke: #f9e6b2; }
.world-terminal .world-country.is-selected { fill: #ff6473; stroke: #ffe1e4; }
.world-terminal-hint { margin: 0; padding: 0.5rem 0.75rem; border-top: 1px solid rgba(120, 255, 235, 0.17); color: rgba(165, 255, 232, 0.58); font-size: 0.62rem; letter-spacing: 0.1em; }

.world-terminal .country-items-list { display: flex; flex-direction: column; min-height: 0; padding: 0; }
.world-terminal .country-items-panel-title { margin: 0; padding: 0.9rem 0.85rem 0.55rem; color: #d3fff4; font-size: 1rem; font-weight: 500; }
.world-terminal .country-items-count { margin: -0.25rem 0.85rem 0.7rem; color: #ff8994; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.world-terminal #country-items {
    flex: 1;
    min-height: 0;
    padding: 0 0.85rem 1rem;
    overflow-y: auto;
    scrollbar-color: #45d8bd rgba(5, 23, 26, 0.9);
    scrollbar-width: thin;
}

.world-terminal #country-items::-webkit-scrollbar { width: 9px; }
.world-terminal #country-items::-webkit-scrollbar-track { border-left: 1px solid rgba(120, 255, 235, 0.2); background: rgba(5, 23, 26, 0.9); }
.world-terminal #country-items::-webkit-scrollbar-thumb { border: 2px solid rgba(5, 23, 26, 0.9); background: linear-gradient(180deg, #76f5d9, #168c72); }
.world-terminal #country-items::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff8994, #e2001a); }
.world-terminal .lede { color: rgba(184, 252, 232, 0.64); font-size: 0.8rem; line-height: 1.6; }
.world-terminal .country-items-ul { gap: 0; }
.world-terminal .country-items-li { position: relative; padding: 0.65rem 0 0.65rem 0.85rem; border-bottom-color: rgba(120, 255, 235, 0.14); }
.world-terminal .country-items-li::before { position: absolute; left: 0; color: #ff7783; content: '>'; }
.world-terminal .country-items-li a { color: #b8fce8; font-size: 0.83rem; line-height: 1.3; }
.world-terminal .country-items-li a:hover { color: #ff9ca5; }
.world-terminal .country-items-meta, .world-terminal .country-items-page-current { color: rgba(165, 255, 232, 0.56); font-family: inherit; font-size: 0.68rem; letter-spacing: 0.04em; }
.world-terminal .country-items-pagination { margin: 0 0 0.7rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(120, 255, 235, 0.14); }
.world-terminal .country-items-page-btn { border-color: rgba(120, 255, 235, 0.36); border-radius: 0; background: rgba(10, 45, 45, 0.65); color: #b8fce8; font-family: inherit; font-size: 0.68rem; text-transform: uppercase; }

.world-terminal-statusbar { gap: 1.2rem; margin-top: auto; padding: 0.38rem 0.8rem; border-top: 1px solid rgba(120, 255, 235, 0.24); background: rgba(6, 16, 19, 0.96); color: rgba(165, 255, 232, 0.58); font-size: 0.62rem; letter-spacing: 0.1em; }

@keyframes world-caret { 50% { opacity: 0; } }

@media (max-width: 979px) {
    .world-terminal { height: auto; min-height: 0; }
    .world-terminal .around-world-layout { grid-template-columns: 1fr; }
    .world-terminal .world-map-canvas { min-height: 380px; }
    .world-terminal .country-items-panel { min-height: 340px; }
}

@media (max-width: 620px) {
    .world-terminal-page { padding: 0; }
    .world-terminal { position: relative; inset: auto; min-height: 100vh; border: 0; }
    .world-terminal-titlebar { gap: 0.55rem; }
    .world-terminal-state { display: none; }
    .world-terminal .around-world-layout { padding: 0.55rem; }
    .world-terminal .world-map-canvas { min-height: 320px; }
    .world-terminal-statusbar { justify-content: space-between; gap: 0.45rem; font-size: 0.52rem; }
}

@media (prefers-reduced-motion: reduce) {
    .world-terminal-caret { animation: none; }
}