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

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

html {
    --r: 5px;
    --o: calc(-1*var(--r));
    --back-c: #1a1a1a;
    --line-c: #3b3b3b;
    box-sizing: border-box;
    border: solid 2em transparent;
    height: 100vh;
    overflow: hidden;
    background: 
        radial-gradient(var(--r) at var(--r) var(--r), 
                var(--back-c) calc(100% - 2px), 
                var(--line-c) calc(100% - 1px), 
                transparent) var(--o) var(--o), 
        conic-gradient(from 90deg at 1px 1px, 
                transparent 25%, var(--line-c) 0%);
    background-color: var(--back-c);
}

body {
    font-family: 'Outfit', 'Arial Black', sans-serif;
    background: transparent;
    color: #ffffff;
    line-height: 1.6;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

header {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: onAirFlash 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

@keyframes onAirFlash {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.2;
        transform: scale(0.95);
    }
}

.live-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #888888;
}

header h1 {
    font-size: 68px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 14px;
    text-transform: uppercase;
    font-family: 'Outfit', 'Impact', sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

@media (max-width: 900px) {
    header h1 {
        font-size: 48px;
        letter-spacing: 8px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#release-phase {
    margin-bottom: 0;
    padding-bottom: 2em;
}

.phase {
    animation: fadeIn 0.3s ease-in;
}

.phase.hidden {
    display: none;
}

.release-phase-active header {
    display: none;
}

.release-phase-active footer {
    display: none;
}

#terminal-phase ~ footer {
    display: none;
}

/* Terminal Phase */
#terminal-phase {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 100;
    overflow: auto;
}

.terminal-output {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', monospace;
    font-size: 18px;
    line-height: 1.5;
    color: #c0c0c0;
    margin: 4em;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-output .user {
    color: #4ade80;
}

.terminal-output .path {
    color: #60a5fa;
}

.terminal-output .command {
    color: #e4e4e7;
}

.terminal-output .success {
    color: #86efac;
}

.terminal-output .highlight {
    color: #fbbf24;
}

.blink {
    opacity: 1;
    animation: blink 1s linear infinite;
    color: #d4d4d4;
}

@keyframes blink {
    0.01% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    50.01% {
        opacity: 1;
    }
}

.scanline {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.status-bar {
    background: #252525;
    border: 1px solid #333333;
    padding: 12px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.status-label {
    font-weight: 700;
    color: #666666;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.status-value {
    color: #ffffff;
    font-size: 13px;
}

.countdown-display {
    text-align: center;
    margin: 0;
}

.countdown-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .countdown-boxes {
        gap: 10px;
    }
    
    .countdown-separator {
        display: none;
    }
}

.countdown-box {
    background: #252525;
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 40px 50px;
    min-width: 200px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.countdown-number {
    font-size: 84px;
    font-weight: 600;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666666;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(102, 102, 102, 0.2);
}

.countdown-separator {
    font-size: 64px;
    font-weight: 900;
    color: #666666;
    margin: 0 -10px;
    align-self: flex-start;
    margin-top: 40px;
}

.release-header {
    text-align: center;
    padding: 25px 0 40px;
}

.release-title {
    font-size: 11px;
    letter-spacing: 6px;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding: 0 60px;
    display: inline-block;
    text-shadow: 0 0 8px rgba(102, 102, 102, 0.3);
}

.release-title::before,
.release-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: #444444;
}

.release-title::before {
    left: 0;
}

.release-title::after {
    right: 0;
}

.classified-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: #666666;
    text-transform: uppercase;
    position: relative;
    padding: 0 15px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(102, 102, 102, 0.2);
    display: inline-block;
}

.classified-label::before,
.classified-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #333333;
}

.classified-label::before {
    left: -45px;
}

.classified-label::after {
    right: -45px;
}

