/* frentzo: gactant's pieces (covers, banners, the chat) in a warmer, lighter house. */
body.fz {
  --bg: #f6f1e7;
  --pane: #fffaf1;
  --pane-2: #efe7d8;
  --line: #e0d5c2;
  --ink: #2b2622;
  --ink-2: #6b6157;
  --ink-3: #9a8f82;
  --amber: #c9701f;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}

/* ---------- the family's apps ---------- */
.fz-top { display: flex; align-items: baseline; gap: 14px; padding: 22px 24px 8px; }
.fz-brand { font: 700 26px var(--sans); color: var(--amber); letter-spacing: 0.01em; text-decoration: none; }
.fz-tag { color: var(--ink-2); }
.fz-main { max-width: 1100px; margin: 0 auto; padding: 12px 24px 40px; }
.fz-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.fz-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; padding: 18px; border-radius: 16px; background: var(--pane); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; box-shadow: 0 1px 3px rgba(60, 40, 20, 0.08); }
.fz-tile:hover, .fz-tile:focus-visible { border-color: var(--amber); }
.fz-tile-name { font: 600 20px var(--sans); overflow-wrap: anywhere; }
.fz-tile-when { color: var(--ink-3); font-size: 14px; }
.fz-new { border-style: dashed; background: transparent; }
.fz-new .fz-tile-name { color: var(--amber); }
.fz-hint { color: var(--ink-2); }
.fz-note { background: var(--pane); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 14px; margin: 12px 0; }
.fz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; color: var(--ink-2); font-size: 14px; }
.fz-foot a, .fz-foot .link-btn { color: var(--ink-2); flex: none; }
.fz-pair { margin-top: 12px; }

/* ---------- privacy and terms ---------- */
.fz-doc { max-width: 760px; line-height: 1.6; }
.fz-doc h1 { font: 700 32px var(--sans); margin: 8px 0 12px; }
.fz-doc h2 { font: 600 21px var(--sans); margin: 28px 0 8px; }
.fz-doc .fz-note h2 { margin-top: 14px; }
.fz-doc li { margin: 6px 0; }
.fz-doc a { color: var(--amber); }

/* ---------- an app ---------- */
body.fz-app { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.fz-frame { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0; grid-template-rows: minmax(0, 1fr); }
.fz-frame.chat-open { grid-template-columns: minmax(0, 1fr) min(400px, 40vw); }
.fz-frame .pane { border-radius: 0; border: 0; grid-area: auto; }
.fz-frame .stage-pane { position: relative; display: flex; flex-direction: column; background: var(--pane-2); }
.fz-frame .chat-pane { border-left: 1px solid var(--line); }
.fz-frame:not(.chat-open) .chat-pane { visibility: hidden; }
.fz-corner { position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; align-items: center; gap: 8px; }
.fz-menu { display: none; position: absolute; top: 58px; left: 0; padding: 10px; background: var(--pane); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(60, 40, 20, 0.15); }
.fz-menu.on { display: block; }
.fz-life { font: 13px var(--mono); background: rgba(255, 250, 241, 0.88); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.fz-life .light em { margin-left: 6px; }
.fz-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 250, 241, 0.9); color: var(--ink); font-size: 22px; text-decoration: none; padding: 0; }
.fz-changing { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: 24px; background: rgba(255, 250, 241, 0.95); border: 1px solid var(--amber); font-size: 14px; white-space: nowrap; }
.fz-btn.on { background: var(--amber); color: #fff; border-color: var(--amber); }
.fz-side { position: absolute; right: 20px; bottom: 20px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.chat-mic.fz-mic { width: 88px; height: 88px; border-radius: 50%; font-size: 38px; padding: 0; }
.fz-frame .toasts { right: 130px; }
/* On a phone, the chat comes up over the bottom of the stage instead of beside it. */
@media (max-width: 700px) {
  .fz-frame.chat-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 45fr) minmax(0, 55fr); }
  .fz-frame.chat-open .chat-pane { border-left: 0; border-top: 1px solid var(--line); }
  .fz-frame:not(.chat-open) .chat-pane { display: none; }
  .chat-mic.fz-mic { width: 72px; height: 72px; font-size: 30px; }
}
body.fz .chat-msg.mine .chat-text { background: #f3dcc0; }
body.fz .top-btn.danger { color: #b3261e; border-color: #d9908a; }
body.fz .top-btn.danger:hover { background: #b3261e; color: #fff; }
/* An app is touched where it is: no arrow pad. */
body.fz .pad { display: none; }
