/* ข สำรับไพ่: cards with the tarot art on top in an even grid; the picked card lifts with a gold edge; a segmented strip of the
   Event's pages across the detail; the rail is the replica's tab bar on its side. */
.d-b .sh { margin: 14px 0 8px }
.d-b .b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.d-b .b-grid.three { grid-template-columns: repeat(3, 1fr); gap: 10px }
.d-b .b-grid.four { grid-template-columns: repeat(4, 1fr); gap: 8px }
.d-b .b-grid.h, .d-b .b-grid.f4 { margin-top: 14px }
.fold.d-b .b-grid { gap: 10px }
.d-b .b-card { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #1C2647, #141C38);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px rgba(0,0,0,.3) }
.d-b .b-card.sel { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(242,179,61,.18), 0 12px 24px rgba(0,0,0,.45) }
.d-b .b-art { width: 100%; height: 112px; object-position: 50% 18% }
.d-b .b-art.sm { height: 84px }
.d-b .b-art.xs { height: 64px }
/* P'Ek 2026-10-30: the Event cards show the whole tarot card (art 700 x 1050), three to a row like the Pro Max deck */
.d-b .b-grid.h { grid-template-columns: repeat(3, 1fr); gap: 10px }
.d-b .b-grid.h .b-art { height: auto; aspect-ratio: 2 / 3; object-position: 50% 50% }
/* whole cards no longer fit one screen, so the list scrolls (the next row peeks in to say so) */
.open.d-b .lp-in.b-home { overflow-y: auto; scrollbar-width: none; padding-bottom: 24px }
.d-b .b-cb { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px }
.d-b .b-n { font: 600 15px/1.35 var(--sans) }
.d-b .b-cb small { color: var(--mute); font-size: 12px; line-height: 1.35 }
.d-b .b-cb p { margin-top: 3px }
.d-b .b-amt { font: 600 15px/1.35 var(--sans); color: var(--text) }
.d-b .b-cb .b-amt { margin-top: 2px }
.d-b .b-card.done { opacity: .82 }
.d-b .b-money { margin-top: 14px; display: flex; gap: 10px }
.d-b .b-money span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line) }
.d-b .b-money span:first-child { background: rgba(242,179,61,.13) }
.d-b .b-money small { color: var(--mute); font-size: 12px }
.d-b .b-money b { font: 600 15px/1.3 var(--sans) }
.d-b .b-money span:first-child b { color: var(--gold) }
.d-b .b-addc { min-height: 100%; align-items: center; justify-content: center; gap: 2px; color: var(--gold); background: rgba(242,179,61,.06); box-shadow: inset 0 0 0 1.5px rgba(242,179,61,.5) }
.d-b .b-addc small { color: var(--mute); font-size: 12px }
.d-b .b-pc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair) }
.d-b .b-pc b { font-weight: 600; font-size: 13px }
.d-b .b-pc small { color: var(--mute); font-size: 12px }

