* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* No zoom on wide screens - keep full size */
}

.container {
    max-width: 1400px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1rem;
    letter-spacing: 1px;
}

.ecosystem-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 800px;
    margin: 0 auto;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

/* Profit bar for carriers */
.profit-bar-container {
    position: absolute;
    right: -140px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profit-bar-label {
    color: #888;
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.profit-bar-wrapper {
    position: relative;
    width: 40px;
    height: 200px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.profit-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, #4caf50, #81c784);
    transition: height 0.3s ease, background 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.profit-bar-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.profit-bar-status {
    color: #4caf50;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Premium rate indicator (left side of carrier) */
.premium-rate-container {
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.premium-rate-label {
    color: #888;
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.premium-rate-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 20px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.rate-symbol {
    color: #888;
    font-size: 1.2rem;
    font-weight: 600;
}

.rate-value {
    color: #4caf50;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.premium-rate-status {
    color: #4caf50;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Center - People and Businesses */
.center-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 70px;
    z-index: 10;
}

.center-circle {
    position: relative;
}

/* Big circle boundary (visual guide) */
.ecosystem-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border: 2px dashed #444;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 5;
    box-shadow: inset 0 0 50px rgba(102, 126, 234, 0.1);
}

/* Infrastructure on the circle perimeter */
.orbit-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
}

/* Top - Carriers (0 degrees) */
.orbit-top {
    transform: translate(-50%, -50%) translateY(-350px);
}

/* Left - Retail Agencies (270 degrees) */
.orbit-left {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-350px) rotate(-270deg);
}

/* Bottom - Reinsurance (180 degrees) */
.orbit-bottom {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-350px) rotate(-180deg);
}

/* External circles (outside the main circle) */
.external-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
}

/* Wholesale/MGA - Top right diagonal from retail agencies */
.external-left {
    transform: translate(-50%, -50%) translateX(-450px) translateY(-220px);
}

.sand-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 2px solid #222;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sand-circle:hover {
    border-color: #667eea;
    box-shadow: 
        0 0 30px rgba(102, 126, 234, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Disabled state when paused */
body.simulation-paused .sand-circle {
    cursor: not-allowed;
    opacity: 0.7;
}

body.simulation-paused .sand-circle:hover {
    border-color: #222;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transform: none;
}

.circle-label {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.center-circle .circle-label {
    color: #888;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Info icon */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-style: normal;
}

.info-icon:hover {
    background: #667eea;
    transform: scale(1.15);
}

/* Connection line styling */
.connection-line {
    stroke: #444;
    stroke-width: 2;
    stroke-dasharray: 8, 4;
    opacity: 0.5;
    transition: all 0.3s ease;
    marker-end: url(#arrowhead);
}

.connection-line:hover {
    opacity: 0.9;
    stroke: #667eea;
    stroke-width: 3;
}

.connection-line.active {
    opacity: 0.9;
    stroke: #667eea;
    stroke-width: 3;
}

/* Claim line styling - persistent green dashed lines */
.claim-line {
    stroke: #4a9b4a;
    stroke-width: 2;
    stroke-dasharray: 8, 4;
    stroke-linecap: round;
    opacity: 0.3;
    filter: drop-shadow(0 0 6px currentColor);
    transition: stroke 0.1s ease, stroke-width 0.1s ease, opacity 0.1s ease;
    pointer-events: none;
}

/* Premium payment particles - golden dots flowing from consumers */
.premium-particle {
    fill: #ffd700;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px #ffd700);
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Commission particles - lighter gold flowing from carriers to agencies */
.commission-particle {
    fill: #ffed4e;
    opacity: 0.7;
    filter: drop-shadow(0 0 3px #ffed4e);
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Claim payment particles - blue dots flowing from carriers to insureds */
.claim-payment-particle {
    fill: #4fc3f7;
    opacity: 0.85;
    filter: drop-shadow(0 0 5px #4fc3f7);
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Ceding premium particles - orange dots flowing from carriers to reinsurance */
.ceding-particle {
    fill: #ff9800;
    opacity: 0.75;
    filter: drop-shadow(0 0 3px #ff9800);
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Reinsurance recovery particles - purple/pink dots from reinsurance to carriers */
.reinsurance-recovery-particle {
    fill: #e91e63;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px #e91e63);
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Info Modal */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal.show {
    display: flex;
    opacity: 1;
}

.info-modal-content {
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.info-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.info-modal-close:hover {
    color: #fff;
}

.info-modal-content h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 400;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    color: #bbb;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-section li:before {
    content: "•";
    color: #667eea;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Market Data Panel */
.market-data-panel {
    position: fixed;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 240px;
    height: auto;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.data-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.data-panel-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.data-panel-subtitle {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.5px;
}

.data-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.data-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #222;
    border-left: 3px solid #444;
    border-radius: 6px;
    transition: all 0.4s ease-in-out;
}

.data-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}

.data-row:hover {
    background: #282828;
    transform: translateX(2px);
}

body.simulation-paused .data-row {
    cursor: pointer !important;
}

body.simulation-paused .data-row:hover {
    background: #333;
    border-left-color: #ffd700;
}

.data-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.data-info {
    flex: 1;
}

.data-name {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 600;
    margin-bottom: 8px;
}

.data-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.stat-label {
    color: #888;
}

.stat-value {
    color: #bbb;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: color 0.5s ease, transform 0.3s ease;
}

.stat-value.highlight {
    color: #667eea;
    transition: color 0.5s ease;
}

.data-footer {
    padding: 12px;
    border-top: 1px solid #333;
}

.data-note {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.4;
}

.data-note strong {
    color: #aaa;
}

/* Activity Timeline */
.activity-timeline {
    position: fixed;
    right: 20px;
    top: 20px;
    bottom: 20px;
    width: 260px;
    height: auto;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.timeline-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.timeline-clear {
    background: #333;
    border: none;
    color: #888;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-clear:hover {
    background: #444;
    color: #fff;
}

.timeline-events {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.timeline-welcome {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.timeline-welcome p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.timeline-hint {
    font-size: 0.8rem !important;
    color: #555 !important;
    font-style: italic;
}

.timeline-event {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #222;
    border-left: 3px solid #444;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.timeline-event:hover {
    background: #282828;
    transform: translateX(-2px);
}

body.simulation-paused .timeline-event {
    cursor: pointer;
}

body.simulation-paused .timeline-event:hover {
    background: #333;
    border-left-color: #ffd700;
}

.event-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.event-content {
    flex: 1;
}

.event-time {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
}

.event-description {
    font-size: 0.85rem;
    color: #ddd;
    font-weight: 500;
    margin-bottom: 4px;
}

.event-details {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}

/* Event type colors */
.event-policy { border-left-color: #4caf50; }
.event-premium { border-left-color: #ffd700; }
.event-claim { border-left-color: #f44336; }
.event-payment { border-left-color: #2196f3; }
.event-commission { border-left-color: #ffeb3b; }
.event-ceding { border-left-color: #ff9800; }
.event-recovery { border-left-color: #e91e63; }
.event-rate { border-left-color: #9c27b0; }
.event-warning { border-left-color: #ff9800; }
.event-critical { border-left-color: #f44336; }
.event-reinsurance { border-left-color: #ff6b6b; }

/* Scrollbar styling */
.timeline-events::-webkit-scrollbar {
    width: 6px;
}

.timeline-events::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.timeline-events::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.timeline-events::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Simulation Controls */
.simulation-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #444;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.paused {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
}

.control-label {
    background: #1a1a1a;
    border: 2px solid #444;
    padding: 8px 16px;
    border-radius: 20px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive design */
@media (max-width: 1600px) {
    /* Apply zoom only on laptop screens, not large desktops */
    body {
        zoom: 0.85;
    }
    
    @-moz-document url-prefix() {
        body {
            transform: scale(0.85);
            transform-origin: top center;
        }
    }
}

@media (max-width: 1400px) {
    body {
        zoom: 0.80; /* More zoom on smaller laptops */
    }
    
    .ecosystem-container {
        height: 700px;
        max-width: 1100px;
    }
    
    .ecosystem-container::before {
        width: 600px;
        height: 600px;
    }
    
    .sand-circle {
        width: 170px;
        height: 170px;
    }
    
    .center-group {
        gap: 60px;
    }
    
    .orbit-top {
        transform: translate(-50%, -50%) translateY(-300px);
    }
    
    .orbit-left {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-300px) rotate(-270deg);
    }
    
    .orbit-bottom {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-300px) rotate(-180deg);
    }
    
    .external-left {
        transform: translate(-50%, -50%) translateX(-380px) translateY(-190px);
    }
    
    /* Reduce side panel sizes significantly */
    .market-data-panel {
        width: 160px;
        left: 5px;
        top: 5px;
    }
    
    .activity-timeline {
        width: 180px;
        right: 5px;
        top: 5px;
    }
    
    .data-panel-header h3,
    .timeline-header h3 {
        font-size: 0.95rem;
    }
    
    .data-panel-header,
    .timeline-header {
        padding: 12px 15px;
    }
    
    .data-panel-content,
    .timeline-events {
        padding: 10px;
    }
    
    .data-row,
    .timeline-event {
        padding: 10px;
        gap: 10px;
    }
    
    .data-name,
    .event-description {
        font-size: 0.8rem;
    }
    
    .data-stat,
    .event-details {
        font-size: 0.7rem;
    }
    
    .data-icon,
    .event-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .ecosystem-container {
        height: 650px;
        max-width: 950px;
    }
    
    .ecosystem-container::before {
        width: 550px;
        height: 550px;
    }
    
    .sand-circle {
        width: 160px;
        height: 160px;
    }
    
    .center-group {
        gap: 55px;
    }
    
    .orbit-top {
        transform: translate(-50%, -50%) translateY(-275px);
    }
    
    .orbit-left {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-275px) rotate(-270deg);
    }
    
    .orbit-bottom {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-275px) rotate(-180deg);
    }
    
    .external-left {
        transform: translate(-50%, -50%) translateX(-350px) translateY(-175px);
    }
    
    /* Even smaller panels for typical 13-15" laptops */
    .market-data-panel {
        width: 150px;
        left: 3px;
        top: 3px;
    }
    
    .activity-timeline {
        width: 170px;
        right: 3px;
        top: 3px;
    }
    
    .data-panel-header h3,
    .timeline-header h3 {
        font-size: 0.9rem;
    }
    
    .data-panel-subtitle {
        font-size: 0.65rem;
    }
    
    .data-panel-header,
    .timeline-header {
        padding: 10px 12px;
    }
    
    .data-panel-content,
    .timeline-events {
        padding: 8px;
    }
    
    .data-row,
    .timeline-event {
        padding: 8px;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .data-name {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .event-description {
        font-size: 0.75rem;
    }
    
    .data-stat,
    .event-details {
        font-size: 0.65rem;
    }
    
    .stat-label,
    .stat-value {
        font-size: 0.65rem;
    }
    
    .data-icon,
    .event-icon {
        font-size: 1.1rem;
    }
    
    .event-time {
        font-size: 0.6rem;
    }
    
    .data-footer {
        padding: 8px;
    }
    
    .data-note {
        font-size: 0.6rem;
    }
}

/* Tablet/Small Desktop */
@media (max-width: 768px) {
    body {
        zoom: 0.75; /* Even more zoom out for tablets */
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .ecosystem-container {
        height: 600px;
        max-width: 700px;
    }
    
    .ecosystem-container::before {
        width: 450px;
        height: 450px;
    }
    
    .sand-circle {
        width: 140px;
        height: 140px;
    }
    
    .center-group {
        gap: 35px;
    }
    
    .orbit-top {
        transform: translate(-50%, -50%) translateY(-225px);
    }
    
    .orbit-left {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-225px) rotate(-270deg);
    }
    
    .orbit-bottom {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-225px) rotate(-180deg);
    }
    
    .external-left {
        transform: translate(-50%, -50%) translateX(-300px) translateY(-150px);
    }
    
    /* Very compact panels for tablets */
    .market-data-panel {
        width: 140px;
        left: 3px;
        top: 3px;
    }
    
    .activity-timeline {
        width: 160px;
        right: 3px;
        top: 3px;
    }
    
    .data-panel-header h3,
    .timeline-header h3 {
        font-size: 0.8rem;
    }
    
    .data-panel-subtitle {
        font-size: 0.55rem;
    }
    
    .data-row,
    .timeline-event {
        padding: 5px;
        gap: 5px;
    }
    
    .data-name,
    .event-description {
        font-size: 0.65rem;
    }
    
    .simulation-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Mobile Phones - Portrait */
@media (max-width: 480px) {
    body {
        zoom: 1; /* Reset zoom for mobile - we'll use viewport scaling instead */
        padding: 5px;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        overflow: hidden;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    /* Hide side panels on mobile - too cramped */
    .market-data-panel,
    .activity-timeline {
        display: none;
    }
    
    /* Full width visualization for mobile */
    .ecosystem-container {
        height: 500px;
        max-width: 100%;
        margin: 0;
    }
    
    .ecosystem-container::before {
        width: 350px;
        height: 350px;
    }
    
    .sand-circle {
        width: 100px;
        height: 100px;
    }
    
    .center-group {
        gap: 20px;
    }
    
    .orbit-top {
        transform: translate(-50%, -50%) translateY(-175px);
    }
    
    .orbit-left {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-175px) rotate(-270deg);
    }
    
    .orbit-bottom {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-175px) rotate(-180deg);
    }
    
    .external-left {
        transform: translate(-50%, -50%) translateX(-220px) translateY(-110px);
    }
    
    .circle-label {
        font-size: 0.7rem;
    }
    
    /* Profit bar and rate indicator - hide or minimize on mobile */
    .profit-bar-container,
    .premium-rate-container {
        display: none;
    }
    
    /* Mobile-friendly controls */
    .simulation-controls {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .control-label {
        display: none; /* Hide text label on mobile */
    }
    
    /* Info modal adjustments for mobile */
    .info-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .info-modal-content h2 {
        font-size: 1.3rem;
    }
}

