/* ==========================================================================
   Freizeitagentur – redesign 2026
   One stylesheet for every page. Theme colours arrive as CSS variables from
   class.themes.php (one <style>:root{…}</style> per theme), so the user's
   theme choice in "Einstellungen" keeps working.

   Strategy: the PHP still emits its 2000s table markup. This file reskins
   that markup through element + attribute selectors (bgcolor, width, size…)
   instead of rewriting 230 pages. New markup (landing page, navigation,
   home grid, frames) uses .fz-* classes.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google request – DSGVO-safe) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations"), url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens (Standard theme defaults; themes override) ---------- */
:root {
  --paper: #E9EEE2;      /* sage paper */
  --card: #FFFFFF;
  --tint: #F1F5EC;       /* header rows, hovers */
  --ink: #15302A;        /* pine */
  --muted: #5B6F66;
  --line: #D3DCCB;
  --line-strong: #A9B8A3;
  --leaf: #2E7A4F;       /* links, primary */
  --leaf-deep: #1D5636;
  --sun: #F5C33B;        /* badges, focus, highlights */
  --lilac: #C9B8F0;      /* chat & messages */
  --alert: #C2362B;
  --nav-bg: #15302A;
  --nav-ink: #E4EEDF;
  --nav-dim: #9DB5A8;
  --on-leaf: #FFFFFF;

  --font-display: "Bricolage", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 !important;
  padding: 0;
  background: var(--paper) none !important;
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  font-size: 16px !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--line-strong) transparent;
}

/* legacy CSS set td to 12pt and links to 10pt – neutralise */
td, th, p, li, div, span, a, a:link, a:visited, u, b, strong, em, i { font-family: inherit; font-size: inherit; }
td, th { color: inherit; line-height: 1.5; }

font[face] { font-family: inherit; }
font[size="1"] { font-size: .8125rem; }
font[size="-1"], font[size="-2"] { font-size: .875em; }
font[size="2"] { font-size: .95rem; }
font[size="3"] { font-size: 1.125rem; }
font[size="4"], font[size="+1"] { font-size: 1.3rem; }
font[color="#ff0000" i], font[color="red" i], font[color="#cc0000" i] { color: var(--alert) !important; }
font[color="black" i], font[color="#000000"] { color: var(--ink) !important; }

img { max-width: 100%; border: 0; }
img:not([height]) { height: auto; }
img[src*="smileys/"], img[src*="moods/"] { vertical-align: -0.2em; }

hr { border: 0; height: 1px; background: var(--line); margin: 1.5rem 0; }

::selection { background: var(--sun); color: #15302A; }

/* ---------- Links ---------- */
a, a:link, a:visited {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--leaf) 35%, transparent);
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--ink); text-decoration-color: var(--sun); }
a.no_deco, a[style*="text-decoration: none"], a[style*="text-decoration:none"] { text-decoration: none; }
a.no_deco:hover { text-decoration: underline; text-decoration-color: var(--sun); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3, .form_header {
  font-family: var(--font-display);
  font-stretch: 82%;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 760; margin: .2em 0 .55em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin: 1.2em 0 .5em; }
h3 { font-size: 1.25rem; font-weight: 680; }
.form_header { font-size: 1.15rem; font-weight: 680; margin: 1em 0 .2em; }

/* "Hallo Name!" on home.php is wrapped in <u> – make it a highlighter swipe */
h1 u {
  text-decoration: none;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--sun) 75%, transparent) 64% 92%, transparent 92%);
  padding: 0 .08em;
}
h1 font[color] { color: inherit !important; }