/* the detail: segmented strip, figures, foot */
.d-b .b-seg { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 3px; border-radius: 12px; background: rgba(8, 12, 26, .55); box-shadow: inset 0 0 0 1px var(--hair) }
.d-b .b-seg button { min-height: 44px; border-radius: 9px; font: 500 13px/1 var(--sans); color: var(--mute) }
.d-b .b-seg button.on { color: var(--gold-ink); background: var(--gold); font-weight: 600 }
.d-b .b-figs { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.d-b .b-figs div { padding: 10px 12px; border-radius: 12px; display: flex; flex-direction: column; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair) }
.d-b .b-figs small { color: var(--mute); font-size: 12px }
.d-b .b-figs b { font: 600 17px/1.35 var(--sans) }
.d-b .b-ring { margin-top: 12px }
.d-b .b-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08) }
.d-b .b-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #E2A12E, #F6C963) }
.d-b .b-ring p { margin-top: 6px; color: var(--mute); font-size: 12px }
.d-b .b-ring p b { color: var(--gold) }
.d-b .b-plist .pr + .pr { box-shadow: inset 0 1px 0 var(--hair) }
.d-b .b-plist .pr { min-height: 48px }
.d-b .b-foot { margin-top: auto; padding: 12px 0 20px; display: flex; gap: 10px }
.d-b .b-foot .btn { flex: 1 }
.d-b .b-rc { margin-top: 14px }
.d-b .b-qc { margin-top: 12px }
.d-b .b-slip { margin-top: 14px }
.d-b .b-match { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #CDEBC9; font-size: 13px }
.d-b .b-t1 { font: 400 26px/1.25 var(--display) }
.d-b .b-me, .d-b .b-friend { padding-top: 22px; display: flex; align-items: center; gap: 14px }
.d-b .b-me p { color: var(--mute); font-size: 13px }
.d-b .b-me .face, .d-b .b-friend .face { box-shadow: 0 0 0 2px var(--gold) }
.d-b .b-big { margin-top: 14px; padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; background: rgba(242,179,61,.1); box-shadow: inset 0 0 0 1px var(--line) }
.d-b .b-big small { color: var(--mute); font-size: 12px }
.d-b .b-big b { font: 400 32px/1.2 var(--display); color: var(--gold) }
.d-b .b-who { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px }

/* tick: each item a tile you press */
.d-b .b-ticks { margin-top: 14px; gap: 10px }
.d-b .b-tile { position: relative; min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; border-radius: 12px;
  background: linear-gradient(180deg, #1C2647, #141C38); box-shadow: inset 0 0 0 1px var(--line) }
.d-b .b-tile span { flex: 1; min-width: 0; display: flex; flex-direction: column }
.d-b .b-tile b { font-weight: 600; font-size: 15px; line-height: 1.3 }
.d-b .b-tile small { color: var(--mute); font-size: 12px }
.d-b .b-ti { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(242,179,61,.12) }
.d-b .b-tc { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(242,179,61,.5) }
.d-b .b-tile.on { background: linear-gradient(180deg, #3A3220, #2A2516); box-shadow: inset 0 0 0 2px var(--gold) }
.d-b .b-tile.on .b-tc { background: var(--gold); color: var(--gold-ink); box-shadow: none }
.d-b .b-mybar { margin-top: auto; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 14px; background: linear-gradient(180deg, #F6BE4C, #E9A932); color: var(--gold-ink) }
.d-b .b-mybar span { display: flex; flex-direction: column }
.d-b .b-mybar small { font-size: 12px; font-weight: 500 }
.d-b .b-mybar b { font: 600 17px/1.2 var(--sans) }
.d-b .b-mybar .btn { background: var(--gold-ink); color: var(--gold); padding: 0 22px }
.fold.d-b .b-ticks .b-tile { min-height: 62px; padding: 8px 10px }
.fold.d-b .b-ticks .b-ti { display: none }

/* settle and slip cards */
.d-b .b-xc { align-items: center; gap: 4px; padding: 14px 10px 12px; text-align: center }
.d-b .b-xc > b:first-of-type { font-weight: 600; font-size: 13px }
.d-b .b-sc { flex-direction: row; align-items: center; gap: 10px; padding: 10px; min-height: 76px }
.d-b .b-sc span { flex: 1; display: flex; flex-direction: column; min-width: 0 }
.d-b .b-sc span b { font-weight: 600 }
.d-b .b-sc span small { color: var(--mute); font-size: 12px }
.d-b .b-paper { width: 40px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 4px; color: #6B7280; background: #FBFBF7; box-shadow: 0 4px 8px rgba(0,0,0,.4) }
.d-b .b-sc.empty .b-paper { background: none; color: var(--mute); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25) }
.fold.d-b .b-sc { gap: 8px }
.fold.d-b .b-sc .b-paper { width: 32px; height: 42px }
.fold.d-b .b-sc .chip { position: absolute; right: 8px; top: 8px; padding: 0 6px }
.fold.d-b .b-sc span { padding-top: 22px }
.d-b .b-stat { padding: 12px; gap: 3px; align-items: flex-start }
.d-b .b-stat > b:not(.b-amt) { font-weight: 600; font-size: 13px }
.d-b .b-stat small { color: var(--mute); font-size: 12px }
.d-b .b-stat { min-height: 120px }
.d-b .b-grid:has(.b-stat) { margin-top: 14px }
.d-b .b-poster { margin-top: 14px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(242,179,61,.6), 0 14px 30px rgba(0,0,0,.45) }
.d-b .b-pa { width: 100%; height: 300px; object-position: 50% 30% }
.fold.d-b .b-pa { height: 360px }
.d-b .b-poster figcaption { display: grid; grid-template-columns: 1fr auto; padding: 10px 14px 12px; background: linear-gradient(180deg, #1C2647, #141C38) }
.d-b .b-poster figcaption > b:first-child { font: 400 20px/1.3 var(--display) }
.d-b .b-poster figcaption small { grid-column: 1; color: var(--mute); font-size: 12px }
.d-b .b-poster figcaption .num { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 600 17px/1 var(--sans); color: var(--gold) }

/* friends: face cards in fours */
.d-b .b-fc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px 8px; border-radius: 12px; text-align: center; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair) }
.d-b .b-fc.on .face { box-shadow: 0 0 0 2px var(--leaf) }
.d-b .b-fc.sel { background: rgba(242,179,61,.12); box-shadow: inset 0 0 0 2px var(--gold) }
.d-b .b-fc b { font-weight: 600; font-size: 13px }
.d-b .b-fc small { color: var(--mute); font-size: 11px; line-height: 1.3 }
.d-b .b-req { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(185, 50, 38, .28); box-shadow: inset 0 0 0 1px rgba(240,138,126,.5) }
.d-b .b-req span { flex: 1; display: flex; flex-direction: column }
.d-b .b-req span b { font-weight: 600 }
.d-b .b-req span small { color: var(--mute); font-size: 12px }
.d-b .b-req .btn { padding: 0 12px }
.d-b .b-mini { align-items: stretch }
.d-b .b-mini b { padding: 6px 8px 8px; font-weight: 600; font-size: 12px; line-height: 1.3 }

/* P'Ek 2026-10-30: the open rail's tabs are the folded rail's (p2fold.css on the replica's น1 tab bar): gold icon over its
   label, the current tab's label gold, the gold ใหม่ card tilted; same 62 pt glass bar */
.open.d-b .vbar { left: 879px; width: 62px; bottom: 20px }
.d-b .vgroup.tabs { width: 62px; padding: 12px 0; gap: 2px; border-radius: 31px }
.d-b .tabs .vbtn { width: 58px; height: auto; min-height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--gold); background: none }
.d-b .tabs .vbtn .ic { width: 24px; height: 24px }
.d-b .tabs .vlab { display: block; font: 500 11px/1.2 var(--sans); color: #F3E6C8 }
.d-b .tabs .vbtn.on .vlab { color: var(--gold); font-weight: 700 }
.d-b .tabs:has(.on) .vbtn:not(.on, .vnew) { opacity: .72 }
.d-b .tabs .vbadge { top: 4px; right: 6px }
.d-b .vnew { height: auto; margin: 4px 0 }
.d-b .tabs .vcard { width: 46px; height: 64px; rotate: -4deg; gap: 1px; border-radius: 6px; background: var(--gold); color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4.5px var(--gold), inset 0 0 0 5.5px var(--navy), 0 0 0 3px #141B33, 0 12px 20px rgba(0,0,0,.45) }
.d-b .tabs .vcard .ic { width: 24px; height: 24px }
.d-b .tabs .vcard small { font: 700 11px/1.2 var(--sans) }

/* wood */
.d-b .b-wood .ph h1 { color: var(--pw-cream) }
.d-b .rp-in.b-wood { padding-top: 4px }
.d-b .b-wood .wd-hero { margin-top: 22px }
.fold.d-b .b-wood .wd-hero { margin-top: 20px }

/* the New Event sheet as a spread over both halves: a page each side, the fold left bare between them */
.d-b .b-page { position: absolute; inset: 0; z-index: 6; background: linear-gradient(180deg, #1A2444, #121A33) }
.d-b .b-page.l { box-shadow: inset -14px 0 18px -14px rgba(0,0,0,.7) }
.d-b .b-page.r { box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.7) }
.d-b .b-field { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; min-height: 56px; border-radius: 10px; background: rgba(8, 12, 26, .6); box-shadow: inset 0 0 0 1.5px var(--gold) }
.d-b .b-field small { color: var(--gold); font-size: 12px }
.d-b .b-field span { font-size: 15px }
.d-b .b-kinds { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.d-b .b-kinds figure { position: relative; aspect-ratio: 1360 / 2048; border-radius: 10px; overflow: hidden; opacity: .72; box-shadow: 0 0 0 1px rgba(242,179,61,.35) }
.d-b .b-kinds figure.on { opacity: 1; box-shadow: 0 0 0 2.5px var(--gold), 0 12px 24px rgba(0,0,0,.5) }
.d-b .b-kinds img { width: 100%; height: 100%; object-fit: cover }
.d-b .b-kinds figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; text-align: center; font-weight: 600; background: rgba(10,14,30,.86) }
.fold.d-b .b-kinds figure { aspect-ratio: auto; height: 132px }
.fold.d-b .b-kinds img { object-position: 50% 20% }
.d-b .b-date { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline }
.d-b .b-date small { color: var(--mute) }
.d-b .b-date b { color: var(--gold) }
.d-b .b-cal { margin-top: 8px; padding: 6px 10px 8px; border-radius: 10px; color: var(--paper-ink); background: var(--parch) }
.d-b .b-cal header { display: flex; align-items: center; justify-content: space-between; font: 400 15px/1 var(--display); color: var(--brick) }
.d-b .b-cal .ibtn { color: var(--paper-ink); background: none; box-shadow: none }
.d-b .b-cal ol { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 13px }
.d-b .b-cal li { line-height: 30px }
.fold.d-b .b-cal li { line-height: 25px }
.d-b .b-cal li.dw { color: #6A5B40; font-size: 12px }
.d-b .b-cal li.x { color: #B5A584 }
.d-b .b-cal li.on { border-radius: 6px; background: var(--brick); color: #fff; font-weight: 600 }
