/* === GAMELICENSOR.PRO - Contraband Inspection Checkpoint === */

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

:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #141419;
    --surface-card: #1A1A22;
    --uv-scanner: #7B2FBE;
    --auth-pass: #39FF7B;
    --safety-warning: #FF6B1A;
    --failure-flag: #FF3B3B;
    --text-primary: #E8E8E8;
    --text-secondary: #A0A0A8;
    --classification-redact: #2A2A32;
    --holo-cyan: #00B4D8;
    --split-position: 38%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.7;
    overflow-x: hidden;
}

/* === INSPECTOR ACCESS (Fixed Top-Right) === */
.inspector-access {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1000;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--safety-warning);
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid var(--safety-warning);
    transition: background 0.3s, color 0.3s;
}

.inspector-access:hover {
    background: var(--safety-warning);
    color: var(--bg-primary);
}

/* === PERSISTENT VERTICAL SPLIT LINE === */
.split-line {
    position: fixed;
    top: 0;
    left: var(--split-position);
    width: 1px;
    height: 100vh;
    background: var(--classification-redact);
    z-index: 50;
    transition: left 0.6s ease, opacity 0.4s ease;
    pointer-events: none;
}

.split-line.hidden {
    opacity: 0;
}

.split-line.inverted {
    left: 62%;
}

/* === SCANNER BAR === */
.scanner-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: var(--uv-scanner);
    box-shadow: 0 0 12px var(--uv-scanner), 0 0 24px rgba(123, 47, 190, 0.3);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.scanner-bar.scanning {
    animation: scanDown 1.8s ease-in-out forwards;
}

@keyframes scanDown {
    0% { top: 0; opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* === SECTION 1: THE INTAKE WINDOW === */
.intake {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.intake-content {
    position: absolute;
    top: 25%;
    left: var(--split-position);
    padding-left: 24px;
}

.domain-title {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.1;
}

.domain-ext {
    color: var(--uv-scanner);
}

.custody-tag {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px dashed #5A5A64;
    border-radius: 2px;
    padding: 10px 14px;
    margin-top: 24px;
    max-width: 420px;
}

.tag-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--safety-warning);
}

.tag-serial {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #5A5A64;
    letter-spacing: 0.05em;
}

/* Intake scanner bar at bottom 10% */
#intakeScanner {
    position: absolute;
    bottom: 10%;
    top: auto;
    height: 2px;
    animation: pulseScan 3s ease-in-out infinite;
}

@keyframes pulseScan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* === SECTION 2: THE EVIDENCE SHELF === */
.evidence-shelf {
    position: relative;
    min-height: 100vh;
    display: flex;
}

.col-left {
    width: 38%;
    background: var(--bg-primary);
    padding: 60px 24px;
    position: relative;
}

.col-right {
    width: 62%;
    background: var(--bg-secondary);
    padding: 60px 40px;
    position: relative;
}

/* Evidence bag texture */
.col-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, #1E1E28 0px, #1E1E28 1px, transparent 1px, transparent 6px),
        repeating-linear-gradient(135deg, #1A1A22 0px, #1A1A22 1px, transparent 1px, transparent 6px);
    opacity: 0.35;
    pointer-events: none;
}

