/* gamelicens.ing - Y2K Futurism Installation Wizard */
/* Colors: Void Black #0a0a0f, Chrome Silver #c0c0c0, Holographic Cyan #00e5ff,
   Terminal Green #39ff14, Hot Magenta #ff2d7b, Shrink-Wrap White #f0f0f5,
   Bevel Shadow #404050, Tropical Coral #ff7043 */

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

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
    color: #d0d0d0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    text-shadow: 0 0 0 #0a0a0a;
}

/* ---- Progress Indicator (fixed side) ---- */
.progress-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-step {
    width: 32px;
    height: 32px;
    border: 2px solid #404050;
    background: #0a0a0f;
    color: #808080;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.progress-step.completed {
    border-color: #39ff14;
    color: #39ff14;
    background: rgba(57, 255, 20, 0.05);
}

/* ---- Wizard Step (each section) ---- */
.wizard-step {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid #c0c0c0;
    overflow: hidden;
}

/* ---- Window Title Bar ---- */
.window-titlebar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 4px 8px;
    height: 28px;
    flex-shrink: 0;
}

.titlebar-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00e5ff, #ff2d7b, #39ff14, #00e5ff);
    background-size: 400% 400%;
    animation: holographic-shift 6s ease infinite;
    margin-right: 8px;
    flex-shrink: 0;
}

.titlebar-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #f0f0f5;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.titlebar-buttons {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.titlebar-buttons span {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border-top: 2px solid #f0f0f5;
    border-left: 2px solid #f0f0f5;
    border-bottom: 2px solid #404050;
    border-right: 2px solid #404050;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #0a0a0f;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    cursor: default;
    line-height: 1;
}

/* ---- Step Content ---- */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 15% 40px;
    max-width: 720px;
    width: 100%;
}

/* ---- Chrome Title (Hero) ---- */
.chrome-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #e0e0e0 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
}

.subtitle {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.04em;
    color: #00e5ff;
    margin-bottom: 40px;
}

/* ---- Section Headers ---- */
.section-header {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #e0e0e0 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.instruction-text {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.04em;
    color: #00e5ff;
    margin-bottom: 32px;
}

/* ---- Narrative Text ---- */
.narrative-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: #d0d0d0;
    margin-bottom: 20px;
}

.license-overlay {
    margin-top: 20px;
}

/* ---- Wizard Navigation ---- */
.wizard-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 15%;
    flex-shrink: 0;
}

.nav-btn {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 4px 16px;
    background: #c0c0c0;
    border-top: 2px solid #f0f0f5;
    border-left: 2px solid #f0f0f5;
    border-bottom: 2px solid #404050;
    border-right: 2px solid #404050;
    color: #0a0a0f;
    cursor: default;
    user-select: none;
}

.nav-btn.disabled {
    color: #808080;
    background: #a0a0a0;
}

/* ---- EULA Container (Step 2) ---- */
.eula-container {
    border-top: 2px solid #404050;
    border-left: 2px solid #404050;
    border-bottom: 2px solid #c0c0c0;
    border-right: 2px solid #c0c0c0;
    background: #0a0a0f;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin-bottom: 20px;
}

.eula-container::-webkit-scrollbar {
    width: 18px;
}

.eula-container::-webkit-scrollbar-track {
    background: #c0c0c0;
    border-left: 1px solid #808080;
}

.eula-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-top: 2px solid #f0f0f5;
    border-left: 2px solid #f0f0f5;
    border-bottom: 2px solid #404050;
    border-right: 2px solid #404050;
    min-height: 40px;
}

.eula-container::-webkit-scrollbar-button {
    background: #c0c0c0;
    border-top: 2px solid #f0f0f5;
    border-left: 2px solid #f0f0f5;
    border-bottom: 2px solid #404050;
    border-right: 2px solid #404050;
    height: 18px;
}

.eula-content {
    background: #1a1a1a;
    padding: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #c0c0c0;
}

.eula-title {
    color: #f0f0f5;
    font-weight: 500;
    margin-bottom: 4px;
}

.eula-date {
    color: #808080;
    font-style: italic;
}

