:root {
  --bg: #f3f6f8;
  --bg2: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2dd4bf;
  --accent-ink: #042f2e;
  --accent-dark: #0f766e;
  --good: #16a34a;
  --mid: #d97706;
  --bad: #e11d48;
  --nav: 86px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --android-sat: 0px;
  --android-sab: 0px;
  --android-sal: 0px;
  --android-sar: 0px;
  --sat: max(env(safe-area-inset-top, 0px), var(--android-sat));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--android-sab));
  --sal: max(env(safe-area-inset-left, 0px), var(--android-sal));
  --sar: max(env(safe-area-inset-right, 0px), var(--android-sar));
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;
  font: 16px/1.45 system-ui, "Segoe UI", sans-serif;
}
.ff-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.15rem;
  background: #f3f6f8;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ff-boot.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ff-boot[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.ff-boot__title {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
}
.ff-boot__sub {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}
.ff-boot__motor {
  animation: ff-boot-bob 1.6s ease-in-out infinite;
}
.ff-boot__prop {
  transform-box: view-box;
  transform-origin: 100px 128px;
  animation: ff-boot-spin 0.7s linear infinite;
}
@keyframes ff-boot-spin {
  to { transform: rotate(360deg); }
}
@keyframes ff-boot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}
.ff-inline-load {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  padding: 1.35rem 0.75rem 1rem;
  text-align: center;
}
.ff-inline-load p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
}
.ff-inline-load__prop {
  display: block;
}
.ff-inline-load__spin {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: ff-boot-spin 0.7s linear infinite;
}
html.ff-feed-on,
html.ff-feed-on body,
html.ff-shop-on,
html.ff-shop-on body,
html.ff-chat-on,
html.ff-chat-on body,
html.ff-me-on,
html.ff-me-on body {
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
html.klev-native {
  --android-sat: 36px;
  --android-sab: 20px;
}
body {
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
}
.ff { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); }
.ff-screen { padding: 1.1rem 1rem 1.4rem; }
.ff-screen--main { padding-bottom: calc(var(--nav) + 1.2rem + var(--sab)); }
.ff-screen--main.is-cal {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: calc(-1 * var(--sat));
}
.ff-hero { text-align: center; padding: 2.2rem 0 1.1rem; }
.ff-logo { font-size: 3rem; }
.ff-logo img { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto; }
.ff-hero h1, .ff-screen > h1 { font-size: 1.45rem; margin: 0.4rem 0 0.35rem; font-weight: 750; }
.ff-hero p, .ff-lead { color: var(--muted); margin: 0 0 1rem; }
.ff-lead--soft { font-size: 0.9rem; line-height: 1.35; margin-bottom: 0.65rem; }
.ff-auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 0.85rem;
  padding: 0.22rem;
  background: #1c1c1e;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ff-auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #4db6ac;
  border-radius: 999px;
  min-height: 42px;
  font-weight: 650;
  font-size: 0.92rem;
}
.ff-auth-tabs button.is-on {
  background: linear-gradient(180deg, #2c2c30 0%, #232326 100%);
  color: #5eead4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ff-auth-or {
  text-align: center;
  margin: 0.55rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.ff-auth-vk {
  width: 100%;
  margin: 0 0 0.85rem;
}
.ff-auth-vk .ff-muted {
  margin: 0.4rem 0 0;
  text-align: center;
}
.ff-auth-vk .ff-auth-or {
  margin: 0.7rem 0 0;
}
.ff-link {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 650;
  padding: 0.35rem 0;
  text-align: left;
}
.ff-install {
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}
.ff-install h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.ff-install p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.9rem; }
.ff-install .ff-btn { margin-top: 0.35rem; }
.ff-ios-steps {
  margin: 0 0 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  background: #f0fdfa;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ff-ios-steps li { margin: 0.25rem 0; }
.ff-legal {
  text-align: center;
  margin: 1.1rem 0 0.2rem;
  font-size: 0.82rem;
}
.ff-legal a { color: var(--muted); }
.ff-legal-box {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card, #fff) 88%, #0f766e 12%);
  border: 1px solid color-mix(in srgb, var(--line, #e2e8f0) 70%, #0f766e 30%);
}
.ff-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.45rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
}
.ff-check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.ff-check a { color: var(--accent-dark, #0f766e); font-weight: 650; }
.ff-legal-hint { margin: 0.55rem 0 0; font-size: 0.78rem; }
#app-update { z-index: 60; }
.ff-update-sheet h2 {
  margin: 0.5rem 0.7rem 0.25rem;
  font-size: 1.18rem;
}
.ff-update-sheet p {
  margin: 0 0.7rem 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.ff-update-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.35rem 0.7rem 0.85rem;
}
.ff-update-sheet .ff-update-actions .ff-btn {
  width: auto;
  flex: 1 1 0;
  margin: 0;
  min-height: 2.75rem;
}
.ff-update-sheet #app-update-perm-btn {
  width: calc(100% - 1.4rem);
  margin: 0 0.7rem 0.45rem;
}
.ff-update-progress {
  margin: 0.15rem 0.7rem 0.35rem;
}
.ff-update-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.ff-update-progress__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  transition: width 0.25s ease;
}
.ff-update-progress__bar.is-indeterminate span {
  width: 38% !important;
  transition: none;
  animation: ff-upd-slide 1.05s ease-in-out infinite;
}
@keyframes ff-upd-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(320%); }
}
.ff-update-progress p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
@media (display-mode: standalone) {
  body { background: #f4f4f5; }
}
html.klev-native,
html.klev-native body {
  background: #f4f4f5;
}
.ff-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.ff-card label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.ff-otp-sent {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
}
.ff-otp-timer {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: #ecfdf8;
  border: 1px solid #99f6e4;
}
.ff-otp-timer__sec {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ff-otp-timer__lab {
  font-size: 0.78rem;
  color: #64748b;
}
.ff-otp-timer.is-done {
  background: #f8fafc;
  border-color: var(--line);
}
.ff-otp-timer.is-done .ff-otp-timer__sec { color: var(--mid); }
.ff-btn.is-busy { opacity: 0.72; }
input[type="tel"], input[type="text"], input[type="search"], input[type="file"],
input[type="email"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font-size: 1.05rem;
  background: #f8fafc;
  color: var(--ink);
}
.ff-btn {
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 48px;
  display: block;
  text-align: center;
  text-decoration: none;
}
.ff-btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ff-btn.ff-btn--vk {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #0077ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 119, 255, 0.28);
}
.ff-btn.ff-btn--vk:hover,
.ff-btn.ff-btn--vk:active {
  background: #0066dd;
}
.ff-btn--vk-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.ff-msg { margin: 0; color: var(--mid); font-size: 0.9rem; }
.ff-msg.is-err { color: var(--bad); }
.ff-upbar {
  height: 4px;
  margin: 0.35rem 0 0.15rem;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.ff-upbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #0f766e;
  transition: width 0.18s ease;
}
.ff-upbar.is-wait i {
  width: 55% !important;
  animation: ff-upbar-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes ff-upbar-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.ff-list { display: grid; gap: 0.4rem; }
.ff-list button {
  text-align: left;
  background: #f8fafc;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.ff-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.ff-top { display: none; }
.ff-city-btn {
  display: none;
}
.ff-muted { color: var(--muted); font-size: 0.85rem; }

.ff-dash { padding: 0 0 1rem; }
.ff-hero-card {
  background: linear-gradient(160deg, #115e59 0%, #0f766e 55%, #0d9488 100%);
  color: #fff;
  padding: calc(1.15rem + var(--sat)) 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  border-radius: 0 0 22px 22px;
}
.ff-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 700;
}
.ff-hero-city {
  display: block;
  margin: 0.15rem 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  text-align: left;
}
.ff-hero-meta { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.ff-day-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.ff-day-nav .ff-hero-meta {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.ff-day-nav button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
}
.ff-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin: 0 0 0.8rem;
}
.ff-week__d {
  border: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.32rem 0.08rem;
  min-height: 48px;
  color: var(--ink);
}
.ff-week__d small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}
.ff-week__d b { font-size: 0.95rem; }
.ff-week__d.is-today { font-weight: 800; }
.ff-week__d.is-on {
  outline: 2px solid var(--accent-dark);
  background: #ccfbf1;
}
.ff-map-card {
  margin: 0.85rem 0 0.35rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.ff-map-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.55rem;
}
.ff-map-place {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.ff-map-q {
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #f8fafc;
}
.ff-map-hits {
  margin: 0 0 0.45rem;
  max-height: 9.5rem;
  overflow-y: auto;
}
.ff-map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #0f172a;
}
.ff-map-acts { margin-top: 0.5rem; }
.ff-map-acts .ff-btn { width: 100%; }
.ff-map-top__acts {
  display: flex;
  gap: 0.3rem;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.ff-map-top__acts .ff-btn,
.ff-hunt__tools .ff-btn {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.38rem 0.62rem;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ff-map-top__acts .is-on,
.ff-hunt__tools .is-on { outline: 2px solid var(--accent-dark); }
.ff-bathy-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 0.82rem;
}
.ff-bathy-offer[hidden] { display: none !important; }
.ff-bathy-offer span { flex: 1 1 12rem; }
.ff-bathy-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.55rem;
  font-size: 0.68rem;
  color: var(--muted, #64748b);
}
.ff-bathy-leg span { display: inline-flex; align-items: center; gap: 0.22rem; }
.ff-bathy-leg i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}
.ff-imap__hint { margin: 0 0 0.45rem; font-size: 0.8rem; }
.ff-imap {
  position: relative;
  width: 100%;
  height: min(58vh, 440px);
  border-radius: 14px;
  overflow: hidden;
  background: #1e293b;
  touch-action: none;
}
.ff-imap__layer { position: absolute; inset: 0; z-index: 0; }
.ff-imap__layer--bathy {
  z-index: 1;
  opacity: 0.88;
  pointer-events: none;
}
.ff-offdep {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.ff-offdep__pin {
  position: absolute;
  transform: translate(-50%, -110%);
  background: #0f172a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
  padding: 0.14rem 0.38rem;
  border-radius: 7px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.ff-imap__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  pointer-events: none;
}
.ff-imap__badge--fake { background: rgba(180, 83, 9, 0.92); }
.ff-depth-compare {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ff-imap--compare { height: min(38vh, 280px); }
@media (min-width: 900px) {
  .ff-depth-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.85rem;
  }
  .ff-imap--compare { height: min(52vh, 400px); }
}
.ff-imap__tile {
  position: absolute;
  max-width: none !important;
  max-height: none !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: fill;
  image-rendering: auto;
}
.ff-imap__scale {
  position: absolute;
  left: 0.5rem;
  bottom: 1.55rem;
  z-index: 3;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
}
.ff-imap__scale i {
  display: block;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.ff-imap__scale span { display: block; margin-top: 2px; }
.ff-imap__zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ff-imap__zoom button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font: 700 1.15rem/1 system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
}
.ff-imap__loc.is-on { color: #2563eb; }
.ff-imap__loc svg { display: block; }
.ff-imap__fs { font-size: 1.05rem !important; }
.ff-imap.is-fs {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
  border-radius: 0;
}
.ff-imap.is-fs .ff-imap__zoom {
  bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  right: calc(0.5rem + env(safe-area-inset-right, 0px));
}
html.ff-map-fs,
html.ff-map-fs body { overflow: hidden; }
html.ff-map-fs .ff-nav { display: none; }
.ff-imap__copy {
  position: absolute;
  left: 0.45rem;
  bottom: 0.4rem;
  z-index: 2;
  margin: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ff-imap__save {
  margin: 0.5rem 0 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.ff-imap__save input {
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.ff-imap__save-row { display: flex; gap: 0.4rem; }
.ff-imap__save-row .ff-btn { flex: 1; }
.ff-spot-card {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d7efec;
  border-radius: 14px;
  background: #f4fbfa;
}
.ff-spot-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}
.ff-spot-card__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.ff-spot-card__acts .ff-btn { margin: 0; }
.ff-spot-card__t {
  margin: 0.35rem 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ff-spot-catch {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin: 0 0 0.3rem;
  font: inherit;
}
.ff-spot-link { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ff-spot-pin.is-on { background: #0f766e; outline: 2px solid #fff; }
.ff-composer__spot {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #0f766e;
}
.ff-composer__spot .ff-btn { margin: 0.2rem 0.25rem 0 0; }
.ff-spots-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.ff-spots-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.ff-spot-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: #ef4444;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ff-spot-pin--mush {
  background: #b45309;
}
.ff-spot-pin--mush.is-on {
  background: #92400e;
  outline: 2px solid #fef3c7;
}
.ff-spot-pin--pending {
  background: #22c55e;
  width: 22px;
  height: 22px;
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(34, 197, 94, 0.45);
  animation: ff-pin-pulse 1.1s ease-out infinite;
}
.ff-spot-pin--mush.ff-spot-pin--pending {
  background: #84cc16;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(132, 204, 22, 0.5);
}
@keyframes ff-pin-pulse {
  0% { transform: translate(-50%, -100%) rotate(-45deg) scale(1); }
  70% { transform: translate(-50%, -100%) rotate(-45deg) scale(1.18); }
  100% { transform: translate(-50%, -100%) rotate(-45deg) scale(1); }
}
.ff-imap .ff-imap__save,
.ff-imap .ff-spot-card {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 12;
  margin: 0;
  max-height: 48%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}
.ff-spot-row--mush {
  flex-wrap: wrap;
}
.ff-spot-row--mush small {
  width: 100%;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
}
.ff-imap__save-row--mush {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.ff-imap__save-row--mush input[type="number"] {
  width: 5.5rem;
  flex: 0 0 auto;
}
.ff-imap__save-row--mush input[type="text"],
.ff-imap__save-row--mush select {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 8px;
  background: var(--card, #fff);
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.ff-mush-spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
  max-height: 5.5rem;
  overflow: auto;
}
.ff-mush-spot-chip {
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.ff-mush-spot-edit {
  display: grid;
  gap: 0.3rem;
  margin: 0.35rem 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}
.ff-mush-spot-edit input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--card, #fff);
}
.ff-mush-map-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.ff-spots-list { margin-top: 0.5rem; }
.ff-spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
}
.ff-spot-row:last-child { border-bottom: 0; }
.ff-gauge {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 50%;
  background: conic-gradient(#5eead4 calc(var(--p, 0) * 1%), rgba(255,255,255,.18) 0);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 8px rgba(15, 23, 42, 0.18);
}
.ff-gauge span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #134e4a;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.05;
  font-weight: 800;
}
.ff-gauge b { font-size: 1.15rem; }
.ff-gauge small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.8; }

.ff-dash-body { padding: 0.9rem 1rem 1.2rem; }
.ff-verdict {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--good);
}
.ff-verdict.is-ok { color: var(--mid); }
.ff-verdict.is-bad { color: var(--bad); }
.ff-weather-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: start;
}
.ff-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ff-kpi {
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  box-shadow: var(--shadow);
}
.ff-kpi span { display: block; color: var(--muted); font-size: 0.72rem; }
.ff-kpi b { font-size: 1.05rem; }
.ff-kpi em { display: block; font-style: normal; color: var(--muted); font-size: 0.72rem; margin-top: 0.1rem; }
.ff-wx {
  width: 92px;
  text-align: center;
  padding-top: 0.3rem;
}
.ff-wx .ff-wx-ico { font-size: 2.6rem; line-height: 1; }
.ff-wx small { display: block; color: var(--muted); margin-top: 0.25rem; font-size: 0.78rem; }

.ff-band {
  margin-top: 0.7rem;
  background: #e8f6fb;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}
.ff-band--moon { background: #eef6ff; }
.ff-band strong { display: block; margin-bottom: 0.2rem; }
.ff-band p { margin: 0.15rem 0 0; color: #334155; }

.ff-sec { margin: 1rem 0 0.35rem; font-size: 1.02rem; }
.ff-sec small { color: var(--muted); font-weight: 500; float: right; }
.ff-bar-row {
  display: grid;
  grid-template-columns: 5.4rem 1fr 2.4rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}
.ff-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.ff-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.ff-fish-row {
  display: grid;
  grid-template-columns: 1.4rem minmax(4.8rem, 6.4rem) 1fr 2.2rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.28rem 0;
}
.ff-fish-all { display: none; }
#ff-fish-box.is-all .ff-fish-best { display: none; }
#ff-fish-box.is-all .ff-fish-all { display: block; }
#ff-fish-more {
  width: 100%;
  margin-top: 0.35rem;
}
.ff-fish-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-fish-dot {
  width: 18px;
  height: 12px;
  border-radius: 40% 40% 40% 40% / 60% 60% 40% 40%;
}
.ff-cal-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 0.8rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}
.ff-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}
.ff-cal-head {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.2rem 0;
}
.ff-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.ff-cal-nav button {
  background: #f1f5f9;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
}
.ff-cal-cell {
  background: #f8fafc;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  font-size: 0.72rem;
  min-height: 52px;
}
.ff-cal-cell.is-today { font-weight: 800; }
.ff-cal-cell.is-moon {
  opacity: 0.72;
  font-style: italic;
  color: #64748b;
}
.ff-cal-cell.is-on {
  outline: 2px solid var(--accent-dark);
  box-shadow: 0 0 0 3px #ccfbf1;
  font-weight: 800;
}
.ff-share {
  width: 100%;
  margin: 0.15rem 0 0.85rem;
}
.ff-share-sheet { max-width: 26rem; }
.ff-share-acts { display: grid; gap: 0.45rem; margin-top: 0.35rem; }

.ff-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  background: transparent;
  border: 0;
  padding: 0 0.7rem calc(0.42rem + var(--sab));
  z-index: 20;
  pointer-events: none;
}
.ff-nav__bar {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #f4fbfa;
  border: 1px solid #d7efec;
  border-radius: 999px;
  padding: 0.12rem 0.16rem;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.1);
}
.ff-nav__btn {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  background: transparent;
  color: #5b7c79;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0.06rem 0 0.04rem;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
}
.ff-nav__ico {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 0;
  position: relative;
}
.ff-nav__ico svg { display: block; }
.ff-nav__badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.ff-nav__lbl {
  line-height: 1.1;
  white-space: nowrap;
}
.ff-nav__btn.is-on {
  background: transparent;
  color: #0f766e;
  font-weight: 600;
  box-shadow: none;
}
.ff-nav__btn.is-on .ff-nav__ico {
  background: rgba(45, 212, 191, 0.16);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.14), 0 0 8px rgba(45, 212, 191, 0.28);
}
.ff-nav__btn--plus {
  flex: 0 0 2.45rem;
  max-width: 2.45rem;
  align-self: center;
  min-height: 2.45rem;
  height: 2.45rem;
  padding: 0;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 118, 110, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.24);
}
.ff-nav__btn--plus .ff-nav__ico {
  width: 22px;
  height: 22px;
  background: transparent;
  box-shadow: none;
}
.ff-nav__btn--plus.is-on {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.36);
}
.ff-nav__btn--plus.is-on .ff-nav__ico {
  background: transparent;
  box-shadow: none;
}
.ff-nav__btn--plus .ff-nav__lbl { display: none; }
.ff-nav__lbl--ghost {
  visibility: hidden;
  pointer-events: none;
}
.ff-pane--feed {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav) - 1.5rem - var(--sat) - var(--sab));
  min-height: 0;
}
.ff-screen--main.is-feed {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-screen--main.is-feed .ff-pane--feed {
  margin: 0;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 0;
  padding-bottom: calc(var(--nav) + var(--sab));
}
.ff-screen--main.is-feed .ff-feed {
  padding: 0 0.5rem 1rem;
  gap: 0.6rem;
  height: 100%;
}
.ff-screen--main.is-feed .ff-post {
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
.ff-feed > #stories-bar {
  flex: 0 0 auto;
  position: static;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.ff-stories-wrap {
  background: #fff;
  padding-top: calc(0.12rem + var(--sat));
  position: relative;
}
.ff-stories-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  z-index: 1;
}
.ff-stories-row .ff-stories {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.1rem;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.ff-stories-wrap.is-find .ff-stories {
  opacity: 0;
  transform: translateX(-1.35rem);
  pointer-events: none;
}
.ff-feed-tools {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.12rem 0.28rem 0.2rem 0;
  z-index: 3;
}
.ff-feed-find-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}
.ff-feed-find-btn.is-on { color: #fff; background: #0f766e; }
.ff-find--feed {
  position: absolute;
  left: 0.55rem;
  right: 3.05rem;
  top: calc(0.18rem + var(--sat));
  z-index: 2;
  padding: 0;
  opacity: 0;
  transform: translateX(1.2rem);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.ff-stories-wrap.is-find .ff-find--feed {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.ff-find--feed input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
#feed-find-list {
  padding: 0 0.55rem 0.45rem;
}
#feed-find-list[hidden] { display: none !important; }
.ff-feed-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0 0.7rem 0.55rem;
  overflow-x: auto;
}
.ff-feed-chip {
  flex: 0 0 auto;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font: 700 0.82rem/1.2 system-ui, sans-serif;
  min-height: 36px;
}
.ff-feed-chip.is-on {
  background: var(--accent-dark);
  color: #fff;
}
.ff-screen--main.is-feed .ff-stories {
  padding-top: 0.2rem;
  padding-left: 0.55rem;
  padding-right: 0.15rem;
  background: #fff;
}
.ff-stories {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem 0.9rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-stories::-webkit-scrollbar { display: none; }
.ff-stories-wrap .ff-stories {
  gap: 0.48rem;
  padding: 0.18rem 0.45rem 0.45rem 0.55rem;
}
.ff-story {
  flex: 0 0 auto;
  width: 92px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.ff-stories-wrap .ff-story {
  width: 64px;
  gap: 0.22rem;
  font-size: 0.68rem;
}
.ff-story span.ff-story__name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-stories-wrap .ff-story span.ff-story__name {
  max-width: 64px;
}
.ff-story__ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
  position: relative;
  box-shadow: none;
}
.ff-stories-wrap .ff-story__ring {
  width: 62px;
  height: 62px;
  padding: 2.5px;
}
.ff-story--me .ff-story__ring { background: #e2e8f0; }
.ff-story--me.has-story .ff-story__ring { background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7); }
.ff-story__ring img,
.ff-story__ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1a1d21;
}
.ff-stories-wrap .ff-story__ring img,
.ff-stories-wrap .ff-story__ph {
  border-width: 2px;
  font-size: 0.92rem;
}
.ff-story__plus {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.28);
  font-size: 0;
  line-height: 0;
}
.ff-stories-wrap .ff-story__plus {
  width: 20px;
  height: 20px;
  right: 0;
  bottom: 0;
}
.ff-stories-wrap .ff-story__plus svg { width: 11px; height: 11px; }
.ff-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 0.35rem 1rem;
}
.ff-ptr {
  flex: 0 0 auto;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.ff-ptr.is-on,
.ff-ptr.is-load { transition: height 0.16s ease; }
.ff-ptr i {
  width: 26px;
  height: 26px;
  margin: 0 0 8px;
  border: 2.5px solid #cbd5e1;
  border-top-color: #0f766e;
  border-radius: 50%;
  box-sizing: border-box;
}
.ff-ptr.is-ready i,
.ff-ptr.is-load i {
  animation: ffPtrSpin 0.7s linear infinite;
}
@keyframes ffPtrSpin {
  to { transform: rotate(360deg); }
}
.ff-feed-sent {
  flex: 0 0 auto;
  height: 1px;
  pointer-events: none;
}
.ff-post {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.ff-post.is-leaving,
.ff-ig-cell.is-leaving {
  pointer-events: none;
  overflow: hidden !important;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  border-color: transparent;
  min-height: 0 !important;
  margin: 0;
}
.ff-post.is-leaving {
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease;
}
.ff-ig-cell.is-leaving {
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ff-post.is-leaving,
  .ff-ig-cell.is-leaving {
    transition: none;
    transform: none;
  }
}
.ff-media {
  display: block;
  background: #0f172a;
  min-height: 0;
  position: relative;
}
.ff-media.is-1 {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0b1220;
  min-height: 0;
  overflow: hidden;
}
.ff-media.is-1 > img,
.ff-media.is-1 > video,
.ff-media.is-1 .ff-cover,
.ff-media.is-1 .ff-vid-poster {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0b1220;
  margin: 0;
  vertical-align: top;
}
.ff-media.is-1.ff-media--fit {
  max-height: min(140dvh, 1400px);
}
.ff-media.is-1.ff-media--fit > img,
.ff-media.is-1.ff-media--fit .ff-cover {
  object-fit: contain;
  object-position: center top;
  background: #e8eef5;
}
.ff-media--vid {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: none;
  background: #0b1220;
  overflow: hidden;
}
.ff-media--vid video,
.ff-media--vid .ff-vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  margin: 0;
  background: #0b1220;
}
.ff-media--vid > video.ff-cover {
  z-index: 1;
  opacity: 0;
}
.ff-media--vid.is-playing > video.ff-cover {
  opacity: 1;
}
.ff-media--vid > .ff-vid-poster {
  z-index: 2;
}
.ff-cover--vidph,
.ff-vid-poster--empty {
  display: block;
  background: #0b1220;
}
.ff-media.is-1[data-act="zoom"] { cursor: pointer; }
.ff-media--yt { cursor: pointer; }
.ff-media--yt.is-on .ff-yt-play { display: none; }
.ff-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 4.2rem;
  height: 4.2rem;
  margin: -2.1rem 0 0 -2.1rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.ff-yt-play::after {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.25rem;
  border-style: solid;
  border-width: 0.85rem 0 0.85rem 1.35rem;
  border-color: transparent transparent transparent #fff;
}
.ff-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
  background: #0b1220;
}
.ff-media.is-1:has(video) { cursor: pointer; }
.ff-collage {
  display: grid;
  gap: 1px;
  background: #64748b;
  overflow: hidden;
  width: 100%;
  max-height: 28rem;
  position: relative;
}
.ff-collage--2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 2 / 1.12;
}
.ff-collage--3 {
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 0.98;
}
.ff-collage--3 .ff-collage__cell:first-child { grid-row: 1 / span 2; }
.ff-collage--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
}
.ff-collage--5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1.18fr 1fr;
  aspect-ratio: 1 / 1.05;
}
.ff-collage--5 .ff-collage__cell:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
.ff-collage--5 .ff-collage__cell:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.ff-collage--5 .ff-collage__cell:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.ff-collage--5 .ff-collage__cell:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.ff-collage--5 .ff-collage__cell:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }
/* VK-style: 2 large on top, rest small below — no empty black cells */
.ff-collage--6,
.ff-collage--7,
.ff-collage--8,
.ff-collage.is-many {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1.42fr 1fr;
  aspect-ratio: 1 / 1.04;
  max-height: 32rem;
}
.ff-collage--6 .ff-collage__cell:nth-child(1),
.ff-collage--7 .ff-collage__cell:nth-child(1),
.ff-collage--8 .ff-collage__cell:nth-child(1),
.ff-collage.is-many .ff-collage__cell:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1;
}
.ff-collage--6 .ff-collage__cell:nth-child(2),
.ff-collage--7 .ff-collage__cell:nth-child(2),
.ff-collage--8 .ff-collage__cell:nth-child(2),
.ff-collage.is-many .ff-collage__cell:nth-child(2) {
  grid-column: 7 / 13;
  grid-row: 1;
}
.ff-collage--6 .ff-collage__cell:nth-child(3) { grid-column: 1 / 4; grid-row: 2; }
.ff-collage--6 .ff-collage__cell:nth-child(4) { grid-column: 4 / 7; grid-row: 2; }
.ff-collage--6 .ff-collage__cell:nth-child(5) { grid-column: 7 / 10; grid-row: 2; }
.ff-collage--6 .ff-collage__cell:nth-child(6) { grid-column: 10 / 13; grid-row: 2; }
.ff-collage--7 .ff-collage__cell:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.ff-collage--7 .ff-collage__cell:nth-child(4) { grid-column: 3 / 6; grid-row: 2; }
.ff-collage--7 .ff-collage__cell:nth-child(5) { grid-column: 6 / 8; grid-row: 2; }
.ff-collage--7 .ff-collage__cell:nth-child(6) { grid-column: 8 / 11; grid-row: 2; }
.ff-collage--7 .ff-collage__cell:nth-child(7) { grid-column: 11 / 13; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(3),
.ff-collage.is-many .ff-collage__cell:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(4),
.ff-collage.is-many .ff-collage__cell:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(5),
.ff-collage.is-many .ff-collage__cell:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(6),
.ff-collage.is-many .ff-collage__cell:nth-child(6) { grid-column: 7 / 9; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(7),
.ff-collage.is-many .ff-collage__cell:nth-child(7) { grid-column: 9 / 11; grid-row: 2; }
.ff-collage--8 .ff-collage__cell:nth-child(8),
.ff-collage.is-many .ff-collage__cell:nth-child(8) { grid-column: 11 / 13; grid-row: 2; }
.ff-collage__cell {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #1e293b;
  position: relative;
  display: block;
}
.ff-collage__cell img,
.ff-collage__cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ff-collage__play { display: none !important; }
.ff-vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0b1220;
  z-index: 1;
  pointer-events: none;
}
.ff-collage__cell .ff-vid-poster,
.ff-collage__cell img.ff-cover {
  object-fit: cover;
}
.ff-media.is-playing > .ff-vid-poster,
.ff-carousel__slide.is-playing > .ff-vid-poster {
  display: none;
}
.ff-media video::-webkit-media-controls-start-playback-button,
.ff-media video::-webkit-media-controls-overlay-play-button,
.ff-carousel video::-webkit-media-controls-start-playback-button,
.ff-carousel video::-webkit-media-controls-overlay-play-button,
.ff-collage video::-webkit-media-controls-overlay-play-button,
.ff-collage video::-webkit-media-controls-start-playback-button,
.ff-story-view video::-webkit-media-controls-start-playback-button,
.ff-story-view video::-webkit-media-controls-overlay-play-button,
.ff-composer__tile video::-webkit-media-controls-start-playback-button,
.ff-composer__tile video::-webkit-media-controls-overlay-play-button,
.ff-zoom video::-webkit-media-controls-start-playback-button,
.ff-zoom video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
.ff-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0b1220;
  overflow: hidden;
}
.ff-carousel__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-carousel__track::-webkit-scrollbar { display: none; }
.ff-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
}
.ff-carousel__slide img,
.ff-carousel__slide video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0b1220;
}
.ff-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
}
.ff-carousel__prev { left: 0.4rem; }
.ff-carousel__next { right: 0.4rem; }
.ff-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.4rem 0 0.55rem;
  background: #0f172a;
}
.ff-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0;
  padding: 0;
}
.ff-carousel__dot.is-on { background: #fff; width: 16px; border-radius: 999px; }
.ff-carousel__n {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.ff-post--photo-text .ff-media.is-1 img,
.ff-post--photo-text .ff-media--vid,
.ff-post--photo-text .ff-media--vid video {
  width: 100%;
  max-width: none;
  max-height: none;
}
.ff-cap a.ff-link-in,
.ff-mini-post a.ff-link-in,
.ff-story-view__cap a.ff-link-in {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-word;
}
.ff-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0.2rem 0.1rem 0;
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font: 800 0.88rem/1.2 system-ui, sans-serif;
}
.ff-shop-cta-row { margin-top: 0.45rem; }
.ff-story-view__ctas .ff-shop-cta { min-height: 44px; }
.ff-react {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.05rem;
  margin-top: 0.4rem;
  min-height: 36px;
  overflow: visible;
}
.ff-react .ff-side__btn,
.ff-react .ff-like,
.ff-react .ff-share-btn,
.ff-react .ff-views,
.ff-react .ff-react-cmt {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 0.42rem;
  background: transparent;
  box-shadow: none;
  gap: 0.28rem;
  color: #475569;
  border-radius: 8px;
  line-height: 1;
  overflow: visible;
}
.ff-react .ff-views {
  margin-left: auto;
  color: #94a3b8;
  pointer-events: none;
}
.ff-react .ff-like.is-on {
  color: #ff2d55;
  background: transparent;
}
.ff-react .ff-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  margin: 0;
}
.ff-react .ff-ico--heart,
.ff-react .ff-ico--cmt {
  width: 22px;
  height: 22px;
}
.ff-react .ff-ico--eye,
.ff-react .ff-ico--share {
  width: 21px;
  height: 21px;
}
.ff-like-n,
.ff-view-n,
.ff-cmt-n {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  display: inline;
  margin: 0;
}
.ff-view-n.is-bump {
  color: #0f766e;
  animation: ff-view-bump 0.55s ease;
}
@keyframes ff-view-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.ff-views {
  transform-origin: center bottom;
}
.ff-ico--cmt {
  width: 1.32rem;
  height: 1.32rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.ff-ico--cmt path { fill: none; stroke: inherit; }
.ff-comments {
  z-index: 48;
  align-items: stretch;
  justify-content: flex-end;
}
.ff-comments__sheet {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  height: min(58vh, 34rem);
  max-height: min(58vh, 34rem);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  padding: 0 0 calc(0.35rem + var(--sab) + env(keyboard-inset-bottom, 0px));
}
.ff-comments__grab {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 0.45rem auto 0.1rem;
  border-radius: 99px;
  background: #d0d7e0;
}
.ff-comments.is-kb {
  inset: auto;
  top: var(--ff-vv-top, 0px);
  left: 0;
  right: 0;
  height: var(--ff-vv-h, 100dvh);
  bottom: auto;
  justify-content: flex-end;
  align-items: stretch;
}
.ff-comments.is-kb .ff-comments__sheet {
  height: 100%;
  max-height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: max(0.35rem, env(keyboard-inset-bottom, 0px));
  border-radius: 12px 12px 0 0;
}
.ff-comments.is-kb .ff-comments__list {
  flex: 1 1 auto;
  min-height: 0;
}
.ff-comments.is-kb .ff-comments__bar {
  position: relative;
  bottom: auto;
  z-index: 4;
  flex: 0 0 auto;
  padding-bottom: max(0.45rem, env(keyboard-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}
.ff-comments__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.85rem 0.35rem;
  flex: 0 0 auto;
}
.ff-comments__top h2 {
  margin: 0;
  font: 750 1.02rem/1.2 system-ui, sans-serif;
}
.ff-comments__top button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.4rem;
  line-height: 1;
  color: #0f172a;
}
.ff-comments__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.2rem 0.85rem 0.6rem;
  -webkit-overflow-scrolling: touch;
}
.ff-cmt {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.55rem 0 0.15rem;
}
.ff-cmt .ff-ava {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  font-size: 0.85rem;
}
.ff-cmt__body { min-width: 0; flex: 1; }
.ff-cmt__body header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.ff-cmt__name {
  border: 0;
  background: none;
  padding: 0;
  font: 750 0.86rem/1.2 system-ui, sans-serif;
  color: #0f172a;
}
.ff-cmt__body time {
  color: #94a3b8;
  font-size: 0.72rem;
}
.ff-cmt__del {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
}
.ff-cmt__body p {
  margin: 0.18rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #0f172a;
}
.ff-cmt__to {
  color: #2563eb;
  font-weight: 700;
}
.ff-cmt__ans,
.ff-cmt__more {
  border: 0;
  background: none;
  padding: 0.25rem 0;
  color: #64748b;
  font: 700 0.78rem/1.2 system-ui, sans-serif;
}
.ff-cmt__kids {
  margin-top: 0.15rem;
  padding-left: 0.15rem;
}
.ff-cmt.is-nested .ff-ava {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}
.ff-cmt__medias {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.ff-cmt__media {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}
.ff-cmt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-cmt__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
}
.ff-cmt__play::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border: 5px solid transparent;
  border-left: 8px solid #fff;
}
.ff-comments__reply {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  color: #2563eb;
  font: 700 0.8rem/1.2 system-ui, sans-serif;
  background: #eff6ff;
}
.ff-comments__reply button {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
}
.ff-comments__attach {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
}
.ff-cmt-file {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}
.ff-cmt-file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-cmt-file button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}
.ff-comments__bar {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.25rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #eef2f5;
}
.ff-comments__clip {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%230f172a' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>") center / 1.25rem no-repeat;
  flex: 0 0 auto;
}
.ff-comments__bar textarea {
  flex: 1;
  min-height: 44px;
  max-height: 7.5rem;
  resize: none;
  border: 0;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 0.62rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
}
.ff-comments__send {
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
}
.ff-comments__send svg { display: block; }
.ff-side__btn,
.ff-like {
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font: inherit;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.ff-side__btn span,
.ff-like span { font-size: 1.25rem; line-height: 1; }
.ff-like.is-on { color: #ff2d55; background: #fff; }
.ff-ico {
  width: 1.42rem;
  height: 1.42rem;
  display: inline-block;
  flex: 0 0 auto;
  transform: translateZ(0);
}
.ff-ico--heart {
  width: 1.38rem;
  height: 1.38rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
}
.ff-like.is-on .ff-ico--heart {
  fill: currentColor;
  stroke: currentColor;
}
.ff-like,
.ff-side__btn {
  overflow: visible;
}
.ff-like.is-pop .ff-ico--heart {
  animation: ff-like-pop 0.42s cubic-bezier(0.2, 1.55, 0.4, 1);
  transform-origin: center center;
  will-change: transform;
}
@keyframes ff-like-pop {
  0% { transform: scale(0.45); }
  55% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.ff-ico--eye {
  fill: currentColor;
  background: none;
  filter: none;
  -webkit-mask: none;
  mask: none;
}
.ff-media,
.ff-carousel {
  position: relative;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ff-media img,
.ff-carousel img,
.ff-media video,
.ff-carousel video {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ff-mute {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ff-mute.is-scrub,
.ff-story-view__snd.is-scrub { background: rgba(15, 23, 42, 0.82); }
.ff-vol {
  position: fixed;
  z-index: 90;
  width: 44px;
  height: 148px;
  padding: 12px 0 10px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  touch-action: none;
}
.ff-vol.is-on {
  display: flex;
  pointer-events: auto;
}
.ff-vol__track {
  flex: 1 1 auto;
  width: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}
.ff-vol__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #fff;
  border-radius: 3px;
}
.ff-carousel .ff-mute { bottom: 2.45rem; }
.ff-mute.is-muted .ff-mute__on { display: none; }
.ff-mute:not(.is-muted) .ff-mute__off { display: none; }
.ff-mute svg { display: block; }
.ff-media-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem 1.4rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.12) 70%, transparent);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.ff-media-bar > * { pointer-events: auto; }
.ff-media-bar .ff-ava,
.ff-media .ff-media-bar img.ff-ava,
.ff-collage .ff-media-bar img.ff-ava,
.ff-carousel .ff-media-bar img.ff-ava {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  flex: 0 0 auto;
  object-fit: cover;
  font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.ff-media-bar__who {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: 0.86rem;
  overflow: hidden;
  white-space: nowrap;
}
.ff-media-bar__who .ff-author,
.ff-media-bar__who > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-media-bar .ff-author { color: #fff; }
.ff-follow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  border: 0;
  background: transparent;
  color: #9be7e0;
  font: 400 0.78rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.01em;
  padding: 0.12rem 0.1rem 0.12rem 0.12rem;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
.ff-follow__dot {
  margin-right: 0.28rem;
  font-weight: 500;
  opacity: 0.55;
}
.ff-follow__txt {
  display: inline-block;
  transform-origin: left center;
}
.ff-follow.is-on {
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}
.ff-follow.is-pop .ff-follow__txt {
  animation: ff-follow-in 0.62s ease;
}
@keyframes ff-follow-in {
  0% { opacity: 0; transform: translateY(5px) scale(0.88); letter-spacing: 0.12em; filter: blur(0.4px); }
  38% { opacity: 1; transform: translateY(-1px) scale(1.06); letter-spacing: 0.02em; filter: none; }
  100% { opacity: 1; transform: none; letter-spacing: 0.01em; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-follow.is-pop .ff-follow__txt { animation: none; }
}
.ff-follow--ink {
  color: #0f766e;
}
.ff-follow--ink.is-on {
  color: #94a3b8;
}
.ff-cap__top .ff-follow {
  vertical-align: baseline;
}
.ff-dots { flex: 0 0 auto; }
.ff-dots__btn {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}
.ff-dots__btn svg { display: block; }
.ff-dots--ink .ff-dots__btn { color: #0f172a; }
.ff-cap__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: space-between;
}
.ff-cap__top .ff-kind { margin-bottom: 0; }
.ff-post-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ff-post-menu[hidden] { display: none; }
.ff-post-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-post-menu__sheet {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0.45rem 0.55rem calc(0.65rem + var(--sab));
  box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.16);
}
.ff-post-menu__sheet button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  border: 0;
  background: transparent;
  font: 700 1rem/1.2 system-ui, sans-serif;
  padding: 0 0.7rem;
  color: var(--ink);
}
.ff-post-menu__sheet .is-danger { color: #b91c1c; }
.ff-post-menu__sheet #post-menu-cancel {
  margin-top: 0.2rem;
  color: #64748b;
  font-weight: 650;
  border-top: 1px solid #eef2f5;
}
.ff-post-menu__sheet #compose-media-cancel {
  margin-top: 0.2rem;
  color: #64748b;
  font-weight: 650;
  border-top: 1px solid #eef2f5;
}
.ff-heart-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: 5.6rem;
  height: 5.6rem;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.18) rotate(var(--rot, 0deg));
  animation: ff-heart-pop 0.86s cubic-bezier(0.16, 0.84, 0.32, 1.15) forwards;
  filter: drop-shadow(0 10px 22px rgba(255, 45, 85, 0.38));
}
.ff-heart-burst__svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #ff2d55;
  stroke: #fff;
  stroke-width: 0.55;
  overflow: visible;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35));
}
.ff-heart-burst__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.35);
  animation: ff-heart-spark 0.72s ease-out forwards;
}
@keyframes ff-heart-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.12) rotate(var(--rot, 0deg)); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.22) rotate(var(--rot, 0deg)); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(0.96) rotate(var(--rot, 0deg)); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08) rotate(var(--rot, 0deg)); }
}
@keyframes ff-heart-spark {
  0% { opacity: 0; transform: rotate(var(--ang, 0deg)) translateY(0) scale(0.2); }
  22% { opacity: 1; transform: rotate(var(--ang, 0deg)) translateY(-2.35rem) scale(1); }
  100% { opacity: 0; transform: rotate(var(--ang, 0deg)) translateY(-3.55rem) scale(0.15); }
}
.ff-vid-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 4.1rem;
  height: 4.1rem;
  margin: -2.05rem 0 0 -2.05rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  pointer-events: none;
  animation: ff-vid-flash 0.48s ease-out forwards;
}
.ff-vid-flash i {
  width: 0.36rem;
  height: 1.28rem;
  border-radius: 2px;
  background: #fff;
}
.ff-vid-flash.is-play { gap: 0; }
.ff-vid-flash.is-play i:first-child {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-style: solid;
  border-width: 0.62rem 0 0.62rem 1.05rem;
  border-color: transparent transparent transparent #fff;
  margin-left: 0.18rem;
}
.ff-vid-flash.is-play i:last-child { display: none; }
@keyframes ff-vid-flash {
  0% { opacity: 0; transform: scale(0.72); }
  28% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.ff-author {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}
.ff-profile-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.ff-pr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  min-height: 40px;
}
.ff-pr-top__sp {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.ff-pr-top .ff-dots__btn {
  margin-left: auto;
}
.ff-pr-head__body {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-pr-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}
.ff-pr-head__text {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-pr-head__text h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  word-break: break-word;
}
.ff-pr-head__text .ff-ig-handle,
.ff-pr-head__text .ff-muted {
  margin: 0.12rem 0 0;
}
.ff-pr-dm {
  flex: 0 0 auto;
  align-self: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem !important;
  width: auto !important;
  white-space: nowrap;
}
.ff-pr-bio {
  margin: 0.55rem 0 0.15rem;
}
.ff-stats--pr {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0.65rem 0 0.85rem;
  width: 100%;
}
.ff-stats--pr > div,
.ff-stats--pr > .ff-stat-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.2rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  line-height: 1.15;
}
.ff-stats--pr b {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}
.ff-pr-menu {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ff-pr-menu[hidden] { display: none; }
.ff-pr-menu__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-pr-menu__sheet {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0.45rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0px));
  display: grid;
}
.ff-pr-menu__sheet button {
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
}
.ff-pr-menu__sheet button:active { background: #f8fafc; }
.ff-pr-menu__sheet .is-danger { color: #b91c1c; }
.ff-pr-ava {
  flex: 0 0 auto;
  border: 0;
  padding: 3px;
  background: transparent;
  border-radius: 50%;
}
.ff-pr-ava.has-story {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
}
.ff-pr-ava .ff-ava {
  box-shadow: none;
  border: 3px solid #fff;
}
.ff-ava {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #ccfbf1;
  flex: 0 0 auto;
}
.ff-ava--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-dark);
}
.ff-ava--ph svg { display: block; color: #1a1d21; }
.ff-stats {
  display: flex;
  gap: 1.1rem;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ff-stats b { display: block; color: var(--ink); font-size: 1.05rem; }
.ff-stats--ico > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.28rem;
}
.ff-stats--ico .ff-admin-ico {
  width: 14px;
  height: 14px;
  color: #0f766e;
}
.ff-admin-push {
  display: grid;
  gap: 0.45rem;
  max-width: 28rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.8rem 0.85rem;
  background: #f8fafc;
  border-radius: 14px;
}
.ff-admin-push h3 { margin: 0; font-size: 1rem; }
.ff-admin-push input,
.ff-admin-push textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}
.ff-admin-push .ff-btn { width: fit-content; }
.ff-admin-kpis { flex-wrap: wrap; gap: 0.55rem 0.85rem; }
.ff-admin-kpis > div { min-width: 5.2rem; max-width: 11rem; }
.ff-admin-kpis .ff-admin-delta { display: block; margin-top: 0.12rem; font-size: 0.72rem; }
.ff-admin-msk {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel2, #f1f5f9) 88%, #0ea5e9 12%);
  border: 1px solid color-mix(in srgb, var(--border, #e2e8f0) 70%, #38bdf8 30%);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text, #0f172a);
}
.ff-admin-msk b {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.ff-admin-msk span {
  color: var(--muted, #64748b);
  font-size: 0.78rem;
}
.ff-admin-delta { color: #64748b; font-weight: 650; }
.ff-admin-delta.is-up { color: #15803d; }
.ff-admin-delta.is-down { color: #b91c1c; }
.ff-admin-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0.75rem;
}
@media (min-width: 700px) {
  .ff-admin-charts { grid-template-columns: 1fr 1fr; }
}
.ff-admin-chart {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.55rem 0.65rem 0.45rem;
}
.ff-admin-chart__hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}
.ff-admin-chart__hd b {
  font-size: 1.05rem;
  color: #0f172a;
}
.ff-admin-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 72px;
}
.ff-admin-chart__bars i {
  flex: 1 1 0;
  display: block;
  min-width: 0;
  background: #0f766e;
  border-radius: 3px 3px 0 0;
}
.ff-admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
}
.ff-admin-pager .ff-admin-btn:disabled { opacity: 0.4; }
.ff-admin-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.18rem;
}
.ff-admin-acts-n {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 650;
}
.ff-admin-acts-n span { display: inline-flex; align-items: center; }
.ff-admin-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.ff-admin-row__body { min-width: 0; flex: 1 1 auto; }
.ff-admin-thumbs {
  display: flex;
  gap: 0.28rem;
  flex: 0 0 auto;
}
.ff-admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}
.ff-admin-thumb img,
.ff-admin-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-admin-thumb--vid::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: none;
}
.ff-admin-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.45rem;
}
.ff-admin-media img,
.ff-admin-media video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}
.ff-admin-media video { object-fit: contain; background: #0b1220; }
.ff-admin-row p { margin: 0.15rem 0 0; font-size: 0.92rem; }
.ff-admin-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.ff-admin-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}
.ff-admin-btn--danger { color: #b91c1c; border-color: #fecaca; }
.ff-admin-online {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #15803d;
  font-weight: 650;
}
.ff-admin-online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.ff-admin-user {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.ff-admin-user__body { min-width: 0; flex: 1 1 auto; }
.ff-admin-user__body p { margin: 0.1rem 0 0; }
.ff-admin-ban-durs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.75rem;
}
.ff-admin-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
#ff-admin > .ff-fold:first-child { margin-top: 0; }
.ff-admin-fold { box-shadow: none; }
.ff-admin-fold .ff-admin-push {
  margin: 0 0 0.65rem;
  padding: 0;
  background: transparent;
  max-width: none;
}
.ff-admin-picks {
  display: grid;
  gap: 0.4rem;
}
.ff-admin-pick {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ff-admin-pick.is-on {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.ff-admin-pick .ff-admin-thumbs { margin: 0; }
.ff-admin-pick .ff-admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.ff-admin-pick span { min-width: 0; display: grid; gap: 0.12rem; }
.ff-admin-pick b { font-size: 0.84rem; }
.ff-admin-pick small {
  color: var(--muted);
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-mini-post {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.ff-st-pending { color: #b45309; font-size: 0.78rem; font-weight: 700; }
.ff-st-rejected { color: #b91c1c; font-size: 0.78rem; font-weight: 700; }
.ff-profile-sheet { max-height: min(92dvh, 860px); overflow-y: auto; }
.ff-pr-acts {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0.1rem;
}
.ff-pr-acts .ff-btn {
  flex: 1 1 0;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.32rem 0.55rem;
  font-size: 0.86rem;
  border-radius: 10px;
}
.ff-pr-acts--sec {
  margin: 0;
  gap: 0.15rem;
  justify-content: center;
}
.ff-pr-link {
  flex: 0 1 auto;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.ff-pr-link:active { background: #f1f5f9; }
#pr-ban.ff-pr-link { color: #b91c1c; }
html.ff-kb-on #screen-auth {
  height: var(--ff-vv-h, 100dvh);
  max-height: var(--ff-vv-h, 100dvh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-ig-handle { margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.ff-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0.75rem -0.15rem 0;
}
.ff-ig-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #e2e8f0;
  overflow: hidden;
}
.ff-ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-ig-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.4rem;
  font-size: 0.68rem;
  color: #475569;
  text-align: center;
}
.ff-ig-play {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  z-index: 1;
}
.ff-find { padding: 0.15rem 0.15rem 0.45rem; }
.ff-find input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fff;
}
.ff-find-hit {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 0.45rem 0.1rem;
}
.ff-find-hit .ff-ava { width: 40px; height: 40px; }
.ff-find-hit i { color: var(--muted); font-style: normal; }
.ff-compose__feed {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--ink);
}
.ff-pr-post { margin-top: 0.6rem; }
.ff-me-form label { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.ff-me-form input,
.ff-me-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #f8fafc;
}
.ff-post .ff-cap {
  position: static;
  padding: 0.7rem 0.85rem 0.8rem;
  background: none;
  color: var(--ink);
}
.ff-post .ff-cap b { display: inline; margin-bottom: 0; }
.ff-post .ff-cap p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}
.ff-post .ff-cap__text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-post.is-open .ff-cap__text {
  display: inline;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.ff-cap__wrap {
  position: relative;
  margin-top: 0.25rem;
}
.ff-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #f0fdfa;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 750;
  font-size: 0.88rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  margin: 0.45rem 0 0.15rem;
  border-radius: 10px;
}
.ff-post .ff-more {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 1.35rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 0.9rem, #fff 100%);
  color: #0f766e;
  font: 700 0.72rem/1.45 system-ui, sans-serif;
}
.ff-post.is-open .ff-more {
  position: static;
  display: inline;
  padding: 0;
  margin: 0 0 0 0.35rem;
  background: none;
  vertical-align: baseline;
}
.ff-kind {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.ff-fab {
  position: fixed;
  right: max(1rem, var(--sar));
  bottom: calc(var(--nav) + 0.7rem + var(--sab));
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 21;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.ff-compose {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.ff-compose.is-kb {
  top: var(--ff-vv-top, 0px);
  height: var(--ff-vv-h, 100dvh);
  bottom: auto;
}
.ff-compose[hidden],
.ff-fab[hidden],
.ff-story-view[hidden],
.ff-zoom[hidden],
[hidden] {
  display: none !important;
}
.ff-compose__sheet {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 0;
  padding: calc(0.45rem + var(--sat)) 1rem calc(0.45rem + var(--sab));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  box-shadow: none;
}
.ff-composer {
  height: 100%;
  max-height: none;
  overflow: hidden;
}
.ff-composer__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.ff-composer__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}
.ff-composer__x {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
}
.ff-composer__go {
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.ff-composer__go:disabled { opacity: 0.55; }
.ff-composer__me {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  flex: 0 0 auto;
  min-height: 40px;
}
.ff-composer__me .ff-ava,
.ff-composer__me img.ff-ava {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex: 0 0 auto;
  object-fit: cover;
}
.ff-composer__me small { display: block; font-weight: 500; color: var(--muted); }
.ff-compose.is-kb .ff-composer__me,
.ff-compose.is-kb .ff-composer__hint { display: none; }
.ff-compose.is-kb .ff-story-btns { display: flex; }
.ff-compose.is-kb .ff-stmake__tools { display: flex; }
#story-compose.is-kb .ff-stmake__sheet {
  overflow: hidden;
  padding-bottom: 0.4rem;
}
#story-compose.is-kb .ff-stmake__stage {
  flex: 1 1 auto;
  min-height: 0;
}
#story-compose.is-kb .ff-stmake__tools,
#story-compose.is-kb .ff-story-btns {
  display: none !important;
}
#story-compose.is-kb #story-text {
  flex: 0 0 auto;
  min-height: 3.4rem;
  max-height: 28vh;
}
.ff-compose__sheet textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 0.55rem;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  resize: none;
  min-height: 6.5rem;
  flex: 1 1 auto;
  box-sizing: border-box;
}
.ff-composer #compose-text {
  min-height: 4rem;
  max-height: 28vh;
  flex: 0 1 auto;
}
#story-text { min-height: 4.5rem; }
.ff-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}
.ff-stmake {
  background: #0b0f14;
  color: #fff;
}
.ff-stmake__sheet {
  background: #0b0f14;
  color: #fff;
  gap: 0.65rem;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-stmake__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.ff-stmake__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.02rem;
  text-align: center;
  font-weight: 750;
}
.ff-stmake__x,
.ff-stmake__send {
  border: 0;
  min-height: 40px;
  font: inherit;
  font-weight: 750;
}
.ff-stmake__x {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}
.ff-stmake__send {
  background: #fff;
  color: #0b0f14;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
}
.ff-stmake__send:disabled { opacity: 0.5; }
.ff-stmake__stage {
  flex: 1 1 auto;
  min-height: 8rem;
  border-radius: 18px;
  background: #141a22;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ff-stcam {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}
.ff-stcam video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.ff-stcam:not(.is-live) video {
  opacity: 0;
  visibility: hidden;
}
.ff-stcam.is-live video {
  opacity: 1;
  visibility: visible;
}
.ff-stcam video::-webkit-media-controls,
.ff-stcam video::-webkit-media-controls-start-playback-button,
.ff-stcam video::-webkit-media-controls-overlay-play-button,
.ff-stcam video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}
.ff-stcam__splash {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.4rem;
  text-align: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(56, 189, 248, 0.22), transparent 52%),
    linear-gradient(180deg, #152033 0%, #0b1220 58%, #070b12 100%);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.ff-stcam.is-live .ff-stcam__splash {
  opacity: 0;
  visibility: hidden;
}
.ff-stcam__splash p {
  margin: 0;
  font: 750 1.42rem/1.15 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 18px rgba(56, 189, 248, 0.28);
}
.ff-stcam__splash small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 600;
}
.ff-stcam__rec {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 8;
  font-variant-numeric: tabular-nums;
}
.ff-stcam__review {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
}
.ff-stcam__review[hidden] {
  display: none !important;
}
.ff-stcam__review video {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}
.ff-stcam__review-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.ff-stcam.is-review .ff-stcam__bar,
.ff-stcam.is-review .ff-stcam__rec,
.ff-stcam.is-review .ff-stcam__splash {
  visibility: hidden;
  pointer-events: none;
}
.ff-stcam__side--ok {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.ff-stcam__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.65rem 0.5rem calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}
.ff-stcam__shot {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25);
  padding: 0;
  box-sizing: border-box;
  position: relative;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform: none;
}
.ff-stcam__shot:active,
.ff-stcam__shot:focus,
.ff-stcam.is-rec .ff-stcam__shot,
.ff-stcam.is-rec .ff-stcam__shot:active {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  transform: none;
  border-width: 4px;
}
.ff-stcam.is-rec .ff-stcam__shot {
  background: transparent;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25);
}
.ff-stcam.is-rec .ff-stcam__shot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #be123c;
  pointer-events: none;
}
.ff-stcam__side {
  min-width: 4.4rem;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font: 700 0.78rem/1.2 system-ui, sans-serif;
}
.ff-stcam__fail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: #141a22;
}
.ff-stcam__fail[hidden] { display: none; }
.ff-stcam__fail button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font: 700 0.9rem/1 system-ui, sans-serif;
}
.ff-stcam__picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0 0.85rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(2, 6, 23, 0.45);
}
.ff-stcam__picker[hidden] { display: none; }
.ff-stcam__picker-card {
  width: min(22rem, 100%);
  border-radius: 18px 18px 14px 14px;
  background: #0f172a;
  color: #fff;
  padding: 0.85rem 0.85rem 0.7rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.ff-stcam__picker-title {
  margin: 0 0 0.55rem;
  font: 750 0.95rem/1.2 system-ui, sans-serif;
}
.ff-stcam__picker-list {
  display: grid;
  gap: 0.4rem;
  max-height: 42vh;
  overflow: auto;
}
.ff-stcam__pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  font: 650 0.92rem/1.2 system-ui, sans-serif;
}
.ff-stcam__pick.is-on {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.18);
}
.ff-stcam__pick em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(125, 211, 252, 0.95);
}
.ff-stcam__picker-x {
  margin-top: 0.65rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 700 0.9rem/1 system-ui, sans-serif;
}
.ff-stmake__empty {
  flex: 1;
  display: grid;
  place-content: center;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.5rem 1rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(56, 189, 248, 0.18), transparent 52%),
    linear-gradient(180deg, #152033 0%, #0b1220 100%);
}
.ff-stmake__empty p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: #fff;
}
.ff-stmake__empty small { color: rgba(255,255,255,0.48); }
.ff-stmake__preview {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #0b0f14;
  position: relative;
}
.ff-stmake__preview[hidden] { display: none !important; }
.ff-stmake__preview img,
.ff-stmake__preview video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #0b0f14;
}
.ff-stmake #story-grid,
.ff-stmake #story-grid.ff-composer__strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.42rem;
  margin: 0;
  padding: 0.5rem 0.55rem 0.62rem;
  background: #111827;
  grid-template-columns: none;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
  align-content: start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-stmake #story-grid::-webkit-scrollbar { display: none; }