blockquote { margin: 1rem 0; padding: .75rem 1.1rem; border-left: 4px solid var(--sun); background: var(--tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
ul, ol { padding-left: 1.3em; }
li { margin: .2em 0; }

/* ---------- Forms ---------- */
input[type="text" i], input[type="password" i], input[type="email" i], input[type="number" i],
input[type="search" i], input[type="url" i], input:not([type]), textarea, select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .5em .7em;
  max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { line-height: 1.5; width: min(100%, 44rem); resize: vertical; }
select { padding-right: 2em; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 70%, transparent); }

input[type="checkbox" i], input[type="radio" i] { accent-color: var(--leaf); width: 1.05em; height: 1.05em; vertical-align: -0.12em; margin: 0 .35em 0 0; }

input[type="submit" i], input[type="button" i], input[type="reset" i], button, input.button, .fz-btn {
  font: 700 1rem/1 var(--font-body);
  color: var(--on-leaf);
  background: var(--leaf);
  border: 0;
  border-radius: 999px;
  padding: .78em 1.45em;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--leaf-deep);
  transition: transform .08s, box-shadow .08s, background .15s;
  text-decoration: none;
  display: inline-block;
}
input[type="submit" i]:hover, input[type="button" i]:hover, button:hover, .fz-btn:hover { background: var(--leaf-deep); color: var(--on-leaf); }
input[type="submit" i]:active, input[type="button" i]:active, button:active, .fz-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--leaf-deep); }
input[type="reset" i] { background: var(--tint); color: var(--ink); box-shadow: 0 3px 0 var(--line-strong); }
input.intro { font-size: .95rem; }

/* form tables from html::show_form() */
form { margin: 1rem 0; }
form td[align="right" i] { color: var(--muted); padding-right: .8rem; white-space: nowrap; }
form td[align="right" i] b { font-weight: 700; color: var(--ink); }

/* ---------- Legacy tables → surfaces ---------- */
table { border-collapse: separate; border-spacing: 0; max-width: 100%; }

/* white content tables (items, widgets, forms) */
table[bgcolor="#ffffff" i], table[bgcolor="white" i], .fz-inner {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
/* nested white tables shouldn't stack borders */
table[bgcolor="#ffffff" i] table[bgcolor="#ffffff" i],
table[bgcolor="#ffffff" i] table[bgcolor="white" i],
.fz-widget table table { border: 0; border-radius: 0; }

/* the grey header rows used everywhere */
tr[bgcolor="#dddddd" i] > td, tr[bgcolor="#dedede" i] > td, td[bgcolor="#dedede" i], td[bgcolor="#dddddd" i],
tr[bgcolor="#ededed" i] > td, tr[bgcolor="#d3d3d3" i] > td, tr[bgcolor="#cccccc" i] > td, tr[bgcolor="#c0c0c0" i] > td {
  background: var(--tint) !important;
  color: var(--ink);
  padding: .7rem .95rem !important;
  border-bottom: 1px solid var(--line);
}
tr[bgcolor="#dddddd" i] b, tr[bgcolor="#dedede" i] b, td[bgcolor="#dedede" i] b { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; font-size: 1.04rem; }

/* the 2px "line_color" separator under widget headers → sun stripe */
td[height="2"][bgcolor] { background: linear-gradient(90deg, var(--sun), var(--sun) 40%, var(--leaf) 40%) !important; height: 3px; padding: 0 !important; line-height: 0; font-size: 0; }

/* coloured rows from older pages */
tr[bgcolor="#66cc76" i] > td, tr[bgcolor="#ccffcc" i] > td { background: var(--card) !important; border-bottom: 1px solid var(--line); }
table[bgcolor="#f5f5f5" i], td[bgcolor="#f5f5f5" i], table[bgcolor="#ededed" i], table[bgcolor="#EFEFEF" i] { background: transparent !important; }
table[bgcolor="#c0c0c0" i] { background: var(--tint) !important; border-radius: var(--r-md); }

/* zebra-friendly hover on data lists */
.fz-sheet table[bgcolor] tr:not([bgcolor]):hover > td { background: color-mix(in srgb, var(--tint) 60%, transparent); }

/* fixed-width legacy boxes shrink on small screens */
table[width="750"], td[width="750"], table[width="700"], table[width="600"] { width: 100% !important; max-width: 100%; }

/* ---------- Page sheet (process() wrapper) ---------- */
.fz-sheet {
  width: min(1120px, calc(100% - 32px)) !important;
  margin: clamp(16px, 3vw, 36px) auto 40px;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg);
  text-align: left;
}
.fz-sheet > tbody > tr > td, td.fz-sheet { padding: clamp(20px, 3.4vw, 44px) !important; }
td.fz-sheet { border-radius: var(--r-lg); }

