/* Component styles for this screen. Structural only.
   Anything decorative belongs in /shared/theme.css, which loads after
   this file so it can override without fighting specificity. */
body{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 72px + var(--where-h))}
.wrap{max-width:560px}
.hd{padding-block:14px}
.who{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.who .nm{font-weight:600;font-size:15px;line-height:1.2}
.who .sub{font-size:11.5px;color:var(--ash-2);margin-top:2px}
.who .sc{margin-left:auto;text-align:right}
.who .sc b{font-family:var(--f-m);font-size:22px;font-weight:600;color:var(--candle);line-height:1}
.who .sc span{display:block;font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ash-2);font-weight:600;margin-top:3px}
nav.tabs{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);
  height:calc(var(--tabs-h) + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line);background:var(--ink-2);padding-bottom:env(safe-area-inset-bottom,0px)}
nav.tabs button{font:inherit;position:relative;background:none;border:0;cursor:pointer;color:var(--ash-2);
  padding:10px 2px 11px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;
  font-weight:600;letter-spacing:.08em;text-transform:uppercase}
nav.tabs button svg{width:20px;height:20px}
nav.tabs button.on{color:var(--candle)}
nav.tabs .dot{position:absolute;top:8px;left:50%;margin-left:8px;width:6px;height:6px;border-radius:50%;background:var(--blood)}
.tcard{display:flex;gap:12px;padding:13px;border-radius:var(--r-m);background:var(--crypt);
  border:1px solid var(--line-soft);width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;
  transition:.16s;margin-bottom:9px}
.tcard:hover{border-color:var(--ash-2);background:var(--crypt-2)}
.tcard .ic{width:40px;height:40px;flex:none;border-radius:11px;display:grid;place-items:center;background:var(--crypt-3)}
.tcard .ic svg{width:21px;height:21px}
.tcard h4{font-size:14.5px;font-weight:600;line-height:1.25;font-family:var(--f-b)}
.tcard p{margin:4px 0 0;font-size:12.5px;color:var(--ash);line-height:1.4}
.tcard .meta{display:flex;align-items:center;gap:6px;margin-top:9px;flex-wrap:wrap}
.tcard.done{opacity:.72}
.tcard.done h4{text-decoration:line-through;text-decoration-color:var(--ash-2)}
.tcard.sealed{cursor:default;opacity:.6}
.post{border:1px solid var(--line-soft);border-radius:var(--r-m);background:var(--crypt);overflow:hidden;margin-bottom:13px}
.post .ph{display:flex;align-items:center;gap:9px;padding:11px 12px}
.post .shot{border-radius:0;border-left:0;border-right:0;aspect-ratio:1/1}
.post .cap{padding:11px 12px 0;font-size:13px;line-height:1.45}
.post .rx{display:flex;gap:6px;padding:11px 12px}
.post .rx button{font:inherit;font-size:12px;background:var(--crypt-2);border:1px solid var(--line);
  color:var(--ash);border-radius:999px;padding:4px 10px;cursor:pointer;font-family:var(--f-m)}
.post .rx button.on{border-color:var(--candle-lo);color:var(--candle);background:rgba(244,163,64,.1)}
.mediastrip{display:flex;gap:8px;flex-wrap:wrap}
.mediastrip .shot{width:82px}
.addmedia{width:82px;aspect-ratio:4/5;border:1px dashed var(--line);border-radius:var(--r-s);
  background:var(--ink-2);color:var(--ash-2);display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:5px;cursor:pointer;font:inherit;font-size:10px;font-weight:600;
  letter-spacing:.07em;text-transform:uppercase}
.addmedia:hover{border-color:var(--candle);color:var(--candle)}
.addmedia svg{width:19px;height:19px}
.tagwrap{display:flex;gap:6px;flex-wrap:wrap}
.tagchip{font:inherit;font-size:12.5px;border:1px solid var(--line);background:var(--crypt-2);color:var(--ash);
  border-radius:999px;padding:4px 10px 4px 4px;cursor:pointer;display:flex;align-items:center;gap:6px}
