/* ===========================================
   CSS CUSTOM PROPERTIES
   =========================================== */
:root {
    /* Colors */
    --bg: #fafafa;
    --bg-dark: #1a1a2e;
    --card-bg: #ffffff;
    --accent: #1a56db;
    --accent-light: #e8eefb;
    --accent-dark: #0f3285;
    --accent-green: #059669;
    --accent-green-light: #ecfdf5;
    --accent-amber: #d97706;
    --accent-amber-light: #fffbeb;
    --accent-red: #dc2626;
    --accent-red-light: #fef2f2;
    --accent-purple: #7c3aed;
    --accent-purple-light: #f3f0ff;
    --text: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border: #e5e7eb;

    /* Typography */
    --font-display: 'Cabinet Grotesk', sans-serif;
    --font-body: 'General Sans', sans-serif;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.7s;
}

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

html {
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===========================================
   16:9 CONTAINER — fills screen, letterbox on non-16:9
   =========================================== */
.presentation-viewport {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.presentation-frame {
    width: 100vw;
    height: calc(100vw * 9 / 16);
    max-height: 100vh;
    max-width: calc(100vh * 16 / 9);
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* ===========================================
   COVER SLIDE
   =========================================== */
.slide.slide-type-cover {
    background: linear-gradient(150deg, #060c1a 0%, #0d1a3a 55%, #091428 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cover-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(26, 86, 219, 0.18);
}

.cover-ring-1 { width: 65vw; height: 65vw; top: -22vw; right: -18vw; }
.cover-ring-2 { width: 44vw; height: 44vw; top: -6vw;  right: 1vw;   border-color: rgba(26, 86, 219, 0.1); }
.cover-ring-3 { width: 22vw; height: 22vw; top:  4vw;  right: 9vw;   border-color: rgba(26, 86, 219, 0.28); background: rgba(26, 86, 219, 0.04); }

.cover-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent-green) 70%, transparent 100%);
}

.cover-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(92%, 1000px);
    padding: 4%;
}

.cover-tag {
    display: inline-block;
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(96, 165, 250, 0.9);
    background: rgba(26, 86, 219, 0.12);
    border: 1px solid rgba(26, 86, 219, 0.3);
    border-radius: 100px;
    padding: 0.35em 1.2em;
    margin-bottom: clamp(1rem, 2vh, 1.8rem);
}

.cover-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: clamp(1rem, 2vh, 1.8rem);
}

.cover-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    border-radius: 2px;
    margin: 0 auto clamp(1rem, 2vh, 1.8rem);
}

.cover-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: clamp(1.2rem, 3vh, 2.5rem);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.cover-pilot {
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===========================================
   SLIDE CONTAINER
   =========================================== */
.slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5% 5%;
    overflow: hidden;
}

/* Slide with floor plan legend bar */
.slide.has-legend .slide-content {
    padding-top: 0;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
/* Slide type label (Problem / Solution) */
.slide-type-badge {
    display: inline-block;
    font-size: clamp(0.55rem, 0.7vw, 0.65rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.2em 0.65em;
    margin-bottom: 0.5rem;
}

.badge-problem {
    background: var(--accent-red-light);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-solution {
    background: var(--accent-green-light);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

.accent-text { color: var(--accent); }
.green-text { color: var(--accent-green); }

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 0.7vw, 0.6rem);
}

.bullet-list li {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 1.5em;
    position: relative;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===========================================
   LAYOUT: TWO-COLUMN (Problem & Solution slides)
   =========================================== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch;
    flex: 1;
}

.col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* ===========================================
   FULL-CENTER LAYOUT (Title, Persona, Legend, Digital Signage)
   =========================================== */
.slide-center {
    text-align: center;
    max-width: min(92%, 1350px);
    margin: 0 auto;
}

.slide-center .subtitle {
    margin: 0.5rem auto 0;
}

.subtitle-ref {
    font-size: clamp(0.7rem, 0.95vw, 0.85rem);
    color: var(--text-muted);
    margin: 0.6rem auto 0;
}

.subtitle-ref a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(26, 86, 219, 0.35);
    text-underline-offset: 3px;
    font-weight: 500;
}

.subtitle-ref a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ===========================================
   CHIPS (accent pills on full-center slides)
   =========================================== */
.chip-row {
    display: flex;
    gap: clamp(0.4rem, 0.6vw, 0.6rem);
    flex-wrap: wrap;
    justify-content: center;
    margin: clamp(0.8rem, 1.5vh, 1.2rem) auto 0;
    max-width: 900px;
}

.chip {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.3em 1em;
    border-radius: 100px;
    font-size: clamp(0.6rem, 0.85vw, 0.75rem);
    font-weight: 600;
    border: 1px solid rgba(26, 86, 219, 0.2);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ===========================================
   STATS
   =========================================== */
.stats {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

a.stat:hover .stat-value {
    text-decoration: underline;
    text-decoration-color: var(--accent-light);
    text-underline-offset: 4px;
}

/* ===========================================
   PILLS
   =========================================== */
.pill {
    display: inline-block;
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    font-weight: 600;
    padding: 0.25em 0.8em;
    border-radius: 100px;
}

.pill.blue { background: var(--accent-light); color: var(--accent); }
.pill.green { background: var(--accent-green-light); color: var(--accent-green); }
.pill.amber { background: var(--accent-amber-light); color: var(--accent-amber); }
.pill.purple { background: var(--accent-purple-light); color: var(--accent-purple); }

/* ===========================================
   PERSONA CARD
   =========================================== */
.persona-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(1rem, 1.8vw, 1.6rem);
    max-width: min(92%, 1000px);
    margin: clamp(0.8rem, 1.5vh, 1.2rem) auto 0;
    text-align: left;
}

.persona-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.8rem, 1.2vw, 1.2rem);
    margin-bottom: clamp(0.8rem, 1.2vh, 1rem);
    padding-bottom: clamp(0.8rem, 1.2vh, 1rem);
    border-bottom: 1px solid var(--border);
}