.eula-article {
    color: #00e5ff;
    font-weight: 500;
    margin-bottom: 4px;
}

.eula-accept {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-y2k {
    font-size: 1.3rem;
    cursor: pointer;
    color: #c0c0c0;
    border-top: 2px solid #404050;
    border-left: 2px solid #404050;
    border-bottom: 2px solid #f0f0f5;
    border-right: 2px solid #f0f0f5;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5;
    color: #0a0a0f;
    line-height: 1;
    user-select: none;
}

.checkbox-y2k.checked {
    color: #39ff14;
    background: #f0f0f5;
}

.checkbox-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #d0d0d0;
}

/* ---- Install Paths (Step 3) ---- */
.install-paths {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.install-band {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 20px;
    border-top: 3px solid #f0f0f5;
    border-left: 3px solid #f0f0f5;
    border-bottom: 3px solid #404050;
    border-right: 3px solid #404050;
    background: #1a1a2e;
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
    transition: transform 0.15s ease;
}

.install-band:nth-child(2) {
    z-index: 2;
    background: #1a1a28;
}

.install-band:nth-child(3) {
    z-index: 3;
    margin-bottom: 0;
    background: #1a1a22;
}

.band-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.band-icon svg {
    width: 100%;
    height: 100%;
}

.band-text h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
    color: #00e5ff;
    margin-bottom: 8px;
}

.band-text p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d0d0d0;
}

