/* ============================================
   gamelicense.info - Decommissioned Terminal UI
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0A0E14;
    color: #B8C9D4;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    overflow-x: hidden;
}

/* --- Scan Line Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(27, 245, 175, 0.03) 2px,
        rgba(27, 245, 175, 0.03) 4px
    );
}

/* --- HUD Frame --- */
#hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    outline: 2px solid rgba(27, 245, 175, 0.15);
    outline-offset: -12px;
    box-shadow: inset 0 0 0 14px rgba(27, 245, 175, 0.08);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hud-frame.visible {
    opacity: 1;
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 40px;
    height: 40px;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    background: #1BF5AF;
}

.corner-tl {
    top: 12px;
    left: 12px;
}
.corner-tl::before { top: 0; left: 0; width: 40px; height: 2px; }
.corner-tl::after  { top: 0; left: 0; width: 2px; height: 40px; }

.corner-tr {
    top: 12px;
    right: 12px;
}
.corner-tr::before { top: 0; right: 0; width: 40px; height: 2px; }
.corner-tr::after  { top: 0; right: 0; width: 2px; height: 40px; }

.corner-bl {
    bottom: 12px;
    left: 12px;
}
.corner-bl::before { bottom: 0; left: 0; width: 40px; height: 2px; }
.corner-bl::after  { bottom: 0; left: 0; width: 2px; height: 40px; }

.corner-br {
    bottom: 12px;
    right: 12px;
}
.corner-br::before { bottom: 0; right: 0; width: 40px; height: 2px; }
.corner-br::after  { bottom: 0; right: 0; width: 2px; height: 40px; }

/* --- Status Bar --- */
#status-bar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 52px;
    border-bottom: 1px solid rgba(27, 245, 175, 0.15);
    z-index: 200;
    background: rgba(10, 14, 20, 0.9);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #1BF5AF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: 0;
    animation: typewriter-reveal 1.2s steps(20) 0.8s forwards;
}

.typewriter-delay {
    animation: typewriter-reveal 1.5s steps(24) 1.6s forwards;
}

@keyframes typewriter-reveal {
    to { max-width: 400px; }
}