.persona-avatar {
    width: clamp(36px, 3.5vw, 48px);
    height: clamp(36px, 3.5vw, 48px);
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.persona-header-text { flex: 1; }

.persona-name {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
}

.persona-desc {
    font-size: clamp(0.7rem, 0.95vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.3rem;
}

.persona-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
}

.persona-col-label {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.persona-col .bullet-list li {
    font-size: clamp(0.72rem, 1vw, 0.88rem);
}

.persona-col-leak {
    background: var(--accent-red-light);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 10px;
    padding: clamp(0.6rem, 1vw, 0.9rem);
}

.persona-col-leak .persona-col-label {
    color: var(--accent-red);
}

.persona-col-leak .bullet-list li {
    color: var(--accent-red);
}

.persona-col-leak .bullet-list li::before {
    background: var(--accent-red);
}

/* ===========================================
   PHONE BEZEL (screenshot container)
   =========================================== */
.phone-bezel {
    width: clamp(180px, 28vw, 380px);
    aspect-ratio: 9 / 19.5;
    max-height: calc(100vh - clamp(150px, 22vh, 220px) - 8vh);
    background: #111827;
    border-radius: clamp(24px, 2.5vw, 36px);
    padding: clamp(8px, 0.8vw, 14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-screen {
    width: 100%;
    flex: 1;
    border-radius: clamp(16px, 2vw, 26px);
    overflow: hidden;
    background: #f5f6f7;
    position: relative;
}


.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===========================================
   DASHBOARD FRAME (station-dashboard screenshots)
   =========================================== */
.dashboard-frame {
    width: clamp(480px, 65vw, 920px);
    aspect-ratio: 16 / 9;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1), 0 0 0 1px var(--border);
    overflow: hidden;
    position: relative;
}

.dashboard-titlebar {
    height: clamp(20px, 2vw, 28px);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border);
}

.dashboard-titlebar .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dashboard-titlebar .dot.red { background: #ef4444; }
.dashboard-titlebar .dot.yellow { background: #f59e0b; }
.dashboard-titlebar .dot.green { background: #22c55e; }

.dashboard-frame img {
    width: 100%;
    display: block;
}

/* Scale trick: iframe renders at 1/0.65 internal size, scaled down visually
   so the dashboard has ~1.54× more viewport to lay out its content.
   Positioned absolutely so height is dynamic (derived from the live frame height). */
.dashboard-frame iframe {
    position: absolute;
    top: clamp(20px, 2vw, 28px);  /* below the titlebar */
    left: 0;
    border: none;
    width: calc(100% / 0.65);
    height: calc((100% - clamp(20px, 2vw, 28px)) / 0.65);
    transform: scale(0.65);
    transform-origin: top left;
}

/* ===========================================
   MODULE IFRAME
   =========================================== */
.module-frame-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.7vw, 10px);
    height: 100%;
    width: 100%;
}

.module-frame-wrapper .phone-screen {
    aspect-ratio: 9 / 19.5;
}

.module-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.module-tab {
    font-family: var(--font-body);
    font-size: clamp(0.58rem, 0.78vw, 0.7rem);
    font-weight: 600;
    padding: 0.25em 0.9em;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.module-tab:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(26, 86, 219, 0.3);
}

.module-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===========================================
   SCREENSHOT CAROUSEL
   =========================================== */
.carousel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 0.8vw, 12px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(28px, 2.5vw, 36px);
    height: clamp(28px, 2.5vw, 36px);
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: clamp(-14px, -1.2vw, -18px);
}

.carousel-btn.next {
    right: clamp(-14px, -1.2vw, -18px);
}

.carousel-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ===========================================
   PLACEHOLDER (for slides without mockups)
   =========================================== */
.placeholder-visual {
    width: clamp(200px, 22vw, 300px);
    height: clamp(300px, 35vw, 420px);
    background: var(--accent-light);
    border: 2px dashed var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    text-align: center;
    padding: 1rem;
}

/* ===========================================
   FLOOR PLAN LEGEND BAR
   =========================================== */
.floor-plan-bar {
    width: 100%;
    height: clamp(150px, 22vh, 220px);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2%;
    flex-shrink: 0;
}

.floor-plan-bar svg {
    width: 100%;
    max-width: 800px;
    height: 100%;
}

/* Zone states in legend */
.zone-rect {
    transition: fill 0.4s ease, stroke 0.4s ease, filter 0.4s ease;
}

.zone-rect.active {
    filter: drop-shadow(0 0 6px rgba(26, 86, 219, 0.5));
}

.zone-rect.dim {
    opacity: 0.3;
}

.zone-label {
    font-family: 'Inter', 'General Sans', system-ui, sans-serif;
    font-size: 9px;
    font-weight: 600;
    fill: #475569;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.zone-label-sub {
    font-size: 7px;
    font-weight: 500;
    fill: #94a3b8;
}

/* Flow arrow (animated dashed path) */
.flow-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    animation: flowDash 1.5s linear infinite;
}

.flow-path.outflow {
    stroke: var(--accent-green);
}

@keyframes flowDash {
    to { stroke-dashoffset: -20; }
}

.flow-path.reverse {
    animation-direction: reverse;
}

/* Connector between floor sections */
.connector-path {
    stroke: #cbd5e1;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

/* Floor legend text */
.floor-legend {
    font-size: 7px;
    font-family: 'Inter', 'General Sans', system-ui, sans-serif;
    fill: #94a3b8;
}

/* Full-size floor plan (slide 3) */
.floor-plan-full {
    width: 100%;
    max-width: 1300px;
    height: clamp(280px, 42vh, 450px);
    margin: 0.5rem auto 0;
}

.floor-plan-full svg {
    width: 100%;
    height: 100%;
}

/* ===========================================
   REVEAL ANIMATIONS
   =========================================== */
.reveal {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--duration) var(--ease-out-expo),
                transform var(--duration) var(--ease-out-expo);
}

.reveal.fade-up { transform: translateY(30px); }
.reveal.fade-scale { transform: scale(0.92); }

.slide.active .reveal {
    opacity: 1;
    transform: translate(0) scale(1);
}

.slide.active .reveal:nth-child(1) { transition-delay: 0.08s; }
.slide.active .reveal:nth-child(2) { transition-delay: 0.18s; }
.slide.active .reveal:nth-child(3) { transition-delay: 0.28s; }
.slide.active .reveal:nth-child(4) { transition-delay: 0.36s; }
.slide.active .reveal:nth-child(5) { transition-delay: 0.44s; }

/* Glow pulse for active floor plan zones */
@keyframes zonePulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(26, 86, 219, 0.3)); }
    50% { filter: drop-shadow(0 0 10px rgba(26, 86, 219, 0.6)); }
}

