:root {
    --bg: #0b0b0f;
    --panel: #121218;
    --muted: #9aa0a6;
    --ink: #e6e6f0;
    --accent: #7c5cff;
    --accent-2: #22c55e;
    --danger: #ef4444;
    --card: #0f1016;
    --border: #20222e;
    --warn: #eab308;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(11, 11, 15, .95), rgba(11, 11, 15, .85));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.brand-title {
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
    line-height: 1;
    color: #f6f3ff;
    letter-spacing: .5px
}

.links {
    display: flex;
    align-items: center;
    gap: 14px
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    transition: .2s
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: #2f3244
}

.launch {
    padding: 10px 10px;
    border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
    color: white;
   
}

.launch:hover {
    filter: brightness(1.08)
}

/* Main split */
main {
    padding: 28px 20px
}

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 26px
}

@media (max-width:900px) {
    .split {
        grid-template-columns: 1fr
    }
}

/* Gallery */
.gallery {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px
}

.h2 {
    margin: 0 0 12px 2px;
    font-size: 22px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.tile {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(90% 90% at 25% 15%, #2b2d3f, transparent), linear-gradient(135deg, #1a1c27, #10121b)
}

/* Lazy skeleton shimmer */
.tile.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, .06) 60%) no-repeat;
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02)
}

.tile.loaded img {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease, transform .45s ease
}


.tile.loaded::before {
    animation: none;
    opacity: 0;
    transition: opacity .25s ease
}

/* Details panel */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px
}

.details {
    width: 100%;
    border-collapse: collapse
}

.details tr {
    border-top: 1px solid var(--border)
}

.details tr:first-child {
    border-top: 0
}

.details th,
.details td {
    text-align: left;
    padding: 12px 6px;
    font-size: 15px
}

.details th {
    color: var(--muted);
    font-weight: 500;
    width: 42%
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid transparent
}

.badge-warn {
    background: #1a1606;
    border-color: #3b2f09;
    color: #fde68a
}

.badge-ok {
    background: #122418;
    border-color: #264a2e;
    color: #a7f3d0
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    font-weight: 600
}

.btn:hover {
    border-color: #2b2f40
}

/* Eligibility checker */
.checker {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px
}

@media (max-width:900px) {
    .checker {
        grid-template-columns: 1fr
    }
}

.box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px
}

.muted {
    color: var(--muted)
}

.input {
    display: flex;
    gap: 10px
}

.input input {
    flex: 1;
    border: 1px solid var(--border);
    background: #0d0f16;
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px
}

.input button {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #334;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #071b0e;
    font-weight: 800
}

.msg {
    margin-top: 12px;
    font-size: 14px
}

.msg.ok {
    color: #34d399
}

.msg.no {
    color: #f87171
}

.criteria ul {
    margin: 8px 0 0 18px
}


@media (prefers-reduced-motion: reduce) {
    .tile.loaded img {
        transition: none
    }

    .tile.loading::before {
        animation: none
    }
}