.inspection-tray {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specimen-card {
    background: var(--surface-card);
    height: 80px;
    padding: 16px 18px;
    border-left: 3px solid var(--safety-warning);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: border-color 0.3s;
}

.specimen-card:hover {
    border-left-color: var(--auth-pass);
}

.card-label {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.card-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: #5A5A64;
    text-transform: uppercase;
}

.section-tag {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* === CARTRIDGE INSPECTION === */
.cartridge-inspection {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
}

.cartridge {
    position: relative;
    width: 240px;
    height: 320px;
}

.cartridge-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2A2A36 0%, #1E1E2A 60%, #16161E 100%);
    border-radius: 8px 8px 4px 4px;
    border: 2px solid #3A3A44;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cartridge-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none;
}

.cartridge-label {
    background: var(--bg-primary);
    border: 1px solid #3A3A44;
    padding: 16px 20px;
    text-align: center;
    width: 80%;
}

.cartridge-title {
    display: block;
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.cartridge-sub {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: #5A5A64;
    margin-top: 4px;
}

.cartridge-slot {
    width: 60%;
    height: 12px;
    background: #0A0A0F;
    border-radius: 2px;
    border: 1px solid #2A2A32;
}

/* Holographic Security Sticker */
.holo-sticker {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 2px;
    background: conic-gradient(
        from var(--holo-angle, 0deg),
        #7B2FBE 0deg,
        #39FF7B 90deg,
        #FF6B1A 180deg,
        #00B4D8 270deg,
        #7B2FBE 360deg
    );
    transition: --holo-angle 2s ease;
    cursor: pointer;
}

.holo-sticker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1px;
}

.holo-small {
    position: relative;
    top: auto;
    right: auto;
    width: 64px;
    height: 64px;
    margin-top: 20px;
}

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.inspection-notes {
    text-align: left;
    width: 100%;
    max-width: 340px;
}

.inspection-notes p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.redacted {
    background: var(--classification-redact);
    border-radius: 1px;
    color: transparent;
    display: inline-block;
    min-width: 80px;
}

.status-pass {
    color: var(--auth-pass);
    font-weight: 500;
}

.status-flag {
    color: var(--failure-flag);
    font-weight: 500;
}

/* === TAMPER-EVIDENT SEALS === */
.tamper-seal {
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        var(--safety-warning) 0px,
        var(--safety-warning) 4px,
        transparent 4px,
        transparent 8px
    );
    background-size: 12px 12px;
    transition: background-position 0.3s;
}

.tamper-seal.broken {
    animation: tamperShift 0.3s ease forwards;
}

@keyframes tamperShift {
    to { background-position: 2px 0; }
}

/* === SECTION 3: SPECTRAL ANALYSIS BAND === */
.spectral-analysis {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.spectral-band {
    flex: 1;
    position: relative;
    background: linear-gradient(
        90deg,
        var(--bg-primary) 0%,
        var(--uv-scanner) 20%,
        var(--auth-pass) 45%,
        var(--safety-warning) 70%,
        var(--bg-primary) 100%
    );
    display: flex;
    align-items: center;
    min-height: 50vh;
    padding: 60px 0;
}

.spectral-text {
    position: absolute;
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spectral-heading {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--bg-primary);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.spectral-detail {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--bg-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Marquee Strip */
.marquee-strip {
    height: 40px;
    background: var(--bg-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-content span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #5A5A64;
    letter-spacing: 0.05em;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === SECTION 4: THE CLEARANCE VERDICT === */
.clearance-verdict {
    position: relative;
    min-height: 100vh;
    display: flex;
}

.col-left-wide {
    width: 62%;
    background: var(--bg-secondary);
    padding: 80px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.col-right-narrow {
    width: 38%;
    background: var(--bg-primary);
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

/* Stamp */
.stamp-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10%;
    margin-bottom: 40px;
}

.stamp-bg {
    position: absolute;
}

.stamp-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.verdict-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--auth-pass);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verdict-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--auth-pass);
    text-transform: uppercase;
    opacity: 0.7;
}

.verdict-details {
    max-width: 480px;
    margin-left: 10%;
}

.verdict-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Summary Stack */
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--classification-redact);
}

.summary-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5A5A64;
}

.summary-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* === SECTION 5: THE ARCHIVE FOOTER === */
.archive-footer {
    position: relative;
    min-height: 80vh;
    background: var(--bg-primary);
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.archive-codes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-codes span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5A5A64;
}

.archive-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 2px solid var(--classification-redact);
    padding: 20px;
}

.address-stamp {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.address-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #5A5A64;
}

.archive-serial {
    padding-top: 20px;
    border-top: 1px solid var(--classification-redact);
}

.archive-serial span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: #3A3A44;
    letter-spacing: 0.05em;
}

/* === STENCIL STAMP BACKGROUND FOR HEADERS === */
.evidence-shelf .col-right::after,
.clearance-verdict .col-left-wide::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px dashed var(--classification-redact);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .split-line {
        display: none;
    }

    .evidence-shelf,
    .clearance-verdict {
        flex-direction: column;
    }

    .col-left, .col-right,
    .col-left-wide, .col-right-narrow {
        width: 100%;
    }

    .intake-content {
        left: 5%;
        padding-left: 0;
    }

    .spectral-text {
        position: relative;
        left: auto !important;
        width: 100%;
        padding: 16px 24px;
    }

    .spectral-band {
        flex-direction: column;
        padding: 30px 0;
    }
}
