/* Game pages: "How it works" as a Slack conversation that opens bubble by bubble as you scroll
   (same look as Vilo Play on the home page), and the use cases as an editorial list.
   The .hp-* rules are copied from index.html and scoped under .cf. Script: js/game-flow.js. */
.cf .hp-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cf .hp-copy { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cf .hp-copy .tile { display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(23,23,26,.08); }
.cf .hp-sl .slk { width: 15px; height: 15px; display: block; }
.cf .hp-ex { font-size: 12px; color: var(--mute); }
.cf .hp-flow { display: flex; flex-direction: column; gap: 14px; padding-block: 10px 40px; max-width: 600px; }
.cf .hp-b { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity 600ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1); }
.cf .hp-b.in { opacity: 1; transform: none; filter: none; }
.cf .hp-tag { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px 6px 7px; border-radius: 99px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(23,23,26,.06); font: 600 12px/1 var(--sans); color: var(--ink-2); }
.cf .hp-tag span { width: 20px; height: 20px; border-radius: 7px; background: #FFFFFF; display: grid; place-items: center; }
.cf .hp-tag .slk { width: 12px; height: 12px; }
.cf .hp-row { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; }
.cf .hp-row.m { align-self: flex-end; flex-direction: row-reverse; }
.cf .hp-row .o, .cf .hp-av { flex: none; width: 34px; height: 34px; border-radius: 11px; overflow: hidden; display: block; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(40,30,70,.5); }
.cf .hp-row .o svg { width: 100%; height: 100%; display: block; }
.cf .hp-bub { position: relative; padding: 11px 14px 12px; border-radius: 20px 20px 20px 6px; background: rgba(255,255,255,.92); box-shadow: inset 0 1px 0 #FFFFFF, 0 18px 36px -24px rgba(40,30,70,.55), 0 0 0 1px rgba(23,23,26,.04); font: 400 15px/1.45 var(--sans); color: var(--ink); }
.cf .hp-row.m .hp-bub { border-radius: 20px 20px 6px 20px; background: linear-gradient(180deg, #F1EEFF, #E9E4FF); }
:root[dir="rtl"] .cf .hp-bub { border-radius: 20px 20px 6px 20px; }
:root[dir="rtl"] .cf .hp-row.m .hp-bub { border-radius: 20px 20px 20px 6px; }
.cf .hp-n { display: block; margin-bottom: 3px; font: 800 13px/1.2 var(--sans); }
.cf .hp-n em { font-style: normal; font-size: 9px; font-weight: 700; color: #616061; background: #E8E8E8; border-radius: 3px; padding: 1px 4px; margin-inline-start: 4px; vertical-align: 1px; }
.cf .hp-bub p { margin: 0; }
.cf .hp-bub .g { color: #1F8A5B; }
.cf .hp-rx { display: flex; gap: 5px; margin-top: 8px; }
.cf .hp-rx i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #EEF4FF; box-shadow: inset 0 0 0 1px #CFE0F7; color: #1264A3; transform: scale(.6); opacity: 0; transition: transform 400ms cubic-bezier(.34,1.56,.64,1), opacity 300ms; }
.cf .hp-b.in .hp-rx i { transform: none; opacity: 1; }
.cf .hp-b.in .hp-rx i:nth-child(2) { transition-delay: 160ms; }
.cf .hp-rx b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cf .hp-card { display: flex; align-items: center; gap: 12px; }
.cf .hp-card.hpr img, .cf .hp-card.hpk img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.cf .hp-card b { display: block; font: 700 15px/1.2 var(--disp); }
.cf .hp-card small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.cf .hp-card .ok { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font: 700 11.5px/1.2 var(--sans); }
.cf .hp-card.hpb { flex-direction: column; align-items: stretch; gap: 8px; min-width: min(360px, 70vw); }
.cf .hp-bar { display: grid; grid-template-columns: 76px 1fr 48px; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); }
.cf .hp-bar u { height: 9px; border-radius: 9px; background: rgba(23,23,26,.06); overflow: hidden; text-decoration: none; }
.cf .hp-bar u i { display: block; height: 100%; border-radius: 9px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1200ms cubic-bezier(.22,1,.36,1) 200ms; }
:root[dir="rtl"] .cf .hp-bar u i { transform-origin: right; }
.cf .hp-b.in .hp-bar u i { transform: scaleX(var(--w)); }
.cf .hp-bar b { text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cf .hp-card.hpk p { margin: 2px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.cf .hp-card.hpk .tg { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #FFF3CC; color: #8A6500; font: 700 11px/1.2 var(--sans); }
.cf .hp-card.hpk em { margin-inline-start: auto; align-self: flex-start; font: 800 18px/1 var(--disp); font-style: normal; color: #C99A12; }
@media (max-width: 960px) {
.cf .hp-grid { grid-template-columns: minmax(0, 1fr); }
.cf .hp-copy { position: static; }
.cf .hp-flow { max-width: none; }
}
@media (max-width: 620px) {
.cf .hp-row { max-width: 94%; }
.cf .hp-bub { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.cf .hp-b, .cf .hp-rx i, .cf .hp-bar u i { transition: none; opacity: 1; transform: none; filter: none; }
.cf .hp-bar u i { transform: scaleX(var(--w)); }
}
.cf .hp-card.hpp { flex-direction: column; align-items: stretch; gap: 8px; min-width: min(340px, 70vw); }
.cf .hp-ptl { font: 600 12px/1 var(--sans); color: var(--mute); }
.cf .hp-pt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #FBF8EE; }
.cf .hp-pt img { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; object-fit: cover; }
.cf .hp-pt b { font: 700 13.5px/1.2 var(--sans); }
.cf .hp-pt span { grid-column: 2; font: 500 12px/1.2 var(--sans); color: var(--ink-2); }
.cf .hp-pt em { grid-row: 1 / span 2; grid-column: 3; font: 800 18px/1 var(--disp); font-style: normal; color: #C99A12; transform: scale(.4); opacity: 0; transition: transform 500ms cubic-bezier(.34,1.56,.64,1) 300ms, opacity 300ms 300ms; }
.cf .hp-b.in .hp-pt em { transform: none; opacity: 1; }
.cf .hp-b.in .hp-pt + .hp-pt em { transition-delay: 600ms; }
.cf .hp-card.hpg { padding: 14px 16px; background: radial-gradient(120% 120% at 0% 0%, rgba(255,233,174,.9), transparent 60%), #FFFFFF; }
.cf .hp-badge { position: relative; flex: none; width: 58px; height: 58px; }
.cf .hp-badge img { width: 58px; height: 58px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #F2C94C; }
.cf .hp-badge i { position: absolute; bottom: -4px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: linear-gradient(180deg, #F7D774, #E0A92B); color: #FFFFFF; font-style: normal; font-size: 13px; box-shadow: 0 0 0 3px #FFFFFF; transform: scale(0) rotate(-90deg); transition: transform 600ms cubic-bezier(.34,1.56,.64,1) 350ms; }
.cf .hp-b.in .hp-badge i { transform: none; }
.cf .hp-card.hpg small { display: block; font: 600 12px/1 var(--sans); color: var(--mute); margin: 0 0 4px; }
.cf .hp-card.hpg b { font-size: 19px; }
.cf .hp-copy .h2 { font-size: clamp(34px, 3.4vw, 52px); }
.cf .hp-copy .h2 em { white-space: normal; }
.cf .hp-poll { min-width: min(420px, 78vw); }
.cf .hp-ops { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cf .hp-op { position: relative; display: grid; grid-template-columns: 26px 64px minmax(0, 1fr) 30px; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #F6F5FA; box-shadow: inset 0 0 0 1px rgba(23,23,26,.05); font: 600 13px/1 var(--sans); transition: background 400ms, box-shadow 400ms; }
.cf .hp-op img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.cf .hp-op u { height: 7px; border-radius: 9px; background: rgba(23,23,26,.07); overflow: hidden; text-decoration: none; }
.cf .hp-op u i { display: block; height: 100%; border-radius: 9px; background: #B9AEFF; transform: scaleX(0); transform-origin: left; transition: transform 1100ms cubic-bezier(.22,1,.36,1) 300ms; }
:root[dir="rtl"] .cf .hp-op u i { transform-origin: right; }
.cf .hp-b.in .hp-op u i { transform: scaleX(var(--w)); }
.cf .hp-op em { font-style: normal; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cf .hp-op.win.lit { background: var(--ok-bg); box-shadow: inset 0 0 0 1.5px rgba(47,158,116,.45); }
.cf .hp-op.win.lit u i { background: #2F9E74; }
.cf .hp-tot { display: block; margin-top: 8px; font-size: 11.5px; color: var(--mute); }
.cf .hp-card { position: relative; }
.cf .hp-conf { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.cf .hp-conf i { position: absolute; left: 0; top: 0; width: 7px; height: 4px; border-radius: 2px; background: var(--c); opacity: 0; }
.cf .hp-b.in .hp-conf i { animation: hpc 1100ms cubic-bezier(.15,.7,.3,1) calc(450ms + var(--d)) both; }
@media (prefers-reduced-motion: reduce) {
.cf .hp-conf { display: none; }
.cf .hp-op u i { transition: none; transform: scaleX(var(--w)); }
}
@keyframes hpc { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 26px)) rotate(var(--r)) scale(1); } }

/* additions for the game pages */
.cf .hp-copy .btn { margin-top: 2px; }
.cf .hp-sn { font: 800 11px/1 var(--sans); letter-spacing: .04em; color: var(--ink); }
.cf .hp-ph { display: block; width: min(280px, 100%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-top: 8px; }
.cf .hp-flow { margin-inline-start: auto; width: 100%; }

/* Use cases: an editorial list instead of a grid of cards */
.uc2 { display: grid; border-top: 1px solid var(--line); }
.uc2-i { position: relative; isolation: isolate; display: grid; grid-template-columns: 72px minmax(0, 1fr) 132px; gap: clamp(14px, 3vw, 36px); align-items: center;
  padding: clamp(18px, 2.4vw, 28px) 4px; border-bottom: 1px solid var(--line); }
.uc2-i::before { content: ""; position: absolute; z-index: -1; inset: 8px -14px; border-radius: 26px;
  background: radial-gradient(70% 160% at 100% 50%, var(--tint), transparent 72%); opacity: 0; transition: opacity 320ms; }
:root[dir="rtl"] .uc2-i::before { background: radial-gradient(70% 160% at 0% 50%, var(--tint), transparent 72%); }
.uc2-i:hover::before { opacity: 1; }
.uc2-n { font: 700 clamp(34px, 3.6vw, 52px)/1 var(--disp); letter-spacing: -0.04em; color: rgba(23, 23, 26, .16); font-variant-numeric: tabular-nums; }
.uc2-t small { display: inline-block; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tint); font: 700 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.uc2-t b { display: block; font: 700 clamp(22px, 2.3vw, 32px)/1.08 var(--disp); letter-spacing: -0.025em; color: var(--ink); }
.uc2-t p { margin: 6px 0 0; max-width: 58ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.uc2-v { justify-self: end; width: 132px; height: 92px; border-radius: 999px; background: var(--tint); display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 26, .05); transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
.uc2-v img { width: 86%; height: 86%; object-fit: contain; }
.uc2-v svg { width: 30px; height: 30px; }
.uc2-i:hover .uc2-v { transform: rotate(-4deg) scale(1.04); }
@media (max-width: 640px) {
  .uc2-i { grid-template-columns: 44px minmax(0, 1fr); }
  .uc2-n { font-size: 30px; align-self: start; padding-top: 4px; }
  .uc2-v { display: none; }
}
@media (prefers-reduced-motion: reduce) { .uc2-i::before, .uc2-v { transition: none; } }
.cf .hp-pt em { color: #8A6500; }   /* 4.5:1 on the cream row */