/* --- Section Navigation --- */
#section-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nav-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(27, 245, 175, 0.1);
    z-index: -1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(27, 245, 175, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-dot.active {
    border-color: #1BF5AF;
    background: #1BF5AF;
    box-shadow: 0 0 8px rgba(27, 245, 175, 0.5);
}

/* --- Panels (General) --- */
.panel {
    min-height: 100vh;
    position: relative;
    border-bottom: 1px dashed rgba(27, 245, 175, 0.2);
}

.panel-inner {
    padding: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.panel-inner.panel-center {
    align-items: center;
    justify-content: center;
}

.panel-inner.panel-narrow {
    max-width: 720px;
    margin: 0 auto;
    justify-content: center;
}

/* Panel bracket decorations */
.panel-brackets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bracket {
    position: absolute;
    width: 20px;
    height: 20px;
}

.bracket::before,
.bracket::after {
    content: '';
    position: absolute;
    background: rgba(27, 245, 175, 0.3);
}

.bracket-tl { top: 16px; left: 16px; }
.bracket-tl::before { top: 0; left: 0; width: 20px; height: 1.5px; }
.bracket-tl::after  { top: 0; left: 0; width: 1.5px; height: 20px; }

.bracket-tr { top: 16px; right: 16px; }
.bracket-tr::before { top: 0; right: 0; width: 20px; height: 1.5px; }
.bracket-tr::after  { top: 0; right: 0; width: 1.5px; height: 20px; }

.bracket-bl { bottom: 16px; left: 16px; }
.bracket-bl::before { bottom: 0; left: 0; width: 20px; height: 1.5px; }
.bracket-bl::after  { bottom: 0; left: 0; width: 1.5px; height: 20px; }

.bracket-br { bottom: 16px; right: 16px; }
.bracket-br::before { bottom: 0; right: 0; width: 20px; height: 1.5px; }
.bracket-br::after  { bottom: 0; right: 0; width: 1.5px; height: 20px; }

/* Panel titles */
.panel-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: #1BF5AF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(27, 245, 175, 0.4);
    margin-bottom: 48px;
}

/* --- Panel 1: System Boot --- */
.panel-1 {
    background: #0A0E14;
}

.hero-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: #1BF5AF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(27, 245, 175, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    margin-bottom: 24px;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-registration {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 8vw, 120px);
    letter-spacing: 0.3em;
    background: linear-gradient(90deg, #1BF5AF, #B8C9D4, #E8475C, #1BF5AF);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic-shift 8s linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 32px;
}

.hero-registration.visible {
    opacity: 1;
}

@keyframes holographic-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-cursor {
    font-family: 'Share Tech Mono', monospace;
    font-size: 36px;
    color: #1BF5AF;
    animation: cursor-blink 1s step-end infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-cursor.visible {
    opacity: 1;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* --- Panel 2: License Registry --- */
.panel-2 {
    background: #0F1923;
    min-height: 120vh;
}

.panel-split {
    display: flex;
    gap: 40px;
}

.split-left {
    flex: 0 0 55%;
}

.split-right {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

/* Registry rows */
.registry-list {
    display: flex;
    flex-direction: column;
}

.registry-row {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
    border-bottom: 1px dashed rgba(27, 245, 175, 0.15);
    padding: 0 8px;
}

/* Status dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: #1BF5AF;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-restricted {
    background: #E8475C;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-pending {
    background: #F5A623;
    animation: status-pulse 2s ease-in-out infinite;
}

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

.license-code {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1BF5AF;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.license-category {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #6B7F8E;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: 1;
}

.license-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #6B7F8E;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

/* Seal */
.seal-container {
    margin-bottom: 40px;
}

.seal-rotate {
    animation: seal-spin 60s linear infinite;
}

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

.body-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    color: #B8C9D4;
    max-width: 480px;
    text-align: left;
}

/* --- Panel 3: Classification Matrix --- */
.panel-3 {
    background: #0A0E14;
}

.classification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 720px;
    width: 100%;
}

.class-card {
    position: relative;
    background: #0F1923;
    border: 1px solid rgba(27, 245, 175, 0.15);
    padding: 28px 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.class-card:hover {
    transform: scale(1.04);
    border-color: rgba(27, 245, 175, 0.4);
    box-shadow: 0 0 20px rgba(27, 245, 175, 0.1);
    background: #152232;
}

/* Card corner brackets */
.card-brackets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cb {
    position: absolute;
    width: 12px;
    height: 12px;
}

.cb::before,
.cb::after {
    content: '';
    position: absolute;
    background: rgba(27, 245, 175, 0.3);
}

.cb-tl { top: 4px; left: 4px; }
.cb-tl::before { top: 0; left: 0; width: 12px; height: 1px; }
.cb-tl::after  { top: 0; left: 0; width: 1px; height: 12px; }

.cb-tr { top: 4px; right: 4px; }
.cb-tr::before { top: 0; right: 0; width: 12px; height: 1px; }
.cb-tr::after  { top: 0; right: 0; width: 1px; height: 12px; }

.cb-bl { bottom: 4px; left: 4px; }
.cb-bl::before { bottom: 0; left: 0; width: 12px; height: 1px; }
.cb-bl::after  { bottom: 0; left: 0; width: 1px; height: 12px; }

.cb-br { bottom: 4px; right: 4px; }
.cb-br::before { bottom: 0; right: 0; width: 12px; height: 1px; }
.cb-br::after  { bottom: 0; right: 0; width: 1px; height: 12px; }

.class-code {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1BF5AF;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(27, 245, 175, 0.4);
}

.class-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #6B7F8E;
    line-height: 1.5;
}

/* --- Panel 4: Compliance Report --- */
.panel-4 {
    background: #0F1923;
}

.compliance-body .body-text {
    margin-bottom: 24px;
}

.pull-quote {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    color: #B8C9D4;
    line-height: 1.7;
    border-left: 3px solid #E8475C;
    padding-left: 20px;
    margin: 32px 0;
    position: relative;
}

.quote-mark {
    color: #6B7F8E;
    margin-right: 8px;
}

.inline-ref {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #F5A623;
    letter-spacing: 0.05em;
}

.hr-divider {
    position: relative;
    height: 1px;
    margin: 36px 0;
    border: none;
    border-top: 1px dashed rgba(27, 245, 175, 0.2);
}

.hr-divider::before,
.hr-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(27, 245, 175, 0.3);
}

.hr-divider::before { left: 0; }
.hr-divider::after  { right: 0; }

/* --- Panel 5: Terminal End --- */
.panel-5 {
    background: #0A0E14;
}

.final-seal {
    margin-bottom: 40px;
}

/* SVG path draw animation */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s ease-out;
}

.draw-path.animate {
    stroke-dashoffset: 0;
}

.draw-text {
    transition: opacity 1s ease 2.5s;
}

.draw-text.animate {
    opacity: 1;
}

.end-domain {
    font-family: 'Share Tech Mono', monospace;
    font-size: 28px;
    color: #1BF5AF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(27, 245, 175, 0.4);
    margin-bottom: 24px;
}

.end-terminated {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #E8475C;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 48px;
    opacity: 0;
}

.end-terminated.blink-animate {
    animation: terminate-blink 0.5s step-end 6, terminate-hold 0s 3s forwards;
}

@keyframes terminate-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes terminate-hold {
    to { opacity: 1; }
}

.end-record {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #6B7F8E;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: absolute;
    bottom: 32px;
}

/* --- Fade Reveal Animation --- */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Data Grid Background --- */
.panel-3 .panel-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(27, 245, 175, 0.05) 39px, rgba(27, 245, 175, 0.05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(27, 245, 175, 0.05) 39px, rgba(27, 245, 175, 0.05) 40px);
    pointer-events: none;
    z-index: 0;
}

.panel-3 .panel-inner > * {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .panel-inner {
        padding: 60px 32px;
    }

    .panel-split {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        flex: 1 1 auto;
    }

    .classification-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .registry-row {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 8px;
        gap: 8px;
    }

    .hero-registration {
        font-size: clamp(18px, 5vw, 48px);
        letter-spacing: 0.15em;
    }

    #status-bar {
        padding: 0 24px;
        font-size: 11px;
    }

    .corner-bracket {
        width: 24px;
        height: 24px;
    }

    .corner-tl::before,
    .corner-tr::before,
    .corner-bl::before,
    .corner-br::before { width: 24px; }

    .corner-tl::after,
    .corner-tr::after,
    .corner-bl::after,
    .corner-br::after { height: 24px; }
}

@media (max-width: 480px) {
    .classification-grid {
        grid-template-columns: 1fr;
    }
}
