/* Shared sky and password affordances for both street signal entries. */
.sky-entry {
  --sky-top: var(--brand);
  --sky-bottom: #1251c6;
  --sky-light: #3e8cdd66;
  background: radial-gradient(ellipse at 2% 3%, var(--sky-light), transparent 64%), linear-gradient(160deg, var(--sky-top) 12%, #0739ae 60%, var(--sky-bottom));
  background-attachment: fixed;
}
[data-theme="light"] .sky-entry { --sky-top: #145dc6; --sky-bottom: #4599df; --sky-light: #b2ddf955; }
.sky-entry .theme-toggle { color: #f1f6ff; border-color: #c4dcff65; background: #082d8b75; }
.sky-entry .theme-toggle:focus-visible { outline-color: #fff; }
.cell-entry { --password-message-size: 22px; --password-error: #ff746b; }
.cell-entry .code-label { margin: 0 0 7px; color: #d7ddd7; font: 400 var(--password-message-size)/1.15 Inter, sans-serif; }
.cell-entry .crossing-form { position: relative; }
/* The single native field covers the helper and slots, making the whole panel a typing target. */
.cell-entry .crossing-input { position: static; min-height: 64px; }
.cell-entry .code-dots { gap: 4px; }
.cell-entry .code-dot { position: relative; display: grid; place-items: center; width: 100%; height: 52px; border: 1px solid #505952; border-radius: 7px; background: #252b27; box-shadow: inset 0 1px 2px #ffffff08; }
.cell-entry .code-dot.is-filled { background: #39423b; border-color: #707d72; box-shadow: none; }
.cell-entry .code-dot.is-filled::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f0f5ee; box-shadow: 0 0 7px #e5f4df60; }
.cell-entry .code-dot.is-next { background: #252b27; outline: 2px solid #edf3ed; outline-offset: 2px; animation: slot-beacon 1.6s ease-in-out infinite; }
.cell-entry .crossing-input:focus-within .code-dot.is-next { outline: 2px solid #fff; outline-offset: 2px; }
.cell-entry .code-dot.is-next::after { content: ''; width: 2px; height: 24px; border-radius: 1px; background: #f4fff6; box-shadow: 0 0 4px #fff9, 0 0 11px #dcffe4a6; animation: caret-shine 1.4s ease-in-out infinite; }
/* Errors replace the helper in its reserved line without moving the password slots. */
.cell-entry #crossing-status:not(.sr-only) { position: absolute; inset: 0 0 auto; font: 400 var(--password-message-size)/1.15 Inter, sans-serif; min-height: 0; margin: 0; color: var(--password-error); }
.cell-entry .crossing-form:has(#crossing-status:not(.sr-only)) .code-label { visibility: hidden; }
@keyframes slot-beacon { 0%, 100% { box-shadow: 0 0 0 1px #e7f0e315; } 50% { box-shadow: 0 0 0 2px #e7f0e345, 0 0 12px #e7f0e325; } }
@keyframes caret-shine { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (max-width: 760px) { .cell-entry .code-dot { height: 58px; } }
@media (prefers-reduced-motion: reduce) { .cell-entry .code-dot.is-next, .cell-entry .code-dot.is-next::after { animation: none; } }