.tagchip.on{border-color:var(--hex);background:rgba(143,176,207,.13);color:var(--bone)}
.tagchip .snipe{font-family:var(--f-m);font-size:10px;color:var(--blood);font-weight:600}
.tagchip.on .snipe{color:var(--blood)}
.dots{display:flex;gap:6px;justify-content:center;margin-bottom:22px}
.dots i{width:22px;height:3px;border-radius:2px;background:var(--crypt-3)}
.dots i.on{background:var(--candle)}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatches button{width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}
.swatches button.on{border-color:var(--bone);transform:scale(1.12)}
.rule{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.rule .n{font-family:var(--f-m);font-size:12px;font-weight:600;color:var(--candle);flex:none;width:19px;padding-top:1px}
.rule b{display:block;font-size:14px;font-weight:600;margin-bottom:3px}
.rule span{font-size:12.5px;color:var(--ash);line-height:1.5}
.teampick{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.teampick button{font:inherit;text-align:left;display:flex;align-items:center;gap:10px;padding:11px 13px;
  border:1px solid var(--line);background:var(--crypt);color:inherit;border-radius:var(--r-s);cursor:pointer}
.teampick button.on{border-color:var(--candle);background:rgba(244,163,64,.08)}
.teampick .nm{font-weight:600;font-size:14px}
.teampick .sub{font-size:11px;color:var(--ash-2);margin-top:2px}
.led{display:flex;align-items:flex-start;gap:11px;padding:11px 0;border-bottom:1px solid var(--line-soft)}
.led .amt{font-family:var(--f-m);font-weight:600;font-size:14px;margin-left:auto;white-space:nowrap}
.led .amt.up{color:var(--ecto)}.led .amt.dn{color:var(--blood)}
.led .t{font-size:13.5px;font-weight:500}
.led .s{font-size:11.5px;color:var(--ash-2);margin-top:2px}
.banner{border:1px solid var(--candle-lo);background:rgba(244,163,64,.09);border-radius:var(--r-m);
  padding:12px 14px;margin-bottom:14px;font-size:13px;line-height:1.5}
.banner b{display:block;font-family:var(--f-d);font-size:15px;margin-bottom:4px}

/* A toast 22px off the bottom lands underneath the tab bar, so every
   confirmation in the app was a white sliver poking out from behind the tabs.
   The gate has no tabs, which is why this is keyed on the body class rather
   than on the bar itself. */
:root{--tabs-h:58px;--where-h:34px}
body:not(.gating) .toast{bottom:calc(env(safe-area-inset-bottom,0px) + var(--tabs-h) + var(--where-h) + 14px)}

/* ── the gate: structure only. Ornament is in /shared/theme.css ───── */
.gate{display:flex;flex-direction:column;min-height:calc(100dvh - env(safe-area-inset-top,0px));
  margin:0 -16px;padding:0;justify-content:flex-end}
/* The hero absorbs whatever height is spare so the card always lands on the
   fold, whether it holds one field or six. */
.gate-hero{display:flex;flex-direction:column;align-items:center;flex:1 1 auto;min-height:260px;max-height:56vh;position:relative;
  padding:26px 24px 0;text-align:center;overflow:hidden}
.gate-body{flex:0 0 auto}
/* The scene owns a row of its own, so the art can never reach the wordmark
   however far the hero is compressed. */
.gate-scene{flex:1 1 auto;position:relative;min-height:170px;align-self:stretch;
  margin:0 -24px;width:calc(100% + 48px)}
.gate-scene .skyline{position:absolute;left:0;right:0;bottom:-1px;width:100%;
  height:100%;display:block}
.gate-mark{flex:none;position:relative;z-index:2;padding-bottom:14px}
.gate-mark .bigflame{width:38px;height:44px;display:block;margin:0 auto 12px}
.gate-mark h1{margin:0;font-size:0;line-height:0}
.gate-mark .wm{display:block;width:min(74vw,330px);height:auto;margin:0 auto;
  filter:drop-shadow(0 2px 12px rgba(0,0,0,.95)) drop-shadow(0 0 30px rgba(0,0,0,.7))}
.gate-mark .sub{font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;margin-top:9px}
.gate-body{padding:0 16px 28px}
.gate-card{padding:20px 18px 18px}
.gate-card h2{font-size:25px;line-height:1.1;margin:0}
.gate-card .lede{font-size:13px;line-height:1.55;margin:0 0 18px}
.gate-card .dots{display:flex;gap:6px;justify-content:center;margin-bottom:18px}
.gate-ft{display:flex;gap:9px;margin-top:4px}
.rule-orn{display:flex;align-items:center;gap:22px;height:15px;margin:12px 0 16px}
.rule-orn::before,.rule-orn::after{content:"";flex:1;height:1px}
@media(min-width:640px){
  .gate{max-width:520px;margin-inline:auto}
  .gate-mark{padding-bottom:18px}
}

/* The avatar as a button. The camera badge is the only thing that says this
   circle is tappable, so it sits on the rim rather than over the face. */
.avpick{position:relative;flex:none;background:none;border:0;padding:0;cursor:pointer;
  border-radius:50%;line-height:0;-webkit-tap-highlight-color:transparent}
.avpick .av{margin:0}
.avpick .avcam{position:absolute;right:-3px;bottom:-3px;width:21px;height:21px;border-radius:50%;
  display:grid;place-items:center;background:var(--candle);color:var(--candle-ink);
  border:2px solid var(--ink);box-shadow:0 2px 6px -1px #000}
.avpick .avcam svg{width:11px;height:11px}
.avpick:focus-visible{outline:2px solid var(--candle);outline-offset:3px}
.led .avpick .avcam{width:16px;height:16px;right:-2px;bottom:-2px;border-width:1.5px}
.led .avpick .avcam svg{width:9px;height:9px}

/* ── the feed composer ───────────────────────────────────────────── */
.composer{padding:12px;margin-bottom:16px}
.composer .crow{display:flex;gap:10px;align-items:flex-start}
.composer textarea{flex:1;min-width:0;resize:vertical;min-height:46px;margin:0}
.composer .cshot{position:relative;margin-top:10px;border-radius:var(--r-s);overflow:hidden;max-height:260px}
.composer .cshot img,.composer .cshot video{width:100%;display:block;object-fit:cover;max-height:260px;background:#0d0b09}
.composer .cshot .x{position:absolute;top:7px;right:7px;width:28px;height:28px;border-radius:50%;
  background:rgba(10,7,16,.72);border:1px solid var(--line);color:var(--bone);font-size:17px;line-height:1;cursor:pointer}
.composer .cft{display:flex;gap:8px;align-items:center;margin-top:10px}
.composer .cft .go{margin-left:auto}

/* ── a feed item ─────────────────────────────────────────────────── */
.post .phsub{font-size:10.5px;color:var(--ash-2);font-family:var(--f-m);margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post .ph .x{width:28px;height:28px;border-radius:8px;border:1px solid transparent;background:transparent;
  color:var(--ash-2);cursor:pointer;display:grid;place-items:center;flex:none}
.post .ph .x:hover{color:var(--blood);border-color:var(--blood-lo)}
.post .ph .x svg{width:15px;height:15px}
.post .cap{padding:0 12px 11px;white-space:pre-wrap}
.post .ph + .cap{padding-top:2px}
.post .rx{flex-wrap:wrap}
.post .rx .cbtn{margin-left:auto;font:inherit;font-size:12px;background:transparent;border:1px solid var(--line);
  color:var(--ash-2);border-radius:999px;padding:4px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;
  font-family:var(--f-m)}
.post .rx .cbtn svg{width:13px;height:13px}
.cmts{padding:0 12px 12px;border-top:1px solid var(--line-soft);margin-top:2px;padding-top:10px}
.cmt{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px;font-size:12.5px;line-height:1.45}
.cmt b{font-weight:600}
.cmts .crow{display:flex;gap:8px}
.cmts .crow input{margin:0}

/* ── the team and profile pages ──────────────────────────────────── */
.teamhero{text-align:center;padding:22px 16px 20px;border:1px solid var(--line-soft);
  border-radius:var(--r-m);background:var(--crypt);margin-bottom:4px}
.teamhero .av,.teamhero .avpick{margin:0 auto 14px}
.teamhero h2{font-family:var(--f-d);font-size:27px;line-height:1.1;margin:0}
.teamhero .tag{font-size:13px;color:var(--ash);margin:7px 0 0}
.teamhero .tag.dim{color:var(--ash-2);font-style:italic}
.teamhero .bio{font-size:13px;color:var(--ash);margin:10px auto 0;max-width:38ch;line-height:1.55;white-space:pre-wrap}
.teamhero .btn{margin-top:16px}
.tstats{display:flex;justify-content:center;gap:26px;margin-top:18px}
.tstats b{display:block;font-family:var(--f-m);font-size:21px;font-weight:600;color:var(--candle);line-height:1}
.tstats span{display:block;font-size:9.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ash-2);
  font-weight:600;margin-top:5px}
.invite{padding:15px;margin-top:14px}
.invite p{font-size:12.5px;color:var(--ash);line-height:1.5;margin:7px 0 12px}
.led:last-child{border-bottom:0}

/* ── the hunt tab before the list unlocks ────────────────────────── */
.countdown{padding:18px 16px;text-align:center}
.countdown p{font-size:12.5px;color:var(--ash-2);margin:14px 0 0}
.cdrow{display:flex;justify-content:center;gap:12px;margin-top:14px}
.cdrow div{flex:1;max-width:96px;background:var(--ink-2);border:1px solid var(--line-soft);
  border-radius:var(--r-s);padding:12px 4px}
.cdrow b{display:block;font-family:var(--f-m);font-size:27px;font-weight:600;color:var(--candle);
  line-height:1;font-variant-numeric:tabular-nums}
.cdrow span{display:block;font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:var(--ash-2);
  font-weight:600;margin-top:7px}
.steps{padding:16px}
.step{display:flex;gap:13px;align-items:flex-start;margin-bottom:16px}
.step:last-child{margin-bottom:0}
.step > span{flex:none;width:28px;height:28px;border-radius:9px;background:var(--crypt-3);color:var(--candle);
  display:grid;place-items:center;font-family:var(--f-m);font-size:13px;font-weight:600}
.step > span svg{width:15px;height:15px}
.step b{display:block;font-size:13.5px;font-weight:600;margin-bottom:3px}
.step div{font-size:12.5px;color:var(--ash);line-height:1.5;min-width:0}

/* ── odds and ends ───────────────────────────────────────────────── */
.lb{width:100%;font:inherit;text-align:left;cursor:pointer}
.lb:hover{border-color:var(--ash-2)}
.gate-note{text-align:center;font-size:12px;color:var(--ash-2);margin:16px 0 0}
.gate-note a{color:var(--candle)}
/* The hero avatar is nearly twice the size the badge was drawn for, so the
   badge grows with it rather than clinging to the rim like a dot. */
.teamhero .avpick .avcam{width:27px;height:27px;right:2px;bottom:2px;border-width:2.5px}
.teamhero .avpick .avcam svg{width:14px;height:14px}

/* Five tabs on a 390px phone, and a 320px one. The fifth tab wrapped to a
   second row and took a sixth of the screen with it. */
nav.tabs button{font-size:9.5px;letter-spacing:.05em;padding-inline:2px;min-width:0}
nav.tabs button svg{width:19px;height:19px}

/* A member row is a name and some chips. The chips were taking the width they
   wanted and leaving the name to wrap down the middle of a word. */
.led .t{overflow-wrap:anywhere}
.led .chip{white-space:nowrap}

/* The × on a proof shot while the submission is still a draft. Sits on the
   photo itself, big enough for a thumb, dark enough to read on anything. */
.sheet .shot .shotx{position:absolute;top:3px;right:3px;z-index:1;width:26px;height:26px;padding:0;margin:0;
  border:0;border-radius:50%;background:rgba(0,0,0,.62);color:var(--bone);font-size:19px;line-height:1;
  display:grid;place-items:center;cursor:pointer}
.sheet .shot .shotx:hover{background:var(--blood)}

/* A cleared-task note in the feed. */
.note{display:flex;align-items:center;gap:10px;padding:9px 12px;margin-bottom:10px;border:1px solid var(--line-soft);
  border-radius:var(--r-m);background:var(--crypt);font-size:13px;color:var(--ash);line-height:1.35}
.note b{color:var(--bone);font-weight:600}
.note .nt{flex:1;min-width:0}
.note .when{display:block;font-size:11px;color:var(--ash-2);margin-top:2px;font-family:var(--f-m)}

/* The party address, above the tabs. The same walnut as the tab bar, so the
   two read as one rail. */
.where{position:fixed;left:0;right:0;bottom:calc(var(--tabs-h) + env(safe-area-inset-bottom,0px));z-index:30;
  height:var(--where-h);display:flex;align-items:center;gap:8px;padding:0 14px;font-size:12.5px;
  background:var(--wood);border-top:1px solid var(--wood-line);color:var(--bone)}
.where svg{width:13px;height:13px;color:var(--candle);flex:none}
.where span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.where a{color:var(--candle);font-weight:600;text-decoration:none;flex:none}

/* The waiver on the gate. A scroll box inside the parchment card, inheriting
   its ink. */
.waiver{max-height:44vh;overflow:auto;-webkit-overflow-scrolling:touch;padding:12px 14px;margin:0 0 12px;
  border:1px solid rgba(0,0,0,.22);border-radius:4px;background:rgba(0,0,0,.05);font-size:13.5px;line-height:1.5}
.waiver p{margin:0 0 10px}
.waiver p:last-child{margin-bottom:0}

/* A host's post or comment in the feed. */
.hostchip{font-size:9.5px;padding:2px 7px;vertical-align:2px;border-color:var(--candle);color:var(--candle)}
