/* Tom Pearl Purity Test: the list is a strip of toilet paper hanging from its roll on a pink tiled wall. */
body { color: #1d161b; background: #ff5cb8 url(/assets/soundboard/tile.webp) 50% 0 / 110px; }
.tpt-top { color: #fff; text-shadow: 0 1px 3px #7a0048; }
.pt { width: min(680px, 100%); margin: 0 auto; padding: 0 14px 130px; }
.pt-roll { position: relative; z-index: 2; margin: 6px -4px 0; padding: 30px 46px 26px; text-align: center; border-radius: 34px / 50%;
  background: linear-gradient(#e6e0e4 0, #fff 22%, #fff 48%, #efe9ed 70%, #c9bfc6 100%); box-shadow: 0 12px 16px -6px #6b003f88; }
.pt-roll::before, .pt-roll::after { content: ""; position: absolute; top: 50%; width: 16px; height: 46px; border-radius: 8px; background: linear-gradient(90deg, #8e959c, #f7fafc 45%, #7c838a); transform: translateY(-50%); }
.pt-roll::before { left: -10px; } .pt-roll::after { right: -10px; }
.pt-tube { display: none; }
.pt-roll h1 { margin: 0; font: 400 clamp(19px, 5.2vw, 30px)/1.05 "Bowlby One", Impact, sans-serif; text-transform: uppercase; }
.pt-roll h1 span { display: block; font-size: 1.62em; color: #e0007f; }
.pt-paper { position: relative; margin: -22px 8px 0; padding-top: 40px; background: #fffdfb; box-shadow: 0 14px 30px #6b003f66, inset 14px 0 18px -16px #0002, inset -14px 0 18px -16px #0002; }
.pt-intro { padding: 4px 22px 22px; text-align: center; }
.pt-intro p { margin: 0 auto 4px; max-width: 34em; }
.pt-small { color: #6d5f68; font-size: 14px; font-weight: 500; }
.pt-friend { font-size: 20px; padding: 10px 0 8px; } .pt-friend b { font: 400 30px/1 "Bowlby One", sans-serif; color: #e0007f; }
.pt-sheet { position: relative; margin: 0; min-width: 0; padding: 0 0 18px; border: 0; border-top: 3px dashed #d8cdd4; }
/* embossed dots, as on the real thing */
.pt-sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: radial-gradient(circle at 50% 46%, #fff 1.4px, #ede6ea 2.4px, #0000 3px) 0 0 / 22px 22px; }
.pt-sheet legend { float: left; width: 100%; position: relative; padding: 20px 22px 8px; font: 400 22px/1 "Bowlby One", Impact, sans-serif; }
.pt-sheet label { position: relative; clear: both; display: grid; grid-template-columns: 26px 30px 1fr; align-items: start; gap: 0 8px; padding: 10px 22px; font-weight: 500; font-size: 16.5px; line-height: 1.35; cursor: pointer; }
.pt-sheet input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.pt-sheet i { position: relative; width: 24px; height: 24px; border: 2px solid #1d161b; border-radius: 5px; background: #fff; }
.pt-sheet input:focus-visible + i { outline: 3px solid #e0007f; outline-offset: 2px; }
.pt-sheet b { padding-top: 1px; color: #857681; font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
/* marker tick */
.pt-sheet input:checked + i::after { content: ""; position: absolute; left: -2px; top: -9px; width: 34px; height: 32px; background: #e0007f; clip-path: polygon(2% 55%, 16% 48%, 33% 74%, 88% 0, 100% 8%, 38% 100%, 28% 98%); animation: tick .14s ease-out; }
@keyframes tick { from { transform: scale(.3) rotate(-20deg); } }
.pt-sheet input:checked ~ span { color: #b80068; font-weight: 600; }
@media (hover: hover) { .pt-sheet label:hover { background: #ff5cb81c; } }
.pt-sheet.is-tom legend { color: #e0007f; }
.pt-end { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 60px; border-top: 3px dashed #d8cdd4; }
/* torn bottom edge */
.pt-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; background: #fffdfb; clip-path: polygon(0 0, 100% 0, 100% 40%, 96% 90%, 91% 35%, 86% 85%, 80% 45%, 74% 100%, 69% 40%, 62% 80%, 57% 30%, 50% 95%, 44% 45%, 38% 85%, 31% 35%, 25% 100%, 19% 45%, 12% 80%, 6% 35%, 0 80%); }
.pt-go { min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; background: #1d161b; color: #fff; font: 400 17px/1 "Bowlby One", Impact, sans-serif; box-shadow: 0 5px 0 #000, inset 0 2px 0 #ffffff3d; transition: transform .06s; }
.pt-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.pt-alt { background: #ff5cb8; color: #2b0019; box-shadow: 0 5px 0 #b80068, inset 0 2px 0 #ffffff88; } .pt-alt:active { box-shadow: 0 1px 0 #b80068; }
.pt-clear { min-height: 44px; border: 0; background: none; text-decoration: underline; color: #6d5f68; }
.pt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 18px #6b003f55; }
.pt-bar .tpt-head { width: 92px; margin: -44px -6px -8px 0; filter: drop-shadow(0 3px 5px #0005); transition: transform .12s; }
.pt-bar .tpt-head.bump { transform: scale(1.16) rotate(-4deg); }
.pt-bar b { font: 400 24px/1 "Bowlby One", sans-serif; color: #e0007f; font-variant-numeric: tabular-nums; }
.pt-bar .pt-go { min-height: 46px; margin-bottom: 4px; }
.pt-result { width: min(440px, calc(100vw - 20px)); max-height: calc(100dvh - 16px); padding: 12px 14px 14px; border: 0; border-radius: 20px; background: #fff; color: #1d161b; overflow: auto; overscroll-behavior: contain; }
.pt-result::backdrop { background: #2b0019d9; }
.pt-result[open] .pt-card { animation: drop .35s cubic-bezier(.2, 1.4, .5, 1); }
@keyframes drop { from { transform: translateY(-30px) rotate(-3deg); opacity: 0; } }
.pt-card { padding: 18px 14px 16px; text-align: center; border-radius: 12px; color: #fff; background: #ff5cb8 url(/assets/soundboard/tile.webp) 50% 0 / 84px; overflow: hidden; }
.pt-k { margin: 0; font-weight: 700; text-shadow: 0 1px 3px #7a0048; }
.pt-score { font: 400 92px/1 "Bowlby One", Impact, sans-serif; text-shadow: 0 2px 0 #d3007f, 0 4px 0 #b0006a, 0 6px 0 #8c0054, 0 10px 16px #4a002c99; }
.pt-card .tpt-head { width: min(220px, 34dvh); margin: -8px auto -10px; filter: drop-shadow(0 8px 12px #4a002c99); }
.pt-card h2 { margin: 6px 0 4px; font: 400 25px/1.1 "Bowlby One", Impact, sans-serif; text-shadow: 0 2px 0 #b0006a; }
.pt-card p:last-child { margin: 0; text-shadow: 0 1px 3px #7a0048; }
.pt-x { position: absolute; right: 18px; top: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; }
.pt-vs { margin: 12px 2px 0; text-align: center; font-weight: 700; font-size: 17px; }
.pt-conf { display: block; margin: 12px 2px 0; font-size: 14px; }
.pt-conf select { display: block; width: 100%; height: 46px; margin-top: 4px; padding: 0 10px; border: 2px solid #d8cdd4; border-radius: 10px; background: #fff; font-size: 16px; }
.pt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; } .pt-acts .pt-go { padding: 0 6px; font-size: 14.5px; }
.pt-next { display: flex; justify-content: space-between; margin: 10px 2px 0; } .pt-next > * { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: #b80068; text-decoration: underline; font-weight: 600; }
@media (max-width: 480px) { .pt-sheet label { padding-inline: 16px; } .pt-sheet legend { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .pt-result[open] .pt-card, .pt-sheet input:checked + i::after { animation: none; } }
/* 11-29 search text under the roll */
.pt-about { margin-top: 40px; padding: 26px 22px 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -10px #6b003f88; }
.pt-about h2 { margin: 0 0 12px; font: 400 23px/1.15 "Bowlby One", Impact, sans-serif; } .pt-about h2:not(:first-child) { margin-top: 28px; }
.pt-about > p { margin: 0 0 14px; font-weight: 500; line-height: 1.55; } .pt-about a { color: #c2007b; }
.pt-ranks { width: 100%; border-collapse: collapse; } .pt-ranks th { width: 74px; padding: 8px 10px 8px 0; text-align: left; color: #c2007b; font: 400 17px/1.2 "Bowlby One", Impact, sans-serif; white-space: nowrap; vertical-align: top; }
.pt-ranks td { padding: 8px 0; font-weight: 500; line-height: 1.4; } .pt-ranks tr + tr > * { border-top: 1px solid #f0e6ec; }
.pt-about .tpt-faq { border-color: #f0e6ec; } .pt-about .tpt-faq summary::after { color: #ff2fa0; }
