:root {
    --green:   #22c55e;
    --lime:    #84cc16;
    --emerald: #10b981;
    --gold:    #f59e0b;
    --sky:     #38bdf8;
    --sans:    'Geist', system-ui, sans-serif;
    --pixel:   'Press Start 2P', monospace;

    --glass-bg:       rgba(255,255,255,0.55);
    --glass-bg-deep:  rgba(255,255,255,0.72);
    --glass-border:   rgba(255,255,255,0.8);
    --glass-shadow:   0 8px 32px rgba(0,0,0,0.10), 0 1.5px 0 rgba(255,255,255,0.9) inset;
    --glass-shadow-sm:0 4px 16px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.85) inset;
    --blur:           blur(20px);
    --blur-sm:        blur(12px);
    --radius:         20px;
    --radius-sm:      14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    color: #1a2010;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(134,239,172,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(56,189,248,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 55% 50%,  rgba(253,224,71,0.18) 0%, transparent 60%),
    #f0f4ec;
    background-attachment: fixed;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 500px; height: 500px;
    top: -120px; left: -100px;
    background: radial-gradient(circle, #86efac, #34d399);
    animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    bottom: -80px; right: -80px;
    background: radial-gradient(circle, #7dd3fc, #38bdf8);
    animation: drift2 22s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    top: 40%; left: 60%;
    background: radial-gradient(circle, #fde68a, #fbbf24);
    opacity: 0.20;
    animation: drift3 28s ease-in-out infinite;
}
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,60px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,-40px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-30px,40px)} 66%{transform:translate(30px,-20px)} }

.wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}
.glass-sm {
    background: var(--glass-bg-deep);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow-sm);
}

/* HEADER */
header {
    padding: 40px 40px 36px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(134,239,172,0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #15803d;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

h1 {
    font-family: var(--pixel);
    font-size: clamp(11px, 2.4vw, 16px);
    line-height: 1.8;
    color: #14532d;
    margin-bottom: 8px;
}
h1 .accent { color: var(--green); }

.tagline {
    font-size: 13px;
    color: #52745c;
}

/* SCREENSHOT */
.screenshot-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,0.9) inset;
    border: 1px solid rgba(255,255,255,0.75);
    margin-bottom: 20px;
}
.screenshot-wrap img { width: 100%; display: block; }
.screenshot-placeholder {
    width: 100%;
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(220,240,220,0.5));
    font-family: var(--pixel);
    font-size: 8px;
    color: rgba(21,128,61,0.4);
    letter-spacing: 0.08em;
}

/* IP BOX */
.ip-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ip-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #52745c;
}
.ip-value {
    font-size: 20px;
    font-weight: 600;
    color: #14532d;
    letter-spacing: -0.01em;
    flex: 1;
}
.copy-btn {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.35);
    color: #15803d;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.copy-btn:hover { background: rgba(34,197,94,0.25); transform: scale(1.02); }
.copy-btn:active { transform: scale(0.98); }
.copy-btn.copied { color: #166534; background: rgba(34,197,94,0.25); }

/* SECTIONS */
section { margin-bottom: 20px; }
.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #52745c;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* VERSION */
.version-card { padding: 26px 28px; }
.version-name {
    font-family: var(--pixel);
    font-size: 11px;
    color: #92400e;
    margin-bottom: 4px;
}
.version-date {
    font-size: 13px;
    color: #52745c;
    margin-bottom: 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 100px;
    border: 1px solid;
}
.tag-green { color:#166534; background:rgba(34,197,94,0.12);  border-color:rgba(34,197,94,0.3); }
.tag-gold  { color:#92400e; background:rgba(245,158,11,0.12); border-color:rgba(245,158,11,0.3); }
.tag-sky   { color:#0369a1; background:rgba(56,189,248,0.12); border-color:rgba(56,189,248,0.3); }
.tag-lime  { color:#3f6212; background:rgba(132,204,22,0.12); border-color:rgba(132,204,22,0.3); }

/* MODS */
.mods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) { .mods-grid { grid-template-columns: 1fr; } }

.mod-card {
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.13), 0 1px 0 rgba(255,255,255,0.95) inset;
}
.mod-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.mod-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    opacity: 0.18;
    background: var(--tint, var(--green));
    filter: blur(30px);
    pointer-events: none;
}
.mod-card.tint-lime  { --tint: var(--lime); }
.mod-card.tint-green { --tint: var(--emerald); }
.mod-card.tint-red   { --tint: #ef4444; }
.mod-card.tint-gold  { --tint: var(--gold); }
.mod-card.tint-sky   { --tint: var(--sky); }
.mod-card.full       { grid-column: 1 / -1; }

.mod-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #14532d;
    margin-bottom: 6px;
}
.mod-card-desc {
    font-size: 12.5px;
    color: #52745c;
    line-height: 1.6;
    margin-bottom: 12px;
}
.mod-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.85);
    color: #52745c;
    display: inline-block;
}

/* CLIENT MODS */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 22px 28px;
}
.client-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #1a3a22;
}
.client-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

/* DOWNLOAD */
.download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    flex-wrap: wrap;
}
.download-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #14532d;
    margin-bottom: 3px;
}
.download-text p { font-size: 12.5px; color: #52745c; }
.download-btn {
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(34,197,94,0.85), rgba(16,185,129,0.85));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 11px 24px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(34,197,94,0.35), 0 1px 0 rgba(255,255,255,0.3) inset;
    transition: all 0.18s ease;
    white-space: nowrap;
    display: inline-block;
}
.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.45), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.download-btn.disabled {
    background: rgba(200,210,200,0.5);
    color: rgba(80,100,80,0.5);
    box-shadow: none;
    pointer-events: none;
}

/* RULES */
.rules-inner {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #2d4a35;
}
.rule-num {
    font-family: var(--pixel);
    font-size: 7px;
    color: var(--green);
    padding-top: 3px;
    flex-shrink: 0;
    min-width: 22px;
}

/* FOOTER */
footer {
    padding-top: 12px;
    font-size: 11.5px;
    color: #7a9a82;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pixel-footer {
    font-family: var(--pixel);
    font-size: 6px;
    color: rgba(100,140,100,0.4);
    letter-spacing: 0.08em;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}
.animate { animation: fadeUp 0.5s ease both; }
.d1 { animation-delay:.06s } .d2 { animation-delay:.12s }
.d3 { animation-delay:.18s } .d4 { animation-delay:.24s }
.d5 { animation-delay:.30s } .d6 { animation-delay:.36s }
.d7 { animation-delay:.42s }