/* Home and the new menu (board #72 + #73, Dodd 2026-10-25; app.js packPanel, home.js).
     The menu (#86 order): Home, Collection (was Outreach), Battle Pass, Inventory, Stats, Account. Big Caslon words down the left on the desk; a tab
     bar with icons along the bottom on phones. Battle Pass is the one that stands out: shiny gold foil lettering with a
     slow holographic sheen and a soft glow (still gold, no sheen, when motion is reduced).
     Home ("Stage" draft, ops/drafts/hub-2.html): no plate around the stage. One object in the middle with one button
     under it, on the page's centre (#85); today's quests and "while you were gone" drop down from under the top plate;
     the day as one plinth along the bottom. A glowing red diamond marks anything new (quests, the menu, replies, the pass).
     The sections still to come (Battle Pass, Inventory, Account) mount their modules in #modview; until then a quiet
     "coming next" panel stands in. Type is the locked system: Caslon for titles, numbers and the menu; Inter for UI. */

/* ================= the menu ================= */
.nav-ic { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side .nav > button { white-space: nowrap; }
@media (min-width: 861px) {
  .side .nav { gap: 4px; }
  .side .nav > .nav-pass { margin-top: 10px; } /* #86 order: the daily work (Home, Collection) above, the game and your things below */
}
@media (min-width: 861px) and (max-height: 820px) { .side .nav > button { padding-top: 10px; padding-bottom: 10px; } }

/* Battle Pass: gold foil with a holographic band that sweeps across every few seconds. The gradient repeats exactly
   (first stop = last stop), so the loop never jumps. Only background-position animates, on one short word. */
.nav-pass .nav-word {
  position: relative;
  /* at rest the word shows the first half (rich metallic gold); the holographic band sits in the second half and only
     crosses the word while the sheen runs */
  background: linear-gradient(100deg, #e8b04a 0%, #ffe39a 10%, #f5c45a 20%, #c98f2c 32%, #f2c060 44%, #ffe8a6 54%, #e9b24c 62%,
    #fff4d2 70%, #ffd2ec 73%, #cdf1ff 76%, #e6d6ff 79%, #fff2c8 82%, #eeb64e 88%, #e8b04a 100%) 0 0 / 200% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 4px rgba(255, 200, 90, .75)) drop-shadow(0 0 16px rgba(240, 160, 40, .5)) drop-shadow(0 1px 1px rgba(0, 0, 0, .9));
}
.nav-pass .nav-word { animation: gold-sheen 6s cubic-bezier(.45, 0, .3, 1) infinite; transition: filter var(--dur) ease; }
@keyframes gold-sheen { 0%, 40% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.side .nav > .nav-pass:hover .nav-word, .side .nav > .nav-pass:focus-visible .nav-word, .side .nav > .nav-pass[aria-current="true"] .nav-word {
  filter: drop-shadow(0 0 8px rgba(255, 215, 120, .85)) drop-shadow(0 0 24px rgba(240, 170, 60, .6)) drop-shadow(0 1px 1px rgba(0, 0, 0, .9)); }
/* sparkles round the word (app.js places each one at a new random spot every time it finishes): a four-point glint
   that blooms, turns and goes, then rests for most of its beat, so only one or two show at a time */
.side .nav > .nav-pass { position: relative; }
.nav-spark { position: absolute; left: 50%; top: 50%; z-index: 2; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; pointer-events: none;
  background: radial-gradient(closest-side, #fff, #fff3cf 30%, #ffd98a 55%, transparent 78%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 2px #fff6dc) drop-shadow(0 0 6px rgba(255, 210, 120, .85));
  opacity: 0; transform: scale(.3) rotate(0deg); animation: nav-spark 3.6s ease-in-out infinite both; }
@keyframes nav-spark {
  0% { opacity: 0; transform: scale(.3) rotate(0deg); }
  11% { opacity: 1; transform: scale(var(--s, 1)) rotate(45deg); }
  17% { opacity: .9; transform: scale(calc(var(--s, 1) * .85)) rotate(60deg); }
  27% { opacity: 0; transform: scale(calc(var(--s, 1) * .4)) rotate(90deg); }
  27.01%, 100% { opacity: 0; transform: scale(.3) rotate(90deg); } }
@media (max-width: 860px) { .nav-spark { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; } }
.side .nav > .nav-pass:hover { background-color: rgba(240, 200, 112, .07); }
.nav-pass .nav-ic { color: var(--t-titan); filter: drop-shadow(0 0 6px rgba(240, 200, 112, .45)); }

/* #86 the notification mark on a menu item (app.js navMarks; the diamond itself is styled with Home's below): right
   after the word, it settles in (scale + turn, a soft spring) and its halo breathes. On phones it sits on the icon. */
.side .nav-mark { width: 7px; height: 7px; margin-left: 11px; vertical-align: .18em; opacity: 0; transform: rotate(0deg) scale(.5);
  transition: opacity 200ms ease-out, transform 420ms var(--t-spring, var(--ease)); }
.side .nav-mark.on { opacity: 1; transform: rotate(45deg) scale(1); }

/* ---------- phones: the menu is a tab bar along the bottom ---------- */
@media (max-width: 860px) {
  .desk { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .side .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; flex: none; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 7, 8, .94); box-shadow: inset 0 1px 0 var(--line), 0 -18px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-shadow: none; }
  .side .nav > button { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 6px 2px; border-radius: var(--r-lg);
    font: 500 10.5px/1.15 var(--sans); letter-spacing: 0; color: var(--bone-2); }
  .side .nav > button .nav-word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .side .nav > button[aria-current="true"] { color: #fff; }
  .side .nav > button[aria-current="true"] .nav-ic { color: var(--red-hi); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--red-hi) 60%, transparent)); }
  .side .nav > .nav-pass .nav-word { filter: drop-shadow(0 0 5px rgba(255, 205, 100, .6)); font-weight: 600; }
  /* five tabs since #159; on a 390px phone "Battle Pass" still reads best on two short lines */
  .side .nav > .nav-pass:not(.nav-shop) .nav-word { white-space: normal; text-overflow: clip; text-align: center; line-height: 1.02; }
  .side .nav > .nav-pass[aria-current="true"] .nav-ic { color: var(--t-titan); filter: drop-shadow(0 0 8px rgba(240, 200, 112, .7)); }
  .nav-ic { display: block; }
  .side .nav > button { position: relative; }
  .side .nav > button > .nav-mark { position: absolute; top: 8px; left: calc(50% + 9px); margin: 0; }
  .side { justify-content: flex-start; }
  .ap-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) { .ap-toast { bottom: calc(82px + env(safe-area-inset-bottom)); } }

/* ================= Home ================= */
/* #85 (Dodd, 10-25): the pack, its line and its button stand on the page's real centre (the menu column is taken out:
   --hm-shift is half its width), bigger, on a floor; the quest log and "while you were gone" moved up under the top
   plate as drop-downs; the day plinth along the bottom is centred on the same line. */
.stagebox.is-home { place-items: stretch; }
@media (min-width: 861px) { .stagebox.is-home { grid-template-rows: minmax(0, 1fr); } } /* a definite height, so the plinth never gets pushed off the bottom */
#panel.is-home { --hm-shift: 0px; width: min(1280px, 100%); height: 100%; max-height: none; justify-self: center; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: clamp(14px, 3.2vh, 34px) 0;
  padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
@media (min-width: 1181px) { #panel.is-home { --hm-shift: calc(clamp(190px, 14vw, 250px) / 2); } }
/* narrower desks: the menu column is a fifth of the screen, so everything centres in the space beside it, and the
   stage starts below the drop-downs (the pack would reach up beside them) */
.hm-stage { position: relative; left: calc(-1 * var(--hm-shift)); min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px 0; }
/* the light the stage stands in */
.hm-stage::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(760px, 110%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(150, 20, 30, .32), rgba(110, 14, 22, .12) 55%, transparent 76%); }
.hm-stage > * { position: relative; z-index: 1; }
#panel.is-home .pcard { height: clamp(240px, min(52vh, 100vh - 456px), 600px); flex: none; }
#panel.is-home .hm-stage:has(.hm-hand) .pcard { height: clamp(220px, min(48vh, 100vh - 490px), 560px); } /* room for the pips under the card */
.hm-card { display: block; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 3%; transition: transform 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .hm-card:hover { transform: translateY(-4px); } }
.hm-card:active { transform: scale(.98); }
.hm-card .tc { height: 100%; }
.hm-obj { height: clamp(220px, min(44vh, 100vh - 486px), 470px); aspect-ratio: 1; flex: none; }

/* ---------- the pack on its floor (#85: "a bit of shadow behind the card pack so it's not so flat") ----------
   Two layers under the pack (the 3D canvas sits inside #miniPack, so both packs get them): a dark pool just behind the
   pack, dropped a little, so its edges lift off the red light (ambient occlusion), and a contact shadow on the floor
   under its foot: a tight dark core inside a wide soft spread. When the pack lifts on hover, the shadow spreads and
   fades a little, as a real one would. Only transform and opacity change. */
:is(.pack-home, .hm-obj) > :is(.hm-ao, .hm-floor) { position: absolute; z-index: 0; pointer-events: none; }
:is(.pack-home, .hm-obj) > .hm-ao { left: 0; right: 0; top: 10%; bottom: -3%; border-radius: 9% / 6%; background: rgba(3, 1, 2, .8); filter: blur(26px); }
:is(.pack-home, .hm-obj) > .hm-floor { left: -8%; right: -8%; bottom: -6.5%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .86), rgba(0, 0, 0, .58) 42%, rgba(0, 0, 0, .16) 74%, transparent);
  transform-origin: 50% 50%; transition: transform 320ms var(--ease), opacity 320ms var(--ease); }
