/* features-extra.css: owned by P3 (Games, Gistmo AI, Nearby, Gistmo Cash). Page-only CSS.
   Uses the tokens and components in /site.css. Classes are prefixed fx- so they never clash with features.css. */

/* ---------- Hero ---------- */
.fx-hero .head{max-width:820px}
.fx-hero h1{max-width:14ch;margin-inline:auto}
.fx-hero__media{margin-top:var(--s-10);position:relative}
.fx-hero__media.wash::before{inset:14% -2% -3%}
@media (max-width:734px){.fx-hero__media.wash::before{inset:12% -8px -10px}}
.fx-hero__card{max-width:880px;margin-inline:auto}
.fx-hero__card .photo-card__img{--ar:3/2}
@media (max-width:734px){.fx-hero__card .photo-card__img{--ar:4/5}.fx-hero__media{margin-top:var(--s-9)}}

/* Row of three phones; a snap gallery on mobile. */
.fx-phones{display:flex;justify-content:center;align-items:flex-end;gap:clamp(20px,3vw,40px);padding:8px 0 40px;list-style:none;margin:0}
.fx-phones>li{flex:none}
.fx-phones .phone{--phone-w:clamp(230px,22vw,290px)}
.fx-phones>li:nth-child(2) .phone{--phone-w:clamp(250px,24vw,310px)}
.fx-phones>li:nth-child(odd){padding-bottom:24px}
.fx-phones figcaption{margin-top:20px;text-align:center;font-size:var(--t-small);font-weight:500;color:var(--text-2)}
@media (max-width:833px){
  .fx-phones{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);margin-inline:calc((100% - 100vw) / 2);width:100vw}
  .fx-phones::-webkit-scrollbar{display:none}
  .fx-phones>li{scroll-snap-align:center}
  .fx-phones>li:nth-child(odd){padding-bottom:0}
  .fx-phones .phone,.fx-phones>li:nth-child(2) .phone{--phone-w:236px}
}
.fx-swipe{display:none;margin-top:4px;text-align:center;font-size:var(--t-small);font-weight:500;color:var(--text-2)}
@media (max-width:833px){.fx-swipe{display:block}}

/* Phones on black need a visible edge. */
.dark-block .phone{box-shadow:0 0 0 1.5px rgba(255,255,255,.22),0 40px 80px -30px rgba(43,196,214,.25)}

/* Single phone on the wash. */
.fx-solo{display:flex;justify-content:center;padding:16px 0 32px}
.fx-solo .phone{--phone-w:clamp(240px,26vw,300px)}

/* ---------- Copy helpers ---------- */
.fx-statement{padding-block:calc(var(--sec) * .75)}
.fx-split .head{max-width:30rem}
.fx-list{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:16px}
.fx-list li{display:flex;gap:14px;align-items:flex-start;color:var(--text-2)}
.fx-list li b{display:block;color:var(--text);font-weight:600}
.fx-note{margin-top:24px;font-size:var(--t-small);font-weight:500;color:var(--text-2)}
.fx-grid-head{max-width:40rem}
.fx-more{margin-top:24px}

/* ---------- Tiny app screens ---------- */
.fx-scr{display:flex;flex-direction:column;height:100%;padding-top:44px;background:var(--bg)}

/* Game invite card in a chat */
.fx-invite{align-self:flex-start;width:84%;padding:12px;border-radius:18px;border-bottom-left-radius:6px;background:var(--bubble-in);font-size:14px;line-height:1.35}
.fx-invite__top{display:flex;align-items:center;gap:10px}
.fx-invite__top img{width:44px;height:44px;border-radius:12px;flex:none}
.fx-invite__top b{display:block;font-weight:700}
.fx-invite__top small{display:block;color:var(--text-2);font-size:14px}
.fx-invite__btn{display:block;margin-top:10px;padding:8px;border-radius:12px;background:var(--pill);color:var(--pill-ink);text-align:center;font-weight:600}

