.scene { display: flex; flex-direction: column; align-items: center; gap: 0; } .traffic-light-housing { display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 30%, #252527 60%, #2e2e30 100%); padding: 22px 28px; border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 4px rgba(0, 0, 0, 0.4); border: 3px solid #1f1f21; position: relative; z-index: 1; } .traffic-light-housing::before { content: ''; position: absolute; top: 8px; left: 18px; right: 18px; height: 2px; background: rgba(255, 255, 255, 0.04); border-radius: 1px; pointer-events: none; } .traffic-light-housing::after { content: ''; position: absolute; bottom: 8px; left: 18px; right: 18px; height: 2px; background: rgba(0, 0, 0, 0.3); border-radius: 1px; pointer-events: none; } .light-section { position: relative; width: 130px; height: 130px; border-radius: 50%; background: #1a1a1c; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 -2px 4px rgba(255, 255, 255, 0.02), 0 0 0 5px #1f1f21, 0 0 0 8px #18181a; transition: box-shadow 0.35s ease, background 0.35s ease; display: flex; align-items: center; justify-content: center; overflow: hidden; } .light-section::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.03); pointer-events: none; z-index: 5; } .light-section.red { background: #1a1a1c; } .light-section.red.active { background: radial-gradient(circle at 50% 45%, #ff3535 0%, #cc1111 55%, #8b0000 100%); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 5px #1f1f21, 0 0 0 8px #18181a, 0 0 35px rgba(255, 30, 30, 0.7), 0 0 70px rgba(255, 0, 0, 0.45), 0 0 120px rgba(255, 0, 0, 0.25); } .light-section.yellow { background: #1a1a1c; position: relative; z-index: 2; } .light-section.yellow.active-yellow { background: radial-gradient(circle at 50% 45%, #ffe840 0%, #ffcc00 45%, #cc8800 100%); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 5px #1f1f21, 0 0 0 8px #18181a, 0 0 35px rgba(255, 200, 20, 0.7), 0 0 70px rgba(255, 170, 0, 0.45), 0 0 120px rgba(255, 150, 0, 0.25); } .light-section.yellow.showing-timer { background: #141416; box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.85), 0 0 0 5px #1f1f21, 0 0 0 8px #18181a; } .light-section.green { background: #1a1a1c; } .light-section.green.active { background: radial-gradient(circle at 50% 45%, #30ff50 0%, #00cc22 55%, #007714 100%); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 5px #1f1f21, 0 0 0 8px #18181a, 0 0 35px rgba(0, 220, 40, 0.7), 0 0 70px rgba(0, 200, 30, 0.45), 0 0 120px rgba(0, 180, 20, 0.25); } .timer-display { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; z-index: 10; opacity: 1; transition: opacity 0.25s ease; pointer-events: none; } .timer-display.hidden { opacity: 0; transition: opacity 0.15s ease; } .digit-svg { width: 42px; height: 68px; flex-shrink: 0; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.15)); transition: filter 0.3s ease; } .digit-svg .segment { fill: #2a2a2e; transition: fill 0.25s ease, filter 0.25s ease; } .timer-red .digit-svg .segment.lit { fill: #ff2525; filter: drop-shadow(0 0 5px rgba(255, 30, 30, 0.9)) drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); } .timer-green .digit-svg .segment.lit { fill: #00f838; filter: drop-shadow(0 0 5px rgba(0, 240, 40, 0.9)) drop-shadow(0 0 10px rgba(0, 200, 30, 0.5)); } .timer-red .digit-svg .segment:not(.lit), .timer-green .digit-svg .segment:not(.lit) { fill: #2e2e32; } @media (max-width: 600px) { .traffic-light-housing { gap: 8px; padding: 14px 16px; border-radius: 14px; } .light-section { width: 80px; height: 80px; } .light-section::after { inset: 3px; border-width: 1px; } .traffic-light-housing { border-width: 2px; } .light-section { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7), 0 0 0 3px #1f1f21, 0 0 0 5px #18181a; } .light-section.red.active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 0 3px #1f1f21, 0 0 0 5px #18181a, 0 0 20px rgba(255, 30, 30, 0.6), 0 0 40px rgba(255, 0, 0, 0.35); } .light-section.yellow.active-yellow { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 0 0 3px #1f1f21, 0 0 0 5px #18181a, 0 0 20px rgba(255, 200, 20, 0.6), 0 0 40px rgba(255, 170, 0, 0.35); } .light-section.green.active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 0 3px #1f1f21, 0 0 0 5px #18181a, 0 0 20px rgba(0, 220, 40, 0.6), 0 0 40px rgba(0, 200, 30, 0.35); } .digit-svg { width: 26px; height: 42px; } .timer-display { gap: 3px; } } @media (max-width: 380px) { .traffic-light-housing { gap: 4px; padding: 8px 10px; border-radius: 10px; } .light-section { width: 60px; height: 60px; } .digit-svg { width: 20px; height: 32px; } .timer-display { gap: 2px; } } .road-sign { box-sizing: border-box; width: 280px; height: 280px; background-color: #0039a6; border-radius: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px white, 0 0 0 8px black; } .arrow-down { position: relative; width: 52px; height: 130px; background-color: white; border-radius: 4px; transform: translateY(-35px); } .arrow-down::after { content: ""; position: absolute; bottom: -70px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 55px solid transparent; border-right: 55px solid transparent; border-top: 75px solid white; } .sign-wrapper { display: flex; flex-direction: column; align-items: center; } .info-plate { background-color: #ffffff; border: 4px solid #000000; border-radius: 8px; padding: 12px 28px; display: inline-block; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.25); min-width: 200px; } .plate-text { font-size: 1rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: #000000; line-height: 1.2; margin: 0; font-family: 'Arial', 'Helvetica Neue', sans-serif; white-space: nowrap; }