/* gabs.games - Frozen Cyberpunk Arcade */
/* Palette: translucent-frost on deep void */

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #0c1117;
    color: #d4e4eb;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(126, 184, 201, 0.2);
}

::-webkit-scrollbar {
    width: 0;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 0%;
    background-color: #7eb8c9;
    z-index: 100;
    transition: height 0.1s linear;
}

/* ========== CHAMBERS (shared) ========== */
.chamber {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

.chamber--terminus {
    min-height: 50vh;
}

/* ========== BOOT SCREEN ========== */
.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.domain-name {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    color: #d4e4eb;
    display: flex;
    gap: 0;
}

.domain-name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.domain-name .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-underline {
    width: clamp(200px, 40vw, 400px);
    height: 2px;
}

.boot-underline line {
    transition: stroke-dashoffset 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.boot-underline.drawn line {
    stroke-dashoffset: 0;
}

.boot-pulse-line {
    width: 2px;
    height: 120px;
}

.boot-pulse-line svg {
    width: 100%;
    height: 100%;
}

.boot-pulse-line svg line {
    transition: stroke-dashoffset 1500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.boot-pulse-line.drawn svg line {
    stroke-dashoffset: 0;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.boot-pulse-line.pulsing svg line {
    animation: pulse-opacity 2s ease-in-out infinite;
}

/* ========== ARCADE CHAMBER ========== */
.chamber--arcade {
    padding: 80px 20px;
}

.arcade-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

.game-panel {
    max-width: 480px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(126, 184, 201, 0.06);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(126, 184, 201, 0.15);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.game-panel--left {
    align-self: flex-start;
    margin-left: calc(50% - 300px);
    transform: translateX(-30px);
}

.game-panel--right {
    align-self: flex-end;
    margin-right: calc(50% - 300px);
    transform: translateX(30px);
}

.game-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.game-panel:hover {
    border-color: rgba(126, 184, 201, 0.3);
}

.game-panel:hover .geo-shape {
    transform: rotate(15deg);
}

.game-panel__shape {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.geo-shape {
    width: 100%;
    height: 100%;
    transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.geo-shape polygon,
.geo-shape circle {
    transition: stroke-dashoffset 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.game-panel.visible .geo-shape polygon,
.game-panel.visible .geo-shape circle {
    stroke-dashoffset: 0;
}

.game-panel__info {
    flex: 1;
}

.game-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    letter-spacing: 0.04em;
    color: #d4e4eb;
    margin-bottom: 8px;
    position: relative;
}

.game-title__text {
    display: inline;
}

.title-underline {
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 4px;
}

.title-underline line {
    transition: stroke-dashoffset 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.game-panel.visible .title-underline line {
    stroke-dashoffset: 0;
}

.game-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #8fa8b5;
}

/* ========== MANIFESTO CHAMBER ========== */
.chamber--manifesto {
    overflow: hidden;
}

.manifesto-bg-shape {
    position: absolute;
    width: 40vw;
    height: 40vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.bg-hexagon {
    width: 100%;
    height: 100%;
    opacity: 0.08;
    animation: slow-rotate 720s linear infinite;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.manifesto-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 0 24px;
    text-align: center;
}

.manifesto-line {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.9;
    letter-spacing: 0.04em;
    color: #d4e4eb;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
    margin-bottom: 32px;
    position: relative;
}

.manifesto-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #3d8fa0;
    transition: width 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.manifesto-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-line.visible::after {
    width: 80%;
}

/* ========== SIGNAL CHAMBER ========== */
.chamber--signal {
    position: relative;
}

.orbital-field {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    pointer-events: none;
}

.orbital-tri {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.2;
}

.orbital-tri--1 { top: 10%; left: 15%; }
.orbital-tri--2 { top: 5%; right: 20%; }
.orbital-tri--3 { top: 45%; left: 5%; }
.orbital-tri--4 { top: 50%; right: 8%; }
.orbital-tri--5 { bottom: 15%; left: 25%; }
.orbital-tri--6 { bottom: 10%; right: 15%; }

.signal-panel {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 90%;
    padding: 48px 40px;
    background: rgba(126, 184, 201, 0.06);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(126, 184, 201, 0.15);
    border-radius: 2px;
    text-align: center;
    animation: signal-breathe 4s ease-in-out infinite;
}

@keyframes signal-breathe {
    0%, 100% { box-shadow: inset 0 0 80px rgba(126, 184, 201, 0.04); }
    50% { box-shadow: inset 0 0 80px rgba(126, 184, 201, 0.08); }
}

.signal-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #546a7b;
    display: block;
    margin-bottom: 32px;
}

.signal-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.signal-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8fa8b5;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.01em;
    transition: color 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.signal-link--warm {
    color: #c9956e;
}

.signal-link:hover {
    color: #d4e4eb;
}

.signal-link--warm:hover {
    color: #d4b08a;
}

.signal-underline {
    width: 100%;
    height: 2px;
    margin-top: 2px;
}

.signal-underline line {
    transition: stroke-dashoffset 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.signal-link:hover .signal-underline line {
    stroke-dashoffset: 0;
}

/* ========== TERMINUS ========== */
.chamber--terminus {
    flex-direction: column;
}

.terminus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.terminus-line {
    width: 2px;
    height: 120px;
}

.terminus-line svg {
    width: 100%;
    height: 100%;
}

.terminus-line svg line {
    transition: stroke-dashoffset 1500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.terminus-line.drawn svg line {
    stroke-dashoffset: 0;
}

.terminus-name {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #546a7b;
    opacity: 0.4;
    letter-spacing: 0.04em;
}

.terminus-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: #546a7b;
    opacity: 0.3;
    letter-spacing: 0.01em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .game-panel--left,
    .game-panel--right {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .orbital-field {
        width: 100vw;
        height: 100vh;
    }
}