/* Halfture on the web (2.0.0): [halfture_web]. Built on sow.css's tokens and parts. */
.hs-web { max-width: 620px; }
.hs-web-tabs { position: sticky; top: 8px; z-index: 3; }
.hs-web-head { align-items: center; }
.hs-web-manna { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--hs-line-warm); background: var(--hs-raised); color: var(--hs-accent); font: 500 14px/1 var(--hs-mono); }
.hs-web-stage { display: flex; justify-content: center; }
.hs-web-pip { image-rendering: pixelated; image-rendering: crisp-edges; display: block; max-width: 100%; height: auto; }
.hs-web-pip.big { width: 210px; }
.hs-web-prayer { font: 400 18px/1.6 var(--hs-serif); color: var(--hs-soft); }
.hs-web-amen { font-size: 24px !important; min-height: 64px; }
.hs-web-amen:active { transform: scale(.97); }
.hs-web-said { text-align: center; }
.hs-web-gift { justify-items: center; text-align: center; }
.hs-web-gift .hs-web-pip { width: 120px; }
.hs-web-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hs-web-day { aspect-ratio: 1; max-width: 100%; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--hs-line); background: var(--hs-surface-2); font: 500 12px/1 var(--hs-mono); color: var(--hs-muted); }
.hs-web-day.amen { background: var(--hs-accent); border-color: var(--hs-accent); color: var(--hs-on-accent); }
.hs-web-day.grace { background: var(--hs-raised); border-color: var(--hs-line-warm); border-style: dashed; color: var(--hs-accent); }
.hs-web-day.open { border: 2px solid var(--hs-accent); color: var(--hs-accent); }
.hs-web-day.missed { opacity: .5; }
.hs-web-cycle { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hs-web-cyc { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--hs-line); background: var(--hs-raised); }
.hs-web-cyc small { font-size: 11px; color: var(--hs-faint); }
.hs-web-cyc b { font: 500 14px/1 var(--hs-mono); color: var(--hs-soft); }
.hs-web-cyc.on { border-color: var(--hs-accent); border-width: 2px; }
.hs-web-cyc.got b { color: var(--hs-accent); }
.hs-web-balance { justify-items: start; }
.hs-web-big { font: 500 44px/1 var(--hs-mono); color: var(--hs-bright); }
.hs-web-wheelwrap { position: relative; display: grid; place-items: center; }
.hs-web-wheel { width: 240px; max-width: 100%; height: auto; border-radius: 50%; }
.hs-web-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--hs-bright); }
.hs-web-mission { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hs-line); background: var(--hs-raised); }
.hs-web-mission b { display: block; font-weight: 500; }
.hs-web-mission small { display: block; color: var(--hs-faint); font-size: 13px; }
.hs-web-mission.done { opacity: .62; }
.hs-web-tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hs-line-strong); display: grid; place-items: center; color: var(--hs-accent); font-weight: 700; }
.hs-web-plus { font: 500 14px/1 var(--hs-mono); color: var(--hs-accent); }
.hs-web-log { display: grid; gap: 4px; }
.hs-web-log li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--hs-line) !important; font-size: 14px; }
.hs-web-log b { font: 500 14px/1 var(--hs-mono); color: var(--hs-accent); }
.hs-web-log b.out { color: var(--hs-muted); }
.hs-web-slots { gap: 6px; }
.hs-web-slots .hs-chip { min-height: 38px; padding: 0 12px; font-size: 13px !important; }
.hs-web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.hs-web-look { display: grid; gap: 4px; justify-items: center; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--hs-line); background: var(--hs-raised); color: var(--hs-text); text-align: center; transition: transform .15s; }
.hs-web-look:hover { border-color: var(--hs-accent); transform: translateY(-2px); }
.hs-web-look:active { transform: scale(.95); }
.hs-web-look .hs-web-pip { width: 70px; }
.hs-web-look b { font-weight: 500; font-size: 14px; line-height: 1.25; }
.hs-web-look small { font-size: 12px; color: var(--hs-accent); }
.hs-web-look.on { border: 2px solid var(--hs-accent); background: var(--hs-surface-2); }
.hs-web-look.earned { border-color: var(--hs-line-warm); }
.hs-web-look.short { opacity: .45; }
.hs-web-look.short small, .hs-web-short { color: var(--hs-muted) !important; }
.hs-web-ask { justify-items: center; text-align: center; }
.hs-web-ask .hs-web-pip { width: 140px; }
.hs-web-code { font: 500 18px/1.3 var(--hs-mono); color: var(--hs-bright); word-break: break-all; background: var(--hs-surface-2); padding: 10px 12px; border-radius: 10px; }
.hs-web-toast { position: sticky; bottom: 12px; z-index: 4; padding: 12px 16px; border-radius: 14px; background: var(--hs-bright); color: var(--hs-on-accent); font-size: 15px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .hs-web-wheel { transition: none !important; } }

/* The Ark's avatars: every poster's Pip (2.0.0). */
.hs-ark-av { width: 34px; height: auto; border-radius: 8px; image-rendering: pixelated; flex: 0 0 auto; }
.hs-ark-meta { align-items: center; }

/* 2.0.1: four tabs fit a phone, whatever the theme does to buttons. */
.hs-web-tabs button { min-width: 0 !important; padding: 0 4px !important; font-size: 15px !important; white-space: nowrap; }
@media (max-width: 480px) { .hs-root.hs-web { padding: 20px 14px; margin: 12px auto; } .hs-web-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* 2.1.0: the tabs are links between the pages. */
.hs-web-tabs a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--hs-soft) !important; font-weight: 500; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.hs-web-tabs a[aria-current="page"] { background: var(--hs-accent); color: var(--hs-on-accent) !important; }
.hs-web-tabs a:hover { color: var(--hs-accent) !important; }
.hs-web-tabs a[aria-current="page"]:hover { color: var(--hs-on-accent) !important; }

/* 2.2.0: standalone pages, like Sow and the Ark (owner's request): a hero with your Pip, the feature in two columns. */
.hs-web-heropip { position: relative; z-index: 1; width: min(320px, 100%); height: auto; aspect-ratio: 14 / 12; image-rendering: pixelated; filter: drop-shadow(0 22px 34px rgba(80, 52, 12, .22)); }
.hs-web-page > .hs-web { max-width: 1080px; margin: 0 auto; display: grid; gap: 20px; }
.hs-web-page .hs-web-main { align-items: start; }
.hs-web-page .hs-web-side { padding-top: 0; }
.hs-web-page .hs-web-head { padding: 4px 2px; }
.hs-web-page .hs-web-logtitle { margin-top: 12px; }
.hs-web-page .hs-web-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.hs-web-page .hs-web-wheel { width: 300px; }
@media (max-width: 860px) { .hs-web-heropip { width: min(220px, 70%); } .hs-web-page .hs-web-wheel { width: 240px; } }
.hs-web-page button { font: inherit; cursor: pointer; }
.hs-web-page .hs-card { background: var(--hs-raised); }
/* 2.2.1: headings in the narrower column wrap instead of spilling out. */
.hs-web-page .hs-between { flex-wrap: wrap; row-gap: 6px; }
.hs-web-page .hs-web-side .hs-big { font-size: 18px; }
.hs-web-page .hs-card { min-width: 0; }
