*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: "VT323", monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
}

a{
    color: inherit;
    text-decoration: none;
}

button{
    content: "Hello, hi, could you give recommendations for more things to be added to the website to make it more interesting";
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

@keyframes enter{
    from { opacity: 0; transform: translate(var(--x, 0), var(--y, 20px)) scale(var(--s, 1)); }
}

@keyframes bar{
    50% {height: 16px; }
}

#app {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    background: #000 url("assents/bg-patan.png") center/cover;
}

.overlay{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0,0.6);
    pointer-events: none;
    transition: opacity 1s;
}

.landing{
    position: absolute;
    inset: 0;
    z-index: 20;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 1s;
}

.started .overlay, .started .landing{
    opacity: 0;
}

.started .landing{
    pointer-events: none;
}

.landing header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.landing h1{
    font-size: 2.25rem;
    letter-spacing: -0.05em;
    line-height: 0.85;
}

.subtitle{
    margin-top: 0.5rem;
    font: 0.75rem ui-monospace, monospace;
    letter-spacing: 0.1em;
    color: #9ca3af;
    text-transform: uppercase;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    height: 1rem;
}

.bars span{
    width: 2px;
    height: 4px;
    background: #ef4444;
    animation: bar 0.6s ease-in-out infinite;
}

.bars span:nth-child(2){
    animation-delay: 0.1s;
}
.bars span:nth-child(3){
    animation-delay: 0.2s;
}
.bars span:nth-child(4){
    animation-delay:0.3s;
}

@media (max-width: 767px){
    .landing header{
        position: relative;
        justify-content: center;
    }

    .landing header > div:first-child{
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .landing h1{
        font-size: clamp(3.75rem, 16vw, 5.5rem);
        line-height: 0.9;
        letter-spacing: 0.02em;
        text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
    }

    .subtitle{
        margin-top: 0.75rem;
        font-size: clamp(1.1rem, 4.8vw, 1.4rem);
        line-height: 1.25;
        letter-spacing: 0.2em;
        text-align: center;
        text-shadow: 0 0 10px rgba(156, 163, 175, 0.7);
    }

    .bars{
        position: absolute;
        top: 0;
        right: 0;
    }
}

.landing nav{
    position: absolute;
    bottom: 6rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.landing nav a{
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s, transform 0.3s;
    animation: enter 0.5s calc(var(--i) * 0.1s + 0.5s) backwards;
}

.landing nav a:hover {
    color: #fff;
}

@media (max-width: 767px){
    .landing nav{
        top: 76%;
        bottom: auto;
        gap: clamp(0.65rem, 2.5vw, 1rem);
    }

    .landing nav a{
        font-size: clamp(1.45rem, 5.5vw, 1.8rem);
        letter-spacing: 0.08em;
    }
}

.start{
    --c: #fff;
    --y: 0;
    --s: 0.8;
    position: absolute;
    inset: 0;
    margin: auto;
    width: max-content;
    height: max-content;
    padding: 0.75rem 2rem;
    border: 2px solid var(--c);
    color: var(--c);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(var(--c), var(--c)) no-repeat left / 0 100%;
    transition: 0.3s;
    animation: enter 0.5s 1s backwards;
}

.start:hover {
    background-size: 100% 100%;
    color: #000;
    transform: scale(1.05);
}
.start.hl{
    --c: #facc15; transform: scale(1.1); box-shadow: 0 0 30px rgba(250, 204, 21, 0.6);
}

.landing footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.socials{
    display: flex;
    gap: 1rem;
}

.socials a{
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    animation: enter 0.5s calc(var(--i) *0.1s + 1s) backwards;
}

.socials a:hover{
    color: #fff;
    transform: translateY(-5px);
}

.socials.hl a{
   color: #facc15;
    transform: scale(1.25); 
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8));
}

.socials svg{
    display: block;
    width: 20px;
    height: 20px;
}

.copyright {
    font: 10px/1.25 ui-monospace, monospace; color: #f3f4f6; text-align: right;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px){
    .socials{
        gap: clamp(1rem, 4vw, 1.5rem);
    }

    .socials svg{
        width: clamp(24px, 7vw, 30px);
        height: clamp(24px, 7vw, 30px);
    }

    .copyright{
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    }
}

