/* ==========================================================================
   WisGo — app shell
   Onboarding, sign-in, dashboard, store, profile.
   Uses the same tokens as styles.css so the quest and the app feel like
   one product.
   ========================================================================== */

/* ---------- splash ------------------------------------------------------- */
.splash{
  position:fixed;inset:0;z-index:950;
  background:radial-gradient(120% 80% at 50% 18%,#17452F,#08170F 62%);
  display:grid;place-items:center;
  transition:opacity .45s ease;
}
.splash.out{opacity:0;pointer-events:none}
.splash-in{display:flex;flex-direction:column;align-items:center;gap:16px;animation:splashPop .7s cubic-bezier(.2,1,.3,1) both}
.splash-in img{width:92px;height:auto;display:block;filter:drop-shadow(0 10px 30px rgba(0,0,0,.5))}
.splash-in .wm{
  font-family:var(--display);font-size:2rem;letter-spacing:-.015em;}
.splash-in .wm .go{color:var(--gold)}
.splash-in .sub{font-family:var(--mono);font-weight:700;font-size:.62rem;letter-spacing:0.07em;text-transform:uppercase;color:var(--dim)}
@keyframes splashPop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}

/* The onboarding and sign-in screens moved to onboarding.css, which is loaded
   after this file. They are full-bleed illustrated screens now, and the rules
   that used to live here — a rounded box for an emoji, a centred column —
   fought every one of them. */

/* ---------- app frame ---------------------------------------------------- */
.app-screen{
  /* fixed height, not min-height: the body scrolls, the tab bar never moves */
  height:100dvh;max-height:100dvh;
  display:flex;flex-direction:column;padding-top:var(--safe-t);
  animation:screenIn .3s cubic-bezier(.2,.8,.2,1) both;
}
.app-head{display:flex;align-items:center;gap:12px;padding:16px 18px 4px;flex:none}
.app-head .hi{flex:1;min-width:0}
.app-head .hi .k{
  font-family:var(--mono);font-weight:700;font-size:.6rem;letter-spacing:0.07em;text-transform:uppercase;color:var(--dim);
}
.app-head .hi .n{
  font-family:var(--display);letter-spacing:-.015em;font-size:1.5rem;line-height:1.05;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.avatar{
  width:42px;height:42px;border-radius:50%;flex:none;overflow:hidden;
  border:2px solid var(--line);background:var(--surface-2);
  display:grid;place-items:center;font-family:var(--display);letter-spacing:-.015em;font-size:1rem;color:var(--gold);
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}

.app-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px 18px 34px}

.sec-head{
  display:flex;align-items:baseline;gap:10px;margin:26px 0 2px;
}
.sec-head:first-child{margin-top:12px}
.sec-head h3{font-size:1.05rem}
.sec-head .more{
  margin-left:auto;font-family:var(--mono);font-size:.62rem;letter-spacing:0.07em;
  text-transform:uppercase;color:var(--gold);font-weight:700;
}
/* One line under a heading, never a paragraph. */
.sec-sub{color:var(--dim);font-size:.84rem;margin-top:3px;line-height:1.35}

/* ---------- content tiles ------------------------------------------------ */
.tile{
  width:100%;text-align:left;display:flex;gap:14px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:13px 14px;margin-top:10px;transition:transform .14s ease,border-color .2s;
}
.tile:active{transform:scale(.985)}
.tile.locked{opacity:.72}
.tile-art{
  width:56px;height:56px;border-radius:15px;flex:none;display:grid;place-items:center;
  font-size:1.75rem;line-height:1;
  background:linear-gradient(150deg,rgba(255,255,255,.13),rgba(255,255,255,.03));
  border:1px solid var(--line);
}
.tile-txt{flex:1;min-width:0}
.tile-txt .t{
  font-family:var(--mono);font-size:.58rem;letter-spacing:0.07em;text-transform:uppercase;
  color:var(--accent);font-weight:700;
}
/* A row carries a kicker and a name, nothing else. Without the old two-line
   description the name can breathe and the row reads at a glance. */
