@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #1c1f24;
    color: #d0d6dc;
    min-height: 100vh;
    line-height: 1.5;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(80,90,100,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60,70,80,0.12) 0%, transparent 45%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.03) 3px,
            rgba(0,0,0,0.03) 6px
        );
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Intro ===== */
.intro {
    text-align: center;
    margin-bottom: 0.8rem;
}

.intro h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: #e8eef4;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.intro p {
    font-size: clamp(1.05rem, 2.8vw, 1.15rem);
    max-width: 720px;
    margin: 0 auto 0.8rem;
    color: #b0b8c0;
}

.intro strong {
    color: #e0e6ec;
}

.blue   { color: #60b1e2; }
.yellow { color: #d19f4b; }
.purple { color: #b36bea; }

/* ===== Team buttons ===== */
.team-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.team-btn {
    display: inline-block;
    padding: 0.75rem 1.45rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.22s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,0.35);
}

.team-btn:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.12);
}

.team-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* Blue button */
.team-btn.blue {
    background: linear-gradient(to bottom, #7ec8f0, #60b1e2);
    color: #0a1a24;
    border-color: #4a9fd0;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    box-shadow: 0 4px 0 #3a7da8, 0 0 18px rgba(96,177,226,0.45);
}
.team-btn.blue:hover {
    box-shadow: 0 6px 0 #3a7da8, 0 0 28px rgba(96,177,226,0.7);
}

/* Yellow button */
.team-btn.yellow {
    background: linear-gradient(to bottom, #e8c06a, #d19f4b);
    color: #2a1c08;
    border-color: #b8883a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    box-shadow: 0 4px 0 #a07830, 0 0 18px rgba(209,159,75,0.45);
}
.team-btn.yellow:hover {
    box-shadow: 0 6px 0 #a07830, 0 0 28px rgba(209,159,75,0.7);
}

/* Purple button */
.team-btn.purple {
    background: linear-gradient(to bottom, #c88ff0, #b36bea);
    color: #1e0a2a;
    border-color: #9540d0;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    box-shadow: 0 4px 0 #7a30b0, 0 0 18px rgba(179,107,234,0.45);
}
.team-btn.purple:hover {
    box-shadow: 0 6px 0 #7a30b0, 0 0 28px rgba(179,107,234,0.7);
}

/* Neutral button */
.team-btn.neutral {
    background: linear-gradient(to bottom, #ccc, #bbb);
    color: #111;
    border-color: #999;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    box-shadow: 0 4px 0 #777, 0 0 18px rgba(179,179,179,0.45);
}
.team-btn.neutral:hover {
    box-shadow: 0 6px 0 #777, 0 0 28px rgba(179,179,179,0.7);
}


/* ===== Hero image ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.1rem 0 1rem;
	width: 100%;
}

.prison-img {
    max-width: 920px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow:
        0 0 0 2px #3a4048,
        0 12px 30px rgba(0,0,0,0.55);
    display: block;
}

/* ===== Control panel adjustments ===== */
.control-panel {
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Desktop = 4 columns, Mobile = 2x2 */
.readout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.4rem;
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
    .page {
        padding: 0.9rem 0.9rem 1.4rem;
    }

    .intro {
        margin-bottom: 0.5rem;
    }

    .intro h1 {
        font-size: 1.65rem;
        margin-bottom: 0.5rem;
    }

    .intro p {
        font-size: 1.12rem;
        margin-bottom: 0.6rem;
    }

    .team-links {
        gap: 0.6rem;
        margin-top: 0.8rem;
    }

    .team-btn {
        padding: 0.7rem 1.15rem;
        font-size: 0.9rem;
    }

    .hero {
        margin: 1.3rem 0 0.8rem;
    }

    .prison-img {
		max-width: 920px;
		width: 100%;
		height: auto;
        max-height: none;
    }

    /* Panel becomes 2x2 on mobile */
    .readout-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .readout-value {
        font-size: 1.45rem;
    }

    .readout-label {
        font-size: 0.72rem;
    }
}

@media (max-height: 750px) {
    .prison-img {
        max-height: 34vh;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@500;700&display=swap');

    .control-panel {
        background: linear-gradient(145deg, #2a2e35, #1a1d23);
        border: 3px solid #4a5058;
        border-radius: 12px;
        padding: 1.5rem 1.8rem;
        box-shadow:
            inset 0 0 20px rgba(0,0,0,0.6),
            0 0 0 1px #6a7078,
            0 8px 24px rgba(0,0,0,0.5);
        position: relative;
        color: #c8d0d8;
        max-width: 920px;
        width: 100%;
        margin: 2rem auto;
        font-family: 'Share Tech Mono', monospace;
        box-sizing: border-box;
    }

    .control-panel::before,
    .control-panel::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #5a6068;
        border-radius: 50%;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
    }
    .control-panel::before { top: 12px; left: 12px; }
    .control-panel::after  { top: 12px; right: 12px; }

    .panel-title {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.95rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #7a8899;
        text-align: center;
        margin-bottom: 1.4rem;
        border-bottom: 1px solid #3a4048;
        padding-bottom: 0.6rem;
    }

    /* Four panels in one row */
    .readout-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-bottom: 1.6rem;
    }

    .readout {
        background: #0d0f12;
        border: 1px solid #2a3038;
        border-radius: 4px;
        padding: 0.7rem 0.6rem;
        box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
        text-align: center;
    }

    .readout-label {
        font-size: 0.68rem;
        letter-spacing: 1px;
        color: #6a7888;
        margin-bottom: 0.3rem;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .readout-value {
        font-family: 'Share Tech Mono', monospace;
        font-size: 1.55rem;
        color: #00ff9d;
        text-shadow: 0 0 8px rgba(0,255,157,0.5);
        letter-spacing: 1px;
    }

    .readout-value.yellow { color: #ffd000; text-shadow: 0 0 8px rgba(255,208,0,0.5); }
    .readout-value.purple { color: #c080ff; text-shadow: 0 0 8px rgba(192,128,255,0.5); }
    .readout-value.blue   { color: #40c0ff; text-shadow: 0 0 8px rgba(64,192,255,0.5); }

    /* Progress bar */
    .bar-section {
        margin-top: 0.3rem;
    }

    .bar-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
        color: #6a7888;
        margin-bottom: 0.45rem;
        text-transform: uppercase;
    }

	.progress-track {
		height: 32px;
		background: #111418;
		border: 1px solid #333940;
		border-radius: 4px;
		box-shadow: inset 0 0 12px rgba(0,0,0,0.9);
		display: flex;
		overflow: hidden;
	}

	.progress-fill {
		height: 100%;
	}

	.progress-fill.yellow {
		background: linear-gradient(to bottom, #ffe033, #c49000);
		box-shadow: 0 0 14px rgba(255,200,0,0.45);
	}

	.progress-fill.purple {
		background: linear-gradient(to bottom, #d090ff, #8020c0);
		box-shadow: 0 0 14px rgba(180,80,255,0.45);
	}
	.progress-fill.blue {
		margin-left: auto;
		background: linear-gradient(to bottom, #1a4a6e, #0d2a42);
		box-shadow:
			inset 0 2px 4px rgba(0,0,0,0.6),
			inset 0 -1px 2px rgba(100,180,255,0.15);
		opacity: 0.85;
		border-left: dotted 1px rgba(0,0,0,0.25);
	}

	@media (max-width: 700px) {
		.control-panel .readout-grid {
			grid-template-columns: repeat(2, 1fr);
			gap: 0.8rem;
		}
	}

    /* Mobile adjustments */
    @media (max-width: 700px) {
        .control-panel .readout-grid {
            grid-template-columns: repeat(2, 1fr) !important;
			gap: 0.8em;
        }
        .readout-value {
            font-size: 1.35rem;
        }
    }
	
	.results-page {
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem 1.2rem 3rem;
        text-align: center;
    }

    .results-page h1 {
        font-family: 'Orbitron', sans-serif;
        font-size: clamp(1.8rem, 5vw, 2.6rem);
        color: #e8eef4;
        margin-bottom: 0.6rem;
        letter-spacing: 1px;
    }

    .results-page .subtitle {
        font-size: 1.15rem;
        color: #a0a8b0;
        margin-bottom: 2rem;
    }

    .prize-image {
        max-width: 100%;
        width: min(520px, 100%);
        height: auto;
        border-radius: 12px;
        margin: 0 auto 2.5rem;
        box-shadow:
            0 0 0 3px #4a5058,
            0 0 40px rgba(0, 255, 157, 0.15),
            0 20px 40px rgba(0,0,0,0.5);
        display: block;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .stat-card {
        background: linear-gradient(145deg, #2a2e35, #1a1d23);
        border: 2px solid #3a4048;
        border-radius: 10px;
        padding: 1.4rem 1.2rem;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
    }

    .stat-card h3 {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.95rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 1rem;
        color: #8a929c;
    }

    .stat-card.yellow h3 { color: #d19f4b; }
    .stat-card.purple h3 { color: #b36bea; }
    .stat-card.blue h3   { color: #60b1e2; }

    .stat-row {
        display: flex;
        justify-content: space-between;
        margin: 0.45rem 0;
        font-size: 1.05rem;
    }

    .stat-label {
        color: #9098a0;
    }

    .stat-value {
        font-family: 'Share Tech Mono', monospace;
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .stat-card.yellow .stat-value { color: #ffd000; }
    .stat-card.purple .stat-value { color: #c080ff; }
    .stat-card.blue .stat-value   { color: #40c0ff; }

    .selfishness-display {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
        margin: 2rem 0 2.5rem;
    }

    .selfish-box {
        background: #0d0f12;
        border: 2px solid #333;
        border-radius: 8px;
        padding: 1.2rem 2rem;
        min-width: 160px;
    }

    .selfish-box .label {
        font-size: 0.8rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #707880;
        margin-bottom: 0.4rem;
    }

    .selfish-box .value {
        font-family: 'Share Tech Mono', monospace;
        font-size: 2.4rem;
        font-weight: 700;
    }

    .selfish-box.yellow .value {
        color: #ffd000;
        text-shadow: 0 0 12px rgba(255, 208, 0, 0.4);
    }

    .selfish-box.purple .value {
        color: #c080ff;
        text-shadow: 0 0 12px rgba(192, 128, 255, 0.4);
    }

    .verdict {
        background: linear-gradient(145deg, #22262c, #16191e);
        border: 2px solid #3a4048;
        border-radius: 10px;
        padding: 1.5rem;
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    .verdict strong {
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 1px;
    }

    .verdict .yellow { color: #d19f4b; }
    .verdict .purple { color: #b36bea; }