/* paging bar */
.pages { clear: both; font-size: .95rem; margin: 1.5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pages a, .pages span.current, .pages span.dots {
  float: none !important; margin: 0 !important; min-width: 2.4em; text-align: center;
  padding: .45em .7em !important; border-radius: 999px !important; text-decoration: none;
  border: 1.5px solid var(--line) !important; background: var(--card) !important; color: var(--ink) !important;
}
.pages a:hover { border-color: var(--leaf) !important; }
.pages span.current { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--paper) !important; font-weight: 700; }
.pages span.dots { border-color: transparent !important; background: transparent !important; }

/* error box from process() */
.fz-error { border-left-color: var(--alert); background: color-mix(in srgb, var(--alert) 8%, var(--card)); }

/* guest layout (no session): sidebar + sheet */
.fz-guestshell { width: min(1180px, calc(100% - 24px)); margin: 24px auto 40px; border-spacing: 20px 0 !important; }
.fz-guestnav {
  width: 230px; min-width: 230px; vertical-align: top;
  background: var(--nav-bg) !important; color: var(--nav-ink);
  border-radius: var(--r-lg); padding: 22px 18px !important;
}
.fz-guestnav a, .fz-guestnav a:link, .fz-guestnav a:visited { color: var(--nav-ink); }
.fz-guestnav td { color: var(--nav-dim); }
.fz-guestnav form table, .fz-guestnav form tbody, .fz-guestnav form tr, .fz-guestnav form td { display: block; width: 100%; text-align: left !important; padding: 0; }
.fz-guestnav form td { margin-bottom: 4px; font-size: .85rem; font-weight: 700; }
.fz-guestnav form td[colspan] { margin-top: 8px; }
.fz-guestnav input.intro { width: 100%; background: color-mix(in srgb, var(--nav-ink) 8%, transparent); border-color: color-mix(in srgb, var(--nav-ink) 25%, transparent); color: var(--nav-ink); }
.fz-guestnav input[type="submit" i] { background: var(--sun); color: #15302A; box-shadow: 0 3px 0 #B8891A; width: 100%; }
.fz-guestnav .fz-wordmark { margin-bottom: 14px; }
.fz-guestnav .fz-bullet { background: var(--sun); }
.fz-promo { margin: 0 auto 2rem; max-width: 40rem; background: var(--sun); color: #15302A; border-radius: var(--r-md); padding: 1.1rem 1.4rem; text-align: center; }
.fz-promo a, .fz-promo a:link, .fz-promo a:visited { color: #15302A; font-family: var(--font-display); font-weight: 760; font-stretch: 85%; font-size: 1.35rem; text-decoration: none; }
.fz-promo p { margin: .25rem 0 0; }

/* ---------- Bullets (replace the old arrow gifs) ---------- */
.fz-bullet { display: inline-block; width: .5em; height: .5em; border-radius: 2px; background: var(--leaf); transform: rotate(45deg); margin: 0 .55em .12em .15em; vertical-align: middle; flex: none; }

/* ---------- Wordmark ---------- */
.fz-wordmark { display: inline-flex; align-items: baseline; gap: .1em; font-family: var(--font-display); font-weight: 780; font-stretch: 78%; font-size: 1.6rem; line-height: .95; letter-spacing: -0.02em; color: inherit; text-decoration: none !important; }
.fz-wordmark .fz-dot { width: .34em; height: .34em; border-radius: 50%; background: var(--sun); display: inline-block; transform: translateY(-.05em); }

/* =========================================================================
   Navigation frame (navigation.php)
   ========================================================================= */
body.fz-nav { background: var(--nav-bg) !important; color: var(--nav-ink); font-size: 15px !important; }
.fz-nav a, .fz-nav a:link, .fz-nav a:visited { color: var(--nav-ink); text-decoration: none; }
.fz-nav-inner { padding: 20px 14px 28px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
.fz-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.fz-nav-top .fz-wordmark { font-size: 1.45rem; color: var(--nav-ink); }
.fz-nav-refresh { font-size: .8rem; color: var(--nav-dim) !important; border: 1px solid color-mix(in srgb, var(--nav-ink) 22%, transparent); border-radius: 999px; padding: .25em .7em; }
.fz-nav-refresh:hover { color: var(--nav-ink) !important; border-color: var(--sun); }
.fz-nav-home { display: flex; align-items: center; gap: .6em; padding: .7em .85em; border-radius: var(--r-md); background: color-mix(in srgb, var(--nav-ink) 9%, transparent); font-weight: 700; }
.fz-nav-home:hover { background: color-mix(in srgb, var(--nav-ink) 15%, transparent); }
.fz-nav-group h2 { font: 650 .98rem/1 var(--font-display); font-stretch: 90%; color: var(--nav-dim); letter-spacing: 0; margin: 0 0 .55rem; padding: 0 8px; }
.fz-nav-list { list-style: none; margin: 0; padding: 0; }
.fz-nav-list li { margin: 0; }
.fz-nav-list a { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .42em .55em .42em .6em; border-radius: var(--r-sm); line-height: 1.25; }
.fz-nav-list a:hover { background: color-mix(in srgb, var(--nav-ink) 10%, transparent); }
.fz-count { font: 700 .78rem/1 var(--font-body); background: var(--sun); color: #15302A; border-radius: 999px; padding: .32em .6em; min-width: 1.9em; text-align: center; }
.fz-count.is-mail { background: var(--lilac); }
.fz-nav-empty { color: var(--nav-dim); font-size: .9rem; padding: 0 .6em; margin: 0; }
.fz-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.fz-chips a { font-size: .86rem; padding: .38em .72em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--nav-ink) 24%, transparent); }
.fz-chips a::before { content: "+"; margin-right: .3em; color: var(--sun); font-weight: 700; }
.fz-chips a:hover { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 14%, transparent); }
.fz-nav-logout { margin-top: auto; padding: .7em .8em; border-radius: var(--r-md); border: 1px dashed color-mix(in srgb, var(--nav-ink) 28%, transparent); text-align: center; color: var(--nav-dim) !important; }
.fz-nav-logout:hover { color: var(--nav-ink) !important; border-color: var(--sun); }
.fz-nav-admin { background: color-mix(in srgb, var(--nav-ink) 6%, transparent); border-radius: var(--r-md); padding: 12px 6px; }
.fz-nav-admin h2 { color: var(--sun); }
.fz-nav-admin .fz-nav-list a { font-size: .9rem; padding: .3em .6em; }
.fz-nav-admin em a { color: var(--nav-dim) !important; font-size: .8rem; }

/* =========================================================================
   Top frames (quick chat + online)
   ========================================================================= */
body.fz-top { font-size: 14px !important; background: var(--paper) !important; overflow: hidden; }
.fz-strip { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 18px; overflow: hidden; border-bottom: 1px solid var(--line); }
.fz-strip-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.fz-strip-head strong { font-family: var(--font-display); font-stretch: 85%; font-size: 1.05rem; color: var(--ink); margin-right: 4px; }
.fz-strip-head a { color: var(--muted) !important; text-decoration: none; }
.fz-strip-head a:hover { color: var(--leaf) !important; }
.fz-strip-head a.fz-strip-cta { color: var(--ink) !important; background: var(--lilac); padding: .2em .7em; border-radius: 999px; font-weight: 700; }
.fz-lines { display: flex; flex-direction: column; gap: 0; overflow: hidden; max-height: calc(1.35em * 3); flex: none; }
.fz-line { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; height: 1.35em; }
.fz-line img, .fz-quote img { height: 1em; width: auto; vertical-align: -0.15em; }
.fz-strip-head { flex: none; }
.fz-line a { font-weight: 700; text-decoration: none; color: var(--leaf-deep) !important; }
.fz-quote { font-style: italic; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-quote b { font-weight: 400; color: var(--ink); font-style: normal; }
.fz-online { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.fz-online::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px color-mix(in srgb, #3BB273 25%, transparent); }
.fz-im-alert { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100vh; }
.fz-im-alert a { font-weight: 700; background: var(--lilac); color: var(--ink) !important; padding: .5em 1em; border-radius: 999px; text-decoration: none; }

/* =========================================================================
   Bottom frame (search bar)
   ========================================================================= */
body.fz-bottom { background: var(--paper) !important; overflow: hidden; font-size: 14px !important; }
.fz-searchbar { display: flex; align-items: center; gap: 10px; height: 100vh; padding: 0 18px; border-top: 1px solid var(--line); }
.fz-searchbar form { margin: 0; display: flex; align-items: center; gap: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 12px; }
.fz-searchbar form:focus-within { border-color: var(--leaf); }
.fz-searchbar label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.fz-searchbar input[type="text" i], .fz-searchbar input:not([type]) { border: 0; padding: .3em .4em; width: 9rem; background: transparent; box-shadow: none !important; font-size: .92rem; }
.fz-searchbar input[type="submit" i] { padding: .45em .9em; font-size: .82rem; box-shadow: none; }

/* =========================================================================
   Home (home.php)
   ========================================================================= */
.fz-home-head { margin-bottom: 1.5rem; }
.fz-home-head h1 { text-align: left; margin-top: 0; }
.fz-todo { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.fz-todo li { margin: 0; }
.fz-todo a { display: inline-block; background: color-mix(in srgb, var(--sun) 28%, var(--card)); border: 1px solid color-mix(in srgb, var(--sun) 70%, var(--line)); color: var(--ink) !important; padding: .45em .9em; border-radius: 999px; text-decoration: none; font-size: .95rem; }
.fz-todo a:hover { background: var(--sun); }
.fz-news { border-left: 4px solid var(--leaf); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 1.4rem; max-width: 46rem; }
.fz-news time { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; color: var(--leaf); }
.fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.fz-widget { min-width: 0; overflow: hidden; border-radius: var(--r-md); }
.fz-widget input[type="text" i], .fz-widget input:not([type]) { width: 100%; min-width: 0; }
.fz-widget table { table-layout: auto; }
.fz-widget > table, .fz-widget > center > table, .fz-widget table[width] { width: 100% !important; }
.fz-widget td[width] { width: auto !important; }
.fz-widget > table, .fz-widget > center > table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.fz-widget.is-wide { grid-column: 1 / -1; }
.fz-home-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.fz-home-foot a { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted) !important; }
.fz-home-foot a:hover { color: var(--leaf) !important; }

/* =========================================================================
   Landing page (index.php)
   ========================================================================= */
html:has(body.fz-landing), body.fz-landing { overflow-x: clip; }
body.fz-landing { background: var(--paper) !important; }
.fz-landing-wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.fz-landing-bar { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.fz-landing-bar .fz-wordmark { font-size: 1.75rem; color: var(--ink); }
.fz-landing-bar nav { display: flex; gap: 20px; font-weight: 700; }
.fz-landing-bar nav a { text-decoration: none; color: var(--ink) !important; }
.fz-landing-bar nav a:hover { color: var(--leaf) !important; }

.fz-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.fz-hero::before { /* the sun */
  content: ""; position: absolute; z-index: 0; width: clamp(260px, 34vw, 470px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); right: clamp(-120px, -6vw, -40px); top: clamp(-40px, -2vw, 0px);
  animation: fz-rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.fz-hero > * { position: relative; z-index: 1; }
.fz-hero h1 {
  font-size: clamp(3.4rem, 10.5vw, 9.4rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.018em;
  margin: 0 0 .32em;
  color: var(--ink);
  text-wrap: initial;
}
.fz-hero h1 span { display: block; }
.fz-hero h1 span:nth-child(2) { padding-left: .55em; color: var(--leaf); }
.fz-hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; margin: 0 0 1.4rem; }
.fz-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fz-facts li { margin: 0; padding: .5em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.fz-facts li img { margin-right: .35em; }

/* Login as a membership card – the one bold object on the page */
.fz-card-login {
  background: var(--ink);
  color: #EAF2E6;
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 10px 10px 0 var(--leaf);
  transform: rotate(-2.2deg);
  max-width: 420px;
  justify-self: end;
  width: 100%;
  animation: fz-deal .9s .15s cubic-bezier(.2,.8,.2,1) backwards;
  position: relative;
  overflow: hidden;
}
.fz-card-login::after { /* stripe */
  content: ""; position: absolute; left: 0; right: 0; top: 96px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 22px, transparent 22px 30px);
  opacity: .9;
}
.fz-card-login:focus-within { transform: rotate(0deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fz-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 70px; margin-bottom: 40px; }
.fz-card-head h2 { margin: 0; color: #EAF2E6; font-size: 1.6rem; font-weight: 760; font-stretch: 80%; }
.fz-card-head small { display: block; color: #9DB5A8; font-size: .85rem; margin-top: 4px; }
.fz-card-head img { width: 44px; height: 44px; image-rendering: pixelated; }
.fz-card-login label { display: block; font-size: .85rem; color: #B9CCC0; margin: 0 0 4px; font-weight: 700; }
.fz-card-login .fz-field { margin-bottom: 14px; }
.fz-card-login input[type="text" i], .fz-card-login input[type="password" i], .fz-card-login input:not([type]) {
  width: 100%; background: rgba(234,242,230,.08); color: #fff; border: 1.5px solid rgba(234,242,230,.25); font-size: 1.05rem; padding: .65em .8em;
}
.fz-card-login input:focus { border-color: var(--sun); }
.fz-card-login button { width: 100%; background: var(--sun); color: #15302A; box-shadow: 0 4px 0 #B8891A; font-size: 1.05rem; margin-top: 4px; }
.fz-card-login button:hover { background: #FFD45C; color: #15302A; }
.fz-card-login button:active { box-shadow: 0 1px 0 #B8891A; }
.fz-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .92rem; }
.fz-card-foot a, .fz-card-foot a:link, .fz-card-foot a:visited { color: #EAF2E6; text-decoration-color: rgba(245,195,59,.6); }
.fz-card-foot a:hover { color: var(--sun); }
.fz-card-foot .fz-signup { font-weight: 700; }

.fz-features { padding: clamp(40px, 6vw, 80px) 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); }
.fz-features > h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.6rem); font-stretch: 78%; font-weight: 800; line-height: .95; }
.fz-features dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
.fz-features dt { font-family: var(--font-display); font-stretch: 85%; font-weight: 720; font-size: 1.3rem; display: flex; align-items: center; gap: .45em; margin-bottom: .3em; }
.fz-features dd { margin: 0; color: var(--muted); max-width: 32rem; }
.fz-features .is-wide { grid-column: 1 / -1; }
.fz-landing-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

@keyframes fz-rise { from { transform: translateY(40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fz-deal { from { transform: translateY(24px) rotate(4deg); opacity: 0; } to { transform: rotate(-2.2deg); opacity: 1; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 880px) {
  .fz-hero { grid-template-columns: 1fr; }
  .fz-card-login { justify-self: start; transform: rotate(-1deg); }
  .fz-features { grid-template-columns: 1fr; }
  .fz-guestshell, .fz-guestshell > tbody, .fz-guestshell > tbody > tr, .fz-guestshell > tbody > tr > td { display: block; width: 100% !important; }
  .fz-guestshell { border-spacing: 0 !important; }
  .fz-guestnav { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .fz-hero::before { width: 170px; right: -50px; top: 0; }
  .fz-hero h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .fz-features dl { grid-template-columns: 1fr; }
  .fz-landing-bar nav { display: none; }
  .fz-hero h1 span:nth-child(2) { padding-left: .25em; }
  form td[align="right" i] { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* right half of the top strip */
body.fz-top-right .fz-strip { border-left: 1px solid var(--line); }

/* =========================================================================
   Game pages (index.php inside each game folder), applets run via CheerpJ
   ========================================================================= */
body.fz-game { background: #0E1714 !important; color: #E4EEDF; min-height: 100vh; display: flex; flex-direction: column; }
.fz-game a, .fz-game a:link, .fz-game a:visited { color: #E4EEDF; }
.fz-game-bar { display: flex; align-items: center; gap: 18px; padding: 16px clamp(16px, 3vw, 32px); border-bottom: 1px solid rgba(228,238,223,.12); }
.fz-game-bar h1 { margin: 0; color: #E4EEDF; font-size: 1.7rem; font-stretch: 78%; flex: 1; text-align: center; }
.fz-game-back { text-decoration: none; font-weight: 700; border: 1px solid rgba(228,238,223,.25); border-radius: 999px; padding: .35em .9em; }
.fz-game-back::before { content: "\2039"; margin-right: .45em; color: var(--sun); }
.fz-game-back:hover { border-color: var(--sun); }
.fz-game-links { display: flex; gap: 14px; font-size: .95rem; }
.fz-game-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 16px; }
.fz-game-frame { position: relative; max-width: 100%; background: #000; border-radius: 6px; box-shadow: 0 0 0 6px #1D2A25, 0 0 0 7px rgba(245,195,59,.35), 0 24px 60px rgba(0,0,0,.5); }
.fz-game-frame cheerpj-applet { display: block; }
.fz-game-loading { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #9DB5A8; font-size: .95rem; text-align: center; padding: 1em; pointer-events: none; }
.fz-game-hint { margin: 0; color: #9DB5A8; font-size: .92rem; text-align: center; }
.fz-game-foot { text-align: center; padding: 14px; font-size: .8rem; color: #7E948A; }
.fz-game-foot a { color: #9DB5A8 !important; }
@media (max-width: 560px) { .fz-game-links { display: none; } }

/* Games overview (show-games.php) */
.fz-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 1.5rem 0; }
.fz-gamecard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 16px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.fz-gamecard h2 { margin: 0; font-size: 1.5rem; }
.fz-gamecard p { margin: 0; color: var(--muted); font-size: .95rem; }
.fz-gamecard .fz-btn { align-self: flex-start; margin-top: auto; }
a.fz-btn, a.fz-btn:link, a.fz-btn:visited, a.fz-btn:hover { color: var(--on-leaf); text-decoration: none; }
.fz-gamecard nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; }

/* sign-up honeypot: invisible to people, still in the DOM for bots */
.fz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* poll result bars (replaced the stretched male.gif images) */
td:has(> .fz-bar) { white-space: nowrap; }
.fz-bar { display: inline-block; vertical-align: middle; width: clamp(4rem, 55%, 12rem); height: 10px; border-radius: 999px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-right: .5em; }
.fz-bar > span { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--leaf); }
.fz-bar-female > span { background: #C2264B; }
.fz-bar-couple > span { background: var(--sun); }
.fz-bar-family > span { background: #6B5BD2; }

/* forum thread subscription */
.fz-subform { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: .8rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
.fz-subform span { color: var(--muted); }
input.fz-btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); padding: .55em 1.1em; font-size: .9rem; }
input.fz-btn-quiet:hover { background: var(--tint); color: var(--ink); }
