
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0a0a0f;
    --paper: #111118;
    --line: #1e1e2e;
    --mute: #6b7280;
    --bright: #f8fafc;
    --coral: #ff6b4a;
    --lime: #a3e635;
    --cyan: #22d3ee;
    --gold: #fbbf24;
    --rose: #fb7185;
}

html, body { overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ink);
    color: var(--bright);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

/* Noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Masthead */
.mast {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.brandmark {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bright);
}
.brandmark em {
    color: var(--coral);
    font-style: normal;
}
.finder {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.finder input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--bright);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.finder input:focus { border-color: var(--coral); }
.finder svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--mute);
    pointer-events: none;
}

/* Pitch */
.pitch {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 40px;
}
.pitch h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.pitch h1 em {
    color: var(--coral);
    font-style: normal;
}
.pitch p {
    color: var(--mute);
    font-size: 17px;
    max-width: 560px;
    line-height: 1.7;
}

/* Rail tabs */
.rail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.chip {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--mute);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chip:hover { border-color: var(--mute); color: var(--bright); }
.chip.picked {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,74,0.3);
}

/* Shelf - horizontal scroll rows */
.shelf {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}
.shelf-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-right: 8px;
}
.shelf-name {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.shelf-count {
    font-size: 12px;
    color: var(--mute);
    font-weight: 600;
}
.track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-track { background: transparent; }
.track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* Tile - vertical card */
.tile {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.tile:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--coral);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.tile.missing { display: none !important; }

.tile-pic {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}
.tile-pic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--paper), transparent);
}

.tile-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tile-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.badge-hot { background: rgba(255,107,74,0.15); color: var(--coral); }
.badge-action { background: rgba(163,230,53,0.15); color: var(--lime); }
.badge-girl { background: rgba(251,113,133,0.15); color: var(--rose); }
.badge-boy { background: rgba(34,211,238,0.15); color: var(--cyan); }
.badge-3d { background: rgba(251,191,36,0.15); color: var(--gold); }

.tile-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}
.tile-blurb {
    font-size: 12px;
    color: var(--mute);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.tile-stars {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
}
.tile-go {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: var(--line);
    color: var(--bright);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.tile:hover .tile-go {
    background: var(--coral);
    color: #fff;
}

/* Empty */
.void {
    text-align: center;
    padding: 80px 24px;
    color: var(--mute);
    display: none;
}
.void.show { display: block; }

/* Ground */
.ground {
    border-top: 1px solid var(--line);
    padding: 48px 24px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.ground-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.ground-name {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ground-name em { color: var(--coral); font-style: normal; }
.ground-about {
    color: var(--mute);
    font-size: 14px;
    line-height: 1.8;
    max-width: 320px;
}
.ground-head {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bright);
    margin-bottom: 16px;
}
.ground-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ground-links button {
    color: var(--mute);
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.ground-links button:hover { color: var(--coral); }
.ground-base {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    text-align: center;
    color: var(--mute);
    font-size: 13px;
}
.ground-base button {
    color: var(--mute);
    background: none;
    border: none;
    margin: 0 10px;
    cursor: pointer;
    font-size: 13px;
}
.ground-base button:hover { color: var(--coral); }

/* Elevator */
.elevator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.elevator.lifted { opacity: 1; visibility: visible; }
.elevator:hover { transform: translateY(-4px); }

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(12px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.overlay.open { display: flex; }
.sheet {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.sheet h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--coral);
}
.sheet h4 {
    color: var(--bright);
    margin: 20px 0 8px;
    font-size: 14px;
}
.sheet p {
    color: var(--mute);
    line-height: 1.8;
    font-size: 14px;
}
.sheet-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    color: var(--mute);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sheet-x:hover { color: var(--bright); border-color: var(--mute); }

/* Responsive */
@media (max-width: 768px) {
    .mast { padding: 16px; flex-wrap: wrap; }
    .finder { max-width: 100%; order: 3; }
    .finder input { font-size: 16px; }
    .pitch { padding: 24px 16px 32px; }
    .pitch h1 { font-size: 32px; }
    .pitch p { font-size: 15px; }
    .rail { padding: 0 16px 24px; }
    .shelf { padding: 0 16px 40px; }
    .tile { flex: 0 0 180px; }
    .tile-pic { height: 120px; font-size: 44px; }
    .tile-title { font-size: 14px;color:#fff }
    .ground-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ground { padding: 40px 16px 20px; }
    .sheet { padding: 24px 20px; border-radius: 16px; }
}

@media (max-width: 480px) {
    .pitch h1 { font-size: 28px; }
    .ground-grid { grid-template-columns: 1fr; gap: 24px; }
    .tile { flex: 0 0 160px; }
    .tile-pic { height: 100px; }
    .elevator { bottom: 16px; right: 16px; }
}
.tile-pic {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.tile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.images {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
a{
    text-decoration: none;
}
.tile-title {color:#fff }