/* the stage light on the floor round it, so the shadow has something to fall on */
:is(.pack-home, .hm-obj) > .hm-floor::before { content: ""; position: absolute; z-index: -1; left: -34%; right: -34%; top: -90%; bottom: -70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(222, 84, 66, .24), rgba(160, 34, 40, .12) 52%, transparent); }
:is(.pack-home, .hm-obj) > .hm-floor::after { content: ""; position: absolute; left: 10%; right: 10%; top: 38%; bottom: 40%; border-radius: 50%; background: rgba(0, 0, 0, .85); filter: blur(4px); }
@media (hover: hover) and (pointer: fine) { .pack-home:hover > .hm-floor { transform: scale(1.06, .9); opacity: .78; } }
.pack-home:has(.pack:disabled) > .hm-floor { opacity: .6; }
body:has(#opening:not([hidden])) .pack-home > :is(.hm-ao, .hm-floor) { visibility: hidden; }

.hm-prompt { margin-top: clamp(24px, 4.6vh, 50px); max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.hm-k { margin: 0 0 8px; font: 500 15px/1.4 var(--sans); color: var(--bone-2); text-shadow: 0 1px 2px #000; }
.hm-k .tierword { color: var(--c); font-weight: 600; }
.hm-prompt .phead { display: block; }
.hm-prompt .phead h2 { font-size: clamp(32px, 3.2vw, 52px); line-height: 1.08; text-shadow: 0 2px 24px #000, 0 1px 2px #000; }
.hm-p { margin: 10px 0 0; max-width: 48ch; font-size: 16px; line-height: 1.5; color: var(--bone-2); text-shadow: 0 1px 2px #000; }
.hm-prompt .pacts { justify-content: center; margin-top: clamp(14px, 2.2vh, 22px); }
.hm-prompt .pacts .btn { flex: 0 0 auto; min-width: 220px; }
.hm-prompt .pacts .textlink { flex: none; }

/* this pack as ten small cards: done ones dim, the one you're on lifted */
.hm-hand { display: flex; gap: 6px; margin-top: 16px; }
.hm-hand i { width: 14px; height: 20px; border-radius: 3px; background: color-mix(in srgb, var(--c) 28%, #120c0e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 65%, transparent); }
.hm-hand i.done { opacity: .32; }
.hm-hand i.cur { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--c), 0 0 0 1.5px var(--bone), 0 0 12px color-mix(in oklab, var(--red-hi) 70%, transparent); }

/* the countdown dial (#85: out of packs, the countdown to the next one is the hero): a dark marble disc with a gold
   bezel, twelve hour ticks, a gold arc that fills as the day goes with a bright head at its tip, and the time left as
   a live h:mm:ss in big Caslon. It stands on the same floor as the pack. */
.hm-obj { position: relative; }
.hm-clock { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.hm-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hm-clock circle { fill: none; }
.hm-clock .t { stroke: rgba(240, 200, 112, .42); stroke-width: 3.2; stroke-dasharray: .9 23.97; }
.hm-clock .k { stroke: rgba(236, 228, 216, .1); stroke-width: 3; }
.hm-clock .b { stroke: url(#hmClockGold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 2.5px rgba(240, 200, 112, .55)); }
.hm-clock .hd { transform-origin: 50px 50px; }
.hm-clock .hd circle { fill: #fff6dc; filter: drop-shadow(0 0 2px #fff1c4) drop-shadow(0 0 5px rgba(240, 200, 112, .9)); }
/* the disc: dark marble, a gold bezel, lit from above */
.hm-clock::before { content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(44, 32, 30, .96), rgba(14, 10, 11, .96) 62%, rgba(7, 5, 6, .98));
  box-shadow: inset 0 1px 0 rgba(255, 238, 214, .14), inset 0 0 0 1px rgba(240, 200, 112, .22), inset 0 -10px 30px rgba(0, 0, 0, .55),
    0 0 0 6px rgba(9, 6, 7, .65), 0 0 0 7px rgba(240, 200, 112, .14), 0 18px 50px rgba(0, 0, 0, .6); }
.hm-clock-in { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.hm-clock-in small { font: 500 14.5px/1 var(--sans); color: var(--bone-2); }
.hm-clock-in b { font: 400 clamp(36px, 3.6vw, 56px)/1 var(--serif); color: #fff; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8), 0 0 24px rgba(240, 200, 112, .18); }
.hm-clock-in em { font: 500 13.5px/1 var(--sans); font-style: normal; color: #e7bd63; }
.hm-obj > .hm-floor { left: 6%; right: 6%; bottom: -5%; }
.hm-obj > .hm-ao { left: 8%; right: 8%; top: 12%; bottom: 2%; border-radius: 50%; }

/* ---------- the glowing red diamond: "something new here" (quests, the menu #86, replies, the pass) ---------- */
.hm-mark, .nav-mark { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ff9384 0%, #f0333b 42%, #a5111b 100%);
  box-shadow: 0 0 0 1px rgba(40, 0, 4, .7), 0 0 7px rgba(255, 60, 60, .8), 0 0 16px color-mix(in oklab, var(--red-hi) 50%, transparent); }
/* a soft halo that breathes (opacity only) */
.hm-mark::after, .nav-mark::after { content: ""; position: absolute; inset: -7px; border-radius: 2px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 70, 70, .55), transparent); animation: mark-breathe 2.8s ease-in-out infinite alternate; }
@keyframes mark-breathe { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Quests and While you were gone: under the top plate (index.html .hud-drops; app.js homeDrops) ---------- */
.hud-drops { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; min-width: 100%; display: flex; gap: 6px; text-shadow: none; }
.hd-btn[data-drop="gone"] { flex: 1 1 auto; }
.hd-btn[data-drop="gone"] .hd-count { margin-left: auto; }
.hud-drops[hidden] { display: none; }
.hd-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 9px 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--grain) 0 0 / 160px, var(--surface); box-shadow: var(--edge), 0 10px 24px -8px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--bone); font: 500 13.5px/1 var(--sans); white-space: nowrap;
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform 160ms var(--ease); }
.hd-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .hd-btn:hover { box-shadow: var(--edge-hi), 0 10px 24px -8px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .35); } .hd-btn:hover .hd-word { color: #fff; } }
.hd-btn[aria-expanded="true"] { box-shadow: var(--edge-hi), 0 0 0 1px rgba(236, 228, 216, .1), 0 10px 24px -8px rgba(0, 0, 0, .7); }
.hd-btn[aria-expanded="true"] .hd-word { color: #fff; }
.hd-btn:focus-visible { outline-offset: 2px; }
/* the quest diamond as the icon: outlined; red and glowing when something new waits */
.hd-ic { flex: none; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid var(--bone-2); }
.hd-btn.has-new .hd-ic { border: 0; width: 8px; height: 8px; background: linear-gradient(135deg, #ff9384, #f0333b 42%, #a5111b); box-shadow: 0 0 0 1px rgba(40, 0, 4, .7), 0 0 8px rgba(255, 60, 60, .8); }
.hd-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-fast) ease; }
.hd-count { flex: none; min-width: 20px; padding: 4px 6px; border-radius: var(--r-pill); background: rgba(236, 228, 216, .08); box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .08);
  font: 600 11.5px/1 var(--sans); font-style: normal; text-align: center; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.hd-count:empty { display: none; }
.hd-btn.has-new .hd-count { background: var(--red); box-shadow: inset 0 1px 0 rgba(255, 190, 180, .35), 0 0 10px color-mix(in oklab, var(--red-hi) 45%, transparent); color: #fff3e4; }
.hd-chev { width: 13px; height: 13px; flex: none; margin-left: -2px; fill: none; stroke: var(--bone-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
.hd-btn[aria-expanded="true"] .hd-chev { transform: rotate(180deg); }

/* the drop-down: grows from its own button (--ox), out faster than in */
.hd-pop { position: absolute; top: calc(100% + 8px); left: 0; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 18px 14px; border-radius: var(--r-lg); background: var(--grain) 0 0 / 160px, var(--surface-solid);
  box-shadow: var(--edge-hi), 0 24px 60px -12px rgba(0, 0, 0, .85), 0 6px 16px rgba(0, 0, 0, .5); scrollbar-width: thin; scrollbar-color: #715b52 transparent;
  transform-origin: 28px 0; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
  transition: opacity 120ms ease, transform 150ms var(--t-out, ease-in), visibility 0s linear 150ms; }
.hd-pop.open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease-out, transform 240ms var(--ease), visibility 0s; }
.hd-pop.instant { transition: none; }
/* Quests drops from the plate's left edge, While you were gone from its right edge: each grows from its own button */
.hd-pop[data-drop="gone"] { left: auto; right: 0; transform-origin: calc(100% - 28px) 0; }
.hd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.hd-head h3 { margin: 0; font: 400 20px/1.2 var(--serif); color: var(--bone); }
.hd-head > span:not(.hm-new) { font: 500 12.5px/1 var(--sans); color: var(--bone-3); }
.hd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm-quest, .hm-reply { width: calc(100% + 16px); margin: 0 -8px; padding: 9px 8px; border: 0; border-radius: var(--r-md); background: none; text-align: left; color: var(--bone);
  font: inherit; cursor: pointer; transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease); }
.hm-quest:hover, .hm-reply:hover, .hm-quest:focus-visible, .hm-reply:focus-visible { background-color: rgba(236, 228, 216, .06); }
.hm-quest:active, .hm-reply:active { transform: scale(.985); }
.hm-quest { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hm-dia { width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--bone-2); }
.hm-quest.done .hm-dia { background: var(--bone-2); }
.hm-quest.now .hm-dia { border: 0; background: linear-gradient(135deg, #ff9384, #f0333b 42%, #a5111b); box-shadow: 0 0 0 1px rgba(40, 0, 4, .7), 0 0 10px rgba(255, 60, 60, .8); }
.hm-quest b { display: block; font: 500 15.5px/1.3 var(--sans); }
.hm-quest.done b { color: var(--bone-3); }
.hm-meter { display: block; height: 3px; margin-top: 7px; border-radius: 2px; background: rgba(236, 228, 216, .1); overflow: hidden; }
.hm-meter > i { display: block; height: 100%; background: var(--bone-2); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.hm-quest.now .hm-meter > i { background: var(--red-hi); }
.hm-quest em { font: 500 14px/1 var(--sans); font-style: normal; color: var(--bone-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-quest.done em { color: var(--bone-3); }
.hm-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--bone-3); }
.hm-note .textlink { min-height: 0; padding: 0; font-size: 13px; }
.hm-new { padding: 4px 8px; border-radius: var(--r-pill); background: var(--red); color: #fff3e4; font: 600 12.5px/1 var(--sans); }
.hm-reply { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hm-reply .hm-mark { margin-right: 4px; }
.hm-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #120c0e);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.hm-av img { width: 100%; height: 100%; object-fit: cover; }
.hm-av b { font: 400 15px/1 var(--serif); color: var(--c); }
.hm-reply.fresh .hm-av { box-shadow: 0 0 0 1.5px var(--red-hi), 0 0 12px color-mix(in oklab, var(--red-hi) 55%, transparent); }
.hm-tx { min-width: 0; font-size: 14.5px; line-height: 1.35; color: var(--bone-2); }
.hm-tx b { color: var(--bone); font-weight: 600; }
.hm-tx time { display: block; margin-top: 2px; font-size: 13px; color: var(--bone-3); }
.hm-more { margin-top: 6px; min-height: 32px; }
.hm-empty { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bone-2); }

/* ---------- the bottom: the day as one plinth (#85 "make that UI more polished") ----------
   Three zones on one carved plate, split by engraved rules: the streak (a gold coin with the number struck in it),
   today's DMs in the middle as the big one (the number in Caslon, twenty notches in a sunken groove that turn gold when
   the day is done), and the Battle Pass (the tier in a gold ring that fills with the tier). Same height for all three. */
.hm-day { position: relative; left: calc(-1 * var(--hm-shift)); justify-self: center; width: min(980px, 100% - 2 * var(--hm-shift));
  display: grid; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1.65fr) 2px minmax(0, 1fr); align-items: center; padding: 8px;
  border-radius: 16px; text-shadow: none;
  background: var(--grain) 0 0 / 160px, linear-gradient(180deg, rgba(34, 24, 25, .94), rgba(13, 9, 10, .92) 62%, rgba(8, 6, 7, .94));
  box-shadow: inset 0 1px 0 rgba(255, 238, 214, .11), inset 0 0 0 1px rgba(236, 228, 216, .1), inset 0 -2px 0 rgba(0, 0, 0, .4),
    0 0 0 1px rgba(0, 0, 0, .55), 0 26px 50px -20px rgba(0, 0, 0, .95), 0 8px 18px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hm-dz { min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 16px; }
.hm-day button.hm-dz { position: relative; border: 0; background: none; border-radius: 10px; text-align: left; color: var(--bone); cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform 160ms var(--ease); }
.hm-day button.hm-dz:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .hm-day button.hm-dz:hover { background-color: rgba(236, 228, 216, .05); } }
.hm-day button.hm-dz:focus-visible { outline-offset: -2px; }
.hm-rule { align-self: stretch; margin: 10px 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, .55) 82%, transparent);
  box-shadow: 1px 0 0 rgba(255, 238, 214, .07); }
.hm-day svg { width: 20px; height: 20px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-dt { min-width: 0; display: grid; gap: 3px; }
.hm-dt b { font: 400 17px/1.15 var(--serif); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-dt small { font: 500 13.5px/1.2 var(--sans); color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the streak: a struck gold coin */
.hm-medal { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff3cc, #f0c870 30%, #b98a3b 66%, #6e4c17);
  box-shadow: inset 0 1px 1px rgba(255, 250, 230, .7), inset 0 -3px 5px rgba(60, 36, 6, .45), 0 0 0 1px rgba(0, 0, 0, .55), 0 5px 12px rgba(0, 0, 0, .6), 0 0 22px rgba(240, 200, 112, .22); }
.hm-medal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(70, 44, 8, .38), 0 1px 0 rgba(255, 245, 210, .35); }
.hm-medal b { position: relative; font: 400 21px/1 var(--serif); color: #33230a; text-shadow: 0 1px 0 rgba(255, 240, 200, .55); font-variant-numeric: lining-nums tabular-nums; }
.hm-medal svg { position: relative; stroke: #33230a; stroke-width: 1.8; }
.hm-streak.cold .hm-medal { background: radial-gradient(circle at 34% 28%, rgba(240, 200, 112, .14), rgba(240, 200, 112, .04) 70%); box-shadow: inset 0 0 0 1.5px rgba(240, 200, 112, .55), 0 4px 10px rgba(0, 0, 0, .5); }
.hm-streak.cold .hm-medal::before { box-shadow: none; }
.hm-streak.cold .hm-medal b { color: var(--t-titan); text-shadow: none; }
.hm-streak.cold .hm-medal svg { stroke: var(--t-titan); }

/* today's DMs: the big one */
.hm-bar { display: grid; gap: 9px; padding: 6px 22px; }
.hm-bar-l { display: flex; align-items: baseline; gap: 10px; margin: 0; min-width: 0; }
.hm-big { flex: none; }
.hm-big b { font: 400 28px/1 var(--serif); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
/* one type ladder across the plate (Dodd, 10-25: "artists messaged today" read as another font): each zone has its line
   in Caslon 17 (the streak's "Day streak", the pass's "Battle Pass", and here "0 / 20 artists messaged today", the
   number set larger in the same face) and one small Inter line (Kept for today / Tier 3 of 50 / 20 to go) */
.hm-big small { font: 400 17px/1 var(--serif); color: var(--bone-3); font-variant-numeric: lining-nums tabular-nums; }
.hm-bar-w { min-width: 0; font: 400 17px/1.15 var(--serif); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-togo { margin-left: auto; flex: none; font: 500 13.5px/1.2 var(--sans); color: var(--bone-3); white-space: nowrap; }
.hm-day.is-done .hm-togo { color: var(--t-titan); }
.hm-notches { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 6px;
  background: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 238, 214, .07); }
.hm-notches i { height: 8px; border-radius: 2px; background: rgba(236, 228, 216, .07); box-shadow: inset 0 1px 0 rgba(255, 238, 214, .04); }
.hm-notches i.half { margin-right: 5px; }
.hm-notches i.on { background: linear-gradient(180deg, #ff6d5f, #d21f29 55%, #8e0f18); box-shadow: inset 0 1px 0 rgba(255, 214, 204, .55), 0 0 8px color-mix(in oklab, var(--red-hi) 55%, transparent); }
.hm-day.is-done .hm-notches i.on { background: linear-gradient(180deg, #fff1c4, #e7bd63 55%, #9c7230); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .6), 0 0 8px rgba(240, 200, 112, .45); }
.hm-notches i.next { background: rgba(236, 228, 216, .3); animation: hm-next 1.8s ease-in-out infinite; }
@keyframes hm-next { 50% { opacity: .45; } }

/* the Battle Pass: the tier in a gold ring that fills */
.hm-ring { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 26, 12, .95), rgba(14, 10, 6, .95)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 5px 12px rgba(0, 0, 0, .6), 0 0 20px rgba(240, 200, 112, .14); }
.hm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hm-ring circle { fill: none; stroke-width: 3; }
.hm-ring .k { stroke: rgba(240, 200, 112, .16); }
.hm-ring .b { stroke: #ecc56a; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(240, 200, 112, .6)); }
.hm-ring > svg + * { position: relative; }
.hm-ring-n { font: 400 19px/1 var(--serif); color: #f6d98e; font-variant-numeric: lining-nums tabular-nums; }
.hm-ring > svg:not(:first-child), .hm-ring > svg ~ svg { position: relative; inset: auto; width: 20px; height: 20px; transform: none; stroke: var(--t-titan); stroke-width: 1.5; }
.hm-ring.dim { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .5); }
.hm-pass .hm-dt b { background: linear-gradient(100deg, #f2c75e, #ffe9a8 40%, #fff7de 50%, #ffd46e 62%, #f0b948); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hm-pass:not(.is-live) small { color: var(--bone-3); }
.hm-pass.has-claim small { color: #f6d98e; }
/* mirrored against the streak, so the plinth reads from both ends into the middle */
.hm-day button.hm-pass { flex-direction: row-reverse; text-align: right; }
.hm-pass > .hm-mark { position: absolute; top: 10px; right: 52px; }
@media (hover: hover) and (pointer: fine) { .hm-pass:hover .hm-ring { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 5px 12px rgba(0, 0, 0, .6), 0 0 26px rgba(240, 200, 112, .3); } }

/* a quest with nothing left to do answers with a small shake */
.hm-deny { animation: hm-shake .26s linear; }
@keyframes hm-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

@media (max-width: 1180px) and (min-width: 861px) {
  .hm-stage { padding-top: 46px; }
  #panel.is-home .pcard { height: clamp(240px, min(50vh, 100vh - 470px), 520px); }
  #panel.is-home .hm-stage:has(.hm-hand) .pcard { height: clamp(220px, min(46vh, 100vh - 504px), 480px); }
  .hm-obj { height: clamp(220px, min(42vh, 100vh - 500px), 420px); }
  .hm-day { grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1.5fr) 2px minmax(0, 1fr); }
  .hm-dz { padding-left: 10px; padding-right: 10px; gap: 11px; }
  .hm-bar { padding: 6px 14px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .hm-dz { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .hm-medal, .hm-ring { width: 42px; height: 42px; }
}

/* ---------- Home on phones: the stage, then the day; the drop-downs sit in the flow under the plate ---------- */
@media (max-width: 860px) {
  .stagebox.is-home { padding-top: 4px; overflow-x: clip; }
  #panel.is-home { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .hm-stage { padding: 8px 0 4px; }
  .hm-stage::before { width: 420px; top: 36%; }
  #panel.is-home .pcard { height: 320px; }
  .hm-obj { height: 240px; }
  .hm-prompt .phead h2 { font-size: 32px; }
  .hm-prompt .pacts { width: 100%; }
  .hm-prompt .pacts .btn { width: 100%; min-width: 0; }
  .hm-day { width: 100%; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); padding: 6px; }
  .hm-day .hm-bar { grid-column: 1 / -1; grid-row: 1; padding: 10px 12px 12px; border-bottom: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 1px 0 rgba(255, 238, 214, .06); }
  .hm-day > .hm-rule:first-of-type { display: none; }
  .hm-dz { padding: 6px 10px; gap: 10px; }
  .hm-dt small { white-space: normal; line-height: 1.3; }
  .hm-medal, .hm-ring { width: 40px; height: 40px; }
  .hm-medal b { font-size: 18px; } .hm-ring-n { font-size: 17px; }
  .hm-pass > .hm-mark { right: 42px; }
  .hud-drops { position: relative; top: auto; margin-top: 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .hd-btn { justify-content: flex-start; min-width: 0; gap: 7px; padding: 0 8px 0 11px; font-size: 13px; }
  .hd-btn .hd-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hd-btn .hd-chev { margin-left: auto; }
  .hd-pop { left: 0 !important; right: 0; width: auto; max-height: 70vh; }
}
@media (max-width: 430px) { .hd-chev { display: none; } }

/* ================= the sections still to come (#modview) ================= */
.modview { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: auto; padding: 28px clamp(20px, 3vw, 48px) 48px; scrollbar-color: #715b52 transparent; }
.modview[hidden] { display: none; }
@media (max-width: 860px) { .modview { grid-column: 1; grid-row: 3; overflow: visible; padding: 16px 18px 30px; } }
.mod-soon { position: relative; isolation: isolate; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 20px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
/* a soft dark pool behind the words, so they read over the brightest part of the scene */
.mod-soon::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(980px, 150%); height: min(760px, 110%); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 5, 6, .74), rgba(7, 5, 6, .45) 58%, transparent); }
.ms-emblem { position: relative; width: 124px; aspect-ratio: 1; margin-bottom: 26px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 228, 216, .09), rgba(236, 228, 216, .02) 70%, transparent), rgba(9, 6, 7, .86);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 0 0 10px rgba(236, 228, 216, .025), 0 0 0 11px rgba(236, 228, 216, .06); }
.ms-emblem svg { width: 58px; height: 58px; fill: none; stroke: var(--bone-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ms-k { margin: 0 0 6px; font: 500 15px/1.4 var(--sans); color: var(--bone-3); }
.ms-title { margin: 0 0 14px; font: 400 clamp(44px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 24px #000; }
.ms-line { margin: 0 auto 24px; max-width: 46ch; font-size: 16.5px; line-height: 1.6; color: var(--bone-2); }
.ms-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); justify-content: center; margin: 0 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ms-facts div { padding: 14px 24px; text-align: center; }
.ms-facts div + div { box-shadow: inset 1px 0 0 var(--line); }
.ms-facts dt { margin-bottom: 6px; font: 500 13.5px/1.3 var(--sans); color: var(--bone-3); }
.ms-facts dd { margin: 0; font: 400 22px/1.15 var(--serif); color: var(--bone); }
.ms-track { display: flex; align-items: center; gap: 6px; margin: 0 0 28px; }
.ms-track i { width: 22px; height: 6px; border-radius: 2px; background: rgba(240, 200, 112, .1); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .32); }
.ms-track i.first { background: linear-gradient(90deg, #b98a3b, #f3d690); box-shadow: 0 0 10px rgba(240, 200, 112, .4); }
.ms-track span { margin-left: 6px; font: 500 13.5px/1 var(--sans); color: var(--bone-3); }
.ms-acts { justify-content: center; margin-top: 0; }
.ms-acts .btn { flex: 0 0 auto; }
/* the Battle Pass panel wears the menu's gold */
.mod-soon[data-for="pass"] .ms-emblem { background: radial-gradient(closest-side, rgba(240, 200, 112, .16), rgba(240, 200, 112, .03) 70%, transparent), rgba(9, 6, 7, .86);
  box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .45), 0 0 0 10px rgba(240, 200, 112, .03), 0 0 0 11px rgba(240, 200, 112, .1), 0 0 60px rgba(240, 200, 112, .12); }
.mod-soon[data-for="pass"] .ms-emblem svg { stroke: var(--t-titan); }
.mod-soon[data-for="pass"] .ms-title { background: linear-gradient(100deg, #c08f3e 0%, #f3d690 22%, #fff3cf 40%, #ffd9ec 46%, #d7f3ff 52%, #fff1c4 58%, #e7bd63 72%, #c08f3e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(240, 200, 112, .28)); }
@media (max-width: 600px) { .ms-facts { grid-auto-flow: row; grid-template-columns: 1fr; width: 100%; } .ms-facts div + div { box-shadow: inset 0 1px 0 var(--line); } .ms-facts div { padding: 12px 14px; } .ms-acts { flex-direction: column; width: 100%; } .ms-acts .btn { width: 100%; } }

/* ---------- reduced motion: the gold stays, the sheen and the blink stop ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-pass .nav-word { animation: none; background-position: 0 0; }
  .nav-spark { display: none; }
  .hm-notches i.next { animation: none; }
  .hm-deny { animation: none; }
  .hm-card, .hm-quest, .hm-reply, .hm-day button, .hd-btn { transition: background-color var(--dur-fast) ease; }
  .hm-mark::after, .nav-mark::after { animation: none; opacity: .7; }
  .side .nav-mark { transition: opacity 160ms ease; transform: rotate(45deg); }
  .hd-pop, .hd-pop.open { transform: none; transition: opacity 120ms ease, visibility 0s linear 120ms; }
  .hd-pop.open { transition: opacity 120ms ease, visibility 0s; }
  .hd-chev { transition: none; }
  .pack-home > .hm-floor { transition: opacity 200ms ease; }
  .pack-home:hover > .hm-floor { transform: none; }
}

/* ---------- Quests / While you were gone on every page (Dodd, 10-25) ----------
   Closed, the two plaques stay under the top plate on every page (app.js homeDrops; .is-away off Home). Opening one
   from elsewhere goes to Home and opens it there; closing it brings you back. Off Home they sit a touch quieter so the
   page's own header leads, and light up again under the pointer or the keyboard. */
.hud-drops.is-away:not(.is-open) .hd-btn { background: var(--grain) 0 0 / 160px, linear-gradient(180deg, rgba(15, 10, 11, .78), rgba(6, 4, 5, .74)); }
.hud-drops.is-away:not(.is-open) .hd-btn:not(:hover):not(:focus-visible) .hd-word { color: var(--bone-2); }

/* ---------- arriving from Join or Sign in (app.js arrive) ----------
   One move from the site page into the desk: the browser cross-fades the two pages (cross-document view transition,
   Chrome/Safari; elsewhere it simply loads), the world is the same scene underneath, the menu's IRIS glides in from the
   site's wordmark and Home's pack lands from where Join's pack stood. */
/* Cross-document navigation stays native: mixed app/back-office opt-in aborted in Chrome. In-page motion remains. */
@view-transition { navigation: none; }
::view-transition-old(root) { animation: iris-vt-out 420ms cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: iris-vt-in 520ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes iris-vt-out { to { opacity: 0; } }
@keyframes iris-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; } }
/* the world's first still always sits under the canvas (the canvas covers it once lit), with roughly the shader's own
   vignette, so the desk never opens on black: not on a reload, not arriving from the site, not while the GPU warms up */
.stage { background: radial-gradient(120% 95% at 55% 45%, rgba(7, 5, 6, .1) 40%, rgba(7, 5, 6, .55) 100%), linear-gradient(rgba(7, 5, 6, .22), rgba(7, 5, 6, .22)),
  var(--black) url("assets/art/hall-atlas.webp") 62% 40% / cover no-repeat; }
.desk.t-arrive .brand b { animation: none; }             /* it's already there: it glides in from the site's wordmark */
.desk.t-arrive .brand span { animation: t-from-left 320ms 640ms var(--ease) both; } /* "Artist Alignment" once the IRIS has landed */
.desk.t-arrive-pack .pcard.pack-home { animation: none; } /* the pack lands from Join's pack instead of rising in */

/* ---------- #125 the two-week timeline (home.js trialHtml) ----------
   A slim engraved band sitting on the day plinth: "Day 5 of 14", fourteen marks (the days gone in dim gold, today lit
   red like the plinth's notches, the last three set apart a little: that's where the double packs end), and the days
   left. In the last three days and after day 14, members without the installation get one red ask beside it. */
#panel.is-home:has(> .hm-trial) { grid-template-rows: minmax(0, 1fr) auto auto; }
.hm-trial { position: relative; left: calc(-1 * var(--hm-shift)); justify-self: center; width: min(940px, 100% - 2 * var(--hm-shift));
  margin-bottom: calc(8px - clamp(14px, 3.2vh, 34px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px;
  min-height: 46px; padding: 6px 8px 6px 18px; border-radius: 12px 12px 4px 4px; text-shadow: none;
  background: var(--grain) 0 0 / 160px, linear-gradient(180deg, rgba(26, 18, 19, .9), rgba(10, 7, 8, .9));
  box-shadow: inset 0 1px 0 rgba(255, 238, 214, .09), inset 0 0 0 1px rgba(236, 228, 216, .08), 0 0 0 1px rgba(0, 0, 0, .5), 0 12px 26px -14px rgba(0, 0, 0, .9); }
.hm-trial.is-ask, .hm-trial.is-after { grid-template-columns: auto minmax(0, 1fr) auto auto; padding-right: 6px; }
.hm-trial.is-after { grid-template-columns: minmax(0, 1fr) auto; }
.hm-trial-l { display: flex; align-items: baseline; gap: 10px; margin: 0; min-width: 0; white-space: nowrap; }
.hm-trial-l b { font: 400 16px/1.2 var(--serif); color: var(--bone); }
.hm-trial-l span, .hm-trial-r { font: 500 13.5px/1.2 var(--sans); color: var(--bone-2); }
.hm-trial-l span { overflow: hidden; text-overflow: ellipsis; }
.hm-trial-r { margin: 0; white-space: nowrap; }
.hm-trial.is-ask .hm-trial-r { color: #f0d9a8; }
.hm-trial-days { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 5px;
  background: rgba(0, 0, 0, .45); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 238, 214, .06); }
.hm-trial-days i { height: 6px; border-radius: 2px; background: rgba(236, 228, 216, .08); }
.hm-trial-days i:nth-child(12) { grid-column: 13; } /* the last three days stand a step apart */
.hm-trial-days i.end { background: rgba(240, 200, 112, .1); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .22); }
.hm-trial-days i.past { background: linear-gradient(180deg, #e9c77d, #a87c34); box-shadow: none; opacity: .62; }
.hm-trial-days i.now { background: linear-gradient(180deg, #ff6d5f, #d21f29 55%, #8e0f18); box-shadow: inset 0 1px 0 rgba(255, 214, 204, .55), 0 0 8px color-mix(in oklab, var(--red-hi) 60%, transparent); opacity: 1; }
.hm-trial .btn.hm-trial-ask { min-height: 36px; padding: 0 16px; font-size: 14.5px; border-radius: 8px; white-space: nowrap; }
.hm-trial .btn.hm-trial-ask::before { inset: 3px; }
/* in the last days the ask is gold, not red: the day's red stays on the pack (or the row) you're on; once the two weeks
   are over it's the only thing on the strip and goes red */
.hm-trial.is-ask .btn.hm-trial-ask { background: linear-gradient(180deg, rgba(240, 200, 112, .16), rgba(240, 200, 112, .06)); color: #f6dfa8; filter: none;
  box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .5), 0 0 16px rgba(240, 200, 112, .1); }
.hm-trial.is-ask .btn.hm-trial-ask::before { border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .hm-trial.is-ask .btn.hm-trial-ask:hover { background: linear-gradient(180deg, rgba(240, 200, 112, .26), rgba(240, 200, 112, .1)); color: #fff3d6; } }
.hm-trial-acts { display: flex; align-items: center; gap: 4px; }
.hm-trial-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--bone-3); cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform 160ms var(--ease); }
.hm-trial-x:hover { background-color: rgba(236, 228, 216, .07); color: var(--bone); }
.hm-trial-x:active { transform: scale(.94); }
.hm-trial-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 1180px) and (min-width: 861px) { .hm-trial-l span { display: none; } }
@media (max-width: 860px) {
  .hm-trial { left: 0; width: 100%; margin-bottom: -8px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; border-radius: 12px; }
  .hm-trial.is-ask { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-trial-days { grid-column: 1 / -1; grid-row: 2; }
  .hm-trial .btn.hm-trial-ask { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .hm-trial.is-after .hm-trial-acts { grid-column: 1 / -1; }
  .hm-trial.is-after .hm-trial-acts .btn { flex: 1; }
  .hm-trial-l { flex-wrap: wrap; white-space: normal; }
}

/* ---------- #123 While you were gone, honest: news with an icon disc, and the one locked line ---------- */
.hm-av.hm-av-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-news .hm-tx time { margin-top: 3px; }
.hm-lockline { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--bone-3); }
.hm-lockline svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: var(--t-titan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.hm-lockline .textlink { min-height: 0; padding: 0; font-size: 13px; color: #f0d9a8; }
/* Dodd 10-27: Open packs stands out (a pack picture, a count badge, a slow glow) but stays second to Start messaging */
.hm-prompt .pacts .hm-packs-btn { position: relative; gap: 10px; padding-left: 14px; color: #fff;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--red-hi) 70%, #f0c870), 0 0 22px -4px color-mix(in oklab, var(--red-hi) 60%, transparent);
  animation: hm-packs-glow 3.2s ease-in-out infinite; }
.hm-packs-btn img { width: 26px; height: auto; margin: -8px 0; border-radius: 3px; transform: rotate(-8deg); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.hm-packs-btn b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-grid; place-items: center;
  font: 700 13px/1 var(--sans); color: #fff; background: var(--red-hi); box-shadow: 0 0 10px color-mix(in oklab, var(--red-hi) 70%, transparent); }
.hm-packs-btn:hover { background: color-mix(in oklab, var(--red-hi) 14%, transparent); }
@keyframes hm-packs-glow { 50% { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--red-hi) 85%, #f0c870), 0 0 34px -2px color-mix(in oklab, var(--red-hi) 75%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hm-prompt .pacts .hm-packs-btn { animation: none; } }
