/*
 * Coding Ireland proprietary interactive activity
 * Copyright (c) 2017-2026 Coding Ireland. All rights reserved.
 *
 * Part of the Coding Ireland online learning platform. Licensed for use only
 * as delivered on the platform. Copying, redistributing, or adapting this
 * file, in whole or in part, for use in any other product or service is not
 * permitted. Ref: CI-maths-light-rays
 */

.lr-stage { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.lr-scene { flex: 1 1 380px; min-width: 300px; height: auto; background: #f8fbff; border-radius: 8px; }
.lr-side { flex: 0 1 258px; display: flex; flex-direction: column; gap: 12px; }

/* A ray reads as a ray: one weight, one colour, arrowheads showing which way the
   light is travelling. The outgoing ray is the same colour on purpose — it is the
   same light, and colouring it differently invites the idea that it changed. */
.lr-ray { stroke: #f59e0b; stroke-width: 4; stroke-linecap: round; }
.lr-ray--out { stroke: #f59e0b; }
.lr-ray--white { stroke: #cbd5e1; stroke-width: 5; }
.lr-arrowhead { fill: #f59e0b; }
.lr-normal { stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 6 5; }
.lr-mirror { fill: #cfe3f5; stroke: #5b7c9d; stroke-width: 2; }
.lr-water { fill: #dbeeff; }
.lr-surface { stroke: #5b9bd5; stroke-width: 3; }
.lr-prism { fill: rgba(255,255,255,0.75); stroke: #94a3b8; stroke-width: 2.5; }
.lr-band { stroke-width: 5; stroke-linecap: round; }
.lr-torch { fill: #fde68a; stroke: #b45309; stroke-width: 2.5; }
.lr-arcin { fill: none; stroke: #b45309; stroke-width: 2; }
.lr-arcout { fill: none; stroke: #0e7490; stroke-width: 2; }

/* The eye's assumption is drawn as a ghost: dashed, pale, clearly not the light. */
.lr-apparent { stroke: #64748b; stroke-width: 2.5; stroke-dasharray: 7 6; }
.lr-ghost { fill: #e2e8f0; stroke: #64748b; stroke-width: 2; stroke-dasharray: 4 4; }
.lr-real { fill: #1565c0; stroke: #0d3f7a; stroke-width: 2; }

.lr-tag { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; fill: #334155; }
.lr-tag--dim { fill: #64748b; font-weight: 600; }
.lr-tag--ghost { fill: #64748b; font-weight: 600; font-style: italic; }

.lr-readouts { display: flex; gap: 8px; }
.lr-read { flex: 1; background: #fff; border: 2px solid #d9e6f2; border-radius: 10px; padding: 6px 8px; text-align: center; }
.lr-read-label { font-size: 11px; font-weight: 700; color: #64748b; line-height: 1.2; }
.lr-read-val { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 22px; color: #163a5f; }
.lr-verdict { margin: 0; font-size: 13.5px; line-height: 1.45; color: #334155; }

.lr-ctl-label { display: block; font-weight: 700; font-size: 13.5px; color: #163a5f; margin-bottom: 4px; }
.lr-control input[type="range"] { width: 100%; }
.lr-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; color: #163a5f; }

.lr-chips { display: flex; gap: 6px; }
.lr-chip {
    flex: 1; border: 2px solid #cbd5e1; background: #fff; border-radius: 999px;
    padding: 6px 4px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px;
    color: #334155; cursor: pointer;
}
.lr-chip.is-on { background: #1565c0; border-color: #1565c0; color: #fff; }

.lr-guided { background: #f8fafc; border-left: 4px solid #1565c0; border-radius: 8px; padding: 10px 12px; }
.lr-guided-text { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #1e293b; }
.lr-guided-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lr-guided-count { font-size: 12px; color: #64748b; white-space: nowrap; }

.lr-your-turn {
    margin-top: 16px; background: #fffaf0; border-left: 4px solid #dd6b20;
    border-radius: 8px; padding: 10px 14px;
}
.lr-your-turn-label { font-weight: 800; color: #9a3412; font-size: 13px; margin-bottom: 4px; }
#yourTurnList { margin: 0; padding-left: 18px; font-size: 14px; color: #334155; }

body.display-mode .activity-header,
.activity-container.display-mode .activity-header { display: none; }
body.display-mode .lr-scene { flex-basis: 440px; }
body.display-mode .lr-read-val { font-size: 26px; }
body.display-mode .lr-verdict { font-size: 15px; }

@media (max-width: 560px) {
    .lr-side { flex-basis: 100%; }
    .lr-read-val { font-size: 19px; }
}

/* Shadow scene. The shadow is solid and the grazing rays are pale, so what the eye
   follows is the boundary the object created rather than the rays themselves. */
.lr-screen { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 2; }
.lr-shadow { fill: #334155; }
.lr-object { fill: #1565c0; stroke: #0d3f7a; stroke-width: 2; }
.lr-ray--graze { stroke: #fcd9a0; stroke-width: 3; }
/* An eye, for "how we see": light arrives here and nothing leaves. */
.lr-eye-white { fill: #fff; stroke: #475569; stroke-width: 2; }
.lr-eye-iris { fill: #6b9ac4; }
.lr-eye-pupil { fill: #1e293b; }
/* Four chips need to stay tappable on a narrow tablet. */
.lr-chips { flex-wrap: wrap; }
.lr-chip { flex: 1 1 44%; }
