/* My Room kit: the page of one pick on the build 4 stations (fr-page.js), their painted count ticket and the small message.
   Written over fr-connect's page (.k-dive.k-dslim), whose look the other stations keep. */

/* ---- the painted count ticket: torn off at both ends (cut from Codex batch 75's stub, tools/build-stub-art.py, 300 x 160), the number's ink
   in its dead centre ---- */
.k4-pticket{position:relative;display:block;width:var(--tw,58px);aspect-ratio:300/160;font-style:normal;background:url(art/b74/ticket-stub2.webp) center/100% 100% no-repeat;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.k4-pticket svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.k4-pticket text{font-family:Roboto,'Segoe UI','Helvetica Neue',Arial,sans-serif;font-weight:800;letter-spacing:0;fill:#7a1010;text-shadow:none}
/* on a poster: at the middle of its bottom edge, and the whole ticket opens the poster's page */
.k4-cell>.k4-pticket{position:absolute;z-index:5;left:50%;bottom:0;margin-left:calc(var(--tw,58px)*-.5);transform:translateY(58%) rotate(-3deg);cursor:pointer}
.k4-all .k4-cell:has(>.k4-pticket){margin-bottom:18px}
.k4-cell>.k4-pticket::after{content:"";position:absolute;left:-6px;right:-6px;top:-8px;bottom:-8px}
.k4-cell>.k4-ticket{cursor:pointer}
/* the office's list: one line that shows the ticket itself */
.fr-lead .k4-pticket{--tw:48px;display:inline-block;vertical-align:-6px;margin-right:2px}
.k-slim .k-slimmed .fr-lead.on.k-ticketlead{white-space:nowrap;font-size:clamp(16px,4.6vw,18px)}

/* ---- the page ---- */
.k-slim .k-dive.k-p4 .k-p4body{padding:0 0 env(safe-area-inset-bottom);gap:0;align-items:stretch;justify-content:flex-start;touch-action:pan-y;user-select:none;-webkit-user-select:none;overflow:hidden}
.k-p4reel{position:relative;flex:none;height:calc(var(--fh,300px) + 22px);overflow:hidden}
.k-p4track{position:absolute;left:0;top:12px;height:var(--fh,300px);will-change:transform}
.k-p4track.glide{transition:transform .34s cubic-bezier(.22,.8,.26,1)}
.k-p4slide{position:absolute;top:0;width:var(--fw,312px);height:var(--fh,300px)}
.k-p4reel.glide .k-p4slide{transition:opacity .34s ease-out}
.k-slim .k-p4 .k-p4frame.k-dbig{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;padding:0;border:3px solid #d8b25c;border-radius:7px;background:#0b1a2e;overflow:hidden;touch-action:pan-y}
.k-p4ground,.k-p4pic{position:absolute;display:block;pointer-events:none}
.k-p4ground{inset:0}
.k-p4ground::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 95% 80% at 50% 46%,rgba(255,232,180,.16),rgba(0,0,0,0) 70%)}
.k-p4pic{opacity:0;transition:opacity .22s}
.k-p4slide.in .k-p4pic,.k-p4slide.none .k-p4pic{opacity:1}
.k-p4pic .k-img{position:absolute;max-width:none;object-fit:fill;inset:auto;opacity:1;filter:none}
.k-p4pic .k-p4sm{filter:drop-shadow(0 5px 8px rgba(0,0,0,.45))}
.k-p4pic .k-p4lg{left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .25s}
.k-p4pic .k-p4lg.on{opacity:1}
.k-p4slide.none .k-p4pic{inset:0;display:grid;place-items:center}
.k-p4ttl{padding:8%;font:700 clamp(20px,7vw,30px)/1.1 var(--display);letter-spacing:.03em;text-align:center;text-transform:uppercase;text-wrap:balance;color:#fff3cf;text-shadow:0 2px 6px rgba(0,0,0,.9)}
/* where you are: a thin line, its gold part */
.k-p4line{position:relative;flex:none;align-self:center;width:132px;height:3px;border-radius:2px;background:rgba(243,213,138,.22);overflow:hidden}
.k-p4line i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:linear-gradient(90deg,#e0b858,#ffe7a0,#e0b858)}
.k-p4line.glide i{transition:transform .34s cubic-bezier(.22,.8,.26,1)}
/* the sentence and the name, one thing */
.k-p4info{flex:1 1 0;min-height:0;display:flex;flex-direction:column;align-items:center;padding:clamp(9px,1.9svh,16px) 14px 0}
.k-p4info.fromr{animation:p4r .3s ease-out}.k-p4info.froml{animation:p4l .3s ease-out}
@keyframes p4r{from{transform:translateX(26px)}}@keyframes p4l{from{transform:translateX(-26px)}}
.k-p4said{flex:none;max-width:100%;text-align:center}
.k-slim .k-p4 .k-p4said .k-dcountline{display:block;margin:0 0 1px;font:600 17px/1.25 var(--sans);color:#f3dfae}
.k-slim .k-p4 .k-p4said .k-dname{margin:0;font-size:clamp(22px,6.9vw,28px);line-height:1.12;text-transform:uppercase;letter-spacing:.03em}
.k-p4fact{flex:none;margin:2px 0 0;font:italic 500 16px/1.25 'EB Garamond',Georgia,serif;color:#f3ead6;text-align:center}
/* Me too: a slim pill under the name, 30 px drawn, 44 px to tap; gold outline, then gold */
.k-slim .k-p4 .k-metoo{flex:none;display:grid;place-items:center;height:44px;padding:0 10px;margin:clamp(0px,.5svh,4px) 0;border:0;border-radius:22px;background:none;box-shadow:none;color:#ffe3a0;transform:none}
.k-p4 .k-metoo span{display:flex;align-items:center;gap:6px;height:30px;padding:0 15px 0 12px;border-radius:15px;border:1.5px solid #d8b25c;background:rgba(10,20,38,.55);font:700 13.5px/1 var(--sans);letter-spacing:.03em;text-transform:none;transition:background .2s,color .2s}
.k-p4 .k-metoo:active span{transform:scale(.96)}
.k-slim .k-p4 .k-metoo.on,.k-slim .k-p4 .k-metoo:active{box-shadow:none;transform:none}
.k-slim .k-p4 .k-metoo.on{background:none;opacity:1}
.k-p4 .k-metoo.on span{background:linear-gradient(#ffedb8,#e6bb5c);border-color:#f3d58a;color:#2f1d04}
/* a very long name (someone's own words) steps down and stops at four lines, so the people stay on the page */
.k-slim .k-p4 .k-p4said .k-dname.long{font-size:clamp(17px,5.1vw,21px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
/* who picked it: a photo and a first name each, four across; a crowd scrolls up and down */
.k-p4people{flex:0 1 auto;min-height:0;align-self:stretch;display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:clamp(8px,1.5svh,14px) 4px;margin-top:-2px;padding:12px 0 14px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none}
.k-p4people::-webkit-scrollbar{display:none}
.k-slim .k-p4 .k-p4people .k-dperson{flex:none;width:calc((100% - 12px) / 4);max-width:88px;padding:0;gap:3px}
.k-slim .k-p4 .k-p4people .k-dperson b{font:600 14px/1.2 var(--sans)}
.k-slim .k-dive.k-p4:has(.k-dswap.on) .k-p4people{visibility:hidden}

/* ---- the small message (K.note): fades in and away by itself ---- */
.k-note{position:absolute;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));z-index:90;width:max-content;max-width:calc(100% - 32px);padding:11px 18px;border-radius:16px;text-align:center;
  background:linear-gradient(#fdf6e3,#f0e2c0);border:1.5px solid #d8b25c;box-shadow:0 8px 24px rgba(0,0,0,.6);color:#14305a;opacity:0;transform:translate(-50%,8px);transition:opacity .28s,transform .28s;pointer-events:none}
.k-note.on{opacity:1;transform:translate(-50%,0)}
.k-note p{margin:0;font:600 15px/1.3 var(--sans)}
.k-note.haslink{padding:11px 18px 2px}
.k-note button{min-height:44px;padding:0 14px;border:0;background:none;font:700 15px/1 var(--sans);color:#7a1010;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(122,16,16,.4);pointer-events:auto}

/* what just happened ("Casablanca was added...") floats over the bottom of the page, so nothing above it moves */
.k-slim .k-dive.k-p4 .k-dline{display:none}
.k-slim .k-dive.k-p4 .k-dline.on{display:block;position:absolute;left:50%;bottom:calc(26px + env(safe-area-inset-bottom));z-index:15;width:max-content;max-width:calc(100% - 36px);margin:0;padding:10px 18px;transform:translateX(-50%);
  border-radius:16px;background:linear-gradient(#fdf6e3,#f0e2c0);border:1.5px solid #d8b25c;box-shadow:0 8px 24px rgba(0,0,0,.6);color:#14305a;font:600 15px/1.3 var(--sans);text-align:center;text-wrap:balance;text-shadow:none;pointer-events:none;animation:p4in .28s ease-out}
@keyframes p4in{from{opacity:0;transform:translate(-50%,8px)}}
