/* ================= Fantasy Picks =================
   A tipster's board: one tile per category in the category's color, filling the board (never more than four across),
   the room's top calls as bars with faces, revealed tiles flip to the winner and how many called it. Names wrap; the
   tile's type scales with the tile's width (container units), and denser boards (r3, r4) trim to fit. */
.fy { position: relative; flex: 1; margin: -1.5vh -3vw -2.5vh; padding: 1.5vh 3vw 2.5vh; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); overflow: hidden; font-family: var(--display); }
.fy i, .fy b, .fy em { font-style: normal; }
.fy-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2vw; align-items: stretch; min-height: 0; }
.fy-wrap .wt-qr { z-index: 50; }
/* the board stays up all night, so its QR card is a little smaller than a lobby's to give the tiles room (still well over 30vh) */
.fy-wrap { --wt-qrs: 33vh; --wt-col: calc(var(--wt-qrs) + 2 * var(--wt-qrpad, 2vh)); }
.fy-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.8vh; min-height: 0; min-width: 0; }
/* the sign: crystal ball, title, the stakes, and how far along the night is */
.fy-sign { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 1vh 1.2vw; min-width: 0; }
.fy-sign > span { font-size: 5.6vh; line-height: 1; animation: fy-glow 2.4s ease-in-out infinite alternate; }
@keyframes fy-glow { to { filter: drop-shadow(0 0 2vh #b388ff); transform: rotate(-8deg); } }
.fy-sign b { font-weight: 900; font-size: 5.6vh; line-height: 1.05; color: #fff; white-space: nowrap; text-shadow: 0 .6vh 0 rgba(0, 0, 0, .5), 0 0 5vh color-mix(in srgb, #b388ff 50%, transparent); }
.fy-sign small > span { white-space: nowrap; }
.fy-sign small { text-wrap: balance; }
.fy-sign small, .fy-prog { justify-self: start; padding: .8vh 1.4vw; border-radius: 2.4vh; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2vh; line-height: 1.2; color: var(--gold); background: rgba(10, 8, 30, .72); box-shadow: inset 0 0 0 .2vh color-mix(in srgb, var(--gold) 35%, transparent); }
.fy-prog { justify-self: end; white-space: nowrap; color: #fff; }
.fy-prog:empty { display: none; }
/* the tiles */
.fy-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); gap: 1.8vh 1.2vw; min-height: 0; min-width: 0; }
.fy-cat { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: 1.2vh; min-width: 0; min-height: 0; overflow: hidden; padding: 1.8vh 1.4vw; border-radius: 2vh;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat, var(--violet)) 30%, rgba(14, 8, 26, .9)), rgba(8, 5, 16, .93));
    box-shadow: inset 0 0 0 .3vh color-mix(in srgb, var(--cat, var(--gold)) 70%, transparent), 0 1.5vh 4vh rgba(0, 0, 0, .5); animation: fy-in .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * .06s); }
