/* Hidden Objects: the scene is one canvas filling the stage; the HUD strip, the list dock (bottom on phones, a side
   panel on wide screens), the result card and the panels are HTML over it (game.js keeps the scene between them) */
.ho { display: flex; flex-direction: column; color: #e6ecff; --ho-gold: #ffd166; --ho-cyan: #55d6ff; --ho-line: #1c2b4a; --ho-glass: rgba(9,14,32,0.94); --ho-ink: #060912; --ho-mint: #7dffcf; }
.ho-stage { position: relative; width: 100%; height: min(86vh, 800px); min-height: 520px; background: var(--ho-ink); overflow: hidden;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; outline: none; }
@media (max-width: 600px) { .ho-stage { height: auto; aspect-ratio: 3 / 4.7; max-height: 88vh; min-height: 0; } }
#ho-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: zoom-in; cursor: crosshair; }
#ho-canvas.grab { cursor: grabbing; }
#ho-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(85,214,255,.55); }

/* HUD */
.ho-hud { position: absolute; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 8px 0 10px; z-index: 3;
  background: linear-gradient(180deg, rgba(6,9,20,0.98), rgba(7,11,26,0.95)); border-bottom: 1px solid var(--ho-line); }
.ho-pz { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; min-width: 96px; max-width: 46vw; height: 42px; padding: 2px 26px 2px 10px; border-radius: 12px;
  border: 1px solid var(--ho-line); background: #0b1328; color: #fff; cursor: pointer; font: inherit; line-height: 1.08; touch-action: manipulation; text-align: left; transition: border-color .15s; }
.ho-pz-lv { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lvc, #8aa3c4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ho-pz-n { font-size: 16.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ho-pz-dd { position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: #8aa3c4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ho-pz:hover { border-color: var(--ho-cyan); } }
.ho-pz:focus-visible, .ho-tool:focus-visible, .ho-act:focus-visible, .ho-chip:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 2px; }
.ho-stat { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.ho-stat[hidden] { display: none; }
.ho-k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8aa3c4; }
.ho-stat b { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.ho-found b { display: inline-block; transition: transform .18s cubic-bezier(.3,1.6,.5,1), color .18s; transform-origin: left center; }
.ho-found b.pop { transform: scale(1.18); color: var(--ho-gold); }
.ho-found small { font-size: 12.5px; font-weight: 700; color: #8aa3c4; margin-left: 3px; letter-spacing: 0; }
.ho-score b { color: var(--ho-gold); }
#ho-time { transition: color .2s; }
#ho-time.urgent { color: #ff8f8f; animation: ho-throb 1s ease-in-out infinite; }
@keyframes ho-throb { 50% { opacity: .55; } }
.ho-sp { flex: 1 1 auto; }
.ho-tool { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--ho-line); background: #0b1328;
  color: #c8d6f5; cursor: pointer; touch-action: manipulation; padding: 0; transition: border-color .15s, color .15s; }
.ho-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ho-tool .spk { fill: currentColor; stroke: none; }
@media (hover: hover) { .ho-tool:hover { border-color: var(--ho-cyan); color: #fff; } }
#ho-sound .off { display: none; } #ho-sound[aria-pressed="true"] { color: #5d6f92; } #ho-sound[aria-pressed="true"] .on { display: none; } #ho-sound[aria-pressed="true"] .off { display: inline; }
.ho-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ho-gold); box-shadow: 0 0 8px var(--ho-gold); }
.ho-dot[hidden] { display: none; }

/* the dock: what to find, and the tools */
.ho-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "list acts"; gap: 4px 8px;
  padding: 6px 8px 8px; background: linear-gradient(0deg, rgba(6,9,20,0.99), rgba(7,11,26,0.96)); border-top: 1px solid var(--ho-line); }
.ho-dock-head { grid-area: head; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
.ho-dock-head b { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8aa3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-dock-head span { font-size: 11.5px; font-weight: 800; color: var(--ho-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ho-list { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 40px; gap: 5px; min-width: 0; }
.ho-list li { min-width: 0; display: flex; }
.ho-chip { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--ho-line); background: #0b1328;
  color: #e6ecff; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.12; text-align: left; cursor: pointer; touch-action: manipulation; transition: border-color .15s, background .2s, opacity .2s, box-shadow .2s; }
.ho-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
.ho-nm.tight { font-size: 0.9em; letter-spacing: -0.01em; } .ho-nm.tighter { font-size: 0.8em; letter-spacing: -0.02em; } .ho-nm.tightest { font-size: 0.72em; letter-spacing: -0.02em; } .ho-nm.brk { overflow-wrap: anywhere; }
.ho-pic { width: 30px; height: 30px; flex: none; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ho-tick { position: absolute; right: 5px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--ho-mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) { .ho-chip:not(.found):hover { border-color: #3a5684; } }
.ho-chip.sel { border-color: var(--ho-gold); box-shadow: inset 0 0 0 1px var(--ho-gold), 0 0 14px rgba(255,209,102,.25); }
.ho-chip.found { background: rgba(125,255,207,0.07); border-color: rgba(125,255,207,0.35); color: #8fb3a5; cursor: default; padding-right: 20px; }
/* with a picture, the tick sits on the picture's corner and the name keeps its room */
.ho-chip.found:has(.ho-pic) { padding-right: 8px; }
.ho-chip.found .ho-pic + .ho-nm + .ho-tick { left: 25px; right: auto; top: auto; bottom: 2px; margin: 0; width: 15px; height: 15px; padding: 1px; border-radius: 50%; background: #0b1328; box-sizing: content-box; }
.ho-chip.found .ho-nm { text-decoration: line-through; text-decoration-color: rgba(125,255,207,.7); }
.ho-chip.found .ho-tick { opacity: 1; transform: none; }
.ho-chip.just { animation: ho-just .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes ho-just { 30% { transform: scale(1.06); box-shadow: 0 0 22px rgba(125,255,207,.45); } }
.ho-chip.enter { animation: ho-enter .35s ease-out; }
@keyframes ho-enter { from { opacity: 0; transform: translateY(6px); } }
/* pictures only: a bigger silhouette, the name kept for screen readers */
.ho[data-list="pictures"] .ho-chip { justify-content: center; padding: 2px 4px; }
.ho[data-list="pictures"] .ho-nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ho[data-list="pictures"] .ho-pic { width: 34px; height: 34px; }
.ho-acts { grid-area: acts; display: grid; grid-template-columns: 58px; grid-auto-rows: minmax(0, 1fr); gap: 5px; }
.ho-act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; border: 1px solid var(--ho-line); background: #0b1328;
  color: #d4def5; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; cursor: pointer; touch-action: manipulation; padding: 0; transition: border-color .15s, color .15s, opacity .15s, transform .08s; }
.ho-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.ho-act:active:not(:disabled) { transform: translateY(1px); }
.ho-act:disabled { opacity: .36; cursor: default; }
@media (hover: hover) { .ho-act:hover:not(:disabled) { border-color: var(--ho-cyan); color: #fff; } }
.ho-zin { display: none; }
.ho-hint { grid-row: span 1; color: #ffe3a3; overflow: hidden; }
.ho-hint span { position: relative; }
.ho-ring { position: absolute; left: 50%; top: 4px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--ho-gold) calc(var(--p, 1) * 360deg), rgba(255,209,102,.13) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.ho-hint svg { margin-top: 2px; }
.ho-hint .ho-spark { stroke-width: 1.8; opacity: .8; }
.ho-hint.ready { border-color: rgba(255,209,102,.55); box-shadow: 0 0 16px rgba(255,209,102,.18); animation: ho-ready 2.4s ease-in-out infinite; }
@keyframes ho-ready { 50% { box-shadow: 0 0 22px rgba(255,209,102,.38); } }
@media (hover: hover) { .ho-hint:hover:not(:disabled) { border-color: var(--ho-gold); } }

/* wide screens: the list as a side panel */
.ho-side .ho-dock { top: 54px; left: auto; width: 272px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "list" "acts"; gap: 8px;
  padding: 12px 10px 10px; border-top: 0; border-left: 1px solid var(--ho-line); background: linear-gradient(180deg, rgba(7,11,26,0.97), rgba(6,9,20,0.99)); }
.ho-side .ho-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42px; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 1px; }
.ho-side[data-list="pictures"] .ho-list, .ho-side[data-list="both"] .ho-list { grid-auto-rows: 46px; }
.ho-side .ho-chip { padding: 3px 6px; gap: 5px; }
.ho-side .ho-pic { width: 26px; height: 26px; }
.ho-side .ho-chip.found .ho-pic + .ho-nm + .ho-tick { left: 20px; }
.ho-side[data-list="pictures"] .ho-pic { width: 34px; height: 34px; }
.ho-side .ho-acts { grid-template-columns: minmax(0, 1fr) 46px 46px; grid-auto-rows: 52px; }
.ho-side .ho-zin { display: flex; }
.ho-side .ho-hint { flex-direction: row; gap: 8px; font-size: 13px; }
.ho-side .ho-ring { left: 12px; top: 50%; margin: -17px 0 0 0; }
.ho-side .ho-hint svg { margin: 0 0 0 4px; }
/* the bottom dock: the hint is its ring and lens; the word stays for screen readers */
.ho:not(.ho-side) .ho-hint span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ho:not(.ho-side) .ho-ring { top: 50%; margin-top: -17px; }
.ho:not(.ho-side) .ho-hint svg { margin: 0; }
@media (hover: hover) and (pointer: fine) { .ho:not(.ho-side) .ho-acts { grid-template-columns: 58px 40px; } .ho:not(.ho-side) .ho-zin { display: flex; } .ho:not(.ho-side) .ho-hint { grid-row: span 2; } .ho:not(.ho-side) .ho-zout { grid-column: 2; } }

/* the result card: a strip over the bottom of the scene, so the cleared picture stays in view */
.ho-card[hidden] { display: none; }
.ho-card { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; width: min(calc(100% - 16px), 470px); padding: 14px 14px 12px; border-radius: 18px;
  background: rgba(9,13,30,0.95); border: 1px solid rgba(255,209,102,0.32); box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 40px rgba(255,209,102,.1); animation: ho-up .35s cubic-bezier(.2,.9,.25,1.1);
  max-height: calc(100% - 64px); overflow: auto; overscroll-behavior: contain; }
.ho-side .ho-card { left: calc(50% - 136px); }
@keyframes ho-up { from { opacity: 0; transform: translate(-50%, 24px); } }
.ho-card-top { display: flex; align-items: center; gap: 12px; }
.ho-card-top > div { flex: 1 1 auto; min-width: 0; }
.ho-card h2 { margin: 0; font-size: 22px; font-weight: 900; color: #fff; line-height: 1.1; text-transform: none; letter-spacing: 0.01em; text-shadow: 0 0 22px rgba(255,209,102,.4); }
.ho-card p { margin: 6px 0 0; font-size: 13px; color: #9fb0d4; line-height: 1.45; }
.ho-card-top p { margin-top: 3px; }
/* a New best tag that wraps under a long heading lines up with it */
.ho-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ho-card h2 .ho-tag { margin-left: 0; }
.ho-res { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: #070b1d; border: 1px solid #16213f; }
.ho-res b { font-size: 15.5px; color: #fff; font-variant-numeric: tabular-nums; }
.ho-res span { font-size: 12.5px; color: #8aa3c4; font-variant-numeric: tabular-nums; }
.ho-unlock { margin-top: 10px; padding: 8px 11px; border-radius: 12px; font-size: 13px; color: #d7e4ff; background: radial-gradient(120% 160% at 0% 50%, rgba(255,209,102,.16), transparent 60%), #070b1d; border: 1px solid rgba(255,209,102,.35); }
.ho-unlock b { color: var(--ho-gold); }
.ho-card .ho-actions { margin-top: 12px; }
.ho-card .ho-lb { margin-top: 8px; }
.ho-card h3 { margin: 12px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8aa3c4; }
.ho-card .ho-fine { margin-top: 4px !important; }

/* panels */
.ho-overlay[hidden] { display: none; }
.ho-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 6; overflow: auto;
  background: radial-gradient(ellipse at center, rgba(4,6,16,0.55), rgba(3,4,12,0.88)); animation: ho-fade .18s ease-out; }
.ho-panel { position: relative; width: min(100%, 440px); margin: auto; padding: 20px 18px 18px; border: 1px solid var(--ho-line); border-radius: 18px; text-align: left; outline: none;
  background: rgba(9,13,30,0.97); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(85,214,255,0.05) inset; animation: ho-in .26s cubic-bezier(.2,.9,.25,1.1); }
.ho-panel.wide { width: min(100%, 660px); }
@keyframes ho-in { from { opacity: 0; transform: scale(.95) translateY(8px); } }
@keyframes ho-fade { from { opacity: 0; } }
.ho-panel h2 { margin: 0 40px 12px 0; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 0.01em; text-transform: none; line-height: 1.25; }
.ho-panel h3 { margin: 14px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8aa3c4; }
.ho-panel p, .ho-panel li { font-size: 13.5px; line-height: 1.5; color: #bccbec; }
.ho-panel p { margin: 0 0 9px; }
.ho-panel p b { color: #fff; }
.ho-panel kbd { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 5px; border: 1px solid #2c3d66; background: #0b1328; color: #fff; font: 700 12px/1.6 system-ui, sans-serif; text-align: center; }
.ho-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: #d4def5; cursor: pointer; padding: 0; z-index: 2; }
.ho-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .ho-x:hover { background: rgba(255,255,255,.14); color: #fff; } }
.ho-x:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 2px; }
.ho-fine { font-size: 12px !important; color: #6f82a8 !important; margin: 8px 0 0 !important; }

.ho-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ho-row { display: flex; gap: 8px; } .ho-row > * { flex: 1 1 0; min-width: 0; }
.ho-b { font: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 14px; min-height: 46px; border-radius: 12px; cursor: pointer; touch-action: manipulation; text-decoration: none;
  border: 1px solid var(--ho-line); background: #0d1532; color: #e6ecff; transition: background .15s, border-color .15s, transform .1s, filter .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (hover: hover) { .ho-b:hover:not(:disabled) { border-color: var(--ho-cyan); } }
.ho-b:active { transform: translateY(1px); }
.ho-b:disabled { opacity: .45; cursor: default; }
.ho-b:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ho-b svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ho-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-b-primary { background: linear-gradient(135deg, #ffd166, #ffb347); color: #241400; border-color: transparent; font-size: 16px; font-weight: 800; box-shadow: 0 6px 22px rgba(255,190,90,0.3); }
.ho-b-primary svg { fill: none; }
@media (hover: hover) { .ho-b-primary:hover:not(:disabled) { border-color: transparent; filter: brightness(1.07); } }
.ho-b-sm { min-height: 38px; padding: 6px 8px; font-size: 13px; }

/* stars and stats */
.ho-stars { display: flex; justify-content: center; gap: 3px; flex: none; }
.ho-stars svg { width: 28px; height: 28px; }
.ho-stars .s-on { fill: var(--ho-gold); filter: drop-shadow(0 0 8px rgba(255,209,102,.75)); }
.ho-stars .s-off { fill: #1f2b4f; }
.ho-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: middle; margin-left: 6px;
  color: #1a1200; background: linear-gradient(90deg, #ffd166, #fff1b8, #ffd166); background-size: 200% 100%; animation: ho-shine 1.6s linear infinite; box-shadow: 0 0 18px rgba(255,209,102,0.5); }
@keyframes ho-shine { to { background-position: -200% 0; } }
.ho-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 4px; }
.ho-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ho-stats div { padding: 8px 4px; border-radius: 10px; background: #070b1d; border: 1px solid #16213f; text-align: center; min-width: 0; }
.ho-stats span { display: block; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f82a8; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-stats b { display: block; margin-top: 2px; font-size: 17px; color: #e6ecff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ho-stats .gold b { color: var(--ho-gold); } .ho-stats .hot b { color: #ffa8c5; } .ho-stats .ok b { color: var(--ho-mint); }
.ho-lb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ho-lb h3 { margin-top: 6px; }
.ho-lb li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: #070b1d; font-size: 13px; }
.ho-lb li span { color: #6f82a8; font-weight: 800; font-variant-numeric: tabular-nums; }
.ho-lb li b { color: #e6ecff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ho-lb li em { font-style: normal; color: var(--ho-gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.ho-lb li i { font-style: normal; color: #8aa3c4; font-variant-numeric: tabular-nums; font-size: 12px; }
.ho-lb li.me { background: rgba(85,214,255,0.12); box-shadow: inset 0 0 0 1px rgba(85,214,255,0.4); }
.ho-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ho-table th, .ho-table td { padding: 6px 4px; text-align: right; border-bottom: 1px solid #16213f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ho-table th:first-child, .ho-table td:first-child { text-align: left; white-space: normal; }
.ho-table thead th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6f82a8; }
.ho-table tbody th { color: #fff; font-weight: 700; }
.ho-table td { color: var(--ho-gold); letter-spacing: -1px; }

/* scenes */
.ho-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ho-opts .ho-seg { flex: 1 1 200px; }
.ho-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #070b1d; border: 1px solid var(--ho-line); }
.ho-seg button { flex: 1 1 0; min-width: 0; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #8aa3c4; font: 700 13px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.ho-seg button small { font-size: 11px; color: #5d6f92; margin-left: 2px; font-variant-numeric: tabular-nums; }
.ho-seg button[aria-checked="true"] { background: #17234a; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,209,102,.55), 0 0 14px rgba(255,209,102,.12); }
.ho-seg button[aria-checked="true"] small { color: var(--ho-gold); }
.ho-seg button:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 1px; }
.ho-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 10px; }
.ho-sc { display: flex; flex-direction: column; gap: 2px; padding: 5px 5px 7px; border-radius: 13px; border: 1px solid #16213f; background: #070b1d; color: #e6ecff; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; min-width: 0; transition: border-color .15s, transform .1s; }
.ho-sc-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #0b1328; }
.ho-sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ho-sc-img em { position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(4,6,16,.78); color: #fff; font: 800 11px/20px system-ui, sans-serif; font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }
.ho-sc-img i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,6,16,.62); }
.ho-sc-img i svg { width: 22px; height: 22px; fill: none; stroke: #9fb0d4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ho-sc.locked img { filter: grayscale(.85) brightness(.55); }
.ho-sc b { font-size: 13px; margin: 3px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-sc small { font-size: 11.5px; color: #6f82a8; margin: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ho-sc-st { color: var(--ho-gold); letter-spacing: -1px; }
.ho-sc.cur { border-color: var(--sc); box-shadow: inset 0 0 0 1px var(--sc), 0 0 16px color-mix(in srgb, var(--sc) 25%, transparent); }
.ho-sc.locked { cursor: default; } .ho-sc.locked b { color: #8aa3c4; }
@media (hover: hover) { .ho-sc:not(.locked):hover { border-color: var(--sc); } }
.ho-sc:active:not(.locked) { transform: translateY(1px); }
.ho-sc:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 2px; }

/* daily */
.ho-today { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: radial-gradient(120% 140% at 0% 50%, rgba(255,209,102,.12), transparent 60%), #070b1d; border: 1px solid rgba(255,209,102,.28); }
.ho-today img { width: 104px; height: 78px; border-radius: 9px; object-fit: cover; flex: none; }
.ho-today div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ho-today small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ho-gold); }
.ho-today b { font-size: 16px; color: #fff; }
.ho-today span { font-size: 12px; color: #9fb0d4; line-height: 1.4; }
.ho-today-go { margin-top: 10px; }
.ho-cal-head { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.ho-cal-head b { flex: 1 1 auto; text-align: center; color: #fff; font-size: 15px; }
.ho-step { width: 42px; height: 42px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid #22335c; background: #0d1532; color: #e6ecff; cursor: pointer; }
.ho-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ho-step:disabled { opacity: .35; cursor: default; }
.ho-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ho-cal-w { text-align: center; font-size: 10.5px; font-weight: 800; color: #6f82a8; padding: 2px 0; }
.ho-cal-d { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; border: 1px solid #16213f; background: #070b1d; color: #d4def5; font: 700 13px system-ui, sans-serif; cursor: pointer; padding: 0; }
.ho-cal-d.off { opacity: .28; cursor: default; }
.ho-cal-d.ok { background: rgba(125,255,207,0.12); border-color: rgba(125,255,207,0.55); color: var(--ho-mint); }
.ho-cal-d.today { box-shadow: 0 0 0 2px var(--ho-gold), 0 0 14px rgba(255,209,102,.4); }
.ho-cal-pad { aspect-ratio: 1; }
@media (hover: hover) { .ho-cal-d:not(.off):hover { border-color: var(--ho-cyan); } }
.ho-cal-d:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 1px; }

/* settings and tabs */
.ho-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #16213f; cursor: pointer; }
.ho-set > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ho-set b { font-size: 14px; color: #fff; } .ho-set small { font-size: 12px; color: #8aa3c4; }
.ho-set-col { flex-direction: column; align-items: stretch; cursor: default; gap: 8px; }
.ho-set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ho-sw { position: relative; width: 46px; height: 27px; flex: none; border-radius: 14px; border: 1px solid #22335c; background: #0d1532; transition: background .15s, border-color .15s; }
.ho-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #5d6f92; transition: transform .15s, background .15s; }
.ho-set input:checked + .ho-sw { background: #3a2a08; border-color: var(--ho-gold); }
.ho-set input:checked + .ho-sw::after { transform: translateX(19px); background: var(--ho-gold); box-shadow: 0 0 10px rgba(255,209,102,.7); }
.ho-set input:focus-visible + .ho-sw { outline: 2px solid var(--ho-cyan); outline-offset: 2px; }
.ho-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 13px; background: #070b1d; border: 1px solid var(--ho-line); margin: 0 0 12px; }
.ho-tab { font: inherit; font-size: 13.5px; font-weight: 700; color: #8aa3c4; background: transparent; border: 0; border-radius: 9px; min-height: 38px; cursor: pointer; white-space: nowrap; }
.ho-tab[aria-selected="true"] { background: #17234a; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,209,102,0.5), 0 0 16px rgba(255,209,102,0.12); }
.ho-tab:focus-visible { outline: 2px solid var(--ho-cyan); outline-offset: 1px; }

.ho-toast[hidden] { display: none; }
.ho-toast { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 7; padding: 8px 14px; border-radius: 999px; background: #e6ecff; color: #07091a; font-size: 13px; font-weight: 800;
  animation: ho-rise .2s ease-out; pointer-events: none; max-width: calc(100% - 24px); text-align: center; line-height: 1.3; }
@keyframes ho-rise { from { opacity: 0; transform: translate(-50%, 6px); } }
.ho-side .ho-toast { bottom: 16px; left: calc(50% - 136px); max-width: calc(100% - 296px); }
.ho-loading[hidden] { display: none; }
.ho-loading { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(4,6,14,0.55); color: #d4def5; font-size: 14px; pointer-events: none; }
.ho-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,209,102,.2); border-top-color: var(--ho-gold); animation: ho-rot .9s linear infinite; }
@keyframes ho-rot { to { transform: rotate(360deg); } }
.ho-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ho-help { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.ho-help .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .ho-help .hint-kb { display: none; } .ho-help .hint-touch { display: inline; } }
.stage .ho-help { padding: 10px 14px 12px; }

/* narrow phones */
@media (max-width: 560px) { .ho-hud { gap: 10px; } }
@media (max-width: 460px) {
  .ho-hud { gap: 8px; padding-left: 8px; padding-right: 6px; }
  .ho-pz { padding-right: 22px; padding-left: 8px; min-width: 0; }
  .ho-pz-n { font-size: 15px; }
  .ho-stat b { font-size: 18px; }
  .ho-tool { width: 36px; height: 36px; border-radius: 11px; }
  .ho-panel { padding: 18px 14px 14px; }
  .ho-stats b { font-size: 15px; }
  .ho-stats div { padding: 8px 2px; }
  .ho-stats span { font-size: 9px; letter-spacing: .06em; }
  .ho-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ho-chip { font-size: 12px; padding: 3px 6px; gap: 5px; }
  .ho-pic { width: 26px; height: 26px; }
}
@media (max-width: 400px) { #ho-sound { display: none; } .ho-k { letter-spacing: .1em; } }
@media (max-width: 420px) { .ho-timed .ho-found { display: none; } .ho:not(.ho-side)[data-list="both"] .ho-pic { width: 22px; height: 22px; } .ho:not(.ho-side)[data-list="both"] .ho-chip { font-size: 11.5px; gap: 4px; padding: 3px 5px; } .ho:not(.ho-side) .ho-chip.found .ho-pic + .ho-nm + .ho-tick { left: 17px; } }

/* full screen: the scene takes every pixel */
.stage.is-immersive .stage-body > .ho { min-height: 0; flex: 1 1 auto; }
.stage.is-immersive .ho-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; }
.stage.is-immersive .ho-help { display: none; }
@media (prefers-reduced-motion: reduce) { .ho-panel, .ho-toast, .ho-overlay, .ho-card, .ho-chip.just, .ho-chip.enter, .ho-hint.ready, #ho-time.urgent, .ho-tag { animation: none; } .ho-found b { transition: none; } }
.ho-calm .ho-panel, .ho-calm .ho-toast, .ho-calm .ho-overlay, .ho-calm .ho-card, .ho-calm .ho-chip.just, .ho-calm .ho-chip.enter, .ho-calm .ho-hint.ready, .ho-calm .ho-tag { animation: none; }