.zone-rect.pulse {
    animation: zonePulse 2s ease-in-out infinite;
}

/* ===========================================
   PROGRESS BAR & SLIDE COUNTER
   =========================================== */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    z-index: 100;
    transition: width 0.4s var(--ease-out-expo);
    width: 0%;
}

.slide-counter {
    position: absolute;
    bottom: clamp(6px, 1vh, 12px);
    right: clamp(12px, 1.5vw, 20px);
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    color: var(--text-light);
    z-index: 100;
    font-variant-numeric: tabular-nums;
}

/* ===========================================
   SPEAKER NOTES PANEL
   =========================================== */
.speaker-notes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 30%;
    background: rgba(17, 24, 39, 0.92);
    color: rgba(255, 255, 255, 0.9);
    padding: clamp(8px, 1.5vh, 16px) clamp(16px, 2vw, 24px);
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    line-height: 1.6;
    overflow-y: auto;
    z-index: 200;
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out-expo);
}

.speaker-notes.visible {
    transform: translateY(0);
}

.speaker-notes strong {
    color: #93c5fd;
}

/* ===========================================
   PASSWORD GATE
   =========================================== */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-box {
    text-align: center;
    max-width: 380px;
    width: 90%;
}

.password-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.password-box .pw-subtitle {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.password-box input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--card-bg);
    outline: none;
    text-align: center;
    letter-spacing: 0.1em;
}

.password-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.password-box input.error {
    border-color: var(--accent-red);
    animation: shake 0.4s ease;
}

.password-box button {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.6rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.password-box button:hover { background: var(--accent-dark); }

.password-box .pw-error-msg {
    font-size: 0.8rem;
    color: var(--accent-red);
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.password-box .pw-footer {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

body.locked .presentation-viewport { display: none; }
body.locked { overflow: hidden; background: var(--bg); }

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.2s !important;
    }
}