.document-viewer {
    background: #1f1f1f;
    border: 1px solid #333333;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 0;
    max-width: calc(100% - 4em);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.document-header {
    border-bottom: 1px solid #333333;
    padding: 20px 30px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.document-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    color: #888888;
}

.document-filename {
    font-size: 13px;
    color: #888888;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(136, 136, 136, 0.2);
}

.document-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.classification {
    background: transparent;
    padding: 4px 10px;
    border: 1px solid #b8860b;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #daa520;
    font-weight: 600;
    font-size: 10px;
    font-family: 'Outfit', 'Courier New', monospace;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.timestamp {
    color: #666666;
    padding: 6px 0;
}

.document-body {
    font-size: 17px;
    line-height: 2;
    white-space: pre-wrap;
    position: relative;
    font-family: 'Outfit', monospace;
    font-weight: 400;
    color: #999999;
    padding: 30px;
}

.document-body p {
    margin-bottom: 15px;
}

.document-body .emphasis {
    color: #ff4444;
    font-weight: 700;
}

.document-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #333333;
    border-radius: 8px;
}

.document-image-caption {
    font-size: 12px;
    color: #666666;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #ffffff;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

.redaction {
    background: #0f0f0f;
    color: #0f0f0f;
    padding: 0 4px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.4s ease;
    border-radius: 2px;
    display: inline-block;
}

.redaction:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #999999;
}

.redaction.ascii-active {
    color: #999999;
    background: rgba(0, 0, 0, 0.2);
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 36px;
    border: 2px solid #333333;
    background: #252525;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover:not(:disabled) {
    background: #333333;
    border-color: #444444;
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1a1a;
}

.btn-primary:hover:not(:disabled) {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

/* Bubble Button Effect */
.button--bubble {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
}

.btn-secondary.button--bubble {
    color: #ffffff;
}

.btn-primary.button--bubble {
    color: #1a1a1a;
}

.button--bubble:hover:not(:disabled) {
    background: none;
}

.button--bubble:hover:not(:disabled) + .button--bubble__effect-container .circle {
    background: #444444;
}

.button--bubble.btn-primary:hover:not(:disabled) + .button--bubble__effect-container .circle {
    background: #e0e0e0;
}

.button--bubble:hover:not(:disabled) + .button--bubble__effect-container .effect-button {
    background: #444444;
}

.button--bubble.btn-primary:hover:not(:disabled) + .button--bubble__effect-container .effect-button {
    background: #e0e0e0;
}

.button--bubble:active:not(:disabled) + .button--bubble__effect-container {
    transform: scale(0.95);
}

.button--bubble__container {
    position: relative;
    display: inline-block;
}

.button--bubble__container .effect-button {
    position: absolute;
    width: 50%;
    height: 25%;
    top: 50%;
    left: 25%;
    z-index: 1;
    transform: translateY(-50%);
    background: #252525;
    transition: background 0.1s ease-out;
    border-radius: 8px;
}

.button--bubble__container:has(.btn-primary) .effect-button {
    background: #ffffff;
}

.button--bubble__effect-container {
    position: absolute;
    display: block;
    width: 200%;
    height: 400%;
    top: -150%;
    left: -50%;
    filter: url("#goo");
    -webkit-filter: url("#goo");
    transition: all 0.1s ease-out;
    pointer-events: none;
}

.button--bubble__effect-container .circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 15px;
    background: #252525;
    transition: background 0.1s ease-out;
}

.button--bubble__container:has(.btn-primary) .circle {
    background: #ffffff;
}

.button--bubble__effect-container .circle.top-left {
    top: 40%;
    left: 27%;
}

.button--bubble__effect-container .circle.bottom-right {
    bottom: 40%;
    right: 27%;
}

.goo {
    position: absolute;
    visibility: hidden;
    width: 1px;
    height: 1px;
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: auto;
}

.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 54px;
    height: 54px;
}

.social-icon:hover {
    color: #ffffff;
}

.disclaimer {
    color: #666666;
    font-size: 11px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* Missing Poster Styles */
.document-body .missing-poster {
    background: #252525;
    border: 2px solid #3a3a3a;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
}

.missing-poster .missing-header {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 12px;
    color: #ff4444;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3a3a3a;
}

.missing-poster .missing-image-container {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    padding: 15px;
    margin-bottom: 30px;
}

.missing-poster .missing-image {
    width: 100%;
    display: block;
    filter: grayscale(100%);
}

.missing-poster .missing-name {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.missing-poster .missing-species {
    text-align: center;
    font-size: 14px;
    color: #888888;
    margin-bottom: 30px;
}

.missing-poster .missing-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.missing-poster .missing-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
    margin-bottom: 5px;
}

.missing-poster .missing-value {
    font-size: 14px;
    color: #cccccc;
}

.missing-poster .missing-highlight {
    color: #ff4444;
    font-weight: 700;
}

.missing-poster .missing-section {
    margin-bottom: 25px;
}

.missing-poster .missing-status {
    font-size: 24px;
    font-weight: 900;
    color: #ff4444;
    letter-spacing: 4px;
}

.missing-poster .missing-description,
.missing-poster .missing-notes {
    font-size: 14px;
    line-height: 1.6;
    color: #aaaaaa;
}

.missing-poster .missing-phone {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #ff4444;
    letter-spacing: 3px;
    margin: 20px 0;
}

.missing-poster .missing-subtext {
    text-align: center;
    font-size: 10px;
    color: #666666;
    line-height: 1.6;
}

.missing-poster .missing-footer {
    text-align: center;
    font-size: 11px;
    color: #555555;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}