/* Dosa Tycoon — hooks51.css (5.1, HOOKS51): the daily card, the festival banner, the regulars album and the two slots
 * (Menu's festival item, Guests' regulars). js/hooks51-ui.js. Text never under 12 px; every control at least 44 px. */

.h51-layer { position: fixed; left: 0; right: 0; top: 0; height: 0; z-index: 60; pointer-events: none; font-family: var(--font-ui); color: var(--c-ink); }
.h51-layer > * { pointer-events: auto; }

/* ---- the daily card: tiffin, streak, a new regular, the festival, tomorrow */
.h51-card { position: fixed; left: 50%; top: calc(var(--sat, 0px) + 76px); width: min(372px, calc(100vw - 32px)); max-height: calc(100vh - var(--sat, 0px) - 92px); max-height: calc(100dvh - var(--sat, 0px) - 92px);
  transform: translateX(-50%); display: flex; flex-direction: column; overflow: hidden; border: 3.5px solid var(--c-ink); border-radius: 17px;
  background: var(--kolam-ink) 0 0 / 130px 130px, #FFF4DC; box-shadow: 0 4px 0 var(--c-ink), 0 14px 26px rgba(30, 8, 4, .32); }
.h51-card.is-in { animation: h51-pop .32s var(--ease-out-back, ease-out); }
@keyframes h51-pop { from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes h51-pop-side { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.h51-card__head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 4px 5px 10px; background: linear-gradient(180deg, #F2B21B 0%, #E39A00 100%); border-bottom: 3px solid var(--c-ink); }
.h51-card__head > svg { flex: none; width: 32px; height: 32px; }
.h51-card__head > b { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-size: 20px; font-weight: 400; line-height: 1.05; }
.h51-x { flex: none; width: 44px; height: 44px; border: 0; background: none; font: 800 24px/1 var(--font-ui); color: var(--c-ink); cursor: pointer; border-radius: 10px; }
.h51-x:hover { background: rgba(58, 31, 18, .1); }
.h51-card__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 9px 12px 4px; }
.h51-lead { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.h51-streak { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.h51-dots { display: inline-flex; gap: 5px; }
.h51-dot { display: block; width: 14px; height: 14px; border: 2.5px solid var(--c-ink); border-radius: 50%; background: #fff; }
.h51-dot.is-lit { background: var(--c-marigold); }
.h51-grace { font-size: 13px; font-weight: 700; color: #6B4A33; }
.h51-face { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 2.5px solid var(--c-ink); border-radius: 12px; background: #fff; }
.h51-face__pic { flex: none; display: block; width: 46px; height: 46px; overflow: hidden; border: 2.5px solid var(--c-ink); border-radius: 50%; background: #FFE7B0; }
.h51-face__pic > svg { display: block; width: 100%; height: 100%; }
.h51-face__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; line-height: 1.25; }
.h51-face__txt > small, .h51-tom > small, .h51-al__main > small { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8A5A2B; }
.h51-face__txt > b { font-size: 16px; font-weight: 800; }
.h51-fest { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 9px; border-radius: 12px; background: #FFE3B8; font-size: 14px; font-weight: 700; line-height: 1.25; }
.h51-fest > svg, .h51-banner > svg, .h51-mf > svg { flex: none; width: 28px; height: 28px; }
.h51-tom ul { margin: 2px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.3; }
.h51-tom li + li { margin-top: 2px; }
.h51-card__foot { flex: none; display: flex; gap: 8px; justify-content: flex-end; padding: 8px 10px 10px; }
.h51-btn { min-height: 44px; min-width: 88px; padding: 4px 16px 7px; border: 3px solid var(--c-ink); border-radius: 13px; background: #FFF9EA; box-shadow: inset 0 -4px 0 #D8B777, 0 2px 0 var(--c-ink);
  font: 800 16px/1.1 var(--font-ui); color: var(--c-ink); cursor: pointer; }
.h51-btn--go { background: linear-gradient(180deg, #C9F2B0 0%, #8FD96F 100%); box-shadow: inset 0 -4px 0 #4E9A3A, 0 2px 0 var(--c-ink); }
.h51-btn:active { transform: translateY(2px); }
/* a phone held sideways: the card keeps to the side of the room, and its body scrolls */
@media (max-height: 500px) and (orientation: landscape) {
  .h51-card { top: calc(var(--sat, 0px) + 54px); left: auto; right: calc(var(--sar, 0px) + 10px); transform: none; width: min(360px, 46vw); max-height: calc(100vh - var(--sat, 0px) - 62px); max-height: calc(100dvh - var(--sat, 0px) - 62px); }          /* (below the top bar: its pause and speed stay in reach) */
  .h51-card.is-in { animation-name: h51-pop-side; }
  .h51-card__head { min-height: 44px; }
  .h51-card__head > b { font-size: 18px; }
}

/* ---- the festival banner: a strip of toran and one line, for a few seconds */
.h51-banner { position: fixed; left: 50%; top: calc(var(--sat, 0px) + 76px); transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); display: flex; align-items: center; gap: 8px;
  padding: 14px 4px 6px 12px; border: 3px solid var(--c-ink); border-radius: 14px; background: #FFF4DC; box-shadow: 0 3px 0 var(--c-ink), 0 10px 20px rgba(30, 8, 4, .25); overflow: hidden; }
.h51-banner.is-in { animation: h51-pop .32s var(--ease-out-back, ease-out); }
.h51-banner__toran { position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: radial-gradient(circle at 7px 2px, #FF9A1F 0 5px, transparent 5.5px) 0 0 / 28px 9px repeat-x, radial-gradient(circle at 21px 2px, #2E8B3D 0 4.5px, transparent 5px) 0 0 / 28px 9px repeat-x; }
.h51-banner__txt { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.h51-banner__txt > b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
@media (max-height: 500px) and (orientation: landscape) { .h51-banner { top: calc(var(--sat, 0px) + 8px); width: min(460px, 60vw); } }

/* ---- the album window ('regulars') */
.dtw-root:not(.is-compact) .dtw-window--regulars { width: 760px; }
.h51-album { display: flex; flex-direction: column; gap: 10px; }
.h51-al__intro { margin: 4px 0 0; font-size: max(14px, var(--fl, 0px)); line-height: 1.35; }
.h51-al__streak { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: max(14px, var(--fl, 0px)); font-weight: 800; }
.h51-al__streak > svg { width: 26px; height: 26px; flex: none; }
.h51-al__empty { font-size: max(14px, var(--fl, 0px)); }
.h51-al__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.h51-al__row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 2.5px solid var(--c-ink); border-radius: 12px; background: #fff; }
.h51-al__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: max(14px, var(--fl, 0px)); line-height: 1.3; }
.h51-al__main > b { font-size: max(16px, var(--fl, 0px)); font-weight: 800; }
.h51-al__line { display: block; }
.h51-al__line--fam { font-weight: 700; color: #7A3514; }

/* the tiffin stamps and the streak badges (cosmetic), in the album's head */
.h51-stamps { margin-top: 8px; }
.h51-stamps > small { display: block; font-size: max(12.5px, var(--fl, 0px)); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8A5A2B; }
.h51-stamps__row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.h51-stamp { display: inline-flex; align-items: center; gap: 5px; font-size: max(13px, var(--fl, 0px)); font-weight: 700; color: #8A7A62; }
.h51-stamp.is-have { color: var(--c-ink); }
.h51-stamp > svg { flex: none; width: 26px; height: 26px; }
.h51-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.h51-badge { padding: 2px 10px 4px; border: 2.5px solid var(--c-ink); border-radius: 999px; background: var(--c-turmeric); font-size: max(13px, var(--fl, 0px)); font-weight: 800; }

/* ---- the slots: Guests (regulars you know) and Menu (the festival item) */
.h51-gs__row, .h51-mf { display: flex; align-items: center; gap: 10px; }
.h51-gs__pics { display: inline-flex; }
.h51-gs__pics > .h51-face__pic { width: 36px; height: 36px; margin-right: -8px; }
.h51-gs__pics > .h51-face__pic:last-child { margin-right: 0; }
.h51-gs__n { flex: 1 1 auto; min-width: 0; font-size: max(14px, var(--fl, 0px)); font-weight: 700; line-height: 1.25; }
.h51-gs__go, .h51-mf__go { flex: none; min-width: 64px; min-height: 44px; }
.h51-mf { padding: 8px 10px; background: #FFE9C2; }
.h51-mf.is-off { opacity: .75; }
.h51-mf__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.h51-mf__main > b { font-size: max(16px, var(--fl, 0px)); font-weight: 800; }
.h51-mf__main > small { font-size: max(13px, var(--fl, 0px)); font-weight: 700; color: #7A3514; }
.h51-mf__note { font-size: max(13px, var(--fl, 0px)); }

/* the card's pieces reused inside a window (the scaled stage): never under 12 px there either */
.dtw-window .h51-al__main > small, .dtw-window .h51-tom > small { font-size: max(12.5px, var(--fl, 0px)); }
.dtw-window .h51-tom ul { font-size: max(14px, var(--fl, 0px)); }

@media (prefers-reduced-motion: reduce) { .h51-card.is-in, .h51-banner.is-in { animation: none; } }
