@import url("./tokens.css");
@font-face{font-family:Manrope;src:url("./fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Manrope;src:url("./fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url("./fonts/manrope-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Sans";src:url("./fonts/noto-sans-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("./fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
html:root{--page:var(--fm-paper);--ink:var(--fm-ink);--surface:var(--fm-card);--muted:var(--fm-mid);--border:var(--fm-line);--accent:var(--fm-lime-text-strong);--accent-soft:var(--fm-tint);--soft:var(--fm-seg-track);--button:var(--fm-ink);--inverse:white;--review-bg:var(--fm-review-bg);--review-ink:var(--fm-review-text);color-scheme:light;font-family:var(--fm-font-sans);background:var(--page);color:var(--ink)}
.capture-public>.guest-header,.capture-public>.guest-footer,body:has(.email-card){font-family:var(--fm-font-sans)}
body:has(.email-card){background:var(--fm-paper);color:var(--fm-ink)}
.email-card{border-radius:var(--fm-radius-card-lg);border-color:var(--fm-line);box-shadow:none}
.email-card button:not(.secondary):enabled{background:var(--fm-lime);color:var(--fm-ink)}
.email-card input:not([type=checkbox]),.email-card button,.email-card .google-alternative{border-radius:var(--fm-radius-input)}
.email-card input[name=code],.invite-code{font-family:var(--fm-font-mono)}
.capture-public .brand,.brand{font-weight:800;letter-spacing:-.04em}
body:has(.email-card) .guest-shell{background:var(--fm-paper)}
.email-card:has(form) h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.045em;line-height:1.15}
.email-card:has(input[name=code]) input[name=code]{letter-spacing:.22em;font-weight:600;font-size:1.25rem}
@media(min-width:850px){
 .email-card:has(form):not(:has(.agreement-body)){width:min(90vw,850px);display:flow-root;position:relative;padding:42px 42px 42px calc(min(90vw,850px) * .46);min-height:340px}
 .email-card:has(form):before{content:'';position:absolute;inset:16px 57% 16px 16px;background:center/cover url('./photos/pov-chopping.jpg');border-radius:20px}
}
/* Verification and sign-in use the same layout whether reached from the web or Telegram. */
body:has(.fm-auth){background:var(--fm-paper);font-family:var(--fm-font-sans)}
body:has(.fm-auth) .guest-footer{display:none}
body:has(.fm-auth) .guest-header{background:transparent;border:0;width:100%;padding-inline:clamp(20px,4vw,60px)}
body:has(.fm-auth) .guest-actions{display:none}
#guest-main:has(.fm-auth){width:100%;max-width:1440px;margin:auto;min-height:calc(100svh - 95px);padding:24px;align-content:center}
#guest-main .email-card.fm-auth{position:relative;width:100%;max-width:520px;border:0;background:transparent;padding:24px 16px;min-height:auto;box-shadow:none}
#guest-main .fm-auth:before{content:none}
#guest-main .fm-auth h1{font-size:clamp(40px,4vw,50px);line-height:1.04;margin:18px 0 12px;font-weight:800;color:var(--fm-ink)}
.fm-auth p{color:var(--fm-mid);font-size:17px}
.fm-auth .google-alternative,.fm-auth form button,.fm-auth input{width:100%;min-height:58px;border-radius:20px;font-weight:700}
.fm-auth .google-alternative{margin-top:24px}
.fm-auth input:focus{outline:3px solid #c8e80088;border-color:var(--fm-ink)}
.fm-or{display:flex;align-items:center;gap:12px;color:var(--fm-mid);justify-content:center}
.fm-or:before,.fm-or:after{content:'';height:1px;flex:1;background:var(--fm-line)}
.fm-auth-photo{display:none}
.fm-back{color:var(--fm-mid);text-decoration:none;font-weight:700}
.fm-code-wrap{position:relative;display:block}
.fm-digits{display:none}
.fm-code-wrap.enhanced input{position:absolute;inset:0;opacity:0;height:100%;z-index:1;cursor:text}
.enhanced .fm-digits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(4px,1vw,10px)}
.fm-digits span{display:grid;place-items:center;height:clamp(52px,8vw,70px);border-radius:16px;border:1px solid var(--fm-line);background:var(--fm-paper);font:500 30px/1.2 var(--fm-font-mono)}
.fm-code-wrap:focus-within .next{border:2px solid var(--fm-ink);box-shadow:0 0 0 3px #c8e80066}
.fm-tip{padding:16px;border-radius:18px;background:var(--fm-paper)}
@media(min-width:760px){
 #guest-main:has(.fm-sign-in){display:grid;grid-template-columns:1fr 1fr;align-items:stretch;align-content:stretch;gap:24px}
 #guest-main .fm-sign-in{align-self:center;max-width:472px}
 .fm-auth-photo{display:flex;align-items:end;min-height:580px;width:100%;border-radius:36px;background:linear-gradient(transparent 52%,#0e1116bd),center/cover url('./photos/pov-chopping.jpg');padding:40px}
 .fm-auth-photo h2{font-size:clamp(32px,3.6vw,50px);line-height:1.08;letter-spacing:-.04em;color:white;margin:0}.fm-auth-photo em{color:var(--fm-lime);font-style:normal}
 #guest-main .fm-code{padding:44px;background:white;border:1px solid var(--fm-line);border-radius:36px;box-shadow:0 30px 60px -36px #0e111655}
 #guest-main:has(.fm-code){background:url('./stickers/chef-hat-lime.svg') 9% 25%/88px no-repeat,url('./stickers/tool-lime.svg') 90% 45%/84px no-repeat}
}
@media(max-width:759px){
 #guest-main:has(.fm-auth){align-content:start;align-items:start;padding:12px 20px}
 #guest-main .email-card.fm-auth{padding:16px 0}
 .fm-digits span,.fm-tip{background:white}
}
@media(min-width:760px){#guest-main .email-card.fm-code{padding:44px;background:white;border:1px solid var(--fm-line);border-radius:36px;box-shadow:0 30px 60px -36px #0e111655}}
body:has(.fm-sign-in) .guest-actions { display:flex }
body:has(.fm-sign-in) .guest-actions>:not(.fm-auth-help) { display:none }
.fm-auth-help { padding:8px 14px; border-radius:100px; color:var(--fm-ink); font-weight:750; text-decoration:none }
#guest-main .fm-phone-choice:disabled { display:flex; justify-content:center; gap:7px; align-items:center; width:100%; border:0; background:transparent; color:var(--fm-mid); box-shadow:none; font:inherit; font-weight:700; opacity:1; cursor:default }
#guest-main .fm-auth .fm-terms { text-align:center; color:var(--fm-mid); font-size:13px; line-height:1.5; margin:22px 0 0 }
.fm-terms a { color:inherit }
.fm-code-art { display:none }
@media(min-width:760px) {
  .fm-auth-photo { position:relative; isolation:isolate; overflow:hidden; background:#0e1116; padding:clamp(32px,4vw,58px); box-sizing:border-box }
  .fm-auth-photo:before { content:''; position:absolute; z-index:-1; inset:20px; border-radius:26px; background:linear-gradient(transparent 38%,#0e1116c9),center/cover url('./photos/pov-chopping.jpg') }
  .fm-decal,.fm-photo-amount { position:absolute; pointer-events:none }
  .photo-icon { left:8%; top:44px; width:clamp(56px,6vw,84px); transform:rotate(-10deg) }
  .fm-photo-amount { right:8%; top:56px; border-radius:20px; padding:12px 18px; background:#c8e800; color:#0e1116; transform:rotate(4deg) }
  .fm-photo-amount small,.fm-photo-amount strong { display:block; font-weight:800 }
  .fm-photo-amount strong { font-size:32px; line-height:1.1 }
  #guest-main:has(.fm-code) { position:relative; isolation:isolate; background:none }
  .fm-code-art { display:block; position:absolute; inset:0; z-index:-1; pointer-events:none }
  .fm-code-art .mail { width:clamp(54px,8vw,120px); left:clamp(8px,calc(50% - 470px),12%); top:13%; transform:rotate(-10deg) }
  .fm-code-art .phone { width:clamp(50px,6.6vw,96px); right:clamp(8px,calc(50% - 470px),13%); top:22%; transform:rotate(8deg) }
  .fm-code-art .cooking { width:clamp(44px,6vw,84px); left:clamp(12px,calc(50% - 420px),18%); bottom:12%; transform:rotate(6deg) }
}
/* Sticker assets inherit the landing page bob on every contributor screen. */
@keyframes fm-sticker-bob { 0%,100% { translate:0 0 } 50% { translate:0 -7px } }
img[src*="/play/stickers/"],.fm-floating-sticker,.fm-photo-amount,.fm-welcome li b {
  animation:fm-sticker-bob 3.4s ease-in-out var(--fm-float-delay,0s) infinite
}
.fm-photo-amount,.fm-decal.phone { --fm-float-delay:-1.2s }
.fm-decal.cooking { --fm-float-delay:-2s }
.fm-auth-help { display:inline-flex; align-items:center; gap:7px }
.fm-auth-help:before { content:"?"; display:grid; place-items:center; width:17px; height:17px; border:1.6px solid currentColor; border-radius:50%; font-size:12px }
@media(min-width:760px) {
  body:has(.fm-sign-in) .capture-public { position:relative }
  body:has(.fm-sign-in) .guest-header { position:absolute; z-index:1; inset:0 auto auto 0; width:50%; box-sizing:border-box }
  #guest-main:has(.fm-sign-in) { min-height:100svh; padding:20px }
  #guest-main .email-card.fm-sign-in { max-width:472px; margin-block:74px 32px }
}
@media(min-width:760px) {
  #guest-main:has(.fm-sign-in) { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); height:100dvh; min-height:0; flex:none }
  #guest-main .email-card.fm-sign-in { margin:0; padding:0 12px; min-width:0; max-height:calc(100dvh - 86px); overflow-y:auto; scrollbar-width:thin; align-self:center; translate:0 24px }
  #guest-main .fm-auth-photo { min-height:0 }
}
@media(min-width:760px) and (max-height:850px) {
  #guest-main .fm-sign-in h1 { font-size:clamp(32px,4.8vh,42px); margin:0 0 6px }
  #guest-main .fm-sign-in p { margin:6px 0; line-height:1.35 }
  #guest-main .fm-sign-in form { margin:8px 0; gap:8px }
  #guest-main .fm-sign-in :is(input,.google-alternative,form button) { min-height:42px; padding-block:8px }
  #guest-main .fm-sign-in .google-alternative { margin:12px 0 8px }
  #guest-main .fm-sign-in .fm-phone-choice { padding:5px }
  #guest-main .fm-sign-in .fm-terms { margin:8px 0 0 }
  body:has(.fm-sign-in) .guest-header { padding-block:12px }
}
/* Let the shell allocate the space between the header and footer to verification. */
@media(min-width:760px) {
  .capture-public:has(.fm-code,.fm-verification) { min-height:100dvh }
  .capture-public:has(.fm-code,.fm-verification)>.guest-header { padding-block:14px }
  #guest-main:has(.fm-code,.fm-verification) { min-height:0; flex:1 0 auto; padding:12px 24px; margin:0 auto; align-content:center }
  .capture-public:has(.fm-verification)>.guest-footer { padding-block:12px }
}
@media(min-width:760px) and (max-height:800px) {
  #guest-main .email-card:is(.fm-code,.fm-verification) { padding-block:18px; min-height:0 }
  #guest-main .email-card:is(.fm-code,.fm-verification) h1 { font-size:32px; margin:8px 0 }
  #guest-main .email-card:is(.fm-code,.fm-verification) p { margin-block:7px; line-height:1.35 }
  #guest-main .email-card:is(.fm-code,.fm-verification) form { margin:8px 0; gap:7px }
  #guest-main .email-card:is(.fm-code,.fm-verification) button { min-height:40px; padding-block:8px }
  .fm-code .fm-digits span { height:48px }
  .fm-code .fm-tip { padding:10px }
}

/* Mobile auth shares the viewport with its header, footer and safe areas. */
@media(max-width:759px){
 .capture-public:has(.fm-auth,.fm-verification)>.guest-header{position:static;padding:10px 16px}
 #guest-main:has(.fm-auth,.fm-verification){min-height:0;margin:0 auto;padding:10px clamp(10px,4vw,20px);align-content:center;grid-template-columns:minmax(0,1fr)}
 #guest-main .email-card.fm-auth{padding:0}
 #guest-main .fm-auth h1{margin:0 0 8px;font-size:clamp(30px,8.4vw,40px)}
 #guest-main .email-card:is(.fm-auth,.fm-verification) form{gap:8px;margin:10px 0}
 #guest-main .fm-auth :is(.google-alternative,input,form button){min-height:44px;padding-block:9px}
 #guest-main .fm-auth .google-alternative{margin:10px 0}
 #guest-main .fm-auth p{margin:8px 0;line-height:1.35}
 #guest-main .fm-auth .fm-terms{margin:8px 0 0}
 #guest-main .fm-auth input{font-size:16px}
 .capture-public:has(.fm-verification)>.guest-footer{padding:10px 16px;gap:6px}
 .registration-identity>span:last-child{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:759px) and (max-height:700px){
 #guest-main:has(.fm-auth,.fm-verification){padding-block:4px}
 #guest-main .fm-auth h1{font-size:28px}
 #guest-main .fm-auth p{font-size:15px}
 #guest-main .fm-auth .fm-terms{font-size:12px}
 #guest-main .fm-phone-choice:disabled{padding:4px}
 #guest-main .fm-verification{padding:14px}
 #guest-main .fm-verification h1{margin:4px 0}
}
@media(max-width:350px){
 #guest-main:has(.cf-turnstile){padding-inline:4px}
 #guest-main .fm-verification:has(.cf-turnstile){padding-inline:4px}
}
@media(max-width:759px) and (max-height:620px){
 .fm-verification .registration-identity{margin:6px 0}
 .fm-verification .consent-box{padding:8px}
 .fm-verification .consent-box p{line-height:1.25}
 .capture-public:has(.fm-verification)>.guest-header .secondary{min-height:36px;padding:6px 12px}
}
@media(max-width:759px) and (min-height:700px){
 #guest-main:has(.fm-auth){align-content:start;align-items:start;padding-top:clamp(22px,5vh,48px)}
 #guest-main .fm-code h1:before{content:"";display:block;width:64px;height:64px;margin-bottom:18px;background:url('./stickers/mail-lime.svg') center/contain no-repeat}
}
