/* Home on the open Duo (home.js). Rules from the approved board drinkin-winkin-duo-home-2026-11-17/board.css (`dirA` and
   the left half), renamed hm-* and scoped to .dw-home so nothing reaches the board's other pages. Sizes are the app's
   (DuoHome.swift, DuoHomeDetail.swift, DuoHomeMine.swift). */
@font-face { font-family: "IM_FELL_English_SC"; src: url("../../drinkin-winkin-replica-2026-10-20/fonts/IMFellEnglishSC-Regular.ttf"); }
.dw-home { --sub: #9FB0D6; --head: #DCE4F7; --ok: #A6D99B; --parch: #F3E6C8; --card: #182040; --hair: rgba(255,255,255,.08);
  --warnfill: #3A3220; --okfill: rgba(46, 90, 58, .6); color: #fff; }
.dw-home .num { font-variant-numeric: tabular-nums; }
.dw-home button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dw-home .lp-in { padding: 32px 0 24px; }
.dw-home .rp-in { overflow: hidden; padding-bottom: 0; }

/* left: DuoHome */
.hm-h { display: flex; gap: 12px; align-items: flex-start; }
.hm-h > div { flex: 1; min-width: 0; }
.hm-h h1 { font: 600 32px/1.2 Prompt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-h p { margin-top: 4px; color: var(--sub); font-size: 15px; }
.dw-home .hm-gk { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(242,179,61,.45); }
.dw-home .hm-gk.on { background: rgba(242,179,61,.16); }
.hm-q { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0 2px 0 12px; min-height: 44px; border-radius: 10px; color: var(--sub);
  background: rgba(8, 12, 26, .55); box-shadow: inset 0 0 0 1px var(--hair); }
.hm-q input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; color: #fff; font: 400 15px/1.3 Prompt; }
.hm-q input::placeholder { color: var(--sub); }
.hm-q button { width: 44px; height: 44px; display: grid; place-items: center; }
.hm-tabs { display: flex; margin-top: 16px; padding: 3px; border-radius: 12px; background: rgba(8, 12, 26, .55); box-shadow: inset 0 0 0 1px var(--hair); }
.dw-home .hm-tabs button { flex: 1; min-height: 48px; border-radius: 9px; color: #A9B0C6; font: 500 14px/1 Prompt; }
.dw-home .hm-tabs button.on { color: var(--gold); font-weight: 600; background: rgba(242,179,61,.16); box-shadow: inset 0 0 0 1.5px var(--gold); }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; align-items: start; }
.dw-home .hm-ec { display: block; text-align: left; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.dw-home .hm-ec.on { box-shadow: inset 0 0 0 2px var(--gold); }
.hm-art { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; }
.hm-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hm-numeral { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); min-width: 56px; padding: 4px 9px 3px; text-align: center;
  font: 14px/1 "IM_FELL_English_SC", serif; letter-spacing: 2px; color: var(--navy, #18213D); background: linear-gradient(#FBE1A0, #E9AE38);
  box-shadow: inset 0 0 0 1.5px #18213D, inset 0 0 0 3px #F3CB6A, inset 0 0 0 3.6px #18213D; }
.hm-b { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.hm-b b { font: 600 16px/1.25 Prompt; }
.hm-b small { font-size: 13px; line-height: 1.35; color: var(--sub); }
.hm-chip { display: block; font: 600 13px/1.3 Prompt; color: rgba(243,230,200,.75); background: rgba(255,255,255,.06); border-radius: 8px; padding: 4px 8px; }
.hm-chip { max-width: 100%; min-width: 0; }
.hm-cl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-chip.warn { color: var(--gold); background: var(--warnfill); box-shadow: inset 0 0 0 1.5px var(--gold); }
.hm-chip.ok { color: var(--ok); background: var(--okfill); }
/* DuoMoveRow's chip = DuoChip (DuoHomeMine.swift:165; DuoEventBills.swift:216-238): 11/600, 7/4, radius 5, no edge */
.hm-chip.sm { display: inline-flex; flex: none; padding: 4px 7px; border-radius: 5px; font: 600 11px/1.51 Prompt; white-space: nowrap; box-shadow: none; }
.hm-chip.sm.due { color: #F2D58B; background: rgba(242,179,61,.14); }
.hm-chip.sm.ok { color: #A6D99B; background: rgba(46,91,51,.5); }
.hm-t { font: 600 18px/1.2 Prompt; }
.hm-none { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px 24px 24px; color: #DCCDA8; text-align: center; }
.hm-none b { font: 600 17px/1.35 Prompt; color: var(--parch); }

/* right: DuoHomeDetail, DuoHomeMine */
.hm-top { padding-top: 28px; display: flex; align-items: center; gap: 8px; min-height: 72px; flex: none; }
.hm-top h2 { flex: 1; min-width: 0; font: 600 26px/1.2 Prompt; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-grow { flex: 1; }
.hm-at { font-size: 14px; color: var(--sub); min-width: 34px; text-align: center; }
.dw-home .hm-ib { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--gold); background: rgba(14,20,40,.55); box-shadow: inset 0 0 0 1px rgba(242,179,61,.4); }
.dw-home .hm-ib:disabled { color: rgba(242,179,61,.35); box-shadow: inset 0 0 0 1px rgba(242,179,61,.15); cursor: default; }
/* the pane's `> * { flex: none }` would win: the body takes the rest, its foot pinned at the bottom (DuoHomeDetail.swift:51) */
.dw-home .rp-in > .hm-body { flex: 1 1 0; }
.hm-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; }
.hm-body::-webkit-scrollbar { display: none; }
.hm-foot { display: flex; gap: 12px; padding: 12px 0 20px; flex: none; }
.dw-home .hm-btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 10px; font: 600 15px/1.2 Prompt; white-space: nowrap; }
.dw-home .hm-btn.gold { color: #18213D; background: linear-gradient(180deg, #F6BE4C, #E9A932); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.25); }
.dw-home .hm-btn.ghost { color: #F2EEE4; background: rgba(14, 20, 40, .55); box-shadow: inset 0 0 0 1px rgba(242,179,61,.45); }
.hm-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.hm-sec h3 { font: 600 17px/1.2 Prompt; color: var(--gold); }
.hm-sec small { font-size: 14px; color: var(--sub); }
.hm-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 12px; background: rgba(14, 20, 40, .6); box-shadow: inset 0 0 0 1px var(--hair); color: var(--sub); }
.hm-row + .hm-row { margin-top: 8px; }
.hm-row.ok > .ic { color: var(--ok); }
.hm-tx { flex: 1; min-width: 0; }
.hm-tx b { display: block; font: 600 15px/1.3 Prompt; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tx > span { display: block; font-size: 13px; line-height: 1.35; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-amt { font: 600 15px/1.2 Prompt; color: #fff; white-space: nowrap; text-align: right; }
.hm-amt b { font-weight: 600; }
.hm-amt small { display: block; margin-top: 2px; font: 400 12px/1.2 Prompt; color: var(--sub); }
.hm-pair { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.hm-owe { margin-top: 4px; padding: 14px; border-radius: 14px; background: rgba(58, 50, 32, .72); box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 20px rgba(0,0,0,.3); }
.hm-owe + .hm-owe { margin-top: 12px; }
.hm-ot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* the amount keeps its whole width; the faces move under it when both do not fit (5 payers) */
.hm-ot > div { flex: 1 0 auto; }
.hm-ot small { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--parch); }
.hm-ot b { display: block; font: 600 28px/1.15 Prompt; color: var(--gold); }
.hm-who { display: flex; align-items: center; gap: 6px; color: var(--parch); flex: none; }
.hm-who figure { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; font: 600 12px/1 Prompt; }
.hm-stack { display: inline-flex; }
.hm-stack > * + * { margin-left: -12px; }
.hm-kv { display: flex; gap: 16px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(242,179,61,.25); }
.hm-kv div { flex: 1; }
.hm-kv small { font-size: 13px; color: rgba(243,230,200,.75); }
.hm-kv b { display: block; font: 600 16px/1.3 Prompt; color: #fff; }
.hm-owe .hm-btn { width: 100%; margin-top: 12px; }
.hm-owe.paid { background: rgba(30, 44, 44, .72); box-shadow: inset 0 0 0 1.5px rgba(166,217,155,.55), 0 8px 20px rgba(0,0,0,.3); }
.hm-owe.paid .hm-ot b { color: var(--parch); }
.hm-owe.paid .hm-ot small { font-weight: 600; color: var(--ok); }
.hm-owe.paid .hm-kv { border-top-color: rgba(166,217,155,.25); }
/* a finished Event */
.hm-hero { display: flex; align-items: flex-end; gap: 12px; }
.hm-art.big { width: 180px; flex: none; border-radius: 10px; }
.hm-hero > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hm-hero > div > b { font: 600 24px/1.2 Prompt; }
.hm-hero > div > small { font-size: 14px; color: var(--sub); }
.hm-fig small { display: block; font-size: 13px; color: var(--sub); }
.hm-fig b { font: 600 22px/1.2 Prompt; }
.hm-fig.gold b { color: var(--gold); }
.hm-faces { display: flex; }
.hm-faces > * + * { margin-left: -6px; }
.hm-names { margin-top: 8px; font-size: 14px; color: var(--head); }
/* open upright: the stacked panes are short, the grid keeps its three columns */
.dw.up.dw-home .lp-in { padding-top: 20px; }
.dw.up.dw-home .hm-top { padding-top: 12px; min-height: 56px; }