.ff-stmake #story-grid .ff-composer__tile,
.ff-stmake #story-grid .ff-composer__addtile {
  flex: 0 0 3.55rem;
  width: 3.55rem;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
}
.ff-stmake #story-grid .ff-composer__tile.is-on {
  box-shadow: 0 0 0 2px #fff;
}
.ff-stmake .ff-composer__tile,
.ff-stmake .ff-composer__addtile {
  background: #1c2430;
  aspect-ratio: 9 / 16;
}
.ff-stmake #story-grid[hidden] { display: none !important; }
.ff-stmake,
.ff-stmake__tools,
.ff-stmake__tool,
.ff-stmake__tool b,
.ff-stmake__top,
.ff-stmake__x,
.ff-stmake__send,
.ff-stcam__side,
.ff-stcam__bar,
.ff-stcam__rec,
.ff-stcam__pick,
.ff-stcam__picker-x {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ff-stmake #story-text {
  min-height: 3.2rem;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  caret-color: #fff;
}
.ff-stmake #story-text::placeholder { color: rgba(255,255,255,0.42); }
.ff-stmake__bar {
  margin: 0;
  background: #2563eb;
  color: #fff;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-weight: 750;
  font-size: 0.9rem;
}
.ff-stmake__bar.is-work {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  background-size: 180% 100%;
  animation: ff-stbar 1.1s linear infinite;
}
@keyframes ff-stbar {
  to { background-position: 180% 0; }
}
.ff-stmake__bar.is-err { background: #be123c; animation: none; }
.ff-stmake__bar.is-ok { background: #0f766e; animation: none; }
.ff-story-btns {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.ff-stmake__tools {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.15rem 0 0.35rem;
}
.ff-stmake__tool {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.38rem;
  min-height: 76px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  padding: 0;
}
.ff-stmake__tool b {
  font-size: 0.75rem;
  font-weight: 650;
  color: rgba(255,255,255,0.78);
}
.ff-stmake__fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-stmake__empty .ff-stmake__fab {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 0.15rem;
}
.ff-stmake__ico {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  background: #fff;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.ff-stmake__ico--photo {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
}
.ff-stmake__ico--video {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>");
}
.ff-stmake__ico--gallery {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>");
}
.ff-stmake__ico--link {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3.9 12a5 5 0 0 1 5-5h4v2h-4a3 3 0 0 0 0 6h4v2h-4a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4V7z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3.9 12a5 5 0 0 1 5-5h4v2h-4a3 3 0 0 0 0 6h4v2h-4a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4V7z'/></svg>");
}
.ff-stmake .ff-story-btnrow {
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 0.7rem 0.75rem 0.75rem;
}
.ff-stmake .ff-story-btnrow input {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 12px;
  min-height: 44px;
}
.ff-stmake .ff-story-btnrm {
  background: #e2e8f0;
  color: #0f172a;
}
.ff-composer__clip {
  position: relative;
  overflow: hidden;
}
.ff-story-btnrow {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  position: relative;
}
.ff-story-btnrow input {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  min-height: 44px;
  box-sizing: border-box;
}
.ff-story-btnrm {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
}
.ff-story-view__cap a.ff-link-in {
  color: #fff;
}
.ff-story-view__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.ff-story-cta {
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  min-height: 44px;
}
.ff-composer__stage {
  flex: 1 1 auto;
  min-height: 12rem;
  border-radius: 16px;
  background: #0b1220;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ff-livecam {
  position: fixed;
  inset: 0;
  z-index: 80;
  border-radius: 0;
}
.ff-composer__empty {
  flex: 1;
  display: grid;
  place-content: center;
  place-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.4rem 1rem;
  min-height: 12rem;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
}
.ff-composer__empty p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #fff;
}
.ff-composer__empty small { color: rgba(255, 255, 255, 0.5); }
.ff-composer__fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  margin-bottom: 0.1rem;
}
.ff-composer__fab .ff-stmake__ico { background: #fff; }
.ff-composer__hero {
  flex: 1 1 auto;
  min-height: 12rem;
  position: relative;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-composer__hero img,
.ff-composer__hero video,
.ff-composer__hero .ff-composer__ph {
  width: 100%;
  height: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  background: #0b1220;
}
.ff-composer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.15rem 0 0.2rem;
  flex: 0 1 auto;
  max-height: 34vh;
  overflow-y: auto;
}
.ff-composer__strip,
.ff-composer #compose-grid {
  display: flex;
  grid-template-columns: none;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.5rem;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
  background: #111827;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-composer #compose-grid::-webkit-scrollbar { display: none; }
.ff-composer #compose-grid[hidden] { display: none !important; }
.ff-composer__strip .ff-composer__tile,
.ff-composer__strip .ff-composer__addtile,
.ff-composer #compose-grid .ff-composer__tile,
.ff-composer #compose-grid .ff-composer__addtile {
  flex: 0 0 3.7rem;
  width: 3.7rem;
  aspect-ratio: 1;
  border-radius: 10px;
}
.ff-composer #compose-grid .ff-composer__tile.is-on {
  box-shadow: 0 0 0 2px #fff;
}
.ff-compose.is-kb .ff-composer__grid {
  max-height: 4.8rem;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 4.6rem;
  overflow-x: auto;
  overflow-y: hidden;
}
.ff-compose.is-kb .ff-composer__stage { min-height: 0; }
.ff-compose.is-kb .ff-composer__hero { min-height: 5.2rem; }
.ff-compose.is-kb .ff-composer__hero img,
.ff-compose.is-kb .ff-composer__hero video { max-height: 22vh; }
.ff-compose.is-kb .ff-composer__empty { min-height: 6rem; padding: 0.7rem; }
.ff-composer__tile,
.ff-composer__addtile {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}
.ff-composer__tile img,
.ff-composer__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-composer__tile video::-webkit-media-controls,
.ff-composer__tile video::-webkit-media-controls-start-playback-button,
.ff-composer__tile video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0;
}
.ff-composer__spin {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}
.ff-composer__spin i {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  animation: ff-spin 0.7s linear infinite;
}
.ff-composer__ok {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 2;
}
.ff-composer__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #1e293b;
}
.ff-composer__ph--video {
  background: #1e293b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>") center / 2.2rem no-repeat;
}
@keyframes ff-spin {
  to { transform: rotate(360deg); }
}
.ff-composer__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.85rem;
  line-height: 22px;
}
.ff-composer__addtile {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 1.6rem;
}
.ff-composer__addtile--cam {
  border: 0;
  background: #1c2430;
  color: #fff;
  display: grid;
  place-items: center;
}
.ff-composer__addtile--cam span {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  margin: auto;
  background: #fff;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
}
.ff-stmake .ff-composer__addtile--cam {
  background: #243044;
}
.ff-composer__st {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  pointer-events: none;
}
.ff-composer__st.is-ok { background: rgba(13, 148, 136, 0.88); }
.ff-composer__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.ff-composer__tile.is-busy .ff-composer__play { opacity: 0.35; }
.ff-composer__tools {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.4rem;
}
.ff-composer__tools .ff-composer__emo {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-composer__clip {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1a1d21;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-composer__clip .ff-stmake__ico {
  background: #0f766e;
}
.ff-composer__tool {
  border: 0;
  background: #ecfdf5;
  color: var(--accent-dark);
  border-radius: 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0 0.85rem;
}
.ff-composer__emo {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
}
.ff-composer__emo button {
  flex: 0 0 auto;
  border: 0;
  background: #f1f5f9;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}
.ff-composer__hint { margin: 0; color: var(--muted); font-size: 0.78rem; }
.ff-story-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0b1220;
  color: #fff;
}
.ff-story-view::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(7.2rem + var(--sat));
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0.18) 72%,
    transparent 100%
  );
}
.ff-story-view__bars {
  display: flex;
  gap: 3px;
  padding: 0.7rem 0.7rem 0.4rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--sat);
  z-index: 2;
}
.ff-story-view__bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.28);
  border-radius: 99px;
  overflow: hidden;
}
.ff-story-view__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.ff-story-view__bar.is-done i { width: 100%; }
.ff-story-view__bar.is-on i { animation: ffStoryFill 4.5s linear forwards; }
.ff-story-view__bar.is-wait i { width: 0; animation: none; }
@keyframes ffStoryFill { from { width: 0; } to { width: 100%; } }
.ff-story-view__top {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1.3rem + var(--sat));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.75rem 1.35rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.45);
}
.ff-story-view__author {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
  text-shadow: inherit;
}
.ff-story-view__author--plain {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}
.ff-story-view__top .ff-ava {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.ff-story-view__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}
.ff-story-view__top .ff-follow--story {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0f14;
  font-weight: 750;
  font-size: 0.8rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  min-height: 32px;
  text-shadow: none;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.ff-story-view__top .ff-follow--story .ff-follow__dot { display: none; }
.ff-story-view__top .ff-follow--story.is-on {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}
.ff-story-view__subbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(4.35rem + var(--sab));
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}
.ff-story-view__subbar[hidden] { display: none !important; }
.ff-story-view__subbar .ff-follow--story-wide {
  pointer-events: auto;
  flex: 0 1 auto;
  max-width: 18rem;
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #0b0f14;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  min-height: 46px;
  text-shadow: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.ff-story-view__subbar .ff-follow--story-wide .ff-follow__dot { display: none; }
.ff-story-view__x {
  margin-left: auto;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-shadow: none;
}
.ff-story-view__del {
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
}
.ff-story-view__top .ff-follow {
  margin-left: 0;
  color: #9be7e0;
}
.ff-story-view__snd {
  position: absolute;
  right: 0.75rem;
  bottom: calc(1.2rem + var(--sab));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-size: 0;
}
.ff-story-view__snd.is-off { opacity: 0.85; }
.ff-story-view__snd.ff-mute.is-muted .ff-mute__on { display: none; }
.ff-story-view__snd.ff-mute:not(.is-muted) .ff-mute__off { display: none; }
.ff-story-view__snd svg { display: block; width: 20px; height: 20px; }
.ff-story-view__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  z-index: 2;
}
.ff-story-view__media.is-loading {
  opacity: 0;
}
.ff-story-view__media.is-ready {
  opacity: 1;
  transition: opacity 0.18s ease;
}
.ff-story-view__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1220;
}
.ff-story-view__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 1rem calc(3.2rem + var(--sab));
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  z-index: 4;
  white-space: pre-wrap;
  pointer-events: auto;
}
.ff-story-view__views {
  position: absolute;
  left: 0.85rem;
  bottom: calc(0.75rem + var(--sab));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}
