:root {
    --bg: #080a0f;
    --panel: #121523;
    --text: #f7f7f7;
    --accent: #a91d1d;
    --silver: #cccccc;
    --shadow: 0 12px 24px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, #111420 0%, var(--bg) 40%, #020307 100%);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, section, footer { width: min(1100px, 95%); margin: 0 auto; }
header { padding: 3rem 0 2rem; position: relative; }

.logo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 72px;
    height: 72px;
    padding: 0.35rem;
    border-radius: 14px;
    background: rgba(18, 21, 35, 0.92);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #2f2f34;
    border-radius: 8px;
    background: var(--panel);
    transition: background 0.2s ease;
}

nav a:hover {
    background: var(--accent);
    color: #fff;
}

.headline {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0; letter-spacing: 0.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin: 0 0 .75rem; }

p { margin: 0.6rem 0; }

.intro {
    background: linear-gradient(180deg, rgba(50, 0, 0, 0.25), rgba(14, 18, 23, 0.8));
    border: 1px solid #2f2f34;
    border-radius: 14px;
    padding: 1.65rem;
    box-shadow: var(--shadow);
}

.gallery {
    margin: 1.75rem auto;
    max-width: 1000px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2a2e37;
    box-shadow: var(--shadow);
    height: auto;
    max-height: 600px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.8s ease;
    background: #000;
}

.gallery-overlay {
    position: relative;
    color: #fff;
    text-shadow: 0 0 18px rgba(0,0,0,0.8);
}

.controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 2rem);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.control-btn {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(20, 22, 28, 0.65);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    pointer-events: all;
    outline: none;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.control-btn:hover { background: rgba(180, 25, 25, 0.9); transform: scale(1.1); }

.sponsors {
    background: var(--panel);
    border: 1px solid #2f2f34;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.sponsor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
}

.sponsor-tiers {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tier {
    background: #161b26;
    border: 1px solid #2f2f32;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.tier:nth-child(1) {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 5px rgba(169, 29, 29, 0.5);
}

.tier:nth-child(2) {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 8px rgba(169, 29, 29, 0.7);
}

.tier:nth-child(3) {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 12px rgba(169, 29, 29, 0.9);
}

.tier:nth-child(4) {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 15px rgba(169, 29, 29, 1);
}

.tier h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.tier ul {
    list-style: none;
    padding: 0;
}

.tier li {
    margin: 1rem 0;
}

.robot-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
}

.robot-item {
    background: #161b26;
    border: 1px solid #2f2f32;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    text-align: center;
}

.robot-photo {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #0a0c12;
    margin-bottom: 0.5rem;
}

.team-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-member {
    text-align: center;
    background: #161b26;
    border: 1px solid #2f2f32;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.team-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.donations {
    background: var(--panel);
    border: 1px solid #2f2f34;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.donations ul {
    list-style: none;
    padding: 0;
}

.donations li {
    margin: 0.5rem 0;
}

.sponsor-item {
    background: #161a22;
    border: 1px solid #2f2f32;
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    color: #e8e8e8;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    max-width: 100%;
    height: auto;
}

footer {
    margin-top: auto;
    padding: 1rem 0 1.4rem;
    border-top: 1px solid #252a32;
    color: #c1c1c1;
    font-size: 0.92rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-content div { min-width: 220px; }

a { color: #f6f6f6; text-decoration: underline; }
a:hover { color: #e5e5e5; }

@media (max-width: 680px) {
    .gallery { max-height: 400px; }
    .gallery img { height: 100%; }
    nav { flex-direction: column; align-items: center; }
    .intro { padding: 1.1rem; }
    .sponsors { padding: 1rem; }
    .logo-badge { width: 56px; top: 0.75rem; right: 0.75rem; }
}

.blend { color: var(--accent); }
.subtle { color: #b1b1b1; }