/* Additions to the house spike's styles (../v0/sim.css) for the day program. */
.clockrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#hud h1 { font-size: 27px; letter-spacing: -0.01em; white-space: nowrap; }
#score { font-size: 12.5px; text-align: right; }
#moments { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
#moments li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; font-weight: 600; }
#moments .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--primary); box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.3); }
#moments .now { background: rgba(242, 180, 65, 0.2); }
#moments .now .dot { background: var(--gold); box-shadow: none; }
#moments .done .dot { background: var(--green); color: #fff; box-shadow: none; }
#moments .done.missed .dot { background: #c2571a; }
#moments small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
#moments .todo { opacity: 0.62; }

#card { width: min(640px, calc(100% - 36px)); max-height: calc(100% - 60px); overflow: auto; }
#card h2 { font-size: 22px; }
#card.side { left: auto; right: 18px; bottom: 18px; transform: none; width: min(390px, calc(100% - 36px)); animation: none; }
#card.side #cardPrompt { font-size: 15px; }
#cardPrompt { margin: 10px 0 0; font-size: 16px; font-weight: 600; }
#cardOptions { display: grid; gap: 8px; margin-top: 12px; }
#cardOptions button { text-align: left; border-radius: 14px; padding: 11px 14px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.16); line-height: 1.35; }
#cardOptions button:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--primary); }
#cardOptions button.wrong { background: #fdecea; color: #7a2018; box-shadow: inset 0 0 0 2px #e9a59e; text-decoration: line-through; text-decoration-color: rgba(122, 32, 24, 0.4); cursor: default; }
#cardOptions button.right { background: #e4f6ec; color: #11573a; box-shadow: inset 0 0 0 2px var(--green); cursor: default; }
#cardOptions button.found { background: #e4f6ec; color: #11573a; box-shadow: inset 0 0 0 2px var(--green); cursor: default; }
#cardOptions button.tofind { cursor: default; color: var(--muted); }
#cardWhy { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
#cardWhy.no { background: #fdecea; color: #7a2018; }
#cardWhy.yes { background: #e4f6ec; color: #11573a; }
#cardAside { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.14); font-size: 14px; }
#cardAside strong { display: block; font-family: "Raleway", sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
#cardAside ul { margin: 4px 0 0; padding-left: 18px; }
.namelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.namelist span { padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.14); }
.namelist span.here { background: #e4f6ec; color: #11573a; box-shadow: inset 0 0 0 2px var(--green); }

#profile { top: 18px; right: 18px; width: 320px; max-height: calc(100% - 36px); overflow: auto; animation: slide 0.3s ease both; }
#profile h2 { font-size: 26px; }
#profile dl { margin: 10px 0 0; }
#profile dt { font-family: "Raleway", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
#profile dd { margin: 3px 0 0; }
#profileClose { position: absolute; top: 14px; right: 14px; padding: 5px 12px; font-size: 12.5px; }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.pin.person { padding: 4px 12px; font-size: 13px; background: rgba(255, 255, 255, 0.9); }
.pin.person.staff { background: rgba(32, 32, 94, 0.92); color: #fff; }
.pin.person::after { display: none; }
.pin.person small { display: inline; margin-left: 6px; color: inherit; opacity: 0.75; font-weight: 600; }
.bubble { position: absolute; left: 0; top: 0; max-width: 300px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.35; box-shadow: 0 10px 30px rgba(12, 14, 40, 0.35); will-change: transform, opacity; transition: opacity 0.2s ease; }
.bubble b { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.bubble.device { background: #1b1d3a; color: #fff; border-radius: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bubble.device b { color: var(--gold); }

#fade { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; background: #0e1020; color: #fff; opacity: 0; pointer-events: none; text-align: center; }
#fade strong { display: block; font-family: "Raleway", sans-serif; font-size: clamp(40px, 7vw, 76px); font-weight: 700; }
#fade span { font-size: 20px; color: rgba(255, 255, 255, 0.8); }
#caption { position: fixed; left: calc(50% + 150px); top: 20px; transform: translateX(-50%); z-index: 6; width: max-content; max-width: min(780px, calc(100% - 400px)); padding: 12px 22px; border-radius: 14px; background: rgba(14, 16, 40, 0.86); color: #fff; font-size: 19px; font-weight: 600; text-align: center; }
#toast { top: auto; bottom: 26px; }
body.alarm #hud { box-shadow: 0 0 0 3px #c0261d, var(--shadow); }

.cover-inner.wide { width: min(760px, calc(100% - 40px)); }
#summary { z-index: 7; background: linear-gradient(180deg, rgba(14, 16, 40, 0.78), rgba(14, 16, 40, 0.9)); }
#summaryList { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; text-align: left; }
#summaryList li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); }
#summaryList .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--green); }
#summaryList .missed .mark { background: #c2571a; }
#summaryList small { display: block; color: rgba(255, 255, 255, 0.72); }
#summaryList button { background: #fff; color: var(--primary); padding: 7px 14px; font-size: 13px; }
.row.center { justify-content: center; margin-top: 22px; }

@media (max-width: 720px) {
  #moments small, #profile dt { display: none; }
  #profile { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
  #caption { max-width: calc(100% - 24px); top: auto; bottom: 12px; }
}