.ff-story-view__views b { font-weight: 800; }
.ff-story-view__views span { font-weight: 600; opacity: 0.9; }
.ff-story-view__views svg { display: block; flex: 0 0 auto; opacity: 0.95; }
.ff-story-view__hit {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 42%;
  z-index: 3;
}
.ff-story-view__hit--l { left: 0; }
.ff-story-view__hit--r { right: 0; }
.ff-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
@media (max-width: 420px) {
  .ff-nav__btn { font-size: 0.5rem; }
  .ff-nav__ico { width: 2.3rem; height: 2.3rem; }
}
@media (min-width: 900px) {
  .ff { padding-top: 0; box-shadow: var(--shadow); }
}

.ff-pane--game {
  margin: 0 -1rem;
  min-height: calc(100dvh - var(--nav) - 1.4rem - var(--sab));
}
.ff-apps {
  padding: 0.15rem 0.85rem 1.1rem;
}
.ff-apps__title {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.ff-apps__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.ff-apps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem 0.4rem;
}
.ff-app {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  cursor: pointer;
  font: inherit;
}
.ff-app__ico {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.05rem;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}
.ff-app__ico svg {
  width: 2.05rem;
  height: 2.05rem;
  display: block;
}
.ff-app__soon {
  position: absolute;
  right: -0.28rem;
  top: -0.28rem;
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 0.12rem 0.32rem;
  box-shadow: 0 2px 8px rgba(146, 64, 14, 0.18);
}
.ff-app__lbl {
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  max-width: 4.7rem;
}
.ff-miniapp {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f4f5;
  overflow: hidden;
}
.ff-miniapp__hd {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.3rem;
  min-height: 2.35rem;
  background: #f4f4f5;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}
.ff-miniapp__hd h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-miniapp__tools {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}
.ff-miniapp__back {
  width: 2.05rem;
  height: 2.05rem;
  border: 0;
  background: transparent;
  color: #334155;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ff-miniapp__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.ff-miniapp--mush .ff-miniapp__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem 0.65rem 0.75rem;
}
.ff-miniapp--map .ff-miniapp__body,
.ff-miniapp--map .ff-map-compact {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.ff-miniapp--map .ff-map-top {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.2rem 0.4rem;
  gap: 0.25rem;
}
.ff-miniapp--map .ff-map-place,
.ff-miniapp--map .ff-imap__hint,
.ff-miniapp--map .ff-spots-list,
.ff-miniapp--map .ff-bathy-leg-wrap,
.ff-miniapp--map .ff-bathy-offer,
.ff-miniapp--map .ff-wiki-acts {
  display: none !important;
}
.ff-miniapp__body .ff-imap,
.ff-miniapp__body .ff-hunt__map,
.ff-miniapp__body #hm-root {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-radius: 0;
}
html.ff-miniapp-on,
html.ff-miniapp-on body {
  height: 100%;
  overflow: hidden;
  background: #f4f4f5;
}
html.ff-miniapp-on .ff,
html.ff-miniapp-on .ff-screen--main,
html.ff-miniapp-on .ff-pane--game {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f4f4f5;
}
html.ff-miniapp-on .ff-nav { display: none; }
html.ff-miniapp-on .ff-pane--game {
  margin: 0;
  min-height: 0;
  padding: 0;
}
.fq-hub-card .ff-btn { margin-top: 0.15rem; }
.ff-hunt-card { margin-top: 0.75rem; }
.ff-hunt-card .ff-btn { margin-top: 0.2rem; }
.ff-fold {
  margin-top: 0.75rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ff-fold > summary {
  padding: 0.9rem 1rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ff-fold > summary::-webkit-details-marker { display: none; }
.ff-fold > summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.ff-fold[open] > summary {
  border-bottom: 1px solid var(--line);
}
.ff-fold[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}
.ff-fold__body { padding: 0.65rem 0.85rem 0.95rem; }
.ff-wip-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  vertical-align: middle;
}
.ff-fold--wip > summary {
  align-items: center;
}
.ff-games-wip {
  display: grid;
  gap: 0.45rem;
}
.ff-games-wip__note {
  margin: 0 0 0.15rem;
  font-size: 0.86rem;
}
.ff-games-wip .ff-btn {
  width: 100%;
}
.ff-hunt.is-embed {
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.ff-hunt.is-embed .ff-hunt__top { display: none; }
.ff-miniapp--map #hm-root,
.ff-miniapp--map .ff-hunt {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.ff-miniapp--map .ff-hunt.is-embed .ff-hunt__spoil {
  display: none;
}
.ff-miniapp--map .ff-hunt.is-embed .ff-hunt__st,
.ff-miniapp--map .ff-hunt.is-embed .ff-msg {
  flex: 0 0 auto;
  margin: 0 0.4rem 0.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
}
.ff-miniapp--map .ff-hunt.is-embed .ff-hunt__tools {
  flex: 0 0 auto;
  padding: 0.2rem 0.35rem;
  margin: 0;
  align-items: center;
}
.ff-miniapp--map .ff-hunt.is-embed .ff-hunt__go {
  flex: 0 0 auto;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
}
.ff-miniapp--map .ff-map-top > div:first-child:not(.ff-map-top__acts) {
  display: none;
}
.ff-miniapp--map .ff-imap__fs,
.ff-miniapp--map #hm-fs {
  display: none;
}
.ff-wiki-frame {
  width: 100%;
  height: min(52vh, 400px);
  border: 0;
  border-radius: 12px;
  background: #dbe4ee;
}
.ff-wiki-acts {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.ff-wiki-acts .ff-btn { flex: 1; }
.ff-wiki {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: #0b1220;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.ff-wiki[hidden] { display: none !important; }
.ff-wiki__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(0.45rem + var(--sat)) 0.7rem 0.4rem;
  flex: 0 0 auto;
}
.ff-wiki__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.02rem;
  text-align: center;
}
.ff-wiki__x,
.ff-wiki__spacer {
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 0.75rem;
  font: inherit;
}
.ff-wiki__spacer {
  width: 40px;
  padding: 0;
  background: transparent;
  visibility: hidden;
}
.ff-wiki__x {
  width: 40px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.ff-wiki__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #f4f7fb;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
.ff-wiki__body .ff-imap {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-radius: 0;
}
.ff-wiki__body .ff-map-top,
.ff-wiki__body .ff-imap__hint,
.ff-wiki__body .ff-bathy-leg-wrap,
.ff-wiki__body .ff-spot-card,
.ff-wiki__body .ff-imap__save {
  display: none;
}
.ff-wiki__body [id$="-wst"] {
  display: block;
  margin: 0;
  padding: 0.35rem 0.75rem calc(0.35rem + var(--sab));
  background: #0b1220;
  color: rgba(255, 255, 255, 0.88);
  flex: 0 0 auto;
}
.ff-wiki-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 0;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 4px rgba(15, 23, 42, 0.35);
  z-index: 4;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}
.ff-wiki-pin--hunt {
  background: #16a34a;
}
.ff-wiki-pin--place {
  background: #b45309;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 2px;
}
.ff-wiki-pin.is-on {
  background: #0f766e;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 118, 110, 0.35);
}
.ff-wiki-pinlab {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max-content;
  max-width: min(15rem, 78vw);
  transform: translate(-50%, -50%);
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.28);
}
.ff-wiki-pinlab--poly {
  transform: translate(-50%, -50%);
  z-index: 7;
}
.ff-wiki-pinlab--water { border-left: 2px solid #0284c7; }
.ff-wiki-pinlab--hunt { border-left: 2px solid #16a34a; }
.ff-wiki-pinlab--place { border-left: 2px solid #b45309; }
.ff-wiki-pinlab.is-on {
  background: #0f766e;
  color: #fff;
  border-left-color: #fff;
  font-size: 0.74rem;
  max-width: 12rem;
}
.ff-imap {
  touch-action: none;
}
.ff-hunt__svg.is-wiki {
  pointer-events: auto;
  z-index: 3;
}
.ff-hunt__svg text.ff-wiki-lab {
  text-anchor: middle;
  dominant-baseline: central;
  stroke: none;
  font: 800 12px system-ui, "Segoe UI", sans-serif;
  fill: #0f172a;
}
.ff-wiki-poly {
  fill: rgba(14, 165, 233, 0.22);
  stroke: #0284c7;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  pointer-events: auto;
  cursor: pointer;
}
.ff-wiki-poly--area {
  fill: rgba(14, 165, 233, 0.22);
  stroke: #0369a1;
  stroke-width: 1.7;
}
.ff-wiki-poly--line {
  fill: none !important;
  stroke: #0284c7;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.ff-wiki-poly--hunt {
  fill: rgba(22, 163, 74, 0.18);
  stroke: #16a34a;
}
.ff-wiki-poly--place {
  fill: none;
  stroke: #b45309;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}
.ff-wiki-poly.is-on {
  fill: rgba(15, 118, 110, 0.28);
  stroke: #0f766e;
  stroke-width: 2.4;
}
.ff-wiki-poly--line.is-on {
  fill: none !important;
  stroke: #0f766e;
  stroke-width: 3;
}
.ff-wiki-labg { pointer-events: auto; cursor: pointer; }
.ff-wiki-labbg {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(3, 105, 161, 0.35);
  stroke-width: 1;
  pointer-events: none;
}
.ff-wiki-labg.is-on .ff-wiki-labbg {
  fill: #ecfdf8;
  stroke: #0f766e;
}
.ff-wiki-lab {
  fill: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.ff-wiki-lab.is-on {
  font-size: 13px;
  fill: #0f766e;
}
.ff-wiki-pick {
  fill: #ea580c;
  stroke: #fff;
  stroke-width: 2;
  pointer-events: none;
}
.ff-admin-user__go {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
}
.ff-admin-user__go b { color: #0f766e; }
.ff-fold .ff-hunt__map { height: min(52vh, 400px); }
.ff-fold #games-wiki-box .ff-imap { height: min(52vh, 420px); min-height: 260px; }
.ff-fold .ff-hunt__map.is-fs,
.ff-imap.is-fs {
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
}
.ff-hunt {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: calc(100dvh - var(--nav) - 1.2rem - var(--sab));
  padding: 0.2rem 0 0.4rem;
}
.ff-hunt__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.ff-hunt__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}
.ff-hunt__go {
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.ff-hunt__go.is-on { background: #be123c; }
.ff-hunt__st {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 650;
}
.ff-hunt__st.is-in { background: #ccfbf1; color: #115e59; }
.ff-hunt__st.is-out { background: #ffe4e6; color: #9f1239; font-weight: 800; }
.ff-hunt__st.is-ban { background: #ffedd5; color: #9a3412; font-weight: 800; }
.ff-hunt__tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-hunt__tools .is-on { outline: 2px solid var(--accent-dark); }
.ff-hunt__map {
  flex: 1 1 auto;
  min-height: 16rem;
  height: min(52vh, 420px);
}
.ff-hunt__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.ff-hunt__svg text {
  font: 700 11px system-ui, sans-serif;
  fill: #0f172a;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke;
  text-anchor: start;
  pointer-events: none;
}
.ff-hunt__svg.is-wiki text.ff-wiki-lab {
  text-anchor: middle;
  dominant-baseline: central;
}
.ff-hunt__acc {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%);
}
.ff-hunt__me {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2563eb;
  z-index: 10;
  pointer-events: none;
}
.ff-hunt__me::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  animation: ff-me-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes ff-me-pulse {
  0% { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.ff-hunt__list { display: grid; gap: 0.35rem; }
.ff-hunt__spoil {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ff-hunt__spoil > summary {
  padding: 0.7rem 0.85rem;
  font-weight: 750;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}
.ff-hunt__spoil > summary::-webkit-details-marker { display: none; }
.ff-hunt__spoil > summary::after {
  content: "";
  float: right;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
}
.ff-hunt__spoil[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.55rem;
}
.ff-hunt__spoil .ff-hunt__list { padding: 0 0.55rem 0.7rem; }
.ff-hunt__card {
  max-width: 28rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.35rem;
}
.ff-hunt__map .ff-hunt__card {
  position: absolute;
  z-index: 6;
  width: min(18.5rem, calc(100% - 1.2rem));
  max-width: min(18.5rem, calc(100% - 1.2rem));
  max-height: min(58%, 22rem);
  overflow-y: auto;
  margin: 0;
  right: auto;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.22);
}
.ff-hunt__card[hidden] { display: none !important; }
.ff-hunt__card-top {
  position: sticky;
  top: -0.65rem;
  z-index: 1;
  margin: -0.15rem -0.15rem 0;
  padding: 0.15rem;
  background: rgba(255, 255, 255, 0.97);
  display: grid;
  gap: 0.35rem;
}
.ff-hunt__card-hd {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.ff-hunt__card-hd b {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.ff-hunt__card p { margin: 0; }
.ff-hunt__facts {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.ff-hunt__facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.08rem;
  align-items: start;
  min-width: 0;
}
.ff-hunt__facts span { color: var(--muted); font-size: 0.72rem; }
.ff-hunt__facts b {
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ff-hunt__warn { color: #9f1239; font-weight: 700; }
.ff-hunt__expand {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #475569;
}
.ff-hunt__card .ff-hunt__go {
  width: 100%;
  margin-top: 0;
  flex: 0 0 auto;
}
.ff-hunt__item {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}
.ff-hunt__item .ff-hunt__row { flex: 1; min-width: 0; }
.ff-hunt__row {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.08rem;
}
.ff-hunt__row b { font-size: 0.92rem; }
.ff-hunt__row small { color: var(--muted); }
.ff-hunt__leg {
  position: absolute;
  left: 0.45rem;
  bottom: 1.55rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: calc(100% - 4.2rem);
  pointer-events: none;
}
.ff-hunt__leg button {
  pointer-events: auto;
  border: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}
.ff-hunt__leg .is-off { opacity: 0.4; filter: grayscale(0.35); }
.ff-hunt__leg .is-pub { color: #15803d; }
.ff-hunt__leg .is-h { color: #b45309; }
.ff-hunt__leg .is-ban { color: #be123c; }
.ff-hunt__row.is-on { border-color: #0f766e; background: #f0fdfa; }
.ff-hunt__row.is-pub { border-color: #86efac; background: #f0fdf4; }
.ff-hunt__row.is-ban { border-color: #fecdd3; background: #fff1f2; }
.ff-hunt__del {
  flex: 0 0 auto;
  width: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #be123c;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}
.ff-hunt__offmap {
  position: absolute;
  left: 0.45rem;
  right: 3.2rem;
  bottom: 0.45rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  pointer-events: none;
}
.ff-hunt__offmap a {
  pointer-events: auto;
  max-width: 100%;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.fq {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: #2b1908;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}
.fq-app {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,200,0.25), transparent 40%),
    repeating-linear-gradient(-18deg, #4f8a22 0 14px, #3f7419 14px 28px);
  border: 4px solid #3b220c;
  border-radius: 18px;
  min-height: calc(100dvh - var(--nav) - 1.6rem - var(--sab));
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: 0 8px 0 #2a1608, 0 12px 24px rgba(0,0,0,0.25);
}
.fq-app--menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.4rem 1rem;
}
.fq-logo { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 #2a1608); }
.fq-title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  color: #fff8dc;
  text-shadow: 3px 3px 0 #2a1608, -1px -1px 0 #2a1608;
  letter-spacing: 0.02em;
}
.fq-tag, .fq-best {
  margin: 0;
  color: #e8f5c8;
  font-weight: 700;
  text-shadow: 1px 1px 0 #2a1608;
}
.fq-end { text-align: left; white-space: normal; line-height: 1.4; }
.fq-hud {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff3b0;
  border: 3px solid #3b220c;
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.fq-hud i { color: #b45309; font-style: normal; }
.fq-scene, .fq-mini {
  background: #fff8dc;
  border: 3px solid #3b220c;
  border-radius: 14px;
  padding: 0.75rem 0.7rem 0.85rem;
  box-shadow: 4px 4px 0 #2a1608;
  overflow: hidden;
}
.fq-art {
  margin: -0.75rem -0.7rem 0.65rem;
  overflow: hidden;
  border-bottom: 3px solid #3b220c;
  background: #1c1008;
  line-height: 0;
}
.fq-art img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 28%;
}
.fq-art--hero {
  margin: 0 0 0.7rem;
  border: 3px solid #3b220c;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #2a1608;
}
.fq-art--hero img {
  height: 168px;
  object-position: center 58%;
  border-radius: 11px;
}
.fq-mini--fish .fq-art img { height: 92px; object-position: center 45%; }
.fq-ava.fq-ava--pic {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 0;
  color: transparent;
  object-fit: cover;
  object-position: center 18%;
  background: #fff8dc;
}
.fq-mini h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.fq-hint { margin: 0 0 0.6rem; color: #6b4a1b; font-size: 0.88rem; font-weight: 650; }
.fq-who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.fq-who small { display: block; color: #7c5a2a; font-weight: 650; }
.fq-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border: 3px solid #3b220c;
  color: #fff;
  flex: 0 0 auto;
}
.fq-bubble {
  background: #fff;
  border: 2px dashed #c4a574;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 4.5rem;
  margin-bottom: 0.65rem;
}
.fq-choices, .fq-fish-act { display: grid; gap: 0.45rem; }
.fq-choice, .fq-btn, .fq-item, .fq-spot, .fq-wake, .fq-snooze {
  font: inherit;
  font-weight: 800;
  border: 3px solid #3b220c;
  border-radius: 12px;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #2a1608;
}
.fq-choice, .fq-item, .fq-spot {
  background: #ffe566;
  color: #2b1908;
  text-align: left;
}
.fq-choice:active, .fq-btn:active, .fq-item:active, .fq-spot:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2a1608;
}
.fq-btn {
  background: #7ed957;
  color: #14330a;
  text-align: center;
}
.fq-btn--go {
  background: #ffd93d;
  font-size: 1.05rem;
}
.fq-btn--ghost {
  background: #f4e4c1;
  color: #3b220c;
}
.fq-btn[disabled] { opacity: 0.45; }
.fq-alarm {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at 50% 30%, #fff, #fde68a 55%, #f59e0b);
  border: 3px solid #3b220c;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  margin-bottom: 0.55rem;
}
.fq-clock {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  color: #7f1d1d;
}
.fq-snooze {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #fda4af;
  font-size: 0.85rem;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  z-index: 2;
}
.fq-wake {
  position: absolute;
  background: #86efac;
  font-size: 0.95rem;
  z-index: 3;
  touch-action: none;
}
.fq-bar {
  height: 12px;
  background: #e7d3a1;
  border: 2px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
}
.fq-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #16a34a;
}
.fq-timer { margin: 0.4rem 0 0; font-weight: 800; text-align: center; }
.fq-items, .fq-spots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.fq-item, .fq-spot {
  display: grid;
  gap: 0.15rem;
  min-height: 84px;
}
.fq-item.is-on { background: #86efac; outline: 3px solid #166534; }
.fq-item__ico, .fq-spot span { font-size: 1.4rem; }
.fq-item small, .fq-spot small { color: #6b4a1b; font-size: 0.72rem; font-weight: 650; }
.fq-pump { height: 180px; margin: 0.4rem 0 0.6rem; }
.fq-pump__track {
  position: relative;
  width: 46px;
  height: 100%;
  margin: 0 auto;
  background: #e7d3a1;
  border: 3px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
}
.fq-pump__green {
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  background: rgba(34, 197, 94, 0.55);
}
.fq-pump__knob {
  position: absolute;
  left: 4px; right: 4px;
  height: 14px;
  background: #dc2626;
  border-radius: 8px;
  border: 2px solid #3b220c;
}
.fq-mini--fish .fq-cv {
  width: 100%;
  height: 240px;
  display: block;
  border: 3px solid #3b220c;
  border-radius: 12px;
  background: #0e7490;
  touch-action: none;
  margin-bottom: 0.5rem;
}
.fq-fishbar {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.fq-tension {
  position: relative;
  height: 16px;
  background: #fecaca;
  border: 2px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.fq-tension i {
  display: block;
  height: 100%;
  width: 50%;
  background: #22c55e;
}
.fq-tension i.is-bad { background: #dc2626; }
.fq-tension em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  color: #1c1917;
}
.fq-event {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 0.8rem;
  z-index: 5;
}
.fq-event__card {
  background: #fff8dc;
  border: 4px solid #3b220c;
  border-radius: 14px;
  padding: 0.85rem;
  width: 100%;
  max-width: 22rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: 6px 6px 0 #2a1608;
}
.fq-event__card h3 { margin: 0; }
.fq-event__card p { margin: 0 0 0.2rem; }
@media (min-width: 900px) {
  .fq-app { max-width: 420px; }
  .fq-items, .fq-spots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .fq-choice, .fq-btn, .fq-item { min-height: 46px; }
  .fq-mini--fish .fq-cv { height: 200px; }
}

.ff-ava {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 23, 42, 0.16);
}
.ff-ava--ph {
  background: #e2e8f0;
  color: #1a1d21;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.ff-ava-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  flex: 0 0 auto;
  border-radius: 50%;
}
.ff-ava-btn .ff-ava-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.ff-btn--sm {
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ff-me-form .ff-btn--sm {
  width: 100%;
  display: flex;
  margin: 0.15rem 0 0.35rem;
}

.ff-screen--main.is-chat {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ff:has(.ff-screen--main.is-shop) {
  max-width: 100%;
}
.ff-screen--main.is-shop {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-screen--main.is-me {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-pane--me {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 0 0 calc(var(--nav) + var(--sab));
}
.ff-igme__top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: calc(0.3rem + var(--sat)) 0.45rem 0.3rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ff-igme__top strong {
  font-size: 1.08rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-igme__top .ff-dots__btn { color: #0f172a; }
.ff-igme__who {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.4rem;
}
.ff-igme__ava {
  position: relative;
  border: 0;
  padding: 3px;
  background: transparent;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ff-igme__ava.has-story {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
}
.ff-igme__ava .ff-ava-edit {
  display: none;
}
.ff-igme__ava .ff-ava {
  width: 86px;
  height: 86px;
  font-size: 1.8rem;
  box-shadow: none;
  border: 3px solid #fff;
}
.ff-igme__ava.has-story .ff-ava {
  box-shadow: none;
}
.ff-igme__ava .ff-story__plus {
  width: 24px;
  height: 24px;
  right: 2px;
  bottom: 2px;
  z-index: 1;
}
.ff-igme__ava .ff-story__plus svg { width: 13px; height: 13px; }
.ff-igme__stats {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  align-self: center;
}
.ff-igme__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}
.ff-igme__stat span {
  display: block;
  line-height: 1.15;
  white-space: nowrap;
}
.ff-igme__stats b {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.1;
}
.ff-content-bonus {
  margin: 0.35rem 1rem 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 55%, #fff 100%);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.08);
}
.ff-content-bonus__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.ff-content-bonus__main b {
  font-size: 1.35rem;
  color: #0f766e;
  line-height: 1.1;
}
.ff-content-bonus__main span {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 650;
}
.ff-content-bonus__bal {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #0f766e;
  font-weight: 700;
}
.ff-content-bonus__hint {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.25;
}
.ff-post-menu__sheet .ff-content-bonus {
  margin: 0.15rem 0.45rem 0.55rem;
}
.ff-me-city-list {
  max-height: 10rem;
  overflow: auto;
  margin-top: -0.15rem;
}
.ff-stat-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.2rem 0.25rem;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 44px;
  border-radius: 10px;
}
.ff-igme__stats .ff-stat-btn b,
.ff-igme__stats .ff-igme__stat b,
.ff-stats .ff-stat-btn b {
  display: block;
}
.ff-igme__stats .ff-stat-btn span,
.ff-igme__stats .ff-igme__stat span {
  display: block;
}
.ff-stat-btn:active {
  background: rgba(15, 118, 110, 0.08);
}
.ff-stats--ico > .ff-stat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}
.ff-follow-hd {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
.ff-follow-hd h2 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1 1 auto;
  min-width: 0;
}
.ff-follow-back {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  padding: 0;
}
.ff-follow-back svg { display: block; }
.ff-follow-list {
  display: grid;
  gap: 0.05rem;
}
.ff-follow-list .ff-find-hit {
  min-height: 52px;
  padding: 0.5rem 0.15rem;
}
.ff-follow-empty {
  padding: 1.2rem 0.4rem;
  text-align: center;
}
.ff-follow-more { margin-top: 0.55rem; }
.ff-igme__friends {
  display: flex;
  gap: 0.4rem;
  padding: 0 1rem 0.65rem;
}
.ff-igme__friends .ff-btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0.45rem 0.4rem;
  font-size: 0.82rem;
}
.ff-friends-acts {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.6rem;
}
.ff-friends-qr {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0 0.8rem;
}
.ff-friends-qr__box {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-sizing: border-box;
}
.ff-friends-qr__box img,
.ff-friends-qr__box canvas,
.ff-friends-qr__box table {
  width: 100% !important;
  height: 100% !important;
}
.ff-friends-qr code {
  font-size: 0.92rem;
  word-break: break-all;
  text-align: center;
}
.ff-friends-hit {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 0.35rem 0;
}
.ff-friends-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.ff-friends-row .ff-find-hit { flex: 1 1 auto; min-width: 0; }
.ff-friends-row .ff-btn { flex: 0 0 auto; min-height: 36px; padding: 0.35rem 0.7rem; }
.ff-qr-scan {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 3 / 4;
  max-height: 70dvh;
}
.ff-qr-scan video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b1220;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ff-qr-scan.is-live video {
  opacity: 1;
  visibility: visible;
}
.ff-qr-scan video::-webkit-media-controls,
.ff-qr-scan video::-webkit-media-controls-start-playback-button,
.ff-qr-scan video::-webkit-media-controls-overlay-play-button,
.ff-qr-scan video::-webkit-media-controls-enclosure,
.ff-qr-scan video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}
.ff-qr-scan__wait {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.7rem;
  text-align: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(15, 118, 110, 0.28), transparent 55%),
    linear-gradient(180deg, #152033 0%, #0b1220 58%, #070b12 100%);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ff-qr-scan.is-live .ff-qr-scan__wait {
  opacity: 0;
  visibility: hidden;
}
.ff-qr-scan__wait p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: rgba(255,255,255,0.78);
}
.ff-qr-scan__spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: ff-qr-spin 0.8s linear infinite;
}
@keyframes ff-qr-spin {
  to { transform: rotate(360deg); }
}
.ff-qr-scan__aim {
  position: absolute;
  inset: 18%;
  z-index: 4;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}
.ff-qr-scan__flip {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 5;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font: 650 0.82rem/1 system-ui, sans-serif;
  backdrop-filter: blur(8px);
}
.ff-friends-why {
  display: grid;
  gap: 0.7rem;
  padding: 0.2rem 0 0.4rem;
}
.ff-friends-why p { margin: 0; }
.ff-find-hit span small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.ff-igme__bio {
  padding: 0 1rem 0.55rem;
}
.ff-igme__bio b { display: block; font-size: 0.95rem; }
.ff-igme__bio p { margin: 0.18rem 0 0; }
.ff-igme__hi { display: none; }
.ff-igme__feed,
.ff-igme__feed.ff-feed {
  padding: 0.55rem 0.5rem 1rem;
  gap: 0.55rem;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}
.ff-igme__feed .ff-ptr { display: none; }
.ff-igme__empty {
  text-align: center;
  padding: 1.6rem 1rem;
}
.ff-pane--shop {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f6f7f8;
}
.ff-shop {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav) + 4.6rem + var(--sab));
}
.ff-shop-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(#0f766e 0%, #0f766e calc(var(--sat) + 0.15rem), #fff calc(var(--sat) + 0.15rem));
  padding: calc(0.45rem + var(--sat)) 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
}
.ff-shop-bar__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ff-shop-bar__row .ff-shop-search { flex: 1; min-width: 0; }
.ff-shop-orders-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f766e;
  display: grid;
  place-items: center;
}
.ff-shop-scan-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f766e;
  display: none;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.ff-shop-scan-btn svg { display: block; }
.ff-shop-scan-btn:active {
  background: #ecfdf5;
  border-color: #5eead4;
}
@media (max-width: 899px) {
  .ff-shop-scan-btn { display: grid; }
}
html.ff-shop-bc-open,
html.ff-shop-bc-open body {
  overflow: hidden;
  touch-action: none;
}
.ff-shop-bc {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  padding: 0;
}
.ff-shop-bc__sheet {
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}
.ff-shop-bc__head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.35rem;
  padding: calc(0.55rem + var(--sat)) 0.65rem 0.55rem;
  background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
}
.ff-shop-bc__head h2 {
  margin: 0;
  font: 700 1.05rem/1.2 system-ui, sans-serif;
  text-align: center;
}
.ff-shop-bc__x,
.ff-shop-bc__flip {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 700 1.35rem/1 system-ui, sans-serif;
  display: grid;
  place-items: center;
}
.ff-shop-bc__flip { font-size: 1.15rem; }
.ff-shop-bc__hint {
  margin: 0;
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}
.ff-shop-bc__view {
  position: relative;
  margin: 0 0.85rem;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 3 / 4;
  max-height: min(58dvh, 520px);
}
.ff-shop-bc__mount,
.ff-shop-bc__mount video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-shop-bc__mount video {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ff-shop-bc__view.is-live .ff-shop-bc__mount video {
  opacity: 1;
  visibility: visible;
}
.ff-shop-bc__mount video::-webkit-media-controls,
.ff-shop-bc__mount video::-webkit-media-controls-start-playback-button,
.ff-shop-bc__mount video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}
.ff-shop-bc__wait {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.65rem;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0.85));
  color: #e2e8f0;
}
.ff-shop-bc__view.is-live .ff-shop-bc__wait { display: none; }
.ff-shop-bc__wait p { margin: 0; font-size: 0.88rem; }
.ff-shop-bc__spin {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: ff-qr-spin 0.8s linear infinite;
}
.ff-shop-bc__aim {
  position: absolute;
  inset: 16% 10%;
  z-index: 4;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.28);
}
.ff-shop-bc__err {
  margin: 0.55rem 1rem calc(0.85rem + var(--sab));
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.86rem;
  text-align: center;
}
.ff-shop-bc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav) + 1rem + var(--sab));
  z-index: 130;
  transform: translateX(-50%) translateY(0);
  max-width: min(92vw, 22rem);
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font: 600 0.92rem/1.35 system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.28);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.ff-shop-bc-toast.is-out {
  opacity: 0;
  transform: translateX(-50%) translateY(0.35rem);
}
.ff-shop-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.ff-shop-search__ico {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #0f766e;
  opacity: 0.72;
  pointer-events: none;
  line-height: 0;
}
.ff-shop-search__ico svg {
  display: block;
  width: 20px;
  height: 20px;
}
.ff-shop-search input {
  width: 100%;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  padding: 0.62rem 0.85rem 0.62rem 2.55rem;
  font: inherit;
  background: #f8fafc;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.ff-shop-search input:focus {
  outline: none;
  border-color: #5eead4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.ff-shop-search:focus-within .ff-shop-search__ico {
  opacity: 1;
  color: #0f766e;
}
.ff-shop-search input::-webkit-search-decoration,
.ff-shop-search input::-webkit-search-cancel-button,
.ff-shop-search input::-webkit-search-results-button,
.ff-shop-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.ff-shop-suggest-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sat) + 3.55rem) 0.7rem calc(var(--nav) + 0.6rem + var(--sab));
  pointer-events: none;
}
.ff-shop-suggest-layer[hidden] { display: none; }
.ff-shop-suggest-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: auto;
}
.ff-shop-suggest {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  max-height: min(70dvh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.ff-shop-suggest[hidden] { display: none; }
html.ff-shop-suggest-on .ff-shop { overflow: hidden; }
html.ff-shop-product-on .ff-shop-suggest-layer { display: none !important; }
.ff-shop-suggest__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 0.45rem 0.55rem 0.5rem;
}
.ff-shop-suggest__row:last-child { border-bottom: 0; }
.ff-shop-suggest__main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.15rem 0.1rem;
  min-height: 58px;
  color: inherit;
  font: inherit;
}
.ff-shop-suggest__main:active,
.ff-shop-suggest__var:active { background: #f0fdfa; }
.ff-shop-suggest__thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ff-shop-suggest__thumb .ff-shop-bleed,
.ff-shop-suggest__var .ff-shop-bleed {
  width: 100%;
  height: 100%;
}
.ff-shop-suggest__thumb img,
.ff-shop-suggest__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ff-shop-suggest__vars {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0 0.1rem 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-suggest__vars::-webkit-scrollbar { display: none; }
.ff-shop-suggest__var {
  flex: 0 0 auto;
  min-width: 52px;
  border: 1px solid #d7efec;
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.ff-shop-suggest__varimg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.ff-shop-suggest__var i {
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.15;
  max-width: 4.6rem;
  text-align: center;
}
.ff-shop-suggest__txt {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}
.ff-shop-suggest__txt b {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.ff-shop-suggest__txt em {
  font-style: normal;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 750;
}
.ff-shop-suggest__empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}
.ff-shop-cats {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  margin: 0.5rem -0.7rem 0;
  padding: 0 0.7rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ff-shop-cats::-webkit-scrollbar { display: none; }
.ff-shop-storepick-wrap {
  margin: 0.35rem 0 0;
}
.ff-shop-storepick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #334155;
}
.ff-shop-storepick select {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4ea;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.ff-shop-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  max-width: 14rem;
  border: 1px solid #dbe4ea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font: 650 0.8rem/1.2 system-ui, sans-serif;
  min-height: 34px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-shop-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.ff-shop-arriv {
  grid-column: 1 / -1;
}
.ff-shop-arriv__h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.2rem 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 750;
}
.ff-shop-arriv__h small {
  color: #64748b;
  font-weight: 650;
  font-size: 0.78rem;
}
.ff-shop-arriv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.ff-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem 0.2rem;
}
.ff-shop-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 #e8edf1, 0 8px 18px rgba(15, 23, 42, 0.05);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ff-shop-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ff-shop-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.ff-shop-card__photo .ff-shop-bleed {
  position: absolute;
  inset: 0;
}
.ff-shop-card__hit {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
}
.ff-shop-bleed {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
.ff-shop-bleed__bg { display: none; }
.ff-shop-bleed > img:not(.ff-shop-bleed__bg),
.ff-shop-bleed .ff-shop-card__img,
.ff-shop-bleed .ff-shop-pimg,
.ff-shop-bleed .ff-shop-thumbs__img,
.ff-shop-bleed .ff-shop-var__img,
.ff-shop-bleed .ff-shop-suggest__img {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
}
.ff-shop-bleed .ff-shop-card__ph {
  z-index: 1;
}
.ff-shop-card__img,
.ff-shop-card__ph {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.ff-shop-card__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, #e8eef2 0 28%, transparent 30%),
    #fff;
}
.ff-shop-card__ph--lg { min-height: 14rem; border-radius: 12px; }
.ff-shop-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  margin: 0.35rem 0.5rem 0.12rem;
  font: 650 0.72rem/1.28 system-ui, sans-serif;
}
.ff-shop-card__price {
  display: block;
  margin: 0 0.55rem 0.2rem;
  font: 800 0.92rem/1.2 system-ui, sans-serif;
  color: #0f766e;
}
.ff-shop-thumbs {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.15rem 0.5rem 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-thumbs::-webkit-scrollbar { display: none; }
.ff-shop-thumbs__i {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7efec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ff-shop-thumbs__i .ff-shop-bleed {
  width: 100%;
  height: 100%;
}
.ff-shop-thumbs__img,
.ff-shop-thumbs__i .ff-shop-card__ph {
  width: 38px;
  height: 38px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  display: block;
}
.ff-shop-thumbs__n {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f766e;
  white-space: nowrap;
}
.ff-shop-thumbs__more {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: #5b7c79;
}
.ff-shop-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  margin: 0 0.55rem 0.55rem;
}
.ff-shop-store {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.ff-shop-store.is-ok { color: #2e7d32; }
.ff-shop-store.is-low { color: #e65100; }
.ff-shop-store.is-out { color: #c62828; }
.ff-shop-card__add {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font: 800 1.25rem/1 system-ui, sans-serif;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.32);
  pointer-events: auto;
  touch-action: manipulation;
}
.ff-shop-card__add::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.ff-shop-card__add:active { transform: scale(0.9); }
.ff-shop-card__step {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.32);
  overflow: visible;
  pointer-events: auto;
  touch-action: manipulation;
}
.ff-shop-card__step button {
  width: 32px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 1.1rem/1 system-ui, sans-serif;
}
.ff-shop-card__step span {
  min-width: 1.15rem;
  text-align: center;
  font: 800 0.84rem/1 system-ui, sans-serif;
}
.ff-shop-fly {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 0.2rem;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  pointer-events: none;
  transform: translate(0, 0) scale(1);
  transition: transform 0.4s cubic-bezier(.2, .85, .2, 1), opacity 0.4s ease;
}
@keyframes ff-cart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.ff-shop-fab.is-pop,
.ff-shop-sheet__cart.is-pop,
.ff-nav__btn.is-pop { animation: ff-cart-pop 0.38s ease; }
.ff-shop-status, .ff-shop-empty, .ff-shop-ok {
  margin: 0.8rem 1rem;
  text-align: center;
  color: var(--muted);
}
.ff-shop-ok { color: #0f766e; font-weight: 700; }
.ff-shop-sent { height: 8px; }
.ff-shop-product-on .ff-shop-fab { visibility: hidden; }
html.ff-shop-product-on .ff-nav,
html.ff-chat-thread-on .ff-nav,
html.ff-miniapp-on .ff-nav { display: none; }
html.ff-chat-thread-on .ff-pane--chat { padding-bottom: 0; }
html.ff-chat-thread-on .ff-chat-compose {
  padding-bottom: max(0.5rem, var(--sab));
}
html.ff-chat-kb .ff-screen--main.is-chat,
.ff-chat-thread.is-kb {
  height: var(--ff-vv-h, 100dvh);
  max-height: var(--ff-vv-h, 100dvh);
}
.ff-chat-thread.is-kb {
  overflow: hidden;
}
.ff-chat-thread.is-kb .ff-chat-msgs {
  flex: 1 1 auto;
  min-height: 0;
}
.ff-chat-thread.is-kb .ff-chat-dock {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  padding-bottom: max(0.35rem, env(keyboard-inset-bottom, 0px));
}
.ff-chat-thread.is-kb .ff-chat-compose {
  padding-bottom: max(0.35rem, env(keyboard-inset-bottom, 0px));
  position: relative;
  bottom: auto;
  z-index: 3;
  background: #fff;
}
.ff-shop-fab {
  position: absolute;
  right: max(0.85rem, var(--sar));
  bottom: calc(var(--nav) + 0.7rem + var(--sab));
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.32);
  display: grid;
  place-items: center;
}
.ff-shop-fab.is-full {
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.45);
}
.ff-shop-fab.is-pop { animation: ff-cart-pop 0.38s ease; }
#shop-cart-sheet { z-index: 24; }
#shop-orders-sheet, #shop-profile-sheet { z-index: 18; }
.ff-shop-fab__n {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 800 0.68rem/1.2rem system-ui, sans-serif;
}
.ff-ask {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.7rem calc(var(--nav) + 0.55rem);
}
.ff-ask[hidden] { display: none; }
.ff-ask__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-ask__card {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 0.95rem 0.85rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
.ff-ask__card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.ff-ask__card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #64748b;
}
.ff-ask__acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.ff-ask__acts .ff-btn { width: 100%; margin: 0; }
.ff-ask--center {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 1.2rem;
}
.ff-shop-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(var(--nav) + 0.35rem);
}
.ff-shop-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-shop-sheet__panel {
  position: relative;
  max-height: min(86dvh, 40rem);
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(0.6rem + var(--sab));
}
.ff-shop-sheet__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem 0.4rem;
}
.ff-shop-sheet__hd h2 { margin: 0; font-size: 1.05rem; }
.ff-shop-sheet__back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-shop-sheet__back svg { display: block; }
.ff-shop-sheet__cart {
  margin-left: auto;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-shop-sheet__cart svg { display: block; }
.ff-shop-sheet--page .ff-shop-sheet__hd h2 {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-shop-buy {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.4rem;
  background: #fff;
  border-top: 1px solid #e8eef2;
  box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.05);
}
.ff-shop-buy__pick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}
.ff-shop-buy__media {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}
.ff-shop-buy__img,
.ff-shop-buy__ph {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  background: #f1f5f9;
}
.ff-shop-buy__t {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-shop-buy__t b {
  display: block;
  font: 650 0.82rem/1.2 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-shop-buy__t small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  margin-top: 0.08rem;
}
.ff-shop-buy__qty {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
}
.ff-shop-buy__qty button {
  width: 32px;
  height: 36px;
  border: 0;
  background: transparent;
  font: 800 1.05rem/1 system-ui, sans-serif;
  color: #0f172a;
}
.ff-shop-buy__qty span {
  min-width: 1.15rem;
  text-align: center;
  font: 750 0.9rem/1 system-ui, sans-serif;
}
.ff-shop-buy__send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.ff-shop-buy__send:disabled { opacity: 0.4; }
.ff-shop-buy__send svg { display: block; }
.ff-shop-buy__go {
  width: 100%;
  margin: 0;
  background: #0f766e;
  color: #fff;
}
.ff-shop-buy__step {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  overflow: hidden;
}
.ff-shop-buy__step button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 1.25rem/1 system-ui, sans-serif;
}
.ff-shop-buy__step span {
  font: 800 1.05rem/1 system-ui, sans-serif;
}
.ff-shop-buy__to {
  flex: 0 0 auto;
  margin: 0;
  min-width: 7.2rem;
  padding: 0.7rem 0.75rem;
  color: #0f766e;
  border-color: #9de4dc;
}
.ff-shop-sheet--page {
  z-index: 20;
  justify-content: stretch;
  padding-bottom: 0;
}
.ff-shop-sheet--page .ff-shop-sheet__panel {
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: var(--sab);
}
.ff-shop-sheet--page .ff-shop-sheet__hd {
  justify-content: flex-start;
  gap: 0.35rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.08) 62%, transparent);
  padding: calc(0.28rem + var(--sat)) 0.55rem 1.35rem;
  border-bottom: 0;
  pointer-events: none;
}
.ff-shop-sheet--page .ff-shop-sheet__hd > * { pointer-events: auto; }
.ff-shop-sheet--page .ff-shop-sheet__hd h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ff-shop-sheet--page .ff-shop-sheet__back,
.ff-shop-sheet--page .ff-shop-sheet__cart {
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.ff-shop-sheet--page .ff-shop-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}
.ff-shop-sheet--page .ff-shop-pphoto {
  max-height: none;
  aspect-ratio: 1;
  border-radius: 0;
  margin: 0;
  width: 100%;
}
.ff-shop-sheet__x {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
}
.ff-shop-sheet--full {
  z-index: 20;
  justify-content: stretch;
  padding-bottom: 0;
}
.ff-shop-sheet--full .ff-shop-sheet__panel {
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: var(--sab);
}
.ff-shop-sheet--full .ff-shop-sheet__hd {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  gap: 0.35rem;
  justify-content: flex-start;
  background: #fff;
  border-bottom: 1px solid #e8eef2;
  padding: calc(0.45rem + var(--sat)) 0.7rem 0.55rem;
}
.ff-shop-sheet--full .ff-shop-sheet__hd h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
}
.ff-shop-sheet--full .ff-shop-sheet__x {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
}
.ff-shop-sheet--full .ff-shop-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 0.9rem calc(0.9rem + var(--sab));
}
.ff-shop-sheet__body {
  overflow: auto;
  padding: 0.2rem 0.9rem 0.8rem;
}
.ff-shop-sheet.is-kb {
  position: fixed;
  top: var(--ff-vv-top, 0px);
  height: var(--ff-vv-h, 100%);
  left: 0;
  right: 0;
  bottom: auto;
  padding-bottom: 0;
  z-index: 20;
}
.ff-shop-sheet.is-kb .ff-shop-sheet__panel {
  max-height: 100%;
}
.ff-shop-sheet.is-kb .ff-shop-sheet__body {
  padding-bottom: calc(4.5rem + var(--ff-kb, 0px) * 0.15);
  scroll-padding-bottom: 5rem;
}
.ff-shop-sheet.is-kb .ff-rev__form,
.ff-shop-sheet.is-kb #shop-rev-form {
  scroll-margin-bottom: 6rem;
}
.ff-shop-sheet.is-kb .ff-rev__input {
  scroll-margin-bottom: 7rem;
}
.ff-shop-citem {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f5;
}
.ff-shop-citem__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ff-shop-citem__thumb img,
.ff-shop-citem__thumb .ff-shop-card__ph {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}
.ff-shop-citem__meta { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.ff-shop-citem__meta b {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 650;
}
.ff-shop-citem__meta span { color: #0f766e; font-weight: 700; font-size: 0.84rem; }
.ff-shop-citem__note {
  width: 100%;
  margin-top: 0.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  font: 500 0.75rem/1.2 system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}
.ff-shop-citem__note::placeholder { color: #94a3b8; }
.ff-shop-step {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ff-shop-step button {
  width: 30px;
  height: 30px;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}
.ff-shop-ctotal {
  display: flex;
  justify-content: space-between;
  margin: 0.7rem 0 0.5rem;
  font-size: 1.02rem;
}
.ff-shop-field {
  display: grid;
  gap: 0.25rem;
  margin: 0.4rem 0;
  font-size: 0.82rem;
  color: #64748b;
  scroll-margin-bottom: 7rem;
}
.ff-shop-field select {
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}
.ff-shop-split {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: 0.4rem 0;
  font-size: 0.82rem;
  color: #9a3412;
}
.ff-shop-co-acts {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.55rem 0 0.2rem;
}
.ff-shop-co-acts .ff-btn {
  flex: 1 1 0;
  width: auto;
  margin-top: 0;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}
.ff-shop-co-acts .ff-btn--ghost {
  flex: 0 1 auto;
  min-width: 6.5rem;
  max-width: 9rem;
}
.ff-shop-co-verify {
  margin: 0.45rem 0 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  background: #f8fafc;
}
.ff-shop-co-verify__t {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #475569;
}
.ff-shop-co-verify__t b { color: #0f172a; font-weight: 700; }
.ff-shop-co-verify .ff-btn {
  width: 100%;
  margin-top: 0.2rem;
}
.ff-shop-co-verify__code {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.ff-shop-co-verify__code input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}
.ff-shop-co-verify__code .ff-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 3.5rem;
  margin-top: 0;
}
#shop-cart-body > .ff-btn,
#shop-orders-body .ff-btn {
  width: 100%;
  margin-top: 0.45rem;
}
.ff-shop-order {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef2f5;
}
.ff-shop-order.is-ready {
  margin: 0 -0.35rem 0.35rem;
  padding: 0.7rem 0.35rem;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: #f0fdfa;
}
.ff-shop-order__hd {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}
.ff-shop-order__hd b { color: #0f766e; }
.ff-shop-order__no {
  margin: 0.25rem 0 0.45rem;
  font: 800 1.15rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.ff-shop-order__pickup {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: #0f172a;
}
.ff-shop-order__pickup b { color: #0f766e; }
.ff-shop-ordcode {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.65rem 0.5rem;
  border: 1px solid #cce8e3;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
}
.ff-shop-ordcode.is-ready {
  border-color: #5eead4;
  background: #ecfdf5;
}
.ff-shop-ordcode__num {
  font: 800 1.05rem/1.2 system-ui, sans-serif;
  color: #0f766e;
  margin-bottom: 0.35rem;
}
.ff-shop-ordcode__bar {
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.3rem 0.15rem;
  border: 1px solid #e8eef2;
}
.ff-shop-ordcode__hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}
.ff-shop-order__lines {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.86rem;
  line-height: 1.35;
}
.ff-shop-order small { color: #64748b; }
.ff-shop-prof__who {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ff-shop-prof__who-txt {
  flex: 1;
  min-width: 0;
}
.ff-shop-prof__who b { display: block; font-size: 1.05rem; }
.ff-shop-prof__who span { color: #64748b; font-size: 0.88rem; }
.ff-shop-prof__disc {
  flex: 0 0 auto;
  max-width: 7.2rem;
  text-align: right;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.ff-shop-prof__disc b {
  display: block;
  font-size: 1.05rem;
  color: #c2410c;
  line-height: 1.1;
}
.ff-shop-prof__disc span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 650;
  color: #9a3412;
}
.ff-shop-loy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.ff-shop-loy__card {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 14px;
  padding: 0.55rem 0.65rem 0.5rem;
}
.ff-shop-loy__card b {
  display: block;
  font-size: 1.05rem;
  color: #0f766e;
}
.ff-shop-loy__card span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 650;
}
.ff-shop-loy__card--debt {
  background: #fff1f2;
  border-color: #fecdd3;
}
.ff-shop-loy__card--debt b { color: #be123c; }
.ff-shop-loy__card--disc {
  background: #fff7ed;
  border-color: #fed7aa;
}
.ff-shop-loy__card--disc b { color: #c2410c; }
.ff-shop-rcpt {
  border: 1px solid #e8eef2;
  border-radius: 14px;
  margin: 0 0 0.5rem;
  background: #fff;
}
.ff-shop-rcpt > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.ff-shop-rcpt > summary::-webkit-details-marker { display: none; }
.ff-shop-rcpt > summary span { min-width: 0; }
.ff-shop-rcpt > summary b { display: block; font-size: 0.9rem; color: #0f766e; }
.ff-shop-rcpt > summary small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}
.ff-shop-rcpt__sum {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 800;
  color: #0f172a;
}
.ff-shop-rcpt__sum i {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  color: #be123c;
}
.ff-shop-rcpt[open] > summary { border-bottom: 1px solid #eef2f5; }
.ff-shop-rcpt__body { padding: 0.15rem 0.55rem 0.55rem; }
.ff-shop-buyline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eef2f5;
}
.ff-shop-buyline__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.ff-shop-prof__img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #f1f5f9;
  flex: 0 0 56px;
}
.ff-shop-prof__ph {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #eef2f5;
  flex: 0 0 56px;
}
.ff-shop-buyline__t { flex: 1; min-width: 0; }
.ff-shop-buyline__t b {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-shop-buyline__t small { color: #64748b; font-size: 0.78rem; }
.ff-shop-buyline__rev {
  flex: 0 0 auto;
  border: 1px solid #99f6e4;
  background: #ecfdf5;
  color: #0f766e;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  font: 650 0.78rem/1 system-ui, sans-serif;
  min-height: 36px;
}
.ff-shop-revask {
  margin: 0 0 0.85rem;
  border: 1px solid #e8eef2;
  border-radius: 14px;
  background: #fff;
}
.ff-shop-revask > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.ff-shop-revask > summary::-webkit-details-marker { display: none; }
.ff-shop-revask > summary span { min-width: 0; }
.ff-shop-revask > summary b {
  display: block;
  font-size: 0.9rem;
  color: #0f766e;
}
.ff-shop-revask > summary small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.1rem;
}
.ff-shop-revask__n {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  min-width: 1.75rem;
  text-align: center;
  padding: 0.15rem 0.45rem;
}
.ff-shop-revask[open] > summary { border-bottom: 1px solid #eef2f5; }
.ff-shop-revask__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.15rem 0.55rem 0.45rem;
}
.ff-shop-revask__row {
  border-bottom: 1px solid #eef2f5;
}
.ff-shop-revask__row:last-child { border-bottom: 0; }
.ff-shop-revask__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 1px solid #eef2f5;
  border-radius: 14px;
  background: #fff;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: inherit;
}
.ff-shop-revask__item b {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-shop-revask__item small {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 650;
}
.ff-shop-revask__img,
.ff-shop-revask__ph {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: 0 0 64px;
  object-fit: contain;
  background: #f1f5f9;
}
.ff-shop-revask__ph { display: block; }
.ff-shop-rcpt__body--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.45rem 0.5rem 0.6rem;
}
.ff-shop-rcpt__body--grid .ff-shop-buyline {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0.4rem;
  border: 1px solid #eef2f5;
  border-radius: 12px;
  border-bottom: 1px solid #eef2f5;
  background: #fafbfc;
  min-width: 0;
}
.ff-shop-rcpt__body--grid .ff-shop-buyline__main {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.ff-shop-rcpt__body--grid .ff-shop-prof__img,
.ff-shop-rcpt__body--grid .ff-shop-prof__ph {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: 7.5rem;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
}
.ff-shop-rcpt__body--grid .ff-shop-buyline__t b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.25;
}
.ff-shop-rcpt__body--grid .ff-shop-buyline__rev {
  width: 100%;
  justify-content: center;
  min-height: 34px;
}
.ff-shop-cardcode {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem 0.65rem;
  border: 1px solid #cce8e3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
}
.ff-shop-cardcode__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.ff-shop-cardcode__hd b {
  font-size: 0.92rem;
  color: #0f766e;
}
.ff-shop-cardcode__disc {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.95rem;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.ff-shop-cardcode__bar {
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.35rem 0.2rem;
  border: 1px solid #e8eef2;
}
.ff-shop-ean {
  display: block;
  max-width: 100%;
  height: auto;
}
.ff-shop-cardcode__txt {
  text-align: center;
  font: 700 1rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.35rem;
  color: #0f172a;
}
.ff-shop-cardcode__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}
.ff-shop-prof__h {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 750;
}
.ff-shop-prof__form label { display: block; margin: 0.45rem 0; }
.ff-shop-prof__form input {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  font: inherit;
  min-height: 44px;
  background: #f8fafc;
}
.ff-shop-pphoto {
  margin-bottom: 0.55rem;
  width: 100%;
  aspect-ratio: 1;
  max-height: none;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ff-shop-gal {
  position: relative;
  background: #fff;
}
.ff-shop-gal__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-gal__track::-webkit-scrollbar { display: none; }
.ff-shop-gal__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(92vw, 34rem);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ff-shop-gal__slide .ff-shop-bleed {
  width: 100%;
  height: 100%;
}
.ff-shop-pimg,
.ff-shop-pphoto .ff-shop-card__ph,
.ff-shop-gal__slide .ff-shop-card__ph {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 0;
}
.ff-shop-gal__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  pointer-events: none;
  z-index: 1;
}
.ff-shop-gal__dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
}
.ff-shop-gal__dot.is-on { background: #0f766e; width: 16px; }
.ff-shop-gal__adm {
  position: absolute;
  right: 0.7rem;
  top: calc(3.2rem + var(--sat, 0px));
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font: 700 0.78rem/1.2 system-ui, sans-serif;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.ff-shop-gal__slide--vid {
  background: #111;
}
.ff-shop-gal__slide--vid video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
#shop-media-edit {
  z-index: 42;
  background: rgba(15, 23, 42, 0.42);
  align-items: flex-end;
  justify-content: center;
}
.ff-shop-media {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
  border-radius: 18px 18px 0 0;
  padding-top: 0.7rem;
  max-height: min(94dvh, 48rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-shop-media__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ff-shop-media__acts .ff-btn { flex: 1 1 8rem; margin: 0; }
.ff-shop-native-media .ff-shop-media-fallback { display: none !important; }
.ff-shop-media__photoroom {
  border-color: rgba(99, 102, 241, 0.35);
  font-weight: 600;
}
.ff-shop-yx {
  margin: 0.65rem 0 0.4rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.ff-shop-yx__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font: 700 0.82rem/1.2 system-ui, sans-serif;
  color: #0f172a;
}
.ff-shop-yx__head a {
  font-weight: 600;
  font-size: 0.78rem;
  color: #0f766e;
  text-decoration: none;
}
.ff-shop-yx__row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}
.ff-shop-yx__row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}
.ff-shop-yx__row .ff-btn {
  flex: 0 0 auto;
  margin: 0;
  min-width: 4.5rem;
}
.ff-shop-yx__hint {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.3;
}
.ff-shop-yx__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
@media (max-width: 420px) {
  .ff-shop-yx__grid { grid-template-columns: repeat(3, 1fr); }
}
.ff-shop-yx__card {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
}
.ff-shop-yx__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.ff-shop-yx__card.is-skel img { opacity: 0; }
.ff-shop-yx__skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: ff-yx-skel 1.1s ease-in-out infinite;
}
.ff-shop-yx__card.is-ready .ff-shop-yx__skel { display: none; }
.ff-shop-yx__card:active { transform: scale(0.97); }
#shop-media-yx-more {
  width: 100%;
  margin-top: 0.45rem;
}
#shop-media-yx-status.is-err { color: #b91c1c; }
@keyframes ff-yx-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.ff-shop-media__prev {
  min-height: 8rem;
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
}
.ff-shop-media__prev:empty { display: none; }
.ff-shop-media__prev img,
.ff-shop-media__prev video {
  width: 100%;
  max-height: min(48vh, 20rem);
  object-fit: contain;
  background: #fff;
}
.ff-shop-pmeta {
  padding: 0.55rem 0.9rem 1.1rem;
}
.ff-shop-pname {
  margin: 0;
  font: 800 1.12rem/1.25 system-ui, sans-serif;
}
.ff-shop-pprice { font: 800 1.2rem/1.2 system-ui, sans-serif; color: #0f766e; margin: 0.28rem 0 0.2rem; }
.ff-shop-prating {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: #64748b;
}
.ff-shop-prating em {
  font-style: normal;
  color: #f59e0b;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}
.ff-shop-pdesc {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #475569;
}
.ff-shop-pmeta .ff-shop-stores { margin: 0 0 0.7rem; }
.ff-shop-pmeta .ff-shop-vars { margin: 0.15rem 0 0.75rem; }
.ff-shop-vars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}
@media (min-width: 560px) {
  .ff-shop-vars {
    grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr));
    gap: 0.55rem;
  }
}
.ff-shop-vars--series {
  margin: 0.55rem 0 0.15rem;
  padding: 0 0.7rem;
}
.ff-shop-var {
  border: 1px solid #dbe4ea;
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem 0.4rem 0.4rem;
  font-size: 0.68rem;
  color: inherit;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.ff-shop-var--pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1.15;
}
.ff-shop-var--pic span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  width: 100%;
  min-height: 2.4em;
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 650;
  color: #334155;
}
.ff-shop-var--pic .ff-shop-bleed {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
}
.ff-shop-var__img,
.ff-shop-var--pic .ff-shop-card__ph {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  display: block;
  padding: 0.15rem;
  box-sizing: border-box;
}
.ff-shop-var.is-on {
  background: #ecfdf5;
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e inset;
}
.ff-shop-var.is-on span { color: #0f766e; }
.ff-shop-var.is-out,
.ff-shop-var:disabled {
  filter: grayscale(1);
  opacity: 0.48;
  pointer-events: none;
  cursor: default;
  color: #64748b;
}
.ff-shop-var.is-out.is-on {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: none;
  color: #64748b;
}
.ff-rev {
  margin: 0.4rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #eef2f5;
}
.ff-rev__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}
.ff-rev__hd h4 {
  margin: 0;
  font: 800 1.02rem/1.2 system-ui, sans-serif;
}
.ff-rev__hd span { font-size: 0.8rem; color: #64748b; }
.ff-rev__form {
  margin: 0 0 1rem;
  padding: 0.7rem 0.75rem 0.65rem;
  border: 1px solid #e8edf1;
  border-radius: 14px;
  background: #f8fafc;
}
.ff-rev__form-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.55rem;
  align-items: start;
}
.ff-rev__ava {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d1fae5;
  color: #0f766e;
  font: 800 0.85rem/1 system-ui, sans-serif;
  overflow: hidden;
}
.ff-rev__ava--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__form-name { display: block; font-size: 0.82rem; margin: 0 0 0.2rem; }
.ff-rev__picker { display: flex; gap: 0.1rem; margin: 0 0 0.35rem; }
.ff-rev__star {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.05rem;
}
.ff-rev__star.is-on { color: #f59e0b; }
.ff-rev__input {
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: inherit;
  background: #fff;
}
.ff-rev__bar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.4rem;
}
.ff-rev__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #0f766e;
  border-radius: 10px;
}
.ff-rev__send {
  margin-left: auto;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
}
.ff-rev__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.ff-rev__prev {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}
.ff-rev__prev img,
.ff-rev__prev video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__prev-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}
.ff-rev__err {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
}
.ff-rev__card {
  padding: 0.7rem 0;
  border-top: 1px solid #f1f5f9;
}
.ff-rev__top {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.ff-rev__who b { display: block; font-size: 0.88rem; }
.ff-rev__stars { color: #f59e0b; font-size: 0.78rem; letter-spacing: 0.04em; }
.ff-rev__top time { font-size: 0.72rem; color: #94a3b8; }
.ff-rev__txt {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ff-rev__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.ff-rev__photo {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}
.ff-rev__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__video video {
  max-width: 100%;
  max-height: 12rem;
  border-radius: 10px;
  background: #0f172a;
}
.ff-shop-zoom {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: rgba(15, 23, 42, 0.94);
  display: grid;
  place-items: center;
  padding: 2.4rem 0.6rem 0.8rem;
}
.ff-shop-zoom[hidden] { display: none !important; }
.ff-shop-zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ff-shop-zoom__x {
  position: absolute;
  top: calc(0.35rem + var(--sat));
  right: 0.55rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.ff-shop-stock {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e8edf1;
  border-radius: 12px;
  background: #fafbfc;
}
.ff-shop-stock__t {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ff-shop-stock__row {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ff-shop-stock__row + .ff-shop-stock__row { margin-top: 0.25rem; }
.ff-shop-stock__row.is-ok { color: #2e7d32; }
.ff-shop-stock__row.is-low { color: #e65100; }
.ff-shop-stock__row.is-out { color: #c62828; }
.ff-shop-thumbs__i.is-out,
.ff-shop-thumbs__i:disabled {
  filter: grayscale(1);
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
@media (min-width: 700px) {
  .ff-shop-grid { grid-template-columns: repeat(3, 1fr); }
  .ff-shop-arriv__grid { grid-template-columns: repeat(3, 1fr); }
}
.ff-pane--chat {
  margin: 0;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding-bottom: calc(var(--nav) + var(--sab));
}
.ff-chat, .ff-chat-list, .ff-chat-thread {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ff-chat-thread {
  --chat-mine: #eeffde;
  --chat-mine-ink: #1c2814;
}
.ff-chat-thread[data-wall="tg"] {
  --chat-mine: #eeffde;
  --chat-mine-ink: #1c2814;
}
.ff-chat-thread[data-wall="wa"] {
  --chat-mine: #dcf8c6;
  --chat-mine-ink: #111b21;
}
.ff-chat-thread[data-wall="tg"] .ff-chat-head {
  background: #517da2;
  color: #fff;
  border-bottom-color: #4a7396;
}
.ff-chat-thread[data-wall="wa"] .ff-chat-head {
  background: #008069;
  color: #fff;
  border-bottom-color: #006e5a;
}
.ff-chat-thread[data-wall="tg"] .ff-chat-back,
.ff-chat-thread[data-wall="tg"] .ff-chat-lock,
.ff-chat-thread[data-wall="tg"] .ff-chat-more,
.ff-chat-thread[data-wall="wa"] .ff-chat-back,
.ff-chat-thread[data-wall="wa"] .ff-chat-lock,
.ff-chat-thread[data-wall="wa"] .ff-chat-more { color: #fff; }
.ff-chat-thread[data-wall="tg"] .ff-chat-head__who small,
.ff-chat-thread[data-wall="wa"] .ff-chat-head__who small { color: rgba(255, 255, 255, 0.82); }
.ff-chat-head__who[data-profile] { cursor: pointer; }
.ff-chat-list {
  overflow-y: auto;
  padding: calc(0.45rem + var(--sat)) 1rem 1.2rem;
  gap: 0.35rem;
  box-sizing: border-box;
}
.ff-chat-sec {
  margin: 0.85rem 0.35rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ff-chat-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 16px;
  margin: 0 0 0.5rem;
  padding: 0.85rem 1rem;
  min-height: 76px;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}
.ff-chat-row .ff-ava {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  flex: 0 0 auto;
  margin: 0;
}
.ff-chat-row b { display: block; font-size: 0.98rem; }
.ff-chat-row small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;
}
.ff-chat-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: calc(0.35rem + var(--sat)) 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: #fff;
}
.ff-chat-back, .ff-chat-lock, .ff-chat-more {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #1a1d21;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
}
.ff-chat-back svg, .ff-chat-lock svg, .ff-chat-more svg { display: block; }
.ff-chat-lock__on { display: none; }
.ff-chat-lock.is-on .ff-chat-lock__on { display: block; }
.ff-chat-lock.is-on .ff-chat-lock__off { display: none; }
.ff-chat-lock.is-on { color: #1a1d21; }
.ff-chat-head__who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}
.ff-chat-head__who .ff-ava { width: 44px; height: 44px; font-size: 1rem; }
.ff-chat-head__who b { display: block; font-size: 0.95rem; }
.ff-chat-head__who small { color: var(--muted); font-size: 0.72rem; }
.ff-chat-msgs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.7rem 0.65rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background-color: #5eb8c9;
  background-image: url("walls/aqua.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="aqua"] .ff-chat-msgs {
  background-color: #5eb8c9;
  background-image: url("walls/aqua.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="photo"] .ff-chat-msgs {
  background-color: #0f172a;
  background-image: var(--chat-wall-custom);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="dots"] .ff-chat-msgs {
  background-color: #14b8a6;
  background-image: url("walls/dots.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="glow"] .ff-chat-msgs {
  background-color: #a5f3fc;
  background-image: url("walls/glow.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="doodle"] .ff-chat-msgs {
  background-color: #5eb8c9;
  background-image: url("walls/doodle.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ff-chat-thread[data-wall="tg"] .ff-chat-msgs {
  background-color: #8eab96;
  background-image: url("walls/tg.svg");
  background-size: 280px 280px;
  background-repeat: repeat;
}
.ff-chat-thread[data-wall="wa"] .ff-chat-msgs {
  background-color: #ece5dd;
  background-image: url("walls/wa.svg");
  background-size: 280px 280px;
  background-repeat: repeat;
}
.ff-chat-thread[data-wall="aurora"] .ff-chat-msgs {
  background-color: #9ec5c0;
  background-image: url("walls/aurora.svg");
  background-size: 240px 240px;
}
.ff-chat-thread[data-wall="mist"] .ff-chat-msgs {
  background-color: #dbe7ef;
  background-image: url("walls/mist.svg");
  background-size: 200px 200px;
}
.ff-chat-thread[data-wall="pine"] .ff-chat-msgs {
  background-color: #d7e4d2;
  background-image: url("walls/pine.svg");
  background-size: 220px 220px;
}
.ff-chat-thread[data-wall="tide"] .ff-chat-msgs {
  background-color: #9ec5d8;
  background-image: url("walls/tide.svg");
  background-size: 240px 160px;
}
.ff-chat-thread[data-wall="linen"] .ff-chat-msgs {
  background-color: #f3ebe0;
  background-image: url("walls/linen.svg");
  background-size: 180px 180px;
}
.ff-chat-thread[data-wall="dusk"] .ff-chat-msgs {
  background-color: #0f172a;
  background-image: url("walls/dusk.svg");
  background-size: 220px 220px;
}
.ff-chat-thread[data-wall="lake"] .ff-chat-msgs {
  background-color: #6bb7d6;
  background-image: url("walls/lake.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="sunset"] .ff-chat-msgs {
  background-color: #f08a6b;
  background-image: url("walls/sunset.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="frost"] .ff-chat-msgs {
  background-color: #c9e0ef;
  background-image: url("walls/frost.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="reed"] .ff-chat-msgs {
  background-color: #e4c896;
  background-image: url("walls/reed.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="night"] .ff-chat-msgs {
  background-color: #243656;
  background-image: url("walls/night.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="paper"] .ff-chat-msgs {
  background-color: #f4efe6;
  background-image: url("walls/paper.svg");
  background-size: 360px 360px;
}
.ff-chat-thread[data-wall="river"] .ff-chat-msgs,
.ff-chat-thread[data-wall="sand"] .ff-chat-msgs,
.ff-chat-thread[data-wall="mint"] .ff-chat-msgs,
.ff-chat-thread[data-wall="snow"] .ff-chat-msgs {
  background-color: #dbe7ef;
  background-image: url("walls/mist.svg");
}
.ff-chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  max-width: 92%;
}
.ff-chat-bubble.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ff-chat-ava {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}
.ff-chat-bubble .ff-ava { width: 44px; height: 44px; font-size: 0.95rem; box-shadow: none; }
.ff-chat-bubble__body {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 0.45rem 0.65rem 0.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  min-width: 0;
}
.ff-chat-bubble.is-mine .ff-chat-bubble__body {
  background: var(--chat-mine, #ccfbf1);
  color: var(--chat-mine-ink, #042f2e);
  border-radius: 16px 16px 4px 16px;
}
.ff-chat-bubble.is-mine .ff-chat-bubble__body time,
.ff-chat-bubble.is-mine .ff-chat-like {
  color: color-mix(in srgb, var(--chat-mine-ink, #042f2e) 58%, transparent);
}
.ff-chat-thread[data-ink="light"] .ff-chat-bubble.is-mine .ff-chat-like.is-on { color: #fecdd3; }
.ff-chat-name {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
  text-align: left;
  cursor: pointer;
}
.ff-chat-bubble__body p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.95rem; }
.ff-chat-bubble__body time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0;
}
.ff-chat-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.ff-chat-bubble.is-pending .ff-chat-bubble__body {
  opacity: 0.88;
}
.ff-chat-pending {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.72;
  animation: ff-chat-pending-spin 0.75s linear infinite;
  flex: 0 0 auto;
}
.ff-chat-bubble.is-mine .ff-chat-pending {
  border-color: rgba(255, 255, 255, 0.72);
  border-top-color: transparent;
}
@keyframes ff-chat-pending-spin {
  to { transform: rotate(360deg); }
}
.ff-chat-like {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.05rem 0.15rem;
  min-height: 28px;
}
.ff-chat-like.is-on { color: #e11d48; }
.ff-chat-bubble.has-photo {
  width: min(82%, 300px);
  max-width: min(82%, 300px);
}
.ff-chat-bubble.has-photo .ff-chat-bubble__body {
  padding: 0.4rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.ff-chat-bubble.has-photo .ff-chat-name {
  display: block;
  padding: 0.05rem 0.15rem 0.3rem;
  margin: 0;
}
.ff-chat-bubble.has-photo .ff-chat-bubble__body > p {
  padding: 0.05rem 0.15rem 0.35rem;
  margin: 0;
}
.ff-chat-bubble.has-photo .ff-chat-meta {
  padding: 0.25rem 0.15rem 0.05rem;
}
.ff-chat-bubble.has-photo .ff-chat-qref {
  margin: 0.15rem 0.1rem 0.35rem;
}
.ff-chat-collage {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.15rem;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}
.ff-chat-collage .ff-collage__cell {
  border: 0;
  padding: 0;
  margin: 0;
  min-height: 0;
  background: #0f172a;
}
.ff-chat-collage .ff-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  max-width: none;
  max-height: none;
  background: #0f172a;
}
.ff-chat-media { margin-top: 0.35rem; }
.ff-chat-media.is-wait {
  min-height: 4.5rem;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
}
.ff-chat-media--photo {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: block;
  line-height: 0;
  max-width: 100%;
}
.ff-chat-media--photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72vw, 268px);
  max-height: min(56vh, 420px);
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: #0b1220;
}
/* Одинаковые отступы у всех фото в пузыре — и портрет, и широкий кадр */
.ff-chat-bubble.has-photo .ff-chat-media--photo {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.15rem;
  box-sizing: border-box;
}
.ff-chat-bubble.has-photo .ff-chat-media--photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(56vh, 420px);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.08);
}
.ff-chat-bubble.has-photo .ff-chat-media--photo:first-child,
.ff-chat-bubble.has-photo .ff-chat-collage:first-child,
.ff-chat-bubble.has-photo .ff-chat-name + .ff-chat-media--photo,
.ff-chat-bubble.has-photo .ff-chat-name + .ff-chat-collage,
.ff-chat-bubble.has-photo .ff-chat-qref + .ff-chat-media--photo,
.ff-chat-bubble.has-photo .ff-chat-qref + .ff-chat-collage {
  margin-top: 0;
}
.ff-chat-bubble.is-hi .ff-chat-bubble__body {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}
.ff-chat-bubble.has-video {
  max-width: min(96%, 440px);
}
.ff-chat-bubble.has-video .ff-chat-bubble__body {
  padding: 0.28rem 0.28rem 0.32rem;
  width: min(86vw, 360px);
  max-width: min(86vw, 360px);
}
.ff-chat-media--video {
  margin-top: 0.12rem;
  width: 100%;
}
.ff-chat-media--video video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 400px);
  border-radius: 12px;
  object-fit: contain;
  background: #0b1220;
}
.ff-chat-media--voice {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(64vw, 220px);
  max-width: 100%;
}
.ff-chat-media--voice audio { display: none; }
.ff-voice__play {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #14b8a6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}
.ff-chat-bubble.is-mine .ff-voice__play { background: #0f766e; }
.ff-voice__play:active { transform: scale(0.96); }
.ff-voice__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ff-voice__track {
  position: relative;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.ff-voice__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0.4rem;
  opacity: 0.9;
}
.ff-voice__bars i {
  flex: 1 1 0;
  display: block;
  height: calc(var(--h, 8) * 1px);
  max-height: 80%;
  border-radius: 2px;
  background: #0f766e;
  opacity: 0.55;
}
.ff-voice__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(15, 118, 110, 0.28);
  pointer-events: none;
}
.ff-voice__time {
  font-size: 0.72rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ff-chat-geo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.ff-chat-chip--geo {
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: #ecfdf5;
  color: #0f766e;
}
.ff-chat-dock {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}
.ff-chat-attach {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.65rem 0.7rem 0.2rem;
  flex: 0 0 auto;
  -webkit-overflow-scrolling: touch;
}
.ff-chat-chip {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}
.ff-chat-chip--video {
  width: 118px;
  height: 80px;
}
.ff-chat-chip--audio {
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #0f766e;
}
.ff-chat-chip img,
.ff-chat-chip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-chat-chip__ico {
  display: grid;
  place-items: center;
}
.ff-chat-chip__play {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ff-chat-chip__play::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 0.38rem;
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.42rem;
  border-color: transparent transparent transparent #fff;
}
.ff-chat-chip.is-busy img,
.ff-chat-chip.is-busy video { opacity: 0.72; }
.ff-chat-chip__spin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
}
.ff-chat-chip__spin::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ff-spin 0.7s linear infinite;
}
.ff-chat-chip button {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}
.ff-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem 0.5rem;
  background: #fff;
  border-top: 0;
  flex: 0 0 auto;
  z-index: 3;
}
.ff-chat-iconbtn {
  flex: 0 0 auto;
  width: 2.5rem;
  min-height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: #1a1d21;
  padding: 0;
}
.ff-chat-iconbtn svg { display: block; }
.ff-chat-reply {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.ff-chat-reply textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  background: #f8fafc;
  resize: none;
  min-height: 2.6rem;
  max-height: 7rem;
}
.ff-chat-voice-hud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border-radius: 16px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 700;
}
.ff-chat-reply.is-voice-cancel .ff-chat-voice-hud { background: #e2e8f0; color: #475569; }
.ff-chat-voice-hud__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ef4444;
  animation: ff-chat-pulse 1s infinite;
}
@keyframes ff-chat-pulse {
  50% { opacity: 0.35; }
}
.ff-chat-voice-btn, .ff-chat-send {
  flex: 0 0 auto;
  width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.ff-chat-send {
  background: #1a1d21;
  color: #fff;
  border-color: #1a1d21;
  font-size: 0;
  touch-action: manipulation;
}
.ff-chat-send.is-wait {
  opacity: 0.42;
  pointer-events: none;
}
.ff-chat-voice-btn.is-recording {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}
.ff-chat-voice-btn.is-voice-cancel {
  background: #64748b;
  border-color: #64748b;
}
.ff-chat-quote {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0.55rem 0;
  padding: 0.4rem 0.55rem;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  border-radius: 0 12px 12px 0;
}
.ff-chat-quote[hidden] { display: none; }
.ff-chat-quote__body { flex: 1; min-width: 0; }
.ff-chat-quote__body b { display: block; font-size: 0.78rem; color: #0f766e; }
.ff-chat-quote__body small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-chat-quote__x {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
  border-radius: 10px;
}
.ff-chat-qref {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(15, 118, 110, 0.08);
  border-left: 3px solid #0f766e;
  border-radius: 0 10px 10px 0;
  padding: 0.28rem 0.45rem;
  margin: 0 0 0.28rem;
  font: inherit;
  color: inherit;
}
.ff-chat-qref b { display: block; font-size: 0.72rem; color: #0f766e; }
.ff-chat-qref span {
  display: block;
  font-size: 0.78rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-chat-bubble.is-mine .ff-chat-qref {
  background: rgba(15, 23, 42, 0.1);
  border-left-color: var(--chat-mine-ink, #0f172a);
}
.ff-chat-bubble.is-mine .ff-chat-qref b,
.ff-chat-bubble.is-mine .ff-chat-qref span {
  color: var(--chat-mine-ink, #0f172a);
}
.ff-chat-bubble.is-mine .ff-chat-qref span { opacity: 0.78; }
.ff-chat-thread[data-ink="light"] .ff-chat-bubble.is-mine .ff-chat-qref {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: #fff;
}
.ff-chat-thread[data-ink="light"] .ff-chat-bubble.is-mine .ff-chat-qref b,
.ff-chat-thread[data-ink="light"] .ff-chat-bubble.is-mine .ff-chat-qref span {
  color: #fff;
  opacity: 1;
}
.ff-chat-thread[data-ink="light"] .ff-chat-bubble.is-mine .ff-chat-qref span {
  opacity: 0.88;
}
.ff-chat-bubble.is-jump .ff-chat-bubble__body {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}
.ff-chat-ctx {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.8rem 0.8rem calc(0.8rem + var(--sab));
  gap: 0.4rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ff-chat-ctx button,
.ff-chat-ctx label,
.ff-chat-ctx .ff-chat-set__t,
.ff-chat-ctx .ff-chat-check,
.ff-chat-ctx span {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ff-chat-ctx button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
}
.ff-chat-ctx button.is-on:not(.ff-chat-swatch):not(.ff-chat-wall) { background: #f0fdfa; color: #0f766e; }
.ff-chat-ctx__x { color: var(--muted); }
.ff-chat-set__t {
  margin: 0.45rem 0 0.25rem;
  padding: 0 0.15rem;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
}
.ff-chat-set__t:first-child { margin-top: 0.1rem; }
.ff-chat-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 0.9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.ff-chat-check input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  accent-color: #0f766e;
}
.ff-chat-check.is-off { color: #64748b; }
.ff-chat-theme {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.15rem 0.15rem 0.45rem;
}
.ff-chat-ctx .ff-chat-swatch,
.ff-chat-ctx .ff-chat-wall {
  flex: 0 0 auto;
  width: 2.35rem;
  min-height: 0;
  height: 2.35rem;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  padding: 0;
  background: transparent;
}
.ff-chat-swatch {
  border-radius: 999px;
}
.ff-chat-ctx .ff-chat-wall {
  width: 3.7rem;
  height: 2.7rem;
  border-radius: 10px;
  background-size: 80px 80px;
  background-repeat: repeat;
  background-position: center;
}
#ff-chat-set {
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.ff-chat-set__sheet {
  width: 100%;
  max-height: min(88vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0.85rem 0.85rem calc(0.9rem + var(--sab));
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, #ecfeff 0%, #f8fafc 28%, #f1f5f9 100%);
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
#ff-chat-set .ff-chat-ctx__x,
#ff-chat-set .ff-chat-wall-acts .ff-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ff-chat-swatch.is-on,
.ff-chat-wall.is-on {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}
.ff-chat-ctx .ff-chat-wall[data-wall="aqua"] {
  background-color: #5eb8c9;
  background-image: url("walls/aqua.jpg");
  background-size: cover;
}
.ff-chat-ctx .ff-chat-wall[data-wall="dots"] {
  background-color: #14b8a6;
  background-image: url("walls/dots.jpg");
  background-size: cover;
}
.ff-chat-ctx .ff-chat-wall[data-wall="glow"] {
  background-color: #a5f3fc;
  background-image: url("walls/glow.jpg");
  background-size: cover;
}
.ff-chat-ctx .ff-chat-wall[data-wall="doodle"] {
  background-color: #5eb8c9;
  background-image: url("walls/doodle.svg");
  background-size: cover;
}
.ff-chat-ctx .ff-chat-wall[data-wall="tg"] {
  background-color: #8eab96;
  background-image: url("walls/tg.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="wa"] {
  background-color: #ece5dd;
  background-image: url("walls/wa.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="aurora"] {
  background-color: #9ec5c0;
  background-image: url("walls/aurora.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="mist"] {
  background-color: #dbe7ef;
  background-image: url("walls/mist.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="pine"] {
  background-color: #d7e4d2;
  background-image: url("walls/pine.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="tide"] {
  background-color: #9ec5d8;
  background-image: url("walls/tide.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="linen"] {
  background-color: #f3ebe0;
  background-image: url("walls/linen.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="dusk"] {
  background-color: #0f172a;
  background-image: url("walls/dusk.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="lake"] {
  background-color: #6bb7d6;
  background-image: url("walls/lake.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="sunset"] {
  background-color: #f08a6b;
  background-image: url("walls/sunset.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="frost"] {
  background-color: #c9e0ef;
  background-image: url("walls/frost.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="reed"] {
  background-color: #e4c896;
  background-image: url("walls/reed.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="night"] {
  background-color: #243656;
  background-image: url("walls/night.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="paper"] {
  background-color: #f4efe6;
  background-image: url("walls/paper.svg");
}
.ff-chat-ctx .ff-chat-wall[data-wall="photo"] {
  background-color: #334155;
  background-image: var(--chat-wall-pick, linear-gradient(135deg, #0f766e, #155e75));
  background-size: cover;
  background-position: center;
}
.ff-chat-wall-acts {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}
.ff-chat-wall-acts .ff-btn {
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  color: #0f172a;
}
#ff-chat-ctx-del { color: #b91c1c; font-weight: 800; }
.ff-chat-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 55;
  display: block;
  touch-action: none;
  overscroll-behavior: none;
}
.ff-chat-zoom[hidden] { display: none !important; }
.ff-chat-zoom__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  padding: 1rem;
}
.ff-chat-zoom img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.ff-chat-zoom__x {
  position: absolute;
  top: calc(0.7rem + env(safe-area-inset-top, 0px));
  right: 0.7rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.ff-chat-ava.has-story {
  padding: 2px;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
}
.ff-chat-ava.has-story .ff-ava {
  border: 2px solid #fff;
  box-sizing: border-box;
}
.ff-zoom {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0b1220;
  color: #fff;
}
.ff-zoom.is-from-thumb {
  background: rgba(11, 18, 32, 0);
  transition: background 0.28s ease;
}
.ff-zoom.is-from-thumb.is-open {
  background: rgba(11, 18, 32, 0.96);
}
.ff-zoom.is-from-thumb .ff-zoom__stage {
  position: fixed;
  inset: auto;
  left: var(--zx, 0);
  top: var(--zy, 0);
  width: var(--zw, 100%);
  height: var(--zh, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 0.3s ease,
    border-radius 0.3s ease;
}
.ff-zoom.is-from-thumb.is-open .ff-zoom__stage {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: calc(3.4rem + var(--sat)) 3.2rem calc(2.8rem + var(--sab));
  border-radius: 0;
}
.ff-zoom.is-from-thumb:not(.is-open) .ff-zoom__x,
.ff-zoom.is-from-thumb:not(.is-open) .ff-zoom__nav,
.ff-zoom.is-from-thumb:not(.is-open) .ff-zoom__n {
  opacity: 0;
  pointer-events: none;
}
.ff-zoom__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(3.4rem + var(--sat)) 3.2rem calc(2.8rem + var(--sab));
  touch-action: none;
  overflow: hidden;
}
.ff-zoom__stage img,
.ff-zoom__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform-origin: center center;
  will-change: transform;
  transition: none;
}
.ff-zoom__poster {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}
.ff-zoom__vid.is-loading {
  opacity: 0;
}
.ff-zoom__vid.is-ready {
  opacity: 1;
  position: relative;
  z-index: 2;
}
.ff-zoom__stage.is-vid-ready .ff-zoom__poster {
  display: none;
}
.ff-zoom.is-pinched .ff-zoom__nav,
.ff-zoom.is-pinched .ff-zoom__n {
  opacity: 0.35;
  pointer-events: none;
}
.ff-zoom.is-from-thumb:not(.is-open) .ff-zoom__stage img,
.ff-zoom.is-from-thumb:not(.is-open) .ff-zoom__stage video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.ff-zoom__x {
  position: absolute;
  top: calc(0.55rem + var(--sat));
  right: 0.7rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.ff-zoom__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}
.ff-zoom__prev { left: 0.4rem; }
.ff-zoom__next { right: 0.4rem; }
.ff-zoom__n {
  text-align: center;
  padding: 0.55rem 0 calc(0.7rem + var(--sab));
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

@keyframes ff-pane-in-left {
  from { transform: translateX(16%); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}
@keyframes ff-pane-in-right {
  from { transform: translateX(-16%); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}
.ff-pane.is-swipe-left { animation: ff-pane-in-left 0.22s ease; }
.ff-pane.is-swipe-right { animation: ff-pane-in-right 0.22s ease; }

/* Prize wheel + my prizes — show-style */
.ff-wheel {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 0.75rem 0.65rem 1.5rem;
  border-radius: 1.25rem;
}
.ff-wheel--show {
  width: min(100%, 28rem);
  background:
    radial-gradient(ellipse at 50% 42%, #1e3a8a 0%, #0b1b3d 48%, #060e22 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.ff-wheel--show .ff-wheel__back {
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.ff-wheel__title {
  margin: 0;
  text-align: center;
  font: 800 clamp(1.2rem, 4vw, 1.55rem)/1.15 "Segoe UI", "Arial Black", "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef3c7;
  text-shadow: 0 2px 0 #92400e, 0 0 18px rgba(245, 197, 24, 0.45);
}
.ff-wheel__left {
  margin: 0;
  font-weight: 700;
  color: #cbd5e1;
}
.ff-wheel__left b { color: #fde68a; }
.ff-wheel__win {
  margin: 0;
  text-align: center;
  font: 800 1.35rem/1.2 "Segoe UI", "Arial Black", system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}
.ff-wheel__stage {
  position: relative;
  width: min(400px, 88vw);
  height: min(400px, 88vw);
  margin: 0.35rem 0;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
}
.ff-wheel__coins {
  pointer-events: none;
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 22%, #f5c518 0 6px, transparent 7px),
    radial-gradient(circle at 88% 18%, #eab308 0 5px, transparent 6px),
    radial-gradient(circle at 8% 78%, #fbbf24 0 7px, transparent 8px),
    radial-gradient(circle at 92% 72%, #f59e0b 0 5px, transparent 6px),
    radial-gradient(circle at 18% 48%, #fde68a 0 4px, transparent 5px),
    radial-gradient(circle at 78% 52%, #f5c518 0 6px, transparent 7px),
    radial-gradient(circle at 48% 8%, #eab308 0 4px, transparent 5px),
    radial-gradient(circle at 55% 94%, #fbbf24 0 5px, transparent 6px);
  opacity: 0.85;
  animation: ff-wheel-coins 7s ease-in-out infinite alternate;
}
@keyframes ff-wheel-coins {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(6px) rotate(2deg); }
}
.ff-wheel__stage canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.ff-wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 36px;
  margin-left: -14px;
  background: linear-gradient(180deg, #fff7cc 0%, #f5c518 40%, #a16207 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: polygon(50% 100%, 0 18%, 18% 0, 82% 0, 100% 18%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 197, 24, 0.55);
  border: 0;
}
.ff-wheel__pointer::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #854d0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ff-wheel__spin {
  min-width: 11rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5c518, #ef4444 55%, #b91c1c) !important;
  border: 2px solid #fde68a !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.45), 0 0 18px rgba(245, 197, 24, 0.25);
}
.ff-wheel__result {
  width: min(24rem, 100%);
  display: grid;
  gap: 0.65rem;
}
.ff-wheel__back { justify-self: start; }
.ff-prizes-list { display: grid; gap: 0.85rem; padding: 0.25rem 0 1.5rem; }
.ff-prize-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
}
.ff-prize-card--empty {
  background: linear-gradient(160deg, #fff7ed, #fff);
  border-color: #fdba74;
}
.ff-prize-card--bonus {
  background: linear-gradient(160deg, #ecfdf5, #fff);
  border-color: #6ee7b7;
}
.ff-prize-card__top {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.ff-prize-pill {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}
.ff-prize-card--empty .ff-prize-pill { background: #ffedd5; color: #c2410c; }
.ff-prize-card--bonus .ff-prize-pill { background: #d1fae5; color: #047857; }
.ff-prize-card__bar { padding: 0.35rem 0; background: #fff; }
.ff-prize-ean { display: block; max-width: 100%; height: auto; }
.ff-prize-code-text {
  font-family: ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.ff-prize-hint { margin: 0; font-size: 0.85rem; }
.ff-prize-hint--ok { color: #047857; font-weight: 600; }
.ff-prize-admin { display: grid; gap: 0.65rem; }
.ff-prize-admin-meta {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr 1fr;
}
.ff-prize-admin-meta label:first-child { grid-column: 1 / -1; }
.ff-prize-admin label { display: grid; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.ff-prize-admin input,
.ff-prize-admin select {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: inherit;
  background: #fff;
  min-width: 0;
}
.ff-prize-admin-add { display: grid; gap: 0.45rem; }
.ff-prize-admin-quick { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ff-prize-admin-items { display: grid; gap: 0.4rem; }
.ff-prize-admin-row {
  display: grid;
  grid-template-columns: 1fr 5.5rem 3.2rem 3.2rem 3.2rem 3.2rem auto;
  gap: 0.3rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.ff-prize-admin-row__label { grid-column: 1 / -2; }
.ff-prize-admin-rm {
  padding: 0.25rem 0.45rem !important;
  min-width: 2rem;
  line-height: 1;
}
.ff-prize-admin-until {
  grid-column: 1 / -1;
  font-size: 0.75rem;
}
.ff-prize-hits { display: grid; gap: 0.25rem; margin-top: 0.35rem; }
.ff-prize-hit {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  cursor: pointer;
}
.ff-prize-code-row {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) {
  .ff-prize-admin-meta { grid-template-columns: 1fr; }
  .ff-prize-admin-row {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
  .ff-prize-admin-row__label { grid-column: 1 / -1; }
  .ff-prize-admin-row__kind { grid-column: span 1; }
}

/* \u041f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0433\u0440\u0438\u0431\u043d\u0438\u043a\u0430 */
.ff-mush { display: grid; gap: 0.75rem; }
.ff-mush__head h2 { margin: 0; font-size: 1.1rem; }
.ff-mush__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.ff-mush-menu { position: relative; flex: 0 0 auto; }
.ff-miniapp__tools .ff-mush-more {
  width: 2.05rem;
  height: 2.05rem;
  border: 0;
  background: transparent;
  color: #334155;
  border-radius: 999px;
}
.ff-miniapp__tools .ff-mush-more:hover,
.ff-miniapp__tools .ff-mush-menu.is-open .ff-mush-more {
  background: #ecfdf8;
}
.ff-mush-more {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line, #d7efec);
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ff-mush-more:hover,
.ff-mush-menu.is-open .ff-mush-more {
  background: #ecfdf8;
  border-color: #99f6e4;
}
.ff-mush-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 12;
  width: min(19rem, calc(100vw - 2.2rem));
  padding: 0.7rem 0.8rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d7efec;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.ff-mush-src { margin: 0; font-size: 0.78rem; line-height: 1.4; }
.ff-mush-dl {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 750;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}
.ff-mush-dl:disabled { opacity: 0.7; }
.ff-mush-dlhint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}
.ff-mush-disc {
  position: relative;
  margin: 0;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ff-mush-disc__x {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a3412;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.ff-mush-disc__x:hover,
.ff-mush-disc__x:focus-visible {
  background: rgba(154, 52, 18, 0.1);
}
.ff-mush-disc__text { margin: 0; }
.ff-mush-disc__ack {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #7c2d12;
  opacity: 0.95;
}
.ff-mush-src { margin: 0.35rem 0 0; font-size: 0.72rem; line-height: 1.35; }
.ff-mush-filters { display: grid; gap: 0.5rem; }
.ff-mush-q {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.ff-mush-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ff-mush-chip {
  appearance: none;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.ff-mush-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  font-weight: 600;
}
.ff-mush-count { margin: 0; font-size: 0.78rem; }
.ff-mush-list {
  display: grid;
  gap: 0.55rem;
}
.ff-mush-card {
  position: relative;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ff-mush-card__hit {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ff-mush-card__img,
.ff-mush-card__ph {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}
.ff-mush-card__body {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-width: 0;
}
.ff-mush-card__body strong { font-size: 0.95rem; }
.ff-mush-card__body em {
  font-style: normal;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
}
.ff-mush-card__body small {
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  line-height: 1.3;
}
.ff-mush-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: #0f766e;
  color: #fff;
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
}
.ff-mush-detail { display: grid; gap: 0.55rem; }
.ff-mush-detail__back {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-weight: 600;
  padding: 0.2rem 0;
  cursor: pointer;
}
.ff-mush-detail__img {
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
}
.ff-mush-credit {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted, #64748b);
}
.ff-mush-detail h3 { margin: 0; font-size: 1.15rem; }
.ff-mush-la {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
}
.ff-mush-sp {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
.ff-mush-meta {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.ff-mush-meta div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.84rem;
}
.ff-mush-meta dt {
  margin: 0;
  color: var(--muted, #64748b);
  font-weight: 500;
}
.ff-mush-meta dd { margin: 0; }
.ff-mush-sum {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ff-mush-twins {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}
.ff-mush-twins h4 { margin: 0 0 0.35rem; font-size: 0.88rem; }
.ff-mush-twins ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.ff-mush-warn {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9a3412;
  font-weight: 600;
}

