/* ==========================================================================
   Monochrome Core Structural Design System Tokens
   ========================================================================== */

body {
    background-color: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Unified Layout Card Elements */
.minimal-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0px; /* Sharp modernist minimalist edges */
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0px #000000; /* Flat clean vector depth */
}

/* Global Button System */
.mono-btn-primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mono-btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.mono-btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.mono-btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Badge System */
.monochrome-badge {
    background: #000000;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 12px;
}

/* ==========================================================================
   1. Eye Tracker Calibration & Overlay Layer Configuration
   ========================================================================== */
.calibration-instruction-card {
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    padding: 24px 32px;
    max-width: 480px;
    width: 90%;
    position: absolute;
    top: 55%; /* Shifted down past mid-axis line to remain clear of point elements */
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 8px 8px 0px #888888;
}

.calibration-instruction-card h3 {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
    font-size: 16px;
}

.calibration-instruction-card ol {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Simulation Interface Blocks */
.simulation-gateway-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.gateway-card-inner {
    max-width: 580px;
    width: 90%;
}

.stat-callout-box {
    display: flex;
    gap: 20px;
    background: #f3f4f6;
    border-left: 6px solid #000000;
    padding: 16px;
    margin: 20px 0;
    align-items: center;
}

.stat-box-number {
    font-size: 28px;
    font-weight: 800;
}

.stat-box-desc {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   2. Braille System Workstation Layout Elements
   ========================================================================== */
.game-content-section {
    padding: 60px 0;
    border-top: 3px solid #000000;
}

.section-header h1 {
    font-size: 32px;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.section-header .subtitle {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

/* Instruction Onboarding Module */
.instructions-manual-card h3 {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
}

.instructions-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: start;
}

.step-num {
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333333;
}

/* Form inputs & Mode Switchers */
.controls-row input[type="text"] {
    border: 2px solid #000000;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

.mode-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.mode-btn.active {
    background: #000000;
    color: #ffffff;
}

.hint-btn-override {
    width: 100%;
    margin-top: 16px;
}

/* ==========================================================================
   3. Photo Submission Stream Elements
   ========================================================================== */
.gallery-content-section {
    padding: 60px 0;
    border-top: 3px solid #000000;
    background-color: #fafafa;
}

.gallery-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0px;
    box-shadow: 4px 4px 0px #000000;
}

/* ==========================================================================
   Structural Alignment & Interface Component Corrections
   ========================================================================== */

/* Minimize Feature Styles */
.card-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 6px;
    gap: 20px;
}

.card-header-toggle h3 {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.minimize-toggle-action {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.minimize-toggle-action:hover {
    background: #555555;
}

/* Restored Braille Game Workspace Matrix Styling */
.game-flexible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
    width: 100%;
}

.matrix-game-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 340px; /* Standardize card box scales uniformly */
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    border-bottom: 2px solid #f3f4f6;
    width: 100%;
    padding-bottom: 8px;
    text-align: left;
}

/* Horizontal Physical Keyboard Wrapper Configurations */
.keyboard-card {
    padding: 24px !important;
}

.keyboard-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.key-deck {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 650px;
}

.key-cap {
    flex: 1;
    min-width: 45px;
    height: 55px;
    border: 2px solid #000000;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.key-cap span {
    font-size: 10px;
    color: #888888;
    margin-top: 2px;
}

.key-spacer {
    width: 24px;
    flex-shrink: 0;
}

/* ==========================================================================
   CSS Scroll-Snap Framework & Interface Overhaul
   ========================================================================== */

/* 1. Core Scroll Locking Setup */
html {
    scroll-behavior: smooth;
}

.scroll-snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    margin: 0;
    background-color: #ffffff;
}

.snap-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: normal; /* Enables scrolling past without interacting */
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Flex Container Height Balancing Rules */
.container-full-height {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. Corrected Braille Pin Array Core Layout System
   ========================================================================== */
.braille-container-cell {
    display: flex;
    justify-content: center;
    gap: 48px; /* Spacing between the left column and right column */
    padding: 24px;
    background: #ffffff;
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
}

.braille-column {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Vertical gap between dots in the same column */
}

.dot-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 65px;
}

/* Center Pin Nodes Graphics Engine Tokens */
.dot-node {
    width: 28px;
    height: 28px;
    border: 2px solid #000000;
    border-radius: 50%;
    background-color: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

/* Active Pin Display State */
.dot-node.active {
    background-color: #000000 !important;
}

/* Beginner Mode Guideline Hint Target State */
.dot-node.guideline-target {
    border: 2px dashed #cccccc;
    background-color: #f9fafb;
}

.dot-label {
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    width: 12px;
    text-align: center;
}

/* Word tracking queue font styling updates */
#wordDisplay {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    font-family: monospace;
    font-size: 22px;
    letter-spacing: 2px;
}

.char-past {
    color: #cccccc;
    text-decoration: line-through;
}

.char-current {
    color: #000000;
    font-weight: 800;
    border-bottom: 3px solid #000000;
}

/* Keyboard Pressed Animation Overrides */
.key-cap.pressed {
    background: #000000 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Cinematic Presentation & Multi-Track System Layout Styles
   ========================================================================== */

/* Section 1: Title Card Layout */
.title-card-section {
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.title-card-content {
    max-width: 800px;
    padding: 0 40px;
}

.main-cinematic-title {
    font-size: clamp(42px, 8vw, 84px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    line-height: 0.95;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: #ffffff;
    margin: 24px auto;
}

.project-credits-sub {
    font-size: clamp(16px, 3vw, 24px);
    color: #cccccc;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
}

.project-credits-sub strong {
    color: #ffffff;
}

.author-attribution {
    font-size: clamp(13px, 2vw, 16px);
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.scroll-indicator-arrow {
    margin-top: 80px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555555;
    animation: bouncePulse 2s infinite ease-in-out;
}

/* Section 3: Full-Screen Video Presentation Engine Layer */
.cinematic-video-section {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
}

.cinematic-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops cleanly to 100vh bounds without distortion */
    display: block;
}

/* Section 4: Game Padding & Layout Spacing System Adjustments */
.game-layout-adjustment {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.game-layout-adjustment .section-header {
    margin-bottom: 12px;
}

.game-layout-adjustment .instructions-manual-card {
    padding: 16px 24px !important;
    margin-bottom: 16px !important;
}

.game-layout-adjustment .game-flexible-grid {
    margin: 12px 0 !important;
    gap: 16px !important;
}

.game-layout-adjustment .matrix-game-card {
    min-height: 280px !important; /* Slightly lowered profile to prevent viewport clipping */
}

/* Design System Animation Models */
@keyframes bouncePulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(6px); opacity: 0.9; }
}

/* ==========================================================================
   Section 2: Vimeo Optimization & Absolute Layering Rules
   ========================================================================== */

.vimeo-intrinsic-box {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

/* Force the third-party iframe element to safely crop and match container geometry */
.vimeo-intrinsic-box iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Strict 16:9 Aspect Ratio Metric Scaling Rule */
    min-height: 100vh;
    min-width: 177.78vh; /* Maintains clean aspect ratio scale fill on ultra-wide viewports */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Allows natural user mousewheel gestures to pass through without getting stuck inside the video clip */
}

/* Floating Credits Card Element System */
.video-credits-overlay-panel {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    max-width: 360px;
    width: calc(100% - 80px);
}

.credits-inner-card {
    background: rgba(255, 255, 255, 0.90) !important; /* Elegant subtle transparency blur layer overlaying the cinema feed */
    backdrop-filter: blur(8px);
    margin-bottom: 0 !important;
}

.credits-inner-card h3 {
    margin: 4px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 20px;
}

.credits-divider-line {
    width: 100%;
    height: 2px;
    background: #000000;
    margin-bottom: 16px;
}

.credit-row-item {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: #222222;
}

.credit-row-item-luck {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666666;
    margin: 16px 0 0 0;
    font-weight: 700;
}

/* Mobile Layout Responsive Adaptations */
@media (max-width: 768px) {
    .video-credits-overlay-panel {
        bottom: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }
}

.vimeo-external-redirect-link {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    padding: 10px 16px;
    box-sizing: border-box;
    width: 100%;
}

.vimeo-external-redirect-link:hover {
    color: #000000 !important;
    background: #ffffff !important;
    border: 2px solid #000000;
}