@media (min-width: 768px){
    .landing { padding: 3rem;}
    .landing h1 {font-size: 4.5rem;}
    .subtitle {font-size: 1rem;}
    .bars {height: 1.5rem;}
    .bars span{ width: 4px;}

    .landing nav{
        top: 50%;
        bottom: auto;
        left: auto;
        right: 3rem;
        width: auto;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: flex-end;
        gap:1rem;
    }

    .landing nav a{
        --x: 50px;
        --y: 0;
        font-size: 3.75rem;
        letter-spacing: normal;
        color: transparent;
        -webkit-text-stroke: 1px #fff;
    }

    .landing nav a:hover {
        color: #fff;
        transform: translateX(-10px) scale(1.1);
    }

    .start {
        font-size: 1.5rem;
    }

    .socials{
        gap: 1.5rem;
    }

    .socials svg{
        width: 24px;
        height: 24px;
    }

    .copyright{
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px){
    .landing h1{font-size: 8rem;}
}

.modal{
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.open{
    opacity: 1;
    visibility: visible;
}

.panel{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 72rem;
    height: 90vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.9);
    transition: transform 0.3s;
}

.modal.open .panel{
    transform: none;
}

.panel-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.panel-head h2{
    font-size: 1.875rem;
    letter-spacing: -0.025em;
}

.panel-head p{
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: #a1a1aa;
    text-transform: uppercase;
}

#closeBtn{
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

#closeBtn:hover{
    background: rgba(255,255,255,0.1);
}

#closeBtn svg{
    display: block;
    width: 24px;
}

.panel-body{
    flex: 1;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 3rem;
    padding: 1.5rem 1.5rem 6.5rem;
}

.panel-body::-webkit-scrollbar { width: 8px;}
.panel-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255,255, 255, 0.2); border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.1);}
.panel-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4);}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s, transform 0.6s;
}

.card.show{
    opacity: 1;
    transform: none;
}

.card > div{
    width: 100%;
}

.img{
    position: relative;
}

.img::before{
    content:"";
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, var(--c));
    opacity: 0.2;
    filter: blur(40px);
    border-radius: 50%;
    transition: opacity 0.3s;
}

.img:hover::before{
    opacity: 0.3;
}

.img div{
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.img div::after{
    content: "";
    position: absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0.6;
}

.img img{
    width: 100%;
    height:100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.img:hover img{
    transform: scale(1.05);
}

.pill{
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(to right,var(--c));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info h3{
    margin-top: 0.5rem;
    font-size: 2.25rem;
    line-height: 1.25;
}

.info p{
    margin-top:1.5rem;
   padding-left: 1.5rem;
   border-left: 2px solid rgba(255, 255, 255, 0.1);
   font-size: 1.125rem;
   line-height: 1.625;
   color: #d4d4d8
}

.tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.tags span{
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font: 0.875rem ui-monospace, monospace;
    color: #a1a1aa;
}

@media (min-width: 768px){
    .modal{ padding: 2rem;}
    .panel-head{padding:2rem;}
    .panel-head h2{ font-size: 3rem;}
    .panel-head {padding: 2rem 2rem 7rem; gap: 6rem;}
    .card {flex-direction: row; gap: 4rem;}
    .card:nth-child(even) { flex-direction: row-reverse;}
    .card > div{width: 50%;}
    .info h3{font-size: 3.75rem;}
}

@keyframes pulse {50% { opacity: 0.5}}
@keyframes bounce { 50% {transform: translateY(-25%);}}
@keyframes fill { from {width: 0;}}

.story{
    position: absolute;
    inset: 0;
    z-index: 30;
    overflow-y: auto;
    background: #000;
    color: #4ade80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s, visibility 1.5s;
}

.story.open{
    opacity: 1;
    visibility: visible;
}

#stars {
    position: fixed;
    inset: 0;
    opacity: 0.8;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), transparent, rgba(0, 0, 0, 0.2)),
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 100%, 100% 4px;
}

.level {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    color: #22c55e;
    pointer-events: none;
    mix-blend-mode: screen;
}

.level small { display: block; font-size: 0.75rem; opacity: 0.7; }
.level b { display: flex; gap: 0.5rem; font-size: 1.25rem; }
.level i { font-style: normal; animation: pulse 2s infinite; }

.meter {
    width: 6rem;
    height: 4px;
    margin-top: 0.25rem;
    background: #14532d;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    background: #22c55e;
    animation: fill 0.5s;
}