.tile-txt .n{font-family:var(--display);letter-spacing:-.015em;font-size:1.08rem;line-height:1.18;margin:5px 0 0}
.tile-end{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.price{font-family:var(--display);letter-spacing:-.015em;font-size:1.05rem;color:var(--gold);white-space:nowrap}
.price small{display:block;font-family:var(--mono);font-size:.5rem;letter-spacing:0.07em;
  text-transform:uppercase;color:var(--dim);font-weight:700;text-align:right;margin-top:2px}
.pill{
  font-family:var(--mono);font-size:.54rem;letter-spacing:0.07em;text-transform:uppercase;
  padding:5px 9px;border-radius:999px;font-weight:700;white-space:nowrap;
}
.pill-own{background:rgba(142,208,129,.18);color:var(--ok);border:1px solid rgba(142,208,129,.4)}
.pill-free{background:rgba(255,197,61,.14);color:var(--gold);border:1px solid rgba(255,197,61,.35)}
.pill-soon{background:rgba(255,255,255,.07);color:var(--dim);border:1px solid var(--line)}

/* the big "continue where you left off" card */
.resume{
  display:block;width:100%;text-align:left;margin-top:14px;border-radius:24px;padding:20px 18px;
  background:linear-gradient(150deg,#1C5F45,#0F3A29);border:1px solid rgba(142,208,129,.35);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}
.resume .k{font-family:var(--mono);font-weight:700;font-size:.6rem;letter-spacing:0.07em;text-transform:uppercase;color:var(--ok)}
.resume .n{font-family:var(--display);letter-spacing:-.015em;font-size:1.5rem;line-height:1.05;margin:6px 0 4px}
.resume .m{color:#CFE6D6;font-size:.9rem}
.resume .cta{
  margin-top:14px;display:inline-flex;align-items:center;gap:8px;
  background:var(--gold);color:#221900;border-radius:999px;padding:10px 18px;
  font-family:var(--display);font-size:.86rem;letter-spacing:.03em;
}

/* empty state */
.empty{
  border:2px dashed var(--line);border-radius:22px;padding:26px 20px;text-align:center;margin-top:14px;
}
.empty .ico{font-size:2.2rem}
.empty p{color:var(--dim);font-size:.93rem;margin-top:8px}
.empty .btn{margin-top:16px}

/* ---------- bottom tab bar ----------------------------------------------- */
.tabbar{
  flex:none;display:flex;align-items:stretch;
  padding:8px 10px calc(8px + var(--safe-b));
  background:rgba(8,23,15,.92);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
}
.tabbar button{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  padding:8px 4px;border-radius:14px;color:var(--dim);
  font-family:var(--mono);font-size:.56rem;letter-spacing:0.07em;text-transform:uppercase;font-weight:700;
  transition:color .2s;
}
.tabbar button svg{width:24px;height:24px;display:block}
.tabbar button.on{color:var(--gold)}
.tabbar button:active{background:rgba(255,255,255,.05)}

/* ---------- bottom sheet ------------------------------------------------- */
/* The screen behind a sheet steps back: dimmed and softly blurred, still
   recognisable, so the card reads as sitting on top of where you were. The
   card itself is near-opaque, so nothing underneath fights its text. */
.sheet-back{
  position:fixed;inset:0;z-index:880;background:rgba(3,10,7,.66);
  opacity:0;transition:opacity .26s;
  backdrop-filter:blur(6px) saturate(.9);-webkit-backdrop-filter:blur(6px) saturate(.9);
}
.sheet-back.in{opacity:1}
/* Frosted, but only just: 94% of the panel's own colour over a 30px blur, so
   you get the depth of glass without the page underneath showing through the
   words. `color-mix` keeps it tied to --bg-2 if that ever changes. */
.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:890;
  background:color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter:blur(30px) saturate(1.15);-webkit-backdrop-filter:blur(30px) saturate(1.15);
  border-top:1px solid rgba(255,255,255,.16);
  /* the sheet owns the gesture: it scrolls itself and never hands the drag on
     to the page behind when it runs out of content */
  overscroll-behavior:contain;touch-action:pan-y;
  border-radius:28px 28px 0 0;
  padding:10px 20px calc(20px + var(--safe-b));
  max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.9,.25,1);
  box-shadow:0 -20px 60px rgba(0,0,0,.5);
}
.sheet.in{transform:none}
/* while a sheet is up, nothing behind it moves */
body.sheet-open{overflow:hidden}
body.sheet-open .app-body{overflow:hidden;touch-action:none}
.grabber{width:44px;height:5px;border-radius:99px;background:rgba(255,255,255,.24);margin:0 auto 16px}
.sheet-art{
  width:84px;height:84px;border-radius:22px;display:grid;place-items:center;font-size:2.6rem;
  background:linear-gradient(150deg,rgba(255,255,255,.14),rgba(255,255,255,.03));
  border:1px solid var(--line);margin-bottom:16px;
}
.sheet h2{font-size:1.62rem;line-height:1.05}
.sheet .tagline{
  font-family:var(--mono);font-size:.6rem;letter-spacing:0.07em;text-transform:uppercase;
  color:var(--accent);font-weight:700;margin-bottom:8px;
}
.sheet .blurb{color:#DCEBE1;margin-top:10px;font-size:1rem}
.ticks{list-style:none;margin-top:18px;display:flex;flex-direction:column;gap:11px}
.ticks li{display:flex;gap:11px;font-size:.96rem;line-height:1.4}
.ticks li::before{content:"✓";color:var(--ok);font-weight:900;flex:none}
.sheet-actions{margin-top:22px;display:flex;flex-direction:column;gap:10px}

/* order summary inside checkout */
.order{
  background:var(--surface);border:1px solid var(--line);border-radius:18px;
  padding:16px 16px 6px;margin-top:16px;
}
.order .row{display:flex;align-items:baseline;gap:10px;padding-bottom:12px}
.order .row .l{color:var(--dim);font-size:.92rem}
.order .row .v{margin-left:auto;font-weight:700}
.order .row.tot{border-top:1px dashed var(--line);padding-top:12px}
.order .row.tot .v{font-family:var(--display);letter-spacing:-.015em;font-size:1.3rem;color:var(--gold)}
.paynote{
  margin-top:12px;font-size:.82rem;color:var(--dim);text-align:center;line-height:1.5;
}

/* purchase success */
.done-wrap{text-align:center;padding:14px 0 4px}
.done-wrap .big{
  width:96px;height:96px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;
  background:rgba(142,208,129,.16);border:2px solid var(--ok);font-size:2.8rem;
  animation:pop .45s cubic-bezier(.2,1.4,.4,1) both;
}

/* ---------- profile list ------------------------------------------------- */
.prof-top{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 0 6px}
.prof-top .avatar{width:82px;height:82px;font-size:1.8rem;margin-bottom:14px}
.prof-top .nm{font-family:var(--display);letter-spacing:-.015em;font-size:1.5rem;line-height:1.1}
.prof-top .em{color:var(--dim);font-size:.9rem;margin-top:4px;word-break:break-all}
.prof-top .via{
  margin-top:10px;font-family:var(--mono);font-weight:700;font-size:.56rem;letter-spacing:0.07em;
  text-transform:uppercase;color:var(--dim);border:1px solid var(--line);
  padding:5px 11px;border-radius:999px;
}
.rows{margin-top:22px;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.rows button,.rows a{
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  padding:17px 16px;background:var(--surface);color:inherit;text-decoration:none;
  border-bottom:1px solid var(--line);font-size:1rem;font-weight:600;
}
.rows > *:last-child{border-bottom:none}
.rows button:active,.rows a:active{background:var(--surface-2)}
.rows .ic{width:24px;height:24px;flex:none;display:block;color:var(--dim)}
.rows .ic svg{width:24px;height:24px;display:block}
.rows .danger .ic{color:var(--danger)}
/* Me → Appearance: a name and a line under it */
.th-l{display:flex;flex-direction:column;gap:3px;min-width:0}
.th-l b{font-weight:600}
.th-l small{font-weight:500;font-size:.8rem;color:var(--dim)}
/* the value on the right never pushes the label into a squeeze: it takes at
   most half the row and trails off, which matters in Khmer on small phones */
.rows .ch{margin-left:auto;color:var(--dim);font-size:.95rem;font-weight:600;flex:0 1 auto;min-width:0;max-width:50%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.rows .danger{color:var(--danger)}
.ver{text-align:center;color:var(--dim);font-size:.78rem;margin-top:22px;font-family:var(--mono);font-weight:700;letter-spacing:0.07em}

/* ---------- toast -------------------------------------------------------- */
/* anchored to the top: the bottom of the screen belongs to the tab bar,
   the sheet and the primary button */
.toast{
  position:fixed;left:50%;top:calc(12px + var(--safe-t));transform:translate(-50%,-14px);
  z-index:970;background:var(--surface-2);border:1px solid var(--line);
  border-radius:16px;padding:13px 18px;font-size:.92rem;font-weight:600;line-height:1.35;
  box-shadow:0 14px 40px rgba(0,0,0,.55);opacity:0;transition:.28s;
  max-width:min(92vw,420px);text-align:center;
}
.toast.in{opacity:1;transform:translate(-50%,0)}

/* ---------- small screens ------------------------------------------------ */
@media(max-height:680px){
  .onb-art{width:min(46vw,170px);font-size:4rem;margin-bottom:22px;border-radius:32px}
  .splash-in img{width:76px}
}

/* ---------- passes ---------------------------------------------------------
   A pass is time, so every card leads with how much is left. */
.passpick{ display:grid; gap:10px; margin-top:16px }
.pp{
  position:relative; text-align:left; width:100%;
  background:var(--surface); border:1px solid var(--line); border-radius:18px;
  padding:14px 15px; display:grid; grid-template-columns:1fr auto; gap:2px 10px;
}
.pp:active{ transform:scale(.99) }
.pp-best{ border-color:rgba(255,197,61,.55); background:linear-gradient(150deg,rgba(255,197,61,.10),var(--surface)) }
.pp-tag{
  grid-column:1/-1; font-size:.62rem; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--gold); margin-bottom:2px;
}
.pp-k{ font-family:var(--display); font-size:1.06rem; letter-spacing:-.015em }
.pp-v{ font-family:var(--display); font-size:1.2rem; color:var(--gold); text-align:right;
       font-variant-numeric:tabular-nums }
.pp-b{ grid-column:1/-1; color:var(--dim); font-size:.84rem }

.passcard{
  margin-top:12px; padding:15px; border-radius:20px;
  background:var(--surface); border:1px solid var(--line);
}
.passcard.ended{ opacity:.78; border-style:dashed }
.pc-top{ display:flex; align-items:center; gap:10px }
.pc-k{ flex:1; min-width:0; font-size:.62rem; font-weight:700; letter-spacing:.07em;
       text-transform:uppercase; color:var(--dim) }
.pc-left{ font-size:.78rem; font-weight:700; white-space:nowrap }
.pc-left.ok{ color:var(--ok) }
.pc-left.warn{ color:var(--gold) }
.pc-n{ font-family:var(--display); font-size:1.14rem; letter-spacing:-.015em; margin-top:6px }
.pc-b{ color:var(--dim); font-size:.86rem; margin-top:3px }
.pc-code{
  width:100%; margin-top:12px; padding:12px 14px; border-radius:15px; text-align:left;
  background:rgba(255,255,255,.05); border:1px solid var(--line);
  display:grid; grid-template-columns:1fr auto; gap:2px 10px;
}
.pc-ck{ font-size:.6rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--dim) }
.pc-cv{ grid-row:2; font-family:var(--code); font-size:1.42rem; font-weight:700;
        letter-spacing:.18em; color:var(--gold) }
.pc-cs{ grid-row:2; grid-column:2; align-self:center; color:var(--dim); font-size:.8rem }

.tripcode{
  font-family:var(--code); font-size:2.4rem; font-weight:700; letter-spacing:.22em;
  color:var(--gold); text-align:center; padding:18px 0 4px 0; padding-left:.22em;
}
.warnline{
  margin-top:12px; padding:11px 13px; border-radius:14px; font-size:.86rem; line-height:1.45;
  background:rgba(255,176,32,.12); border:1px solid rgba(255,176,32,.4); color:#FFD79A;
}

/* ---------- profile ------------------------------------------------------- */
.pf-top{ display:flex; flex-direction:column; align-items:center; gap:4px; margin:14px 0 4px }
.pf-av{
  width:58px; height:58px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--surface-2); border:1px solid var(--line); overflow:hidden;
  font-family:var(--display); font-size:1.3rem; color:var(--gold);
}
.pf-av img{ width:100%; height:100%; object-fit:cover }
.pf-who{ min-width:0 }
.pf-n{ display:block; font-family:var(--display); font-size:1.2rem; letter-spacing:-.015em }
.pf-p{ display:block; color:var(--dim); font-size:.82rem; margin-top:2px }
.field{ margin-top:14px }
.field .hint{ display:block; color:var(--dim); font-size:.78rem; margin-top:6px }

/* the unlock-code field's error line */
.codeerr{
  margin-top:10px; padding:10px 12px; border-radius:12px; font-size:.86rem; line-height:1.4;
  background:rgba(255,94,91,.12); border:1px solid rgba(255,94,91,.42); color:#FFC2C0;
}

/* the sign-in screen when there is nothing to sign in to */
.authoff{
  text-align:left; padding:14px 15px; border-radius:16px; margin-bottom:14px;
  background:rgba(255,255,255,.05); border:1px solid var(--line);
}
.authoff b{ display:block; font-family:var(--display); font-size:1rem; letter-spacing:-.01em }
.authoff span{ display:block; color:var(--dim); font-size:.86rem; line-height:1.45; margin-top:5px }
.pbtn-guest{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.22); color:var(--white) }
.passcard.owner{ border-color:rgba(255,197,61,.45); background:linear-gradient(150deg,rgba(255,197,61,.08),var(--surface)) }
.passcard.owner .pc-k{ color:var(--gold) }

/* ---------- the sign-in setup check --------------------------------------- */
.dg{ margin-top:16px; display:flex; flex-direction:column; gap:12px }
.dg-row{ display:flex; gap:11px; align-items:flex-start }
.dg-row b{ display:block; font-size:.98rem }
.dg-row span{ display:block; color:var(--dim); font-size:.86rem; line-height:1.45; margin-top:2px }
.dg-ok,.dg-no{
  flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center;
  font-size:.72rem; font-weight:700; margin-top:1px;
}
.dg-ok{ background:rgba(142,208,129,.18); color:var(--ok); border:1px solid rgba(142,208,129,.42) }
.dg-no{ background:rgba(255,176,32,.14); color:#FFB020; border:1px solid rgba(255,176,32,.42) }
.dg-origin{
  margin-top:8px; padding:12px 14px; border-radius:13px; word-break:break-all;
  background:rgba(255,255,255,.05); border:1px solid var(--line);
  font-family:var(--code); font-size:.88rem; color:var(--gold);
}


/* ---------- announcements from the control panel ---------- */
.ann{display:flex;align-items:flex-start;gap:10px;padding:14px 14px 14px 16px;border-radius:18px;margin-bottom:14px;
  background:linear-gradient(150deg,var(--surface-2),var(--surface));border:1px solid var(--line)}
.ann-promo{border-color:rgba(255,197,61,.55);background:linear-gradient(150deg,rgba(255,197,61,.16),var(--surface))}
.ann-warning{border-color:rgba(255,94,91,.5);background:linear-gradient(150deg,rgba(255,94,91,.14),var(--surface))}
.ann-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ann-t b{font-family:var(--display);font-size:1.02rem;line-height:1.25}
.ann-t span{color:var(--dim);font-size:.9rem;line-height:1.4;white-space:pre-line}
.ann-go{flex:none;align-self:center;background:var(--gold);color:#1a1405;font-weight:700;border-radius:12px;padding:9px 12px;font-size:.86rem;min-height:40px}
.ann-x{flex:none;width:32px;height:32px;border-radius:50%;color:var(--dim);font-size:1.3rem;line-height:1}

/* ---------- help & messages ---------- */
.unread-dot{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--gold);color:#1a1405;font-style:normal;font-weight:800;font-size:.72rem}
.chat{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.bub{max-width:85%;padding:10px 12px;border-radius:16px;white-space:pre-wrap;line-height:1.4;font-size:.92rem}
.bub small{display:block;margin-top:4px;color:var(--dim);font-size:.72rem}
.bub.me{align-self:flex-end;background:var(--surface-2);border-bottom-right-radius:4px}
.bub.them{align-self:flex-start;background:rgba(255,197,61,.12);border:1px solid rgba(255,197,61,.35);border-bottom-left-radius:4px}
.rows .ht{flex:1;min-width:0;display:flex;flex-direction:column;text-align:left}
.rows .ht small{color:var(--dim);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ============================================================ navigation (nav.js)
   nav.js runs every screen change itself, so the old "rise in on every draw"
   animation is switched off; a redraw of the same screen now stays still. */
.wg-nav #app > .screen, .wg-nav #app > .app-screen, .wg-nav #app > .gm-screen{animation:none}
#app.wg-moving{position:relative;z-index:2}
.wg-ghost{position:fixed;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.wg-ghost > *{height:100dvh}
/* the grabber says "drag me": give it room to be grabbed */
.sheet .grabber{margin:0 auto 14px;position:relative}
.sheet .grabber::after{content:'';position:absolute;left:-40px;right:-40px;top:-14px;bottom:-12px}
.sheet.closing{pointer-events:none}

/* "are you sure?" */
.wg-confirm{position:fixed;inset:0;z-index:9500;display:grid;place-items:center;padding:24px;
  background:rgba(3,10,7,.6);opacity:0;transition:opacity .18s}
.wg-confirm.in{opacity:1}
.wg-confirm-card{width:100%;max-width:340px;background:var(--bg-2);border:1px solid rgba(255,255,255,.14);
  border-radius:22px;padding:22px 20px 16px;box-shadow:0 24px 60px rgba(0,0,0,.5);
  transform:scale(.94);transition:transform .22s cubic-bezier(.2,1.2,.4,1)}
.wg-confirm.in .wg-confirm-card{transform:none}
.wg-confirm-card p{font-size:1.02rem;line-height:1.45;color:#E8F1EC}
.wg-confirm-s{display:block;margin-top:6px;font-size:.86rem;line-height:1.4;color:var(--dim)}
.wg-confirm-b{display:flex;gap:10px;margin-top:18px}
.wg-confirm-b .btn{flex:1;min-height:46px}
@media (prefers-reduced-motion: reduce){ .wg-confirm, .wg-confirm-card{transition:none} }

/* ================================================================ faces
   One face everywhere: an uploaded photo, the Google/Telegram photo, an emoji
   on a colour, or initials. .fill fills whatever round frame holds it. */
button.avatar{padding:0;cursor:pointer;color:var(--gold);font:inherit;font-family:var(--display)}
.face{display:grid;place-items:center;border-radius:50%;overflow:hidden;flex:none;line-height:1}
.face img{width:100%;height:100%;object-fit:cover;display:block}
.face.fill{width:100%;height:100%}
.face-e{font-size:1.25em}
.face-i{background:color-mix(in srgb, var(--fc) 26%, var(--surface-2));color:var(--fc);font-family:var(--display);letter-spacing:-.02em}
.face.face-lg{width:84px;height:84px;font-size:2rem}
.prof-top .prof-av{position:relative;overflow:visible;border-width:3px}
.prof-top .prof-av .face{border-radius:50%}
.pf-cam{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:var(--gold);color:#1a1405;font-size:.8rem;font-weight:800;border:2px solid var(--bg);font-family:var(--sans)}
.prof-top .bio{margin-top:10px;color:#DCEBE1;font-size:.95rem;line-height:1.45;max-width:30ch}
.prof-top .prof-edit{margin-top:14px;min-height:40px;padding:0 20px;width:auto}

/* the editor */
.pf-face{position:relative;padding:0;background:none;border:0;border-radius:50%;flex:none;cursor:pointer}
.pf-face .face{border:2px solid var(--line)}
.pf-link{display:inline-block;margin-top:8px;padding:0;background:none;border:0;color:var(--gold);font-weight:700;font-size:.88rem;cursor:pointer}
.pf-pick{margin-top:14px;padding:14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.pf-src{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.pf-opt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;border-radius:14px;cursor:pointer;
  background:var(--surface-2);border:2px solid var(--line);color:var(--white);font-size:.82rem;font-weight:600;text-align:center}
.pf-opt.on{border-color:var(--gold)}
.pf-o-ic{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:1.4rem;background:rgba(255,255,255,.06)}
.pf-o-ic img{width:100%;height:100%;object-fit:cover}
.pf-emo{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-top:8px}
.pf-emo button{aspect-ratio:1;border-radius:12px;font-size:1.35rem;background:var(--surface-2);border:2px solid transparent;cursor:pointer;display:grid;place-items:center;padding:0}
.pf-emo button.on{border-color:var(--gold);background:rgba(255,197,61,.12)}
.pf-col{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.pf-col button{width:30px;height:30px;border-radius:50%;border:3px solid transparent;cursor:pointer;padding:0;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset}
.pf-col button.on{border-color:var(--white)}
.in-at{display:flex;align-items:center;gap:0;position:relative}
.in-at span{position:absolute;left:14px;color:var(--dim);font-weight:700;pointer-events:none}
.in-at .in{padding-left:30px}
.pf-cnt{float:right;color:var(--dim);font-weight:600;letter-spacing:0;text-transform:none}
.ichips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.ichips-c{justify-content:center;margin-top:12px}
.ichip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-size:.86rem;font-weight:600;
  background:var(--surface-2);border:1.5px solid var(--line);color:var(--white);cursor:pointer;min-height:38px}
span.ichip{cursor:default;min-height:0;padding:6px 11px;font-size:.8rem}
.ichip.on{border-color:var(--gold);background:rgba(255,197,61,.12);color:#FFE3A1}
.sheet .lab{display:block}

/* ways to sign in (profile editor) */
.lk{margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.lk-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.lk-ic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex:none}
.lk-g{background:#fff;color:#4285F4;font-family:var(--sans)}
.lk-tg{background:#2AABEE;color:#fff}
.lk-t{flex:1;min-width:0}
.lk-t b{display:block;font-size:.98rem}
.lk-t small{display:block;color:var(--dim);font-size:.8rem;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lk-ok{color:#7FD39A;font-weight:800;font-size:1.1rem}
.lk .lk-add{width:auto;min-height:38px;padding:0 16px;flex:none}
.lk .hint{display:block;color:var(--dim);font-size:.8rem;line-height:1.45;margin-top:10px}
.onb-back{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;margin-right:2px;
  background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--white);cursor:pointer}

/* placeholder photos on store tiles and item cards */
.tile-art.has-ph{overflow:hidden;position:relative}
.tile-art .ph-img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.sheet-photo{margin:0 -20px 14px;height:170px;overflow:hidden;position:relative;display:grid;place-items:center;
  background:radial-gradient(120% 90% at 30% 20%,#1C5F45,#08170F 70%)}
.sheet-photo .ph-img{width:100%;height:100%;object-fit:cover;display:block}
.sheet-photo::after{content:'';position:absolute;inset:auto 0 0 0;height:60px;background:linear-gradient(to bottom,rgba(14,36,25,0),var(--bg-2))}

/* photo cropper */
.crop{display:flex;flex-direction:column;align-items:center}
.crop-view{position:relative;overflow:hidden;border-radius:18px;background:#000;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.crop-view img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;pointer-events:none;-webkit-user-drag:none}
.crop-ring{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(3,10,7,.62);border:2px solid rgba(255,255,255,.85);pointer-events:none}
.crop-hint{text-align:center;margin-top:10px}
.crop-zoom{display:flex;align-items:center;gap:10px;width:100%;max-width:280px;margin-top:8px;color:var(--dim);font-weight:800}
.crop-zoom input{flex:1;accent-color:var(--gold)}
.crop-b{display:flex;gap:10px;width:100%;margin-top:12px}
.crop-b .btn{flex:1;width:auto}

/* ---------- profile editor, v49: one compact picture menu ----------------- */
.pf-cam{font-size:.8rem}
.pf-link{margin-top:6px}
.pf-menu{display:flex;justify-content:center;gap:14px;margin:12px 0 4px;flex-wrap:wrap}
.pf-mi{display:flex;flex-direction:column;align-items:center;gap:6px;width:68px;padding:0;background:none;border:0;
  color:var(--dim);font-size:.74rem;font-weight:600;cursor:pointer;text-align:center;line-height:1.2}
.pf-mi-ic{width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:1.35rem;
  background:var(--surface-2);border:2px solid transparent}
.pf-mi-ic img{width:100%;height:100%;object-fit:cover}
.pf-mi.on{color:var(--white)}
.pf-mi.on .pf-mi-ic{border-color:var(--gold)}
.pf-emo{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:12px -4px 0;padding:2px 4px 4px}
.pf-emo::-webkit-scrollbar{display:none}
.pf-emo button{flex:none;width:42px;height:42px;aspect-ratio:auto;font-size:1.25rem;border-radius:50%}
.pf-col{justify-content:center;gap:8px;margin-top:10px}
.pf-col button{width:24px;height:24px;border-width:2px}

/* ---------- Me, v49: a profile card, then settings ------------------------- */
.me-card{margin-top:8px;padding:18px 16px 16px;border-radius:22px;background:var(--surface);border:1px solid var(--line)}
.me-row{display:flex;align-items:center;gap:14px}
.me-row .avatar{width:68px;height:68px;font-size:1.5rem;position:relative;overflow:visible;border-width:2px}
.me-row .avatar .face{border-radius:50%}
.me-id{flex:1;min-width:0}
.me-id .nm{font-family:var(--display);letter-spacing:-.015em;font-size:1.3rem;line-height:1.15;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.me-id .em{color:var(--dim);font-size:.86rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-card .bio{margin-top:12px;color:#DCEBE1;font-size:.93rem;line-height:1.45}
.me-card .ichips{margin-top:10px}
.me-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.me-stats div{text-align:center}
.me-stats b{display:block;font-family:var(--display);font-weight:400;font-size:1.25rem;letter-spacing:-.015em}
.me-stats span{display:block;color:var(--dim);font-size:.72rem;margin-top:2px}
.me-card .prof-edit{width:100%;margin-top:14px;min-height:42px}
.app-head .hi .k:empty{display:none}
.me-card.prof-top{display:block;text-align:left;align-items:stretch;padding:18px 16px 16px}
.me-card.prof-top .avatar{margin-bottom:0;width:68px;height:68px}
.me-card .ichips{justify-content:flex-start}
.me-card .me-stats{width:100%}

/* ---------- profile editor, v50: the picture menu is a plain list ---------- */
.pf-top{margin:12px 0 2px}
.pf-cam{display:none}
.pf-face .face{border:3px solid var(--line)}
.pf-link{margin-top:10px;font-size:.92rem}
.pf-menu{display:flex;flex-direction:column;gap:0;margin:14px 0 4px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface)}
.pf-menu .pf-mi{width:100%;flex-direction:row;justify-content:flex-start;gap:12px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.07);
  color:var(--white);font-size:.98rem;font-weight:600;text-align:left;border-radius:0}
.pf-menu .pf-mi:last-child{border-bottom:0}
.pf-menu .pf-mi:active{background:var(--surface-2)}
.pf-menu .pf-mi-ic{width:34px;height:34px;font-size:1.05rem;border:0;flex:none}
.pf-menu .pf-cancel{justify-content:center;color:var(--dim);font-weight:600}
.pf-avs{margin:14px 0 4px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.pf-avs .pf-emo{margin:0;display:grid;grid-template-columns:repeat(8,1fr);gap:6px;overflow:visible;padding:0}
.pf-avs .pf-emo button{width:auto;aspect-ratio:1;height:auto;border-radius:12px;font-size:1.2rem}
.pf-avs .pf-col{margin-top:12px}
.pf-done{display:block;width:100%;margin-top:12px;padding:10px;border-radius:12px;background:var(--gold);color:#221900;font-weight:800}
@media (max-width:360px){ .pf-avs .pf-emo{grid-template-columns:repeat(6,1fr)} }

/* ---------- icons (icons.js): line icons in place of emoji ---------------- */
.wi{width:1em;height:1em;display:inline-block;vertical-align:-.14em;flex:none;stroke-width:2}
.wi-t{margin:0 .08em}
.tile-art .wi,.hr-ic .wi,.ht-ic .wi,.tn-hi .wi,.hb-i .wi,.pf-mi-ic .wi,.face-e .wi,.tn-gi .wi,.empty .ico .wi{stroke-width:1.75}
.face-e{color:#fff}
.face-e .wi{width:.9em;height:.9em;vertical-align:middle}
.pf-emo button{color:var(--white)}
.pf-emo button .wi{width:1.1em;height:1.1em}
.tile-art{color:var(--accent,#FFC53D)}
.tile-art.has-ph{color:inherit}

/* ---------- Tools on Play (v54) ------------------------------------------- */
.tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.tool{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 10px 11px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);color:var(--white);text-align:left;min-width:0}
.tool:active{transform:scale(.97)}
.tool.on{border-color:rgba(255,197,61,.55);background:linear-gradient(160deg,rgba(255,197,61,.14),var(--surface))}
.tool-i{font-size:1.3rem;color:var(--gold);line-height:1;margin-bottom:6px}
.tool-v{font-family:var(--display);letter-spacing:-.01em;font-size:1.02rem;line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool-l{color:var(--dim);font-size:.72rem;font-weight:600}

/* ---------- Play: adventures as photo cards (v75) ------------------------
   Same card as a trip on Explore (trips.css .tc / .tc-s), wider, with the
   kind on the photo, the price or Free/Owned, a two-line blurb and Play /
   Get it at the bottom. */
.adv-row .tc-s{width:272px}
.adv .tc-cover{aspect-ratio:16/11}
.adv .tc-cover .ph-img{width:100%;height:100%;object-fit:cover;display:block}
/* v124: the drawn cover for an adventure with no photo yet */
.adv-art{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(110% 90% at 80% 15%,color-mix(in srgb,var(--accent) 42%,transparent) 0,transparent 58%),
             radial-gradient(80% 70% at 8% 100%,color-mix(in srgb,var(--accent) 22%,transparent) 0,transparent 60%),#13241B}
.adv-art::before,.adv-art::after{content:"";position:absolute;border-radius:50%}
.adv-art::before{width:11px;height:11px;left:15%;top:68%;background:var(--accent);opacity:.85}
.adv-art::after{width:8px;height:8px;right:13%;top:24%;background:#FFC53D}
.adv-art-i{width:40%;max-width:120px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);border:2px solid color-mix(in srgb,var(--accent) 55%,transparent)}
.adv-art-i svg{width:50%;height:50%;stroke-width:1.8}
.row-dots{display:flex;justify-content:center;gap:6px;margin:10px 0 0}
.row-dots i{width:6px;height:6px;border-radius:999px;background:var(--line);transition:width .2s,background .2s}
.row-dots i.on{width:18px;background:var(--gold)}
.adv-k{font-family:var(--mono);font-weight:700;font-size:.62rem;letter-spacing:.07em;text-transform:uppercase;color:var(--accent)}
body.km .adv-k{letter-spacing:0;text-transform:none;font-family:var(--sans);font-size:.76rem}
.adv-b{color:var(--dim);font-size:.84rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.adv-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;padding-top:10px;border-top:1px solid var(--line);font-size:.8rem;color:var(--dim)}
.adv-foot em{font-style:normal;font-weight:800;color:#221900;background:var(--gold);border-radius:999px;padding:7px 14px;font-size:.82rem;white-space:nowrap}
.tc-price.adv-free{background:#2FA36B;color:#fff}
.tc-price.adv-own{background:rgba(255,255,255,.92);color:#0B1F17}
.tc-price.adv-soon{background:rgba(0,0,0,.55);color:#fff}
.adv.locked{opacity:.75}

/* ---------- browse first (v77) -------------------------------------------
   No sign-in wall. Guests see "Sign in" where the face goes, a sign-in card
   on Me, and a sign-in sheet when they buy, book or play. */
.head-signin{flex:none;align-self:center;padding:9px 16px;border-radius:999px;background:var(--gold);color:#221900;
  font-weight:800;font-size:.86rem;box-shadow:0 4px 14px rgba(255,197,61,.25)}
.head-signin:active{transform:scale(.97)}
.me-guest{padding:20px 18px}
.me-guest h3{font-family:var(--display);font-weight:400;letter-spacing:-.015em;font-size:1.35rem;line-height:1.15}
.me-guest p{color:var(--dim);font-size:.94rem;line-height:1.45;margin-top:8px}
.me-guest .btn{width:100%;margin-top:16px}
.si-sheet .si-btns{margin-top:16px}
.si-sheet .pbtn-google{border-color:var(--line)}
.si-sheet .si-free{color:var(--dim);font-size:.82rem;line-height:1.4;text-align:center;margin-top:14px}
.si-sheet .sheet-actions{flex-direction:column;align-items:center;gap:6px}
.si-sheet .auth-alt{background:none;border:0;color:var(--dim);text-decoration:underline;font-size:.86rem;padding:6px}
/* v107: a new version is ready */
.wg-update{position:fixed;left:50%;top:calc(10px + var(--safe-t));transform:translateX(-50%);z-index:3000;max-width:calc(100vw - 32px);padding:11px 18px;border-radius:999px;border:0;background:var(--gold);color:#08170F;font:inherit;font-weight:700;font-size:.88rem;box-shadow:0 8px 24px rgba(0,0,0,.35);cursor:pointer;animation:screenIn .3s ease both}

/* v112: install steps (Me → Install the app, and game.wisgokh.com/#install) */
.inst-steps{list-style:none;margin:20px 0 0;padding:0;counter-reset:inst;display:flex;flex-direction:column;gap:14px}
.inst-steps li{counter-increment:inst;position:relative;padding-left:38px;font-size:.98rem;line-height:1.45;min-height:26px}
.inst-steps li::before{content:counter(inst);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--gold);color:#221900;font-weight:800;font-size:.85rem;display:grid;place-items:center}
.inst-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:rgba(127,127,127,.18);vertical-align:-6px}
.inst-ic svg{width:16px;height:16px;color:#2F8CFF}
