/*
 * Presentation view (unified platform R4.7; task 1.8). Large-screen type: body text 28px+
 * at 1920x1080, scaling with the viewport. No controls. Brand colors from desktop.css.
 */

body.presentation-mode {
    margin: 0;
    background: #fff;
}

body.presentation-mode .connection-status {
    display: none !important;
}

body.presentation-mode #main-content {
    padding: 0;
    max-width: none;
}

.present-root {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    padding: 5vh 6vw;
    color: #1f2937;
    font-size: max(28px, 1.6vw);
    line-height: 1.35;
    text-align: center;
}

.present-logo {
    width: min(36vw, 640px);
    height: auto;
}

.present-join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6vw;
    flex-wrap: wrap;
}

.present-qr {
    width: min(38vh, 520px);
    height: auto;
    image-rendering: pixelated;
    background: #fff;
}

.present-join-text {
    text-align: left;
}

.present-lesson-name {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 0.6em;
}

.present-label {
    margin: 0;
    color: #4b5563;
}

.present-number {
    margin: 0.1em 0 0.4em;
    font-size: 3.6em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1f3b73;
}

.present-hint {
    margin: 0;
    max-width: 22em;
    color: #374151;
}

.present-service-title {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    color: #1f3b73;
    text-transform: none;
}

.present-message {
    font-size: 1.4em;
    margin: 0;
}

.present-footer {
    position: fixed;
    bottom: 3vh;
    right: 4vw;
    margin: 0;
    color: #4b5563;
}

/* ngager pulse on the projector (task 3.6): donut and anonymous circles, no interaction. */
.present-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    width: 100%;
}
.present-pulse-canvas {
    position: relative;
    flex: 1 1 auto;
    max-width: 68vw;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}
.present-pulse-svg {
    display: block;
    width: 100%;
    height: auto;
}
.present-pulse-circle {
    stroke: #1f2937;
    stroke-width: 1.5;
    transition: fill 300ms ease;
}
.present-pulse-circle--away {
    opacity: 0.4;
    stroke-dasharray: 4 3;
}
.present-pulse-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 2em;
    color: #4b5563;
}
.present-pulse-empty[hidden] {
    display: none;
}
.present-pulse-side {
    flex: 0 0 auto;
    text-align: left;
    font-size: 0.8em;
}
.present-pulse .pulse-donut-graphic svg {
    width: min(20vw, 22vh, 380px);
    height: auto;
}
.present-pulse-note {
    margin: 0.6em 0 0;
    color: #4b5563;
}
@media (prefers-reduced-motion: reduce) {
    .present-pulse-circle {
        transition: none;
    }
}

/* ngager vibe on the projector (task 4.5): wall and one enlarged item, no controls. */
.present-vibe {
    width: 100%;
}
.present-vibe-wall {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(30vw, 420px), 1fr));
    gap: 2vh 1.5vw;
    text-align: left;
}
.present-vibe-card {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    padding: 0.8em 1em;
    border: 2px solid #d1d5db;
    border-left: 8px solid #1f3b73;
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.85em;
    overflow: hidden;
    max-height: 32vh;
}
.present-vibe-card--new {
    animation: present-vibe-in 500ms ease-out;
}
@keyframes present-vibe-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.present-vibe-text,
.present-vibe-caption,
.present-vibe-big-text,
.present-vibe-big-caption {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.present-vibe-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.present-vibe-caption {
    font-style: italic;
    color: #374151;
}
.present-vibe-name,
.present-vibe-big-name {
    margin: 0;
    font-weight: 700;
    color: #1f3b73;
}
.present-vibe-thumb {
    max-width: 100%;
    max-height: 18vh;
    width: auto;
    height: auto;
    object-fit: contain;
    align-self: flex-start;
    border-radius: 8px;
}
.present-vibe-empty {
    color: #4b5563;
}
.present-vibe-empty[hidden],
.present-vibe-thumb[hidden] {
    display: none;
}
.present-selected {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 6vw;
    background: #ffffff;
}
.present-vibe-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    max-width: 90vw;
    text-align: center;
}
.present-vibe-big-image {
    max-width: 88vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.present-vibe-big-text {
    font-size: max(40px, 2.6vw);
    line-height: 1.3;
}
.present-vibe-big-caption {
    font-size: max(32px, 2vw);
    font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
    .present-vibe-card--new {
        animation: none;
    }
}

/* ngager ask on the projector (task 5.4): the selected question in large text. */
.present-ask {
    max-width: 85vw;
    text-align: center;
}
.present-ask-label {
    margin: 0 0 3vh;
    color: #1f3b73;
    font-weight: 700;
    font-size: 1.1em;
}
.present-ask-text {
    margin: 0;
    font-size: max(44px, 3vw);
    line-height: 1.3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