.content { position: relative; z-index: 10; }

.frame {
    position: relative;
    min-height: 100dvh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
    border: 4px solid #22c55e;
    border-radius: 50%;
    background: rgba(20, 83, 45, 0.2);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    animation: pulse 3s infinite;
}

.logo svg { width: 48px; height: 48px; }

.story h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.tagline {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: rgba(74, 222, 128, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hint {
    --y: 0;
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #22c55e;
    animation: enter 1s 3s backwards, bounce 1s infinite;
}

.hint small {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hint svg { width: 24px; height: 24px; }

.retro {
    position: relative;
    width: 100%;
    max-width: 48rem;
    padding: 1rem;
    text-align: left;
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(12px);
    background:
        linear-gradient(#22c55e, #22c55e) top left,
        linear-gradient(#22c55e, #22c55e) top right,
        linear-gradient(#22c55e, #22c55e) bottom left,
        linear-gradient(#22c55e, #22c55e) bottom right,
        rgba(0, 0, 0, 0.8);
    background-size: 8px 8px;
    background-repeat: no-repeat;
    opacity: 0;
    transform: perspective(1000px) rotateX(45deg) scale(0.5);
    transition: 1s;
}

.frame.show .retro { opacity: 1; transform: none; }

.head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
}

.head svg {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background: rgba(20, 83, 45, 0.3);
    animation: pulse 2s infinite;
}

.head h2 { font-size: 1.875rem; letter-spacing: 0.1em; text-transform: uppercase; }

.text {
    display: grid;
    gap: 1rem;
    list-style: none;
    font-size: 1.125rem;
    line-height: 1.625;
    letter-spacing: 0.025em;
    color: rgba(220, 252, 231, 0.9);
}

.text b { font-weight: 400; color: #fff; }
.text li { display: flex; gap: 0.75rem; }
.text li::before { content: "►"; margin-top: 0.25rem; color: #22c55e; }

.quote {
    padding-left: 1rem;
    border-left: 4px solid #22c55e;
    font-style: italic;
    color: #86efac;
}

.boxes { gap: 1.5rem; }
.drives { text-align: center; }

.box {
    padding: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 0.25rem;
    background: rgba(20, 83, 45, 0.2);
    transition: background 0.3s;
}

.box:hover { background: rgba(20, 83, 45, 0.4); }
.box h3 { font-size: 1.5rem; color: #fff; }
.box p { color: #4ade80; }
.box small { display: block; margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.7; }

.end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 6rem 1rem;
    text-align: center;
    font-size: 1.25rem;
    color: #16a34a;
}

.exit {
    padding: 0.75rem 2rem;
    border: 1px solid #22c55e;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    color: #4ade80;
    background: linear-gradient(#22c55e, #22c55e) no-repeat left / 0 100%, rgba(20, 83, 45, 0.2);
    transition: 0.3s;
}

.exit:hover { background-size: 100% 100%; color: #000; }

@media (min-width: 768px) {
    .level { top: 2rem; left: 2rem; }
    .level small { font-size: 0.875rem; }
    .level b { font-size: 1.875rem; }
    .meter { width: 8rem; }
    .frame { padding: 4rem; }
    .logo { width: 10rem; height: 10rem; margin-bottom: 2rem; }
    .logo svg { width: 64px; height: 64px; }
    .story h1 { font-size: 8rem; }
    .tagline { font-size: 2.25rem; }
    .hint small { font-size: 0.875rem; }
    .hint svg { width: 32px; height: 32px; }
    .retro { padding: 2.5rem; }
    .head { gap: 1rem; margin-bottom: 1.5rem; }
    .head svg { width: 48px; height: 48px; }
    .head h2 { font-size: 3rem; }
    .text { font-size: 1.5rem; }
    .drives { grid-template-columns: 1fr 1fr; }
    .exit { font-size: 1rem; }
}

#scene{
    position: absolute;
    inset: 0;
}

#loading{
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: #000;
    font-size: 2rem;
    letter-spacing: 0.2em;
    transition: opacity 0.8s, visibility 0.8s;
}

#loading span{
    animation: pulse 1s infinite;
}

#loading.hide{
    opacity: 0;
    visibility: hidden;
}

#nogl{
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 0 1rem;
    text-align: center;
    color: #facc15;
}