@keyframes fy-in { from { transform: translateY(2vh); opacity: 0; } }
/* a new call lights the tile's rim for a moment (on a layer of its own, so the tile's entrance never replays) */
.fy-cat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 .45vh #fff, inset 0 0 4vh color-mix(in srgb, var(--cat, var(--gold)) 70%, transparent); }
.fy-cat.ping::after { animation: fy-ping .8s ease-out; }
@keyframes fy-ping { 25% { opacity: 1; } }
/* header: the emoji beside the name, which wraps; the call count under the name */
.fy-ch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: max(.6vw, 3cqi); flex: none; }
.fy-ch .fy-em { grid-row: 1 / 3; font-size: min(4.6vh, 15cqi); line-height: 1; }
.fy-ch b { font-weight: 900; font-size: min(3.3vh, 10.5cqi); line-height: 1.08; color: #fff; text-wrap: balance; overflow-wrap: break-word; }
.fy-ch small { margin-top: .3vh; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: min(1.9vh, 6.4cqi); color: color-mix(in srgb, var(--cat, #b388ff) 30%, #e8e0ff); }
/* the room's top calls */
.fy-top { flex: 1; min-height: 0; display: grid; align-content: center; gap: 1.3vh; }
.fy-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: max(.6vw, 3cqi); animation: fy-in .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--k) * .1s); }
.fy-ph { width: min(5.4vh, 17cqi); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1a1230; box-shadow: 0 0 0 .25vh color-mix(in srgb, var(--cat, var(--gold)) 80%, #fff); }
.fy-ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .fy-ph .sigil { display: grid; place-items: center; width: 100%; height: 100%; font-size: min(2.1vh, 6.5cqi); }
.fy-cat.settled .fy-bar { animation: none; }
.fy-bm { display: grid; gap: .6vh; min-width: 0; }
.fy-bm span { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: min(2.1vh, 7.4cqi); line-height: 1.12; color: #fff; overflow-wrap: break-word; }
.fy-bb { height: 1.5vh; border-radius: 99px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.fy-bb i { display: block; height: 100%; min-width: 1.5vh; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--pumpkin)) 65%, #fff), var(--cat, var(--pumpkin))); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.fy-bar > b { font-weight: 900; font-size: min(3vh, 10cqi); color: var(--gold); font-variant-numeric: tabular-nums; }
.fy-bar:first-child > b { font-size: min(3.4vh, 11cqi); }
/* nobody has called it yet */
.fy-none { flex: 1; min-height: 0; display: grid; justify-items: center; align-content: center; gap: 1.2vh; }
.fy-none i { display: grid; place-items: center; width: min(8vh, 26cqi); aspect-ratio: 1; border-radius: 50%; font-weight: 900; font-size: min(4.4vh, 14cqi); color: color-mix(in srgb, var(--cat, #b388ff) 45%, #fff);
    border: .35vh dashed color-mix(in srgb, var(--cat, #b388ff) 70%, transparent); background: rgba(0, 0, 0, .25); animation: fy-q 2.6s ease-in-out infinite; }
@keyframes fy-q { 50% { transform: scale(1.08) rotate(-6deg); } }
.fy-none span { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: min(2.1vh, 7cqi); color: #d8cff0; }
/* revealed: the winner, and how many called it */
.fy-cat.rev { box-shadow: inset 0 0 0 .45vh var(--gold), 0 0 4vh color-mix(in srgb, var(--gold) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 22%, rgba(30, 18, 8, .92)), rgba(10, 6, 14, .94)); }
.fy-win { flex: 1; min-height: 0; display: grid; justify-items: center; align-content: center; gap: 1vh; text-align: center; animation: fy-flip .8s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fy-flip { from { transform: perspective(80vh) rotateY(90deg) scale(.8); opacity: 0; } }
.fy-wph { position: relative; width: min(10vh, 30cqi); aspect-ratio: 1; }
.fy-wph > img, .fy-wph > .sigil { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: min(3.6vh, 11cqi); background: #1a1230; box-shadow: 0 0 0 .45vh var(--gold), 0 0 3vh color-mix(in srgb, var(--gold) 60%, transparent); }
.fy-wph > i { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%) rotate(-8deg); font-size: min(3.6vh, 11cqi); line-height: 1; filter: drop-shadow(0 .3vh .4vh rgba(0, 0, 0, .6)); }
.fy-wt { display: grid; justify-items: center; gap: .5vh; min-width: 0; max-width: 100%; }
.fy-wt small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: min(1.8vh, 6cqi); letter-spacing: .1em; color: var(--gold); }
.fy-wt b { max-width: 100%; font-weight: 900; font-size: min(3.4vh, 11cqi); line-height: 1.08; color: #fff; text-wrap: balance; overflow-wrap: break-word; }
.fy-wt em { padding: .5vh 1vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: min(1.9vh, 6.4cqi); color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
.fy-wt em.fy-nobody { color: #e8e0ff; background: rgba(255, 255, 255, .12); }
/* one row of big tiles: bigger everything */
.fy-grid.r1 .fy-ch .fy-em { font-size: min(6vh, 15cqi); } .fy-grid.r1 .fy-ch b { font-size: min(4.4vh, 10.5cqi); } .fy-grid.r1 .fy-ch small { font-size: min(2.4vh, 6.4cqi); }
.fy-grid.r1 .fy-top { gap: 2.4vh; } .fy-grid.r1 .fy-ph { width: min(8vh, 17cqi); } .fy-grid.r1 .fy-bm span { font-size: min(2.6vh, 6.6cqi); } .fy-grid.r1 .fy-bb { height: 2vh; } .fy-grid.r1 .fy-bar > b { font-size: min(4.2vh, 9.5cqi); }
.fy-grid.r1 .fy-wph { width: min(18vh, 30cqi); } .fy-grid.r1 .fy-wt b { font-size: min(5vh, 11cqi); } .fy-grid.r1 .fy-wt small, .fy-grid.r1 .fy-wt em { font-size: min(2.4vh, 6.4cqi); } .fy-grid.r1 .fy-none i { width: min(14vh, 26cqi); font-size: min(7vh, 14cqi); }
/* three or more rows: short tiles, so smaller type and a side-by-side winner */
.fy-grid:is(.r3, .r4) .fy-cat { gap: .8vh; padding: 1.2vh 1.1vw; }
.fy-grid:is(.r3, .r4) .fy-ch .fy-em { font-size: min(3.4vh, 13cqi); } .fy-grid:is(.r3, .r4) .fy-ch b { font-size: min(2.6vh, 9.5cqi); } .fy-grid:is(.r3, .r4) .fy-ch small { font-size: min(1.6vh, 6cqi); margin-top: 0; }
.fy-grid:is(.r3, .r4) .fy-top { gap: .8vh; } .fy-grid:is(.r3, .r4) .fy-ph { width: min(4vh, 14cqi); } .fy-grid:is(.r3, .r4) .fy-bm { gap: .35vh; } .fy-grid:is(.r3, .r4) .fy-bm span { font-size: min(1.7vh, 6cqi); } .fy-grid:is(.r3, .r4) .fy-bb { height: 1.1vh; }
.fy-grid:is(.r3, .r4) .fy-bar > b, .fy-grid:is(.r3, .r4) .fy-bar:first-child > b { font-size: min(2.4vh, 8.5cqi); }
.fy-grid:is(.r3, .r4) .fy-none { grid-auto-flow: column; gap: 1vw; } .fy-grid:is(.r3, .r4) .fy-none i { width: min(4.4vh, 15cqi); font-size: min(2.6vh, 9cqi); border-width: .25vh; }
.fy-grid:is(.r3, .r4) .fy-win { grid-template-columns: auto minmax(0, 1fr); justify-content: center; justify-items: start; text-align: left; column-gap: max(.8vw, 4cqi); }
.fy-grid:is(.r3, .r4) .fy-wph { width: min(5.6vh, 20cqi); } .fy-grid:is(.r3, .r4) .fy-wph > i { transform: translate(-50%, -40%) rotate(-8deg); font-size: min(2.4vh, 8cqi); } .fy-grid:is(.r3, .r4) .fy-wt { justify-items: start; gap: .3vh; } .fy-grid:is(.r3, .r4) .fy-wt b { font-size: min(2.3vh, 8.5cqi); line-height: 1.05; } .fy-grid:is(.r3, .r4) .fy-wt small, .fy-grid:is(.r3, .r4) .fy-wt em { font-size: min(1.6vh, 6cqi); }
/* a tile whose content still runs past its box sheds detail one step at a time (fantasy.js adds fit1..fit4):
   the third bar, then the second bar and the labels, then the faces, then smaller type. Names are never cut. */
.fy-cat.fit1 .fy-bar:nth-child(n + 3) { display: none; }
.fy-cat.fit2 .fy-bar:nth-child(n + 2), .fy-cat.fit2 .fy-wt small, .fy-cat.fit2 .fy-none i { display: none; }
.fy-cat.fit3 .fy-ph, .fy-cat.fit3 .fy-wph, .fy-cat.fit3 .fy-none { display: none; } .fy-cat.fit3 .fy-win { grid-template-columns: minmax(0, 1fr); }
.fy-cat.fit4 .fy-ch b { font-size: min(2.1vh, 8cqi); } .fy-cat.fit4 .fy-ch .fy-em { font-size: min(2.6vh, 10cqi); } .fy-cat.fit4 .fy-bm span, .fy-cat.fit4 .fy-wt b { font-size: min(1.8vh, 7cqi); } .fy-cat.fit4 .fy-wt em { padding: .2vh .6vw; }
/* footer: how it works, or who is calling it right */
.fy-how, .fy-lead, .fy-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1vh 1vw; }
.fy-foot span { padding: .8vh 1.2vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.95vh; line-height: 1.2; color: #fff; background: rgba(10, 8, 30, .72); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .12); }
.fy-foot > b { font-size: 2.4vh; color: var(--gold); } .fy-foot em { margin-left: .4vw; color: var(--gold); font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .fy *, .fyp * { animation: none !important; } }

/* ================= phone ================= */
.fyp { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.fyp > * { min-width: 0; }
.fyp-head { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.fyp-head .ic { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; background: linear-gradient(135deg, #7b3fd6, #2a1f48); }
.fyp-head small > span { white-space: nowrap; }
.fyp-head small { text-wrap: balance; }
.fyp-head small { display: block; margin-top: .15rem; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted, #a7a2b0); }
.fyp-head > b { margin-left: auto; flex: none; padding: .3rem .6rem; border-radius: 99px; font-size: 1rem; color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
.fyp-prog { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.fyp-prog b { font-family: var(--display); font-weight: 900; color: var(--gold); } .fyp-prog span { font-size: .8rem; font-weight: 700; color: var(--muted, #a7a2b0); text-align: right; }
.fyp-cats { display: grid; gap: .5rem; }
.fyp-cat { border-radius: 14px; background: var(--panel, #1c1c21); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cat, var(--line, #333)) 45%, transparent); overflow: hidden; }
.fyp-cat.has { box-shadow: inset 0 0 0 2px var(--cat, var(--gold)); background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--gold)) 18%, var(--panel, #1c1c21)), var(--panel, #1c1c21) 70%); }
.fyp-ch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: .1rem .7rem; width: 100%; min-height: 60px; padding: .7rem .9rem; border: 0; font: inherit; text-align: left; color: #fff; background: none; cursor: pointer; }
.fyp-ch > span { grid-row: 1 / 3; font-size: 1.6rem; line-height: 1; }
.fyp-ch b { grid-column: 2; font-family: var(--display); font-weight: 900; line-height: 1.15; overflow-wrap: break-word; }
.fyp-ch em { grid-column: 2; font-style: normal; font-size: .85rem; color: var(--muted, #a7a2b0); overflow-wrap: break-word; }
.fyp-cat.has .fyp-ch em { color: var(--gold); font-weight: 800; }
.fyp-ch > i { grid-column: 3; grid-row: 1 / 3; font-style: normal; color: var(--muted, #a7a2b0); }
.fyp-ch > .fyp-ph { grid-column: 3; grid-row: 1 / 3; }
.fyp-list { display: grid; gap: .35rem; padding: 0 .6rem .6rem; }
.fyp-list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 54px; padding: .45rem .6rem; border: 0; border-radius: 10px; font: inherit; text-align: left; color: #fff; background: rgba(0, 0, 0, .3); cursor: pointer; }
.fyp-list button b { font-family: var(--display); font-weight: 900; overflow-wrap: break-word; } .fyp-list button small { display: block; color: var(--muted, #a7a2b0); font-size: .8rem; overflow-wrap: break-word; }
.fyp-list button > i { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-style: normal; font-weight: 900; color: #1a1000; background: var(--gold); }
.fyp-list button.on { box-shadow: inset 0 0 0 2px var(--gold); background: color-mix(in srgb, var(--gold) 18%, #0b0b10); }
.fyp-none { margin: 0; padding: .6rem; text-align: center; color: var(--muted, #a7a2b0); font-weight: 700; }
.fyp-ph { width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; background: #1a1230; } .fyp-ph.fyp-thumb { width: 2.2rem; height: 2.2rem; box-shadow: 0 0 0 2px var(--gold); }
.fyp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .fyp-ph .sigil { display: grid; place-items: center; width: 100%; height: 100%; font-size: .95rem; }
.fyp-empty { display: grid; justify-items: center; gap: .2rem; padding: 1.1rem .9rem; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .05); }
.fyp-empty b { font-family: var(--display); font-weight: 900; font-size: 1.2rem; } .fyp-empty span { color: var(--muted, #a7a2b0); font-weight: 700; font-size: .9rem; }
.fyp-done { display: grid; gap: .4rem; padding: .8rem .9rem; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.fyp-done h4 { margin: 0 0 .1rem; font-family: var(--display); font-size: .95rem; letter-spacing: .04em; color: var(--gold); }
.fyp-done > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.fyp-done > div > span { font-size: 1.3rem; } .fyp-done b { display: block; font-family: var(--display); font-weight: 900; line-height: 1.15; overflow-wrap: break-word; } .fyp-done small { display: block; color: var(--gold); font-weight: 800; font-size: .85rem; overflow-wrap: break-word; }
.fyp-done i { font-style: normal; font-weight: 900; font-size: .8rem; white-space: nowrap; padding: .25rem .5rem; border-radius: 99px; color: var(--muted, #a7a2b0); background: rgba(255, 255, 255, .06); }
.fyp-done .hit i { color: #062a14; background: var(--ecto, #43e08a); } .fyp-done .miss i { color: #fff; background: color-mix(in srgb, var(--blood, #c8102e) 70%, #000); }
.pp-fantasy { display: grid; place-items: center; }
.fy-mini { display: flex; gap: .6rem; } .fy-mini i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-style: normal; font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #7b3fd6, #2a1f48); box-shadow: 0 0 0 2px var(--gold); animation: pp-bob 2.4s ease-in-out infinite alternate; }
.fy-mini i:nth-child(2) { animation-delay: .3s; } .fy-mini i:nth-child(3) { animation-delay: .6s; }

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.fy-foot span { font-size: 2.4vh; }
.fy-sign small, .fy-prog { font-size: 2.4vh; }