/* Whot table */
.fx-whot{display:flex;flex-direction:column;height:100%;padding:52px 12px 18px;background:radial-gradient(120% 80% at 50% 45%,#7A1828,#3A0A13);color:#FFF8EE}
.fx-whot__row{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600}
.fx-whot__row .av{width:28px;height:28px;font-size:14px}
.fx-whot__opp{display:flex;align-items:center;gap:8px}
.fx-backs{display:flex;justify-content:center;margin-top:12px;padding-left:12px}
.fx-backs i{width:26px;height:38px;margin-left:-12px;border-radius:5px;background:repeating-linear-gradient(45deg,#8C1D2E 0 4px,#A82A3D 4px 8px);border:2px solid #FFF8EE}
.fx-whot__mid{flex:1;display:flex;align-items:center;justify-content:center;gap:16px}
.fx-card{position:relative;display:grid;place-items:center;width:56px;height:80px;border-radius:8px;background:#FFF8EE;color:#8C1D2E;font-weight:800;font-size:22px;box-shadow:0 6px 14px -6px rgba(0,0,0,.6)}
.fx-card small{position:absolute;top:4px;left:6px;font-size:14px;font-weight:700;line-height:1}
.fx-card--back{background:repeating-linear-gradient(45deg,#8C1D2E 0 5px,#A82A3D 5px 10px);border:2px solid #FFF8EE;color:#FFF8EE;font-size:14px}
.fx-shape{width:26px;height:26px;background:currentColor}
.fx-shape--star{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.fx-shape--circle{border-radius:50%}
.fx-shape--tri{clip-path:polygon(50% 4%,96% 92%,4% 92%)}
.fx-shape--sq{border-radius:3px;width:22px;height:22px}
.fx-shape--cross{clip-path:polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%)}
.fx-turn{align-self:center;margin-bottom:12px;padding:4px 12px;border-radius:var(--r-pill);background:#2BC4D6;color:#00262B;font-size:14px;font-weight:700}
.fx-hand{display:flex;justify-content:center;padding:0 0 4px 10px}
.fx-hand .fx-card{width:46px;height:66px;margin-left:-10px;font-size:18px}
.fx-hand .fx-card:nth-child(1){transform:rotate(-12deg) translateY(8px)}
.fx-hand .fx-card:nth-child(2){transform:rotate(-6deg) translateY(2px)}
.fx-hand .fx-card:nth-child(3){transform:translateY(-6px)}
.fx-hand .fx-card:nth-child(4){transform:rotate(6deg) translateY(2px)}
.fx-hand .fx-card:nth-child(5){transform:rotate(12deg) translateY(8px)}
.fx-hand .fx-shape{width:18px;height:18px}

/* Arcade screen (dark, like the app's Arcade) */
.fx-arcade{display:flex;flex-direction:column;gap:10px;height:100%;padding:52px 12px 16px;background:#0B0B12;color:#F5F5F7}
.fx-arcade__title{padding:0 4px 4px;font-size:22px;font-weight:700;letter-spacing:-.02em}
.fx-acard{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;background:linear-gradient(135deg,var(--c1),var(--c2))}
.fx-acard img{width:48px;height:48px;border-radius:12px;flex:none}
.fx-acard b{display:block;font-size:15px}
.fx-acard small{display:block;font-size:14px;opacity:.9}

/* ---------- Games grid ---------- */
.fx-games{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px;list-style:none;margin:0;padding:0}
.fx-game{display:flex;flex-direction:column;align-items:center;gap:14px;height:100%;padding:24px 12px 22px;border-radius:var(--r-lg);background:var(--card-bg);text-align:center}
.fx-game img{width:88px;height:88px;border-radius:22px}
.fx-game b{font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1.25}
.fx-game small{display:block;margin-top:-8px;font-size:14px;color:var(--text-2);line-height:1.35}
.fx-games--arcade .fx-game{background:#0B0B12;color:#F5F5F7}
.fx-games--arcade .fx-game small{color:#A1A1A6}
.fx-group-title{margin:var(--s-10) 0 var(--s-6)}
.fx-group-title:first-child{margin-top:0}
.fx-group-title p{margin-top:6px;color:var(--text-2)}
@media (max-width:734px){.fx-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fx-game img{width:72px;height:72px;border-radius:18px}}

/* ---------- Gistmo AI screens ---------- */
.fx-ai-bar{display:flex;align-items:center;gap:10px;padding:8px 14px 10px;border-bottom:1px solid var(--hair);font-weight:600;font-size:15px}
.fx-ai-av{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#7448C2,#2BC4D6);color:#fff;flex:none}
.fx-ai-av .ico{width:18px;height:18px}
.fx-ai-bar small{display:block;font-weight:400;font-size:14px;color:var(--text-2)}
.fx-photo{align-self:flex-end;width:72%;padding:6px;border-radius:18px;border-bottom-right-radius:6px;background:var(--bubble-out)}
.fx-photo span{display:block;padding:16px 10px;border-radius:12px;background:#FFF8EE;color:#1D1D1F;font-family:var(--font-hand);font-size:24px;line-height:1.1;text-align:center}
.fx-doc{align-self:flex-end;display:flex;align-items:center;gap:10px;width:80%;padding:10px 12px;border-radius:18px;border-bottom-right-radius:6px;background:var(--bubble-out);color:var(--bubble-out-ink);font-size:14px}
.fx-doc .ico{width:26px;height:26px}
.fx-doc b{display:block}
.fx-steps{margin:6px 0 0;padding-left:18px}
.fx-steps li+li{margin-top:2px}
.fx-sugg{display:flex;flex-wrap:wrap;gap:6px;padding:12px 12px 0}
.fx-sugg span{padding:6px 10px;border-radius:var(--r-pill);background:var(--bg);font-size:14px;font-weight:500;box-shadow:inset 0 0 0 1px var(--hair)}

/* ---------- Nearby map ---------- */
.fx-map{position:relative;height:100%;overflow:hidden;background:#E8ECE4;color:#1D1D1F;--street:#fff;--road:#F6E3B4;--park:#CFE3C2}
.fx-map__streets{position:absolute;inset:-30%;transform:rotate(-18deg);background:
  linear-gradient(90deg,transparent 47%,var(--street) 47% 53%,transparent 53%) 0 0/110px 110px,
  linear-gradient(transparent 47%,var(--street) 47% 53%,transparent 53%) 0 0/110px 110px,
  linear-gradient(90deg,transparent 48%,var(--road) 48% 52%,transparent 52%) 0 0/330px 330px}
.fx-map__park{position:absolute;left:6%;top:60%;width:36%;height:14%;border-radius:18px;background:var(--park);transform:rotate(-18deg)}
.fx-blob{position:absolute;display:grid;place-items:center;width:var(--sz,96px);height:var(--sz,96px);border-radius:50%;background:color-mix(in srgb,var(--av) 22%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--av) 60%,transparent)}
.fx-blob .av{box-shadow:0 0 0 3px #fff}
.fx-blob b{position:absolute;top:calc(50% + 22px);white-space:nowrap;padding:2px 8px;border-radius:var(--r-pill);background:#fff;color:#1D1D1F;font-size:14px;font-weight:600;box-shadow:0 4px 10px -4px rgba(0,0,0,.3)}
.fx-map__top{position:absolute;left:12px;right:12px;top:52px;display:flex;flex-direction:column;gap:8px}
.fx-search{display:flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:19px;background:#fff;color:#6A6A6F;font-size:14px;box-shadow:0 6px 16px -8px rgba(0,0,0,.35)}
.fx-search .ico{width:16px;height:16px}
.fx-chips{display:flex;gap:6px;flex-wrap:wrap}
.fx-chips span{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:var(--r-pill);background:#fff;color:#1D1D1F;font-size:14px;font-weight:600;box-shadow:0 4px 10px -6px rgba(0,0,0,.35)}
.fx-chips .is-on{background:#1D1D1F;color:#fff}
.fx-chips .ico{width:14px;height:14px}
.fx-map__sheet{position:absolute;left:10px;right:10px;bottom:14px;display:flex;align-items:center;gap:10px;padding:12px;border-radius:18px;background:#fff;color:#1D1D1F;font-size:14px;line-height:1.3;box-shadow:0 10px 24px -10px rgba(0,0,0,.4)}
.fx-map__sheet b{display:block;font-size:15px}
.fx-map__sheet small{display:block;color:#5E5E63;font-size:14px}
.fx-ghost-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#1D1D1F;color:#fff;box-shadow:0 10px 24px -8px rgba(0,0,0,.5)}
.fx-ghost-badge .ico{width:34px;height:34px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fx-map{background:#1E2321;--street:#2E3533;--road:#4A4230;--park:#22392B}}
:root[data-theme="dark"] .fx-map{background:#1E2321;--street:#2E3533;--road:#4A4230;--park:#22392B}


/* Reduced motion: the AI story shows each step's chat as a small static stack. */
@media (prefers-reduced-motion:reduce){.fx-static{display:flex;flex-direction:column;gap:8px;max-width:340px;padding:16px;border-radius:var(--r-md);background:var(--bg-alt)}}
