/* Chương "02 · Một ngày ở Nobu" (làm lại 19/11/2026, user: "phần này xấu quá… layout lại xíu thấy nó như tách biệt với mấy cái khác").
   Cùng kiểu với chương Vị trí và Tiện ích: ảnh tràn khổ, tiêu đề chồng góc dưới. Khung ảnh ghim lại trong lúc cuộn:
   cuộn qua chương = thời gian trôi từ 06:00 tới 20:00 (js/story.js); kéo thanh giờ thì xem giờ tuỳ ý.
   Ảnh: demo/img/day (tools/sky-hours.py: render thật từng giờ + bầu trời đồng nhất theo giờ). Tải sau app.css để đè luật cũ. */
.ch-day { background: none; color: inherit; margin-top: clamp(80px, 11vw, 150px); padding: 0; height: 300vh; position: relative; }
.day-stick { position: sticky; top: var(--day-top, 70px); height: calc(100vh - var(--day-top, 70px)); height: calc(100svh - var(--day-top, 70px)); overflow: hidden; }
.ch-day .day-frame { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.ch-day .day-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ch-day .over { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: clamp(24px, 4vw, 64px); row-gap: 22px;
  background: linear-gradient(180deg, rgba(8,10,16,0) 0%, rgba(8,10,16,.42) 62%, rgba(8,10,16,.6) 100%); padding-top: clamp(70px, 12vw, 150px); }
.ch-day .day-copy { display: grid; gap: 10px; justify-items: start; }
.ch-day .day-copy .display { font-size: clamp(40px, 5.2vw, 78px); }

/* bảng giờ: giờ lớn + tên buổi, thanh kéo có vạch mốc, nút sang tòa 3D */
.day-ctl { display: grid; gap: 12px; width: min(440px, 86vw); color: #fff; }
.day-now { display: flex; align-items: baseline; gap: 14px; }
.day-now .sd-time { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 3.6vw, 58px); line-height: 1; font-variant-numeric: tabular-nums; min-width: 0; }
.day-now .sd-name { font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.85); }
.day-ctl .sday { max-width: none; gap: 0; display: block; }
.day-ctl .sday input[type=range] { display: block; width: 100%; height: 26px; margin: 0; }
.day-ctl .sday input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #f3c98b 0%, #9cc0ec 14%, #6fa2df 50%, #a9c3e6 68%, #f6b877 79%, #e59aa0 86%, #5a5f9a 93%, #1c2246 100%); }
.day-ctl .sday input[type=range]::-moz-range-track { height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #f3c98b 0%, #9cc0ec 14%, #6fa2df 50%, #a9c3e6 68%, #f6b877 79%, #e59aa0 86%, #5a5f9a 93%, #1c2246 100%); }
.day-ctl .sday input[type=range]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7.5px; box-shadow: 0 0 0 5px rgba(255,255,255,.2), 0 1px 10px rgba(0,0,0,.35); }
.day-ctl .sday input[type=range]::-moz-range-thumb { width: 18px; height: 18px; box-shadow: 0 0 0 5px rgba(255,255,255,.2), 0 1px 10px rgba(0,0,0,.35); }
.day-ticks { display: flex; justify-content: space-between; margin: 2px 9px 0; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.day-ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.day-ctl .btn { justify-self: start; margin-top: 6px; }
.day-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.ch-day.moved .day-hint { opacity: 0; }

@media (max-width: 960px) {
  .ch-day .over { grid-template-columns: minmax(0, 1fr); }
  .day-ctl { width: 100%; max-width: 520px; }
}
@media (max-width: 560px) {
  .ch-day { height: 260vh; }
  .ch-day .day-copy .display { font-size: clamp(32px, 9vw, 44px); }
  .day-now .sd-name { display: inline; }
  .day-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {            /* không ghim, không cuộn theo giờ: chỉ còn thanh kéo */
  .ch-day { height: auto; }
  .day-stick { position: relative; top: 0; height: min(92vh, 62vw); min-height: 460px; }
}
