/* v2 ticket 54: the Ghibli kit (kit2.js) and its picker (replica-t54.js), as FaceView.swift and FacePickerSheet.swift draw them */
.k2-fig { position: relative; display: block; flex: none }
.k2-fig img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; pointer-events: none }
.k2-face { position: relative; overflow: hidden }
.k2-face .k2-fig { position: absolute }
.k2-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 var(--rim) #F2B33D, inset 0 0 0 var(--rim-ink) #18213D }
.bd.k2-bd { display: inline-flex; align-items: flex-end; justify-content: center; width: fit-content }
.k2-halo { position: absolute; z-index: 1; border-radius: 50%; border: var(--w) solid #F2B33D; box-shadow: 0 0 0 calc(var(--w) * .45) #18213D, inset 0 0 0 calc(var(--w) * .45) #18213D }

.t54 .fm-mirror { min-height: 282px; padding-bottom: 28px }
.t54-panel { margin: 0 14px; padding: 12px 6px 18px; display: flex; flex-direction: column; gap: 12px }
/* the double rule stays with the mirror; a soft gold glow under it, the parts slide beneath (P'Ek 2026-10-22) */
.t54-rule { position: relative; margin: 16px 20px 0; border-top: 3px double rgba(242,179,61,.55) }
.t54-rule::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; pointer-events: none; background: linear-gradient(rgba(242,179,61,.22), transparent) }
.t54-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px } /* Man, Woman: cats and dogs out 2026-10-24 */
.t54-kind { min-height: 44px; border-radius: 10px; font: 600 15px/1.2 var(--plex); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(242,179,61,.55) }
.t54-kind[aria-pressed=true] { background: var(--gold); color: var(--navy); box-shadow: none }
.t54-sec { display: flex; flex-direction: column; gap: 8px }
.t54-sec h3 { margin: 0; font: 400 17px/1.3 var(--chon); color: var(--ink) }
.t54-sws { display: flex }
.t54-sw { flex: 1; display: grid; place-items: center; min-height: 54px }
.t54-sw i { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px #18213D; transition: scale .25s cubic-bezier(.3, 1.5, .5, 1) }
.t54-sw[aria-pressed=true] i { scale: 1.12; outline: 2.5px solid #F2B33D; outline-offset: 5px }
.t54-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding-top: 4px }
.t54-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none }
.t54-row::-webkit-scrollbar { display: none }
.t54-row .t54-opt { flex: none; width: 74px }
.t54-opt { position: relative; display: grid; place-items: center; min-height: 70px; border-radius: 7px; background: var(--parch);
  box-shadow: inset 0 0 0 1.5px #18213D, inset 0 0 0 4.5px var(--parch), inset 0 0 0 5.5px rgba(185,133,42,.7), 0 4px 8px rgba(0,0,0,.35);
  transition: translate .3s cubic-bezier(.3, 1.5, .5, 1) }
.t54-opt.tall { min-height: 96px }
.t54-opt[aria-pressed=true] { translate: 0 -6px; background: #FFF4D6; outline: 3px solid #F2B33D; outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #18213D, inset 0 0 0 4px #FFF4D6, inset 0 0 0 6px #F2B33D, 0 10px 16px rgba(0,0,0,.45) }
.t54-fig { width: 54px; height: 76px; overflow: hidden; display: flex; justify-content: center }
.t54-none { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #18213D; color: #18213D }

/* one wood board from the status bar down, the face builder's (P'Ek 2026-11-10: no flat brown strip on the phone) */
.t54-stand { position: relative; flex: 1; min-height: 0; overflow: hidden; background: linear-gradient(180deg, rgba(255,226,180,.06), rgba(0,0,0,.2)),
  repeating-linear-gradient(90deg, rgba(14,6,0,0) 0 64px, rgba(14,6,0,.5) 64px 65px, rgba(255,214,160,.06) 65px 66px),
  repeating-linear-gradient(92deg, rgba(14,6,0,0) 0 6px, rgba(14,6,0,.22) 6px 7px, rgba(14,6,0,0) 7px 13px),
  linear-gradient(180deg, #4C2C13, #40250F 50%, #3B210D) }
.t54-table { position: absolute; left: 50%; top: calc(var(--safe-top, 62px) - 6px); width: max(620px, 100%); height: 1096px; translate: -50% 0; background: url(art/home-night-table.webp) center top / 100% auto no-repeat;
  mask-image: linear-gradient(#000 326px, transparent 401px) }   /* the table fades into the wood */
/* ตัวละครของคุณ written on the scroll (P'Ek 2026-11-10): the app's ArcText, k = 620/780, the scroll 48 px down the art */
.t54-arc { position: absolute; left: 50%; top: calc(var(--safe-top, 62px) - 6px); z-index: 1; width: 440px; height: 80px; translate: -50% 0; overflow: visible }
.t54-arc text { font: 600 22.3px Prompt, sans-serif; fill: #1A1714 }
.t54-me { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 18px }
.t54-me .bd { position: relative }
.t54-me .bd::before { content: ''; position: absolute; left: 50%; bottom: -12px; width: 180px; height: 24px; translate: -50% 0; background: radial-gradient(closest-side, rgba(8,6,4,.65), transparent) }
.t54-plate { width: 240px; min-height: 46px; display: grid; place-items: center; padding: 0 12px; border-radius: 4px; background: var(--parch);
  font: 400 20px/1.2 var(--chon); color: #1A1714; box-shadow: inset 0 0 0 1.5px #18213D, inset 0 0 0 4px var(--parch), inset 0 0 0 5.5px #F2B33D, 0 3px 4px rgba(0,0,0,.35) }
@media (prefers-reduced-motion: reduce) { .t54-opt, .t54-sw i { transition: none } }
.t54 .fm-plate input { color: #1A1714 } /* black, not brick (P'Ek 2026-10-21) */
.t54-fixed { flex: none; position: relative; z-index: 2 }