.band-indie .band-text h3 { color: #00e5ff; }
.band-aaa .band-text h3 { color: #ff2d7b; }
.band-retro .band-text h3 { color: #39ff14; }

/* ---- Progress Bar (Step 4) ---- */
.progress-bar-container {
    margin: 24px 0 32px;
}

.progress-bar-track {
    display: flex;
    gap: 3px;
    background: #000000;
    padding: 4px;
    border-top: 2px solid #404050;
    border-left: 2px solid #404050;
    border-bottom: 2px solid #c0c0c0;
    border-right: 2px solid #c0c0c0;
}

.progress-block {
    flex: 1;
    height: 28px;
    background: #0a0a0f;
    border-radius: 2px;
    transition: background-color 0.1s step-end;
}

.progress-block.filled {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.progress-percent {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.875rem;
    color: #39ff14;
    margin-top: 8px;
    text-align: right;
}

/* ---- Install Status (Step 4) ---- */
.install-status {
    background: #0a0a0f;
    border-top: 2px solid #404050;
    border-left: 2px solid #404050;
    border-bottom: 2px solid #c0c0c0;
    border-right: 2px solid #c0c0c0;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
}

.status-line {
    margin-bottom: 4px;
    color: #39ff14;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.status-line.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.status-line.visible {
    opacity: 1;
    height: auto;
    margin-bottom: 4px;
}

.status-prefix {
    color: #c0c0c0;
}

.install-narrative {
    margin-top: 16px;
}

/* ---- Holographic Badge (Step 5) ---- */
.holographic-badge {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #ff2d7b, #39ff14, #00e5ff);
    background-size: 400% 400%;
    animation: holographic-shift 6s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
    position: relative;
    transition: transform 0.15s ease;
}

.holo-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.holo-check {
    font-size: 3rem;
    color: #39ff14;
    line-height: 1;
}

.holo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f0f0f5;
    margin-top: 4px;
}

.complete-narrative {
    margin: 24px 0;
}

/* ---- License Key Display (Step 5) ---- */
.license-key-display {
    background: #0a0a0f;
    border-top: 2px solid #404050;
    border-left: 2px solid #404050;
    border-bottom: 2px solid #c0c0c0;
    border-right: 2px solid #c0c0c0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.key-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.key-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.4rem;
    color: #39ff14;
    letter-spacing: 0.15em;
}

/* ---- Fish Animations ---- */
.fish {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.fish-angel {
    width: 40px;
    height: 55px;
}

.fish-clown {
    width: 50px;
    height: 28px;
}

.fish-betta {
    width: 60px;
    height: 40px;
}

.fish-reverse {
    transform: scaleX(-1);
}

/* Individual fish positions and animations */
.fish-1 {
    top: 25%;
    left: -60px;
    animation: fish-drift 32s linear infinite;
    animation-delay: 0s;
}

.fish-2 {
    top: 60%;
    left: -70px;
    animation: fish-drift 38s linear infinite;
    animation-delay: 5s;
}

.fish-3 {
    top: 40%;
    left: -80px;
    animation: fish-drift 28s linear infinite;
    animation-delay: 12s;
}

.fish-4 {
    top: 30%;
    left: -60px;
    animation: fish-drift 35s linear infinite;
    animation-delay: 3s;
}

.fish-5 {
    top: 70%;
    right: -80px;
    animation: fish-drift-reverse 40s linear infinite;
    animation-delay: 8s;
}

.fish-6 {
    top: 20%;
    left: -70px;
    animation: fish-drift 30s linear infinite;
    animation-delay: 2s;
}

.fish-7 {
    top: 65%;
    right: -60px;
    animation: fish-drift-reverse 36s linear infinite;
    animation-delay: 10s;
}

.fish-8 {
    top: 35%;
    left: -80px;
    animation: fish-drift 42s linear infinite;
    animation-delay: 4s;
}

.fish-9 {
    top: 55%;
    right: -70px;
    animation: fish-drift-reverse 33s linear infinite;
    animation-delay: 7s;
}

.fish-10 {
    top: 15%;
    left: -60px;
    animation: fish-drift 25s linear infinite;
    animation-delay: 0s;
}

.fish-11 {
    top: 30%;
    left: -70px;
    animation: fish-drift 30s linear infinite;
    animation-delay: 3s;
}

.fish-12 {
    top: 50%;
    right: -80px;
    animation: fish-drift-reverse 28s linear infinite;
    animation-delay: 6s;
}

.fish-13 {
    top: 70%;
    left: -60px;
    animation: fish-drift 35s linear infinite;
    animation-delay: 9s;
}

.fish-14 {
    top: 85%;
    left: -80px;
    animation: fish-drift 40s linear infinite;
    animation-delay: 2s;
}

.fish-15 {
    top: 45%;
    right: -70px;
    animation: fish-drift-reverse 32s linear infinite;
    animation-delay: 5s;
}

@keyframes fish-drift {
    0% { transform: translateX(-100px) translateY(0px); opacity: 0; }
    10% { opacity: 0.25; }
    50% { transform: translateX(50vw) translateY(20px); opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateX(110vw) translateY(-10px); opacity: 0; }
}

.fish-reverse {
    animation-name: fish-drift-reverse !important;
}

@keyframes fish-drift-reverse {
    0% { transform: translateX(100px) translateY(0px) scaleX(-1); opacity: 0; }
    10% { opacity: 0.25; }
    50% { transform: translateX(-50vw) translateY(-15px) scaleX(-1); opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateX(-110vw) translateY(10px) scaleX(-1); opacity: 0; }
}

/* ---- Holographic Animation ---- */
@keyframes holographic-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Step-specific backgrounds ---- */
.step-welcome {
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%),
                #0a0a0f;
}

.step-license {
    background: radial-gradient(ellipse at 80% 30%, rgba(255, 45, 123, 0.04) 0%, transparent 60%),
                #0a0a0f;
}

.step-choose {
    background: radial-gradient(ellipse at 50% 70%, rgba(57, 255, 20, 0.04) 0%, transparent 60%),
                #0a0a0f;
}

.step-install {
    background: radial-gradient(ellipse at 30% 40%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
                #0a0a0f;
}

.step-complete {
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 45, 123, 0.04) 0%, transparent 50%),
                #0a0a0f;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .step-content {
        padding: 40px 8% 30px;
    }

    .wizard-nav {
        padding: 12px 8%;
    }

    .progress-indicator {
        right: 8px;
    }

    .progress-step {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .install-band {
        flex-direction: column;
        gap: 12px;
    }

    .band-icon {
        width: 60px;
        height: 60px;
    }

    .holographic-badge {
        width: 140px;
        height: 140px;
    }

    .holo-inner {
        width: 124px;
        height: 124px;
    }

    .eula-container {
        max-height: 200px;
    }
}
