/* GNN: The Presidents Cup room. Page skeleton, room, Story Mode. */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
:root {
  --ink: #2b2418; --ink2: #5a4b34; --paper: #f4edde; --paper2: #ebe1cc; --us: #1a4ed4; --int: #0f9e88; --gold: #c98a1b; --room: #120a06;
  --fell: "IM Fell English", Georgia, serif; --body: "Libre Caslon Text", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--room); color: var(--ink); font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body { opacity: 0; transition: opacity .5s; } body.ready { opacity: 1; }
.vig { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 72% 70% at 54% 50%, rgba(18,10,6,0) 55%, rgba(18,10,6,.5) 82%, rgba(10,5,2,.82) 100%); }
#stage, #stage canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* paper: every sheet in the page carries the same painted fibre as the book */
.barin, .cap, .card, .sheet, .follow, .scap, .ctl button, .rail a { background: var(--paper) var(--fiber); background-size: 340px; background-blend-mode: multiply; }

/* the bar: a strip of stock pasted across the top */
.bar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; filter: drop-shadow(0 3px 3px rgba(60,40,15,.22)); }
.barin { display: flex; align-items: center; gap: 22px; padding: 6px 22px 12px; min-height: 66px; clip-path: polygon(0 0,100% 0,100% 88%,97% 93%,93% 87%,88% 94%,82% 88%,76% 95%,70% 89%,63% 94%,57% 88%,50% 95%,44% 89%,37% 94%,31% 88%,25% 95%,19% 89%,12% 94%,6% 88%,0 93%); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 10px 0 4px; border: 0; background: none; font-size: 15px; color: var(--ink2); }
.back:hover { color: var(--ink); }
.bar h1 { margin: 0; font: 400 30px/1 var(--fell); white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs button { white-space: nowrap; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 16px; color: var(--ink2); position: relative; }
.tabs button[aria-current="page"] { color: var(--ink); }
.tabs button[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; background: var(--ink); border-radius: 2px 1px; transform: rotate(-.6deg); }
.tabs button:hover { color: var(--ink); }
.yp select { min-height: 44px; padding: 0 30px 0 12px; border: 1px solid #b9a782; border-radius: 0; background: #faf5ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2418' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font: 400 20px var(--fell); }

/* the year label, pasted on the desk at the left of the book */
.capw { position: fixed; z-index: 5; left: 26px; top: 96px; width: 290px; filter: drop-shadow(1px 3px 3px rgba(60,40,15,.25)); transform: rotate(-1.2deg); }
.cap { padding: 18px 22px 20px; }
.cap .one { display: none; }
.cap .yr { margin: 0; font: 400 64px/0.9 var(--fell); }
.cap h2 { margin: 8px 0 0; font: 400 24px/1.12 var(--fell); }
.cap .pl, .cap .dt { margin: 3px 0 0; font-size: 14px; color: var(--ink2); }
.cap .res { margin: 12px 0 0; font: 400 21px/1.2 var(--fell); }
.cap .res b { display: block; font: 400 40px/1 var(--fell); margin-top: 2px; }
.cap .caps { margin: 6px 0 0; font-size: 14px; line-height: 1.2; color: var(--ink2); }
.lk { border: 0; background: none; padding: 0; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--c, #9a8a6a); color: var(--ink); }
.cap blockquote { margin: 14px 0 0; padding: 10px 0 0; border-top: 1px dashed #b9a782; }
.cap blockquote p { margin: 0; font: italic 400 17px/1.32 var(--fell); }
.cap blockquote footer { margin-top: 6px; font-size: 12.5px; color: var(--ink2); }
.cap .why { margin: 10px 0 0; font-size: 12.5px; color: var(--ink2); }

/* the running count over each pile */
.lab { position: fixed; z-index: 4; left: 0; top: 0; pointer-events: none; text-align: center; transition: opacity .3s; white-space: nowrap; }
.lab { filter: drop-shadow(1px 2px 2px rgba(50,35,10,.3)); }
.lab .tg { display: block; padding: 5px 12px 6px; background: var(--paper) var(--fiber); background-size: 340px; background-blend-mode: multiply; clip-path: polygon(0 3%, 20% 0, 45% 4%, 70% 0, 100% 3%, 98% 50%, 100% 97%, 75% 100%, 50% 96%, 25% 100%, 0 97%, 2% 50%); }
.lab .nm { display: block; font: italic 400 14px/1.1 var(--fell); color: var(--ink2); }
.lab b { display: block; font: 400 34px/1 var(--fell); color: var(--ink); }

/* the session as it builds */
.scap { position: fixed; z-index: 6; left: 50%; top: 92px; transform: translate(-50%, -14px) rotate(.6deg); opacity: 0; transition: opacity .35s, transform .35s; padding: 10px 22px 12px; text-align: center; pointer-events: none; clip-path: polygon(0 4%,8% 0,20% 5%,35% 1%,50% 4%,64% 0,80% 5%,92% 1%,100% 4%,99% 50%,100% 96%,90% 100%,76% 95%,60% 100%,45% 96%,30% 100%,15% 95%,4% 100%,0 96%,1% 50%); }
.scap.on { opacity: 1; transform: translate(-50%, 0) rotate(.6deg); }
.scap span { display: block; font: 400 24px/1.1 var(--fell); }
.scap b, .scap i { display: block; font: 400 17px/1.3 var(--body); margin-top: 3px; color: var(--ink2); }
.scap i { font-style: italic; }

/* controls: paper tabs with a folded corner */
.ctl { position: fixed; z-index: 6; right: 28px; bottom: 82px; display: flex; gap: 12px; }
.ctl button { position: relative; min-height: 48px; padding: 0 22px; border: 0; font: 400 20px var(--fell); filter: drop-shadow(1px 2px 2px rgba(60,40,15,.28)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.ctl button::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, transparent 50%, #d8cbb0 50%); }
.ctl button:hover { background-color: #fffaf0; }
#skip[hidden] { display: none; }

.tilt { position: fixed; z-index: 7; left: max(12px, env(safe-area-inset-left, 0px)); bottom: 136px; min-height: 44px; padding: 0 16px; border: 0; font: italic 400 17px var(--fell); color: var(--ink); background: var(--paper) var(--fiber); background-size: 340px; background-blend-mode: multiply; filter: drop-shadow(1px 2px 2px rgba(20,10,2,.45)); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); transform: rotate(-1.5deg); }
.scap em { display: block; max-width: 34ch; margin: 4px auto 0; font: italic 14px/1.3 var(--body); color: var(--ink2); }
body.phone .cap.pp > .why { display: block !important; grid-column: 1 / -1; font-size: 13px; }
.tip { position: fixed; z-index: 8; left: 0; top: 0; max-width: 330px; padding: 8px 12px; background: #2b2418; color: #f4edde; font-size: 14px; line-height: 1.35; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tip.on { opacity: 1; } .tip b { display: block; font: italic 400 15px var(--fell); color: #e9cf96; } .tip em { color: #b8a888; } .tip span { display: block; color: #d9ccb0; }

/* the rail: index tabs cut into the book's front edge */
.rail { scroll-behavior: auto; position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: 0 0 auto; background-color: #e9dfca; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 58px; min-height: 52px; padding: 4px 8px 8px; text-decoration: none; color: var(--ink2); filter: drop-shadow(0 -1px 2px rgba(60,40,15,.18)); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 100%, 0 100%); transform: translateY(8px); transition: transform .2s; }
.rail a b { font: 400 19px/1 var(--fell); }
.rail a span { font-size: 11px; font-style: italic; }
.rail a[aria-disabled] { color: #8a7b62; background-color: #cdbf9f; cursor: default; }
.rail a.on { transform: translateY(0); background-color: #fffaf0; color: var(--ink); box-shadow: inset 0 3px 0 var(--gold); }
.rail a:not([aria-disabled]):hover { transform: translateY(2px); }

/* follow a player */
.folw { position: fixed; z-index: 7; left: 50%; bottom: 74px; transform: translateX(-50%); width: min(880px, calc(100% - 32px)); filter: drop-shadow(1px 3px 4px rgba(60,40,15,.3)); pointer-events: none; }
.follow { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 24px; align-items: center; padding: 16px 24px; }
.follow[hidden] { display: none; }
.follow h2 { margin: 0; font: 400 26px/1.1 var(--fell); }
.follow .fhead p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink2); }
.follow .rec { margin: 0; font-size: 15px; } .follow .rec b { font: 400 26px var(--fell); margin-right: 3px; } .follow .rec span { display: block; font-size: 13px; color: var(--ink2); }
.follow .yrs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px dashed #b9a782; font-size: 14px; color: var(--ink2); }
.follow .yrs b { font-weight: 400; font-family: var(--fell); color: var(--ink); font-size: 16px; }
.follow .yrs .now b { color: var(--gold); }
.stop { min-height: 44px; padding: 0 14px; border: 1px solid #b9a782; background: #faf5ea; }

/* the match card: a cut tag */
.scrim { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(10,5,2,.42); padding: 16px; }
.scrim[hidden] { display: none; }
.cardw { width: min(480px, 100%); filter: drop-shadow(2px 6px 8px rgba(40,25,5,.38)); transform: rotate(-.8deg); }
.card { padding: 26px 30px 18px; max-height: calc(100vh - 40px); overflow: auto; outline: none; }
.card .where { margin: 0; font-size: 13.5px; color: var(--ink2); }
.card h2 { margin: 6px 0 0; font: 400 30px/1.1 var(--fell); }
.card h2 span { display: block; font-size: 22px; color: var(--ink2); margin-top: 2px; }
.card .fmt { margin: 6px 0 0; font-style: italic; color: var(--ink2); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.side { border-top: 4px solid var(--c); padding-top: 8px; }
.side h3 { margin: 0 0 4px; font: 400 18px var(--fell); color: var(--c); }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; border-bottom: 1px dotted #c9b994; }
.fol { min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; font-size: 13px; color: var(--ink2); text-decoration: underline dotted; text-underline-offset: 3px; }
.note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink2); font-style: italic; }
.note.gold { color: #8a5d0c; }
.step { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 10px; border-top: 1px dashed #b9a782; }
.step button { min-height: 44px; padding: 0 10px; border: 0; background: none; font-size: 15px; }
.step button:hover { text-decoration: underline; }

/* panels: a loose page laid over the book */
.panel { position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: min(520px, 100%); padding: 74px 0 0 0; }
.panel[hidden] { display: none; }
.sheetw { height: 100%; filter: drop-shadow(-3px 2px 6px rgba(40,25,5,.3)); }
.sheet { height: 100%; overflow-y: auto; padding: 22px 30px 60px 34px; overscroll-behavior: contain; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet h2 { margin: 0; font: 400 32px/1.1 var(--fell); }
.sheet h2.sub { margin-top: 28px; }
.x { min-height: 44px; padding: 0 12px; border: 1px solid #b9a782; background: #faf5ea; }
.sheet h3 { margin: 22px 0 6px; font: 400 21px/1.15 var(--fell); }
.sheet h3 span { display: block; font: italic 13.5px var(--body); color: var(--ink2); margin-top: 2px; }
.sess { border-top: 1px dashed #b9a782; margin-top: 16px; }
.sess .pts { display: flex; gap: 18px; margin: 4px 0 0; } .sess .pts span { border-bottom: 3px solid var(--c); } .sess .pts b { font: 400 22px var(--fell); }
.sess .ovr { margin: 6px 0 4px; font-size: 14px; color: var(--ink2); }
.ml { margin: 0; padding: 0; list-style: none; }
.ml button { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 6px 4px; border: 0; border-bottom: 1px dotted #c9b994; background: none; text-align: left; font-size: 14.5px; }
.ml button:hover { background: rgba(255,250,235,.7); }
.ml i { width: 14px; height: 14px; background: var(--c); transform: rotate(4deg); }
.ml .mn { font-weight: 400; } .ml em { color: var(--ink2); } .ml span { font-style: italic; color: var(--ink2); white-space: nowrap; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team h3 { color: var(--c); border-top: 4px solid var(--c); padding-top: 6px; margin-top: 10px; }
.team p { margin: 4px 0; font-size: 14px; }
.team ul { margin: 6px 0 0; padding: 0; list-style: none; }
.team li { min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.team small { font-style: italic; color: var(--ink2); }
.find { display: block; margin-top: 16px; } .find span { display: block; font-size: 13.5px; color: var(--ink2); }
.find input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #b9a782; background: #fffaf0; font-size: 18px; border-radius: 0; }
.people, .rk { margin: 12px 0 0; padding: 0; list-style: none; }
.people button, .rk button, .rk .ro { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; width: 100%; min-height: 48px; padding: 7px 4px; border: 0; border-bottom: 1px dotted #c9b994; background: none; text-align: left; }
.people button:hover, .rk button:hover { background: rgba(255,250,235,.7); }
.people b, .rk b { font: 400 18px var(--fell); grid-column: 1; }
.people span, .rk span { grid-column: 1; font-size: 13px; color: var(--ink2); }
.rk em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 14px; text-align: right; }
.rk { counter-reset: r; } .rk li { counter-increment: r; position: relative; padding-left: 26px; }
.rk li::before { content: counter(r); position: absolute; left: 0; top: 12px; font: 400 18px var(--fell); color: #a8977a; }
.lede, .run, .fine { font-size: 14.5px; color: var(--ink2); }
.cups { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.cups li { width: 74px; padding: 6px 6px 7px; border-top: 4px solid #b9a782; background: rgba(255,250,235,.6); font-size: 11.5px; line-height: 1.25; }
.cups li.us { border-color: var(--us); } .cups li.in { border-color: var(--int); } .cups li.tie { border-image: linear-gradient(90deg, var(--us) 50%, var(--int) 50%) 1; }
.cups b { display: block; font: 400 17px var(--fell); } .cups em { display: block; font-style: normal; color: var(--ink2); }
.none { color: var(--ink2); font-style: italic; padding: 12px 4px; }

/* phone, 390 wide */
body.phone .barin { flex-wrap: wrap; gap: 0 8px; padding: 2px 10px 12px; }
body.phone .back span { display: none; }
body.phone .bar h1 { font-size: 22px; flex: 1; min-width: 0; }
body.phone .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
body.phone .tabs button { flex: 0 0 auto; padding: 0 9px; font-size: 15px; }
body.phone .yp select { font-size: 17px; width: 86px; padding: 0 24px 0 8px; background-position: right 7px center; }
body.phone .capw { left: 12px; right: 12px; width: auto; top: 108px; transform: rotate(-.4deg); }
body.phone .cap { padding: 4px 8px 6px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
body.phone .cap .one { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 0 6px; border: 0; background: none; text-align: left; font: 400 18px/1.15 var(--fell); color: var(--ink); }
body.phone .cap .one b { font-weight: 400; font-size: 22px; }
body.phone .cap .one i { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
body.phone .cap.open .one i { transform: rotate(-135deg) translateY(-2px); }
body.phone .cap:not(.open) > :not(.one) { display: none !important; }
body.phone .cap.open { padding-bottom: 12px; }
body.phone .cap.open .one { margin-bottom: 4px; border-bottom: 1px dashed #b9a782; }
body.phone .cap.open .yr { display: none !important; }
body.phone .cap .yr { font-size: 46px; grid-row: 1 / span 2; }
body.phone .cap h2 { font-size: 19px; margin: 0; }
body.phone .cap .pl { display: none; }
body.phone .cap .dt { font-size: 12.5px; margin: 0; }
body.phone .cap .res { grid-column: 1 / -1; font-size: 16px; margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
body.phone .cap .res b { font-size: 26px; display: inline; }
body.phone .cap .caps { grid-column: 1 / -1; margin-top: 2px; font-size: 13px; }
body.phone .cap.open blockquote { display: block; grid-column: 1 / -1; } body.phone .cap .why { display: none; }
body.phone .scap { top: 168px; bottom: auto; width: calc(100% - 40px); }
body.phone .scap span { font-size: 20px; } body.phone .scap b, body.phone .scap i { font-size: 15px; }
body.phone .ctl { right: 12px; left: 12px; bottom: 76px; justify-content: center; }
body.phone .ctl button { font-size: 18px; padding: 0 18px; }
body.phone .rail { justify-content: flex-start; }
body.phone .rail a { min-width: 54px; }
body.phone .lab b { font-size: 26px; } body.phone .lab .nm { font-size: 12px; } body.phone .lab .tg { padding: 3px 8px 4px; }
body.phone .folw { bottom: 136px; width: calc(100% - 20px); }
body.phone .follow { grid-template-columns: 1fr auto; padding: 12px 14px; gap: 4px 10px; }
body.phone .follow .rec { grid-column: 1 / -1; grid-row: 2; }
body.phone .follow .yrs { font-size: 13px; gap: 2px 12px; }
body.phone .follow h2 { font-size: 21px; }
body.phone .panel { width: 100%; padding-top: 104px; }
body.phone .sheet { padding: 16px 16px 60px; }
body.phone .teams, body.phone .sides { grid-template-columns: 1fr; }
body.phone .scrim { place-items: end stretch; padding: 0; background: linear-gradient(to bottom, rgba(10,5,2,0) 0%, rgba(10,5,2,0) 38%, rgba(10,5,2,.45) 100%); }
body.phone .cardw { width: 100%; transform: none; filter: drop-shadow(0 -4px 8px rgba(20,10,2,.4)); }
body.phone .card { padding: 18px 18px calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 58vh; clip-path: none !important; border-radius: 0; }
body.phone .card .sides { gap: 6px; margin-top: 10px; }
body.phone .card h2 { font-size: 26px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 1180px) { body:not(.phone) .back span { display: none; } body:not(.phone) .barin { gap: 12px; } body:not(.phone) .tabs button { padding: 0 8px; } }
/* ================================================================ Story Mode */
.story { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.story > * { pointer-events: auto; }
.story .stap { position: absolute; inset: 0; z-index: 0; cursor: pointer; touch-action: none; background: transparent; }
.story .stags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.story.picking { background: rgba(18,10,6,.55); pointer-events: auto; }
.story.picking .stap, .story.picking .stags { display: none; }
.story .shead { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top, 0px)); left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.story .shead > * { pointer-events: auto; }
.story .sback, .story .sstrip, .story .stabs button, .story .spick button { background-color: var(--paper); background-image: var(--fiber, none); background-size: 340px; background-blend-mode: multiply; }
.story .sback { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border: 0; font: 400 18px var(--fell); color: var(--ink); filter: drop-shadow(1px 2px 2px rgba(20,10,2,.4)); clip-path: polygon(0 4%, 30% 0, 60% 5%, 100% 1%, 98% 50%, 100% 96%, 65% 100%, 30% 95%, 0 100%, 2% 50%); }
.story .sback:hover { background-color: #fffaf0; }
.story .stitle { flex: 1; margin: 0; text-align: center; font: italic 400 21px var(--fell); color: #f1e4c8; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .sdots { display: flex; gap: 6px; min-width: 92px; justify-content: flex-end; }
.story .sdots i { width: 10px; height: 10px; background: rgba(241,228,200,.35); transform: rotate(45deg); }
.story .sdots i.on { background: #f4edde; box-shadow: 0 0 6px rgba(255,220,150,.6); }
.story .sdots i.uf { outline: 1px solid var(--gold); outline-offset: 1px; }
.story .sstripw { position: absolute; z-index: 2; left: 50%; bottom: max(22px, env(safe-area-inset-bottom, 0px)); width: min(920px, calc(100% - 40px)); transform: translateX(-50%) rotate(-.5deg); filter: drop-shadow(1px 4px 5px rgba(20,10,2,.45)); }
.story.picking .sstripw { display: none; }
.story .sstrip { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; padding: 14px 10px 16px; clip-path: polygon(0 6%, 8% 1%, 17% 5%, 27% 0, 38% 4%, 49% 1%, 60% 5%, 71% 0, 82% 4%, 92% 1%, 100% 5%, 99% 50%, 100% 95%, 91% 100%, 80% 96%, 69% 100%, 58% 95%, 47% 99%, 36% 95%, 25% 100%, 14% 96%, 5% 100%, 0 95%, 1% 50%); }
.story .sstrip p { margin: 0; text-align: center; font: 400 28px/1.28 var(--fell); color: var(--ink); text-wrap: balance; }
.story .sstrip p.in { animation: sin .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.story #sprev, .story #snext { width: 44px; height: 44px; border: 0; background: none; font: 400 30px/1 var(--fell); color: var(--ink2); }
.story #sprev:hover, .story #snext:hover { color: var(--ink); }
.story #sprev:disabled, .story #snext:disabled { opacity: .25; cursor: default; }
.story .stabs { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; animation: sfade .6s both; }
.story .stabs[hidden] { display: none; }
.story .stabs button { width: auto; height: auto; flex: 0 0 auto; white-space: nowrap; }
@keyframes sfade { from { opacity: 0; } to { opacity: 1; } }
.story .stabs button, .story .spick button { position: relative; min-height: 46px; padding: 0 22px; border: 0; font: 400 20px var(--fell); color: var(--ink); white-space: nowrap; filter: drop-shadow(1px 3px 3px rgba(20,10,2,.45)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.story .stabs button::after, .story .spick button::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, transparent 50%, #d8cbb0 50%); }
.story .stabs button:hover, .story .spick button:hover { background-color: #fffaf0; }
.story .spick { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 16px; width: min(460px, calc(100% - 40px)); text-align: center; }
.story .spick h2 { margin: 0 0 4px; font: italic 400 30px var(--fell); color: #f1e4c8; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story .spick button { display: block; width: 100%; min-height: 0; padding: 16px 22px 18px; text-align: left; white-space: normal; }
.story .spick button b { display: block; font: 400 27px/1.1 var(--fell); }
.story .spick button span { display: block; margin-top: 4px; font: italic 400 16px var(--fell); color: var(--ink2); }
.story .spick button:nth-of-type(1) { transform: rotate(-.8deg); } .story .spick button:nth-of-type(2) { transform: rotate(.6deg); }
body.storying .bar, body.storying .ctl, body.storying .rail, body.storying .capw, body.storying .scap, body.storying .folw, body.storying .tilt, body.storying .tip { visibility: hidden; }
body.storying .lab { z-index: 31; }
.story .shead { background: linear-gradient(rgba(18,10,6,.55), rgba(18,10,6,0)); margin: -10px -16px 0; padding: 10px 16px 14px; }
/* a person's name: a paper chip pinned in front of their feet, a thread up to them */
.stag { position: absolute; left: 0; top: 0; transition: opacity .35s; white-space: nowrap; filter: drop-shadow(1px 2px 2px rgba(30,18,6,.45)); }
.stag::before { content: ""; position: absolute; left: var(--lx, 50%); bottom: 100%; width: 1px; height: var(--lead, 8px); background: rgba(244,237,222,.75); }
.stag span { display: block; padding: 4px 12px 5px; font: italic 400 18px/1.15 var(--fell); color: var(--ink); background-color: var(--paper); background-image: var(--fiber, none); background-size: 340px; background-blend-mode: multiply; border-bottom: 2px solid var(--c); clip-path: polygon(0 4%, 25% 0, 55% 5%, 100% 1%, 98% 50%, 100% 97%, 70% 100%, 35% 96%, 0 100%, 2% 50%); }

/* phone, 390 wide: the text strip along the bottom, the scene above */
@media (max-aspect-ratio: 4/5) {
  .story .shead { left: 8px; right: 8px; gap: 8px; }
  .story .sback { font-size: 16px; padding: 0 12px 0 8px; }
  .story .stitle { font-size: 17px; }
  .story .sdots { min-width: 0; gap: 4px; } .story .sdots i { width: 8px; height: 8px; }
  .story .sstripw { width: calc(100% - 16px); bottom: max(10px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) rotate(-.3deg); }
  .story .sstrip { grid-template-columns: 34px 1fr 34px; gap: 2px; padding: 12px 4px 14px; }
  .story .sstrip p { font-size: 20px; line-height: 1.3; }
  .story #sprev, .story #snext { width: 34px; font-size: 26px; }
  .story .stabs { gap: 8px; margin-top: 8px; }
  .story .stabs button { font-size: 16px; padding: 0 14px; min-height: 44px; }
  .story .shead { margin: -10px -8px 0; padding: 10px 8px 12px; }
  .stag span { font-size: 17px; padding: 4px 10px 5px; }
}
