/* luckiest-guy-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Luckiest Guy';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/luckiest-guy-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */}
/* =========================================================
   Font4Social — Sky + Surface UI (dark default + light)
   Works with your header/footer markup without HTML changes
========================================================= */

/* ========== Reset ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none;}
/* ========== Theme Tokens (DEFAULT = DARK) ========== */
:root{
  /* layout */
  --container-width: 800px;
  --container-wide: 1440px;

  /* core */
  --page-bg: #1a1a2e;
  --text: #eef2ff;
  --muted: rgba(238,242,255,.78);

  /* sky / clouds */
  --sky-bg: #2c2554;
  --cloud-paint: #ffffff;
  --cloud-alpha: .22;
  --stars-visible: .85;
  --menu-hover:#00ffea;
  /* surfaces */
  --surface: #1a1f33;
  --paper: #14182a;      /* <-- not white in dark */
  --stroke: #060812;
  --heading-shadow: -2px -2px 0 #000,
                  2px -2px 0 #000,
                 -2px  2px 0 #000,
                  2px  2px 0 #000;
   
/*------------- HERO BLOCK CUSTOM ---------------*/
  
   /* ---------- HERO BLOCK CUSTOM END ------------ */
  /* brand & accents */
  --brand-color: #ffd43b;
  --accent: #3dd6ff;
  --accent-hover: #1fc2ee;
  --accent-2: #ff5aa5;
  --contrast-color:#fff;
  --success: #33e28e;
  --brand-glow:0 0 15px #FFD90F;
  --logo-accent: #60c5fa;
  --yellow-pink:#ffd43b;
  /* shadows & radius */
  --shadow-hard: 0 10px 0 rgba(0,0,0,.35), 0 18px 32px rgba(0,0,0,.35);
  --shadow-soft: 0 14px 38px rgba(0,0,0,.28);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* mapping for your existing CSS names (compat layer) */
  --bg: var(--page-bg);
  --header-bg: transparent;
  --btn-bg: var(--accent);
  --btn-hover: var(--accent-hover);
  --copy-bg: var(--success);
  --copy-hover: #22c878;
  --input-bg: var(--paper);
  --input-text: var(--text);
  --output-bg: var(--surface);
  --output-text: var(--text);
  --symbol-bg: var(--paper);
  --symbol-hover: rgba(255,255,255,.06);
  --symbol-shadow: 0 10px 22px rgba(0,0,0,.25);
  --toast-bg: var(--success);
  --toast-text: #0b1410;
  --border-radius: 12px;

  /* footer tokens */
  --footer-bg: var(--surface);
  --footer-text: var(--text);
  --footer-link: rgba(238,242,255,.78);
  --footer-link-hover: var(--brand-color);
  --footer-border: rgba(255,255,255,.08);
  --footer-heading: var(--brand-color);
  --footer-logo-color: var(--text);
  --footer-bottom-bg: rgba(0,0,0,.15);
  --footer-bottom-text: rgba(238,242,255,.62);

  /* toggle track (your donut switch) */
  --toggle-track: rgba(255,255,255,.10);
  --toggle-track-light: rgba(0,0,0,.10);
  --f4s-gap: 16px;
  --f4s-radius-xl: 22px;
  --f4s-radius-lg: 14px;
  
  /* Кольори (Dark Theme Default) */
  --f4s-text: #ffffff;
  --f4s-muted: rgba(255, 255, 255, 0.78);
  --f4s-ink: #000000;       /* Чорна обводка */
  
  --f4s-bg-card: #242A63;   /* Фон великої картки */
  --f4s-bg-ui: #1C2148;     /* Фон кнопок/панелей */
  --f4s-bg-tip: rgba(255, 255, 255, 0.08); /* Фон підказки */
  
  --f4s-brand: #F2D13D;     /* Жовтий */
  --f4s-cyan: #00E6FF;
  --f4s-ok: #42E58C;
  --f4s-warn: #ff4d6d;

  --f4s-border-color: rgba(0,0,0,1);
  --f4s-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

  

/* ========== LIGHT THEME (body.light-theme) ========== */
body.light-theme{
  --page-bg: #ffe24d;            /* warm yellow page */
  --text: #0b0d13;
  --muted: rgba(11,13,19,.70);

  --sky-bg: #62c9ff;
  --cloud-paint: #ffffff;
  --cloud-alpha: .92;
  --stars-visible: 0;
  --menu-hover: #ffd43b;
  --contrast-color:#000;
  --surface: #fff0b0;
  --paper: #fff7cc;
  --stroke: #0b0b0b;
/*------------- HERO BLOCK CUSTOM ---------------*/

   /* ---------- HERO BLOCK CUSTOM END ------------ */
  --brand-color: #ffd43b;
  --accent: #1f77ff;
  --accent-hover: #1660d3;
  --accent-2: #ff4aa3;
  --success: #16c06f;
  --logo-accent: #FF4D6D;
  --yellow-pink:#FF4D6D;
  --shadow-hard: 0 10px 0 rgba(0,0,0,.18), 0 18px 32px rgba(0,0,0,.18);
  --shadow-soft: 0 14px 34px rgba(0,0,0,.16);

  --toast-bg: #16c06f;
  --toast-text: #062314;

  --footer-bg: #fff0b0;
  --footer-text: #0b0d13;
  --footer-link: rgba(11,13,19,.74);
  --footer-link-hover: var(--accent);
  --footer-border: rgba(0,0,0,.12);
  --footer-heading: #0b0d13;
  --footer-bottom-bg: rgba(0,0,0,.06);
  --footer-bottom-text: rgba(11,13,19,.65);
--heading-shadow: none;

   --f4s-text: #111111;
  --f4s-muted: rgba(0, 0, 0, 0.65);
  --f4s-bg-card: #fff7cc;
  --f4s-bg-ui: #a3a29d;
  --f4s-bg-tip: rgba(255, 255, 255, 0.50);
  --f4s-brand: #FFD90F;
  --f4s-border-color: #000000;
}

/* ========== Base ========== */
body{
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.55;
  transition: background .25s ease, color .25s ease;
  padding: 14px 7px 7px;
}
@media (max-width: 700px){
  body{ padding: 14px 14px 0px; }
}

:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ========== Typography helpers ========== */
h1,h2,h3{
  font-family: "Luckiest Guy", cursive;
  line-height: 1.15;
  letter-spacing: 2px;
  text-shadow: var(--heading-shadow);
}
p{ color: var(--muted); }

/* =========================================================
   HEADER (your markup: .cartoon-header + burger + dropdown)
========================================================= */
.cartoon-header{
  background: var(--sky-bg);
  position: relative;
  overflow: hidden;
  max-width: var(--container-wide);
  margin: 0 auto 26px auto;
  padding: 20px 40px 35px 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 20px 20px;
  filter: drop-shadow(0px 14px 10px rgba(0,0,0,.20));
  border: 3px solid rgba(0,0,0,1);
  transition: background .25s ease;
   
}

/* wavy bottom mask */
.cartoon-header{
  /* mask-image:
    linear-gradient(black, black),
    radial-gradient(circle at 50% 0, black 70%, transparent 71%);
  mask-size:100% calc(100% - 18px), 39px 29px;
  mask-position: top center, bottom left;
  mask-repeat: no-repeat, repeat-x;

  -webkit-mask-image:
    linear-gradient(black, black),
    radial-gradient(circle at 50% 0, black 70%, transparent 71%);
  -webkit-mask-size: 100% calc(100% - 18px), 39px 29px;
  -webkit-mask-position: top center, bottom left;
  -webkit-mask-repeat: no-repeat, repeat-x; */
}

/* stars */
.bg-stars{
  position:absolute;
  inset:0;
  opacity: var(--stars-visible);
  pointer-events:none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 160px 120px, #fff, transparent),
    radial-gradient(2px 2px at 240px 60px, #fff, transparent);
  background-repeat: repeat;
  background-size: 260px 180px;
  transition: opacity .25s ease;
}

/* clouds */
.sky-cloud{
  background: var(--cloud-paint);
  opacity: var(--cloud-alpha);
  width: 110px;
  height: 38px;
  border-radius: 200px;
  position: absolute;
  z-index: 1;
  transition: background .25s ease, opacity .25s ease;
}
.sky-cloud::after, .sky-cloud::before{
  content:'';
  position:absolute;
  background: inherit;
  border-radius: 50%;
}
.sky-cloud::after{ width: 42px; height: 42px; top: -20px; left: 16px; }
.sky-cloud::before{ width: 58px; height: 58px; top: -30px; left: 42px; }

@keyframes drift{
  0%{ transform: translateX(0px); }
  50%{ transform: translateX(18px); }
  100%{ transform: translateX(0px); }
}
.cloud-1{ top: 26px; left: 10%; transform: scale(1.15); animation: drift 8s infinite ease-in-out; }
.cloud-2{ top: 62px; right: 14%; transform: scale(.82); opacity: calc(var(--cloud-alpha) * .72); animation: drift 12s infinite ease-in-out reverse; }
.cloud-3{ top: 83px; right: 40%; transform: scale(.62); opacity: calc(var(--cloud-alpha) * .55); animation: drift 15s infinite ease-in-out; }

/* inner layout */
.header-inner{
  position: relative;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

/* logo */
.brand-logo{
   font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    color: var(--brand-color);
    text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.3);
    filter: drop-shadow(var(--brand-glow));
    text-decoration: none;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    transition: filter 0.5s ease;
}
.brand-logo:hover{ transform: rotate(-2.5deg) translateY(-1px); }

.logo-accent{
   color:var(--logo-accent);
   font-size:4rem;
}

body.light-theme .brand-logo{
  color: var(--brand-color);
  text-shadow:
    -3px -3px 0 #000, 3px -3px 0 #000,
    -3px  3px 0 #000, 3px  3px 0 #000,
     6px  6px 0 rgba(0,0,0,.10);
   filter:none;
}

/* nav links */
.main-nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.menu-link{
  font-family: "Luckiest Guy", system-ui, sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 14px;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
  transition: transform .2s cubic-bezier(.68,-0.55,.265,1.55), filter .2s, color .2s;
}
.menu-link:hover{
  color: var(--menu-hover);
  transform: scale(1.12) rotate(-3deg) translateY(-3px);
  filter: drop-shadow(0 0 8px var(--menu-hover));
}

/* burger */
.nav-toggle{
  display:none;
  border: 2px solid rgba(0,0,0,.18);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  width: 46px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0,0,0,.20);
  cursor:pointer;
  position: relative;
}
.nav-toggle span{
  display:block;
  height: 3px;
  width: 22px;
  background: #0b0b0b;
  border-radius: 999px;
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}
.nav-toggle span:nth-child(1){ top: 12px; }
.nav-toggle span:nth-child(2){ top: 19px; }
.nav-toggle span:nth-child(3){ top: 26px; }

body:not(.light-theme) .nav-toggle span{ background: #fff; }
body:not(.light-theme) .nav-toggle{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 6px 0 rgba(0,0,0,.32);
}

/* open state for burger (JS adds .is-open on button) */
.nav-toggle.is-open span:nth-child(1){ top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* dropdown */
.dropdown{ position: relative; }
.dropdown-btn{
  background: transparent;
  border: none;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.dropdown-btn .caret{ opacity: .95; }

.dropdown-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid rgba(0,0,0,.16);
  box-shadow: var(--shadow-soft);
  display:none;
  z-index: 40;
}
body:not(.light-theme) .dropdown-menu{
  border-color: rgba(255,255,255,.14);
}
.dropdown-btn[aria-expanded="true"] + .dropdown-menu{ display:block; }

.dropdown-item{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 800;
  color: var(--text);
  background: transparent;
  transition: transform .12s ease, background .15s ease;
}
.dropdown-item:hover{
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}

/* Mobile nav behavior */
body.nav-open{ overflow: hidden; }
body.nav-open::before{
  content:"";
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index: 500;
}

/* mobile layout */
@media (max-width: 870px){
  .cartoon-header{ padding: 16px 16px 16px 16px;}
  .brand-logo{ font-size: 2rem; }
  .nav-toggle{ display:block; z-index: 520; }

  .header-inner{
    z-index: 520;
  }
  .main-nav{
    position:absolute;
    z-index: 520;
    right: 14px;
    top: 74px;
    width: min(340px, calc(100% - 28px));
    display:flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: var(--paper);
    border: 2px solid rgba(0,0,0,.16);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    margin-top: 60px;
  }
  body:not(.light-theme) .main-nav{ border-color: rgba(255,255,255,.14); }

  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    margin-top: 60px;
  }
 body.nav-open .cartoon-header{
    min-height: 96vh;
    filter:none;
    mask: none; 
  }
  .menu-link{
    color: var(--text);
    text-shadow: none;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    border: 2px solid rgba(0,0,0,.10);
    padding: 10px 12px;
    font-size: 1.15rem;
  }
  body:not(.light-theme) .menu-link{ border-color: rgba(255,255,255,.10); }

  .menu-link:hover{
    transform: translateY(-1px);
    filter: none;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
  }

  /* dropdown on mobile: menu becomes static block */
  .dropdown-menu{
    position: static;
    min-width: 0;
    padding: 8px;
    box-shadow: none;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    border: 2px dashed rgba(0,0,0,.14);
  }
  body:not(.light-theme) .dropdown-menu{ border-color: rgba(255,255,255,.14); }
}

/* =========================================================
   Donut theme toggle (your existing classes)
========================================================= */
.toggle-switch-container{
  z-index: 900;
  display:flex;
  flex-direction: column;
  align-items:center;
}
.switch-track{
  width: 70px;
  height: 36px;
  background: var(--toggle-track);
  border: 2px solid color-mix(in srgb, var(--stroke) 50%, transparent);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  box-shadow: inset 0 4px 6px rgba(0,0,0,.25);
}
body.light-theme .switch-track{
  background: var(--toggle-track-light);
  border-color: rgba(0,0,0,.45);
}
.donut-slider{
  width: 30px;
  height: 30px;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: transform .35s cubic-bezier(.68,-0.55,.265,1.55);
}
body.light-theme .donut-slider{ transform: translateX(34px) rotate(360deg); }
.donut-dough{ fill: #f3ae4b; }
.donut-frosting{ fill: #573529; transition: fill .2s ease; }
body.light-theme .donut-frosting{ fill: #ff4aa3; }
.sprinkle{ fill: #fff; }
.donut-dough{ fill:#f3ae4b; stroke:#000; stroke-width:2; }
.donut-frosting{ fill:#573529; }

/* =========================================================
   Main blocks (hero / generator / symbols)
========================================================= */
  
/* --- Mobile responsiveness --- */
@media (max-width: 600px) {
    .hero-block {
        padding: 20px 8px 18px 8px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .block-title {
        font-size: 1rem;
    }
    .popular-list li {
        padding: 7px 12px;
        font-size: 0.99rem;
    }
}
 /* --- СТИЛІ СЕО ТЕКСТУ КІНЕЦЬ --- */

/* .hero-block{
  max-width: var(--container-width);
  margin: 80px auto 0 auto;
  background: var(--sky-bg);
  border-radius: var(--radius-lg);
  border: 3px solid rgba(0,0,0,1);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px 22px;
}
body:not(.light-theme) .hero-block{ border-color: rgba(0,0,0,1); }

.hero-title{
  font-size: 2.25rem;
  font-weight: 950;
  margin-bottom: 12px;
  letter-spacing: .01em;
  color: var(--text);
  text-align:center;
}
.hero-subtitle{
  font-size: 1.2rem;
  font-weight: 700;
  text-align:center;
  margin-bottom: 12px;
  color: var(--muted);
}
.hero-highlight{
  display:inline-block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid rgba(0,0,0,.18);
}
body:not(.light-theme) .hero-highlight{ border-color: rgba(255,255,255,.10); }

.hero-desc{
  text-align:center;
  margin-bottom: 10px;
} */

/* NEW HERO BLOCK */
/* ===== HERO VARIANT A: Clean UI kit ===== */

/* NEW HERO BLOCK END */
.emoji-tip{ color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-weight: 800; }

.block-title{
  margin: 22px 0 10px;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .04em;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.popular-list{
  display:flex;
  gap: 12px;
  list-style:none;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.popular-list li{
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 850;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
body:not(.light-theme) .popular-list li{ border-color: rgba(255,255,255,.10); }

.hero-desc-step{
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  text-align:center;
  font-weight: 850;
  letter-spacing: .03em;
}

/* generator */
.generator{
  max-width: var(--container-width);
  margin: 26px auto 0;
  padding: 18px 0;
}
.generator h2{
 font-size: 1.45rem;
    font-weight: 950;
    margin-bottom: 35px;
    justify-self: center;
}
input[type="text"]{
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 1.06rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--text);
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transition: transform .12s ease, border-color .15s ease;
}
body:not(.light-theme) input[type="text"]{ border-color: rgba(255,255,255,.10); }

input[type="text"]:focus{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 70%, #000);
  outline: none;
}

/* style buttons */
.styles{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: center;
}
.style-btn{
  padding: 10px 14px;
  border: 3px solid rgba(0,0,0,.14);
  background: black;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(0, 0, 0, .18);
    transition: transform .12s ease, filter .15s ease;
}
body:not(.light-theme) .style-btn{ border-color: rgba(255,255,255,.10); box-shadow: 0 8px 0 rgba(0,0,0,.32); }
.style-btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.style-btn:active{ transform: translateY(2px); box-shadow: none; }

/* output */
.output{
  font-size: 1.35rem;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,.12);
  min-height: 44px;
  margin-bottom: 10px;
  word-wrap: break-word;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
body:not(.light-theme) .output{ border-color: rgba(255,255,255,.10); }

/* copy button */
#copyBtn{
  padding: 11px 18px;
  font-size: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--success) 86%, #fff), var(--success));
  color: #0b1410;
  border: 2px solid rgba(0,0,0,.18);
  border-radius: 999px;
  font-weight: 950;
  cursor:pointer;
  box-shadow: 0 8px 0 rgba(0,0,0,.18);
  transition: transform .12s ease, filter .15s ease;
   margin-top: 25px;
}
body:not(.light-theme) #copyBtn{ border-color: rgba(255,255,255,.10); box-shadow: 0 8px 0 rgba(0,0,0,.32); color: #07140e; }
#copyBtn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
#copyBtn:active{ transform: translateY(2px); box-shadow:none; }

/* symbols */
.symbols{
  max-width: var(--container-wide);
  margin: 12px auto 0;
  justify-items: center;
}
.symbols h2{
  font-size: 1.35rem;
  font-weight: 950;
  margin-bottom: 35px;
}
.symbol-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
   margin: 47px auto;
  justify-content: center;
}
.symbol{
  font-size: 1.45rem;
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: var(--symbol-shadow);
  color: var(--text);
  transition: transform .12s ease, background .15s ease;
}
body:not(.light-theme) .symbol{ border-color: rgba(255,255,255,.10); }
.symbol:hover{
  transform: translateY(-2px) rotate(-1deg);
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}

/* emoji tabs (your existing ids/classes) */
#emoji-tabs{
  display:flex;
  gap: 10px;
  margin: 45px 0 35px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-button{
  padding: 9px 14px;
  border: 2px solid rgba(0,0,0,.12);
  background: var(--paper);
  cursor:pointer;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 6px 0 rgba(0,0,0,.14);
  transition: transform .12s ease, background .15s ease;
  color: var(--text);
}
body:not(.light-theme) .tab-button{ border-color: rgba(255,255,255,.10); box-shadow: 0 6px 0 rgba(0,0,0,.30); }
.tab-button:hover{ transform: translateY(-1px); }
.tab-button.active{
 background: var(--logo-accent);
 color: var(--paper);
  border-color: rgba(0,0,0,.18);
}
#emoji-grid{
  max-width: var(--container-wide);
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.emoji{
  cursor:pointer;
  font-size: 2.2rem;
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
  color: var(--text);
  transition: transform .12s ease, background .15s ease;
}
body:not(.light-theme) .emoji{ border-color: rgba(255,255,255,.10); }
.emoji:hover{ transform: scale(1.12) rotate(-2deg); }

/* toast */
.toast{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
  border: 2px solid rgba(0,0,0,.18);
  box-shadow: var(--shadow-soft);
  font-weight: 950;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* =========================================================
   FAQ (your markup stays)
========================================================= */
.faq-section{
  max-width: var(--container-width);
  margin: 26px auto 0;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: var(--shadow-soft);
}
body:not(.light-theme) .faq-section{ border-color: rgba(255,255,255,.10); }

.faq-title{
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text);
}
.faq-list{ list-style:none; }

.faq-item + .faq-item{ margin-top: 10px; }

.faq-question{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 16px 44px 16px 14px;
  font-size: 1rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 2px solid rgba(0,0,0,.12);
  border-radius: var(--radius-md);
  cursor:pointer;
  text-align:left;
  position:relative;
  color: var(--text);
  box-shadow: 0 8px 0 rgba(0,0,0,.14);
  transition: transform .12s ease, background .15s ease;
}
body:not(.light-theme) .faq-question{ border-color: rgba(0,0,0,1); box-shadow: 0 8px 0 rgba(0,0,0,.30); }

.faq-question:hover{ transform: translateY(-1px); }

.faq-question::after{
  content:'';
  position:absolute;
  top:50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border: solid color-mix(in srgb, var(--text) 70%, transparent);
  border-width: 0 3px 3px 0;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .15s ease;
}
.faq-question[aria-expanded="true"]::after{
  transform: translateY(-50%) rotate(-135deg);
}

.faq-answer{
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -6px;
  font-size: 1.02rem;
  line-height: 1.7;
  transition: max-height .30s cubic-bezier(.4,0,.2,1), padding .15s ease;
  padding: 0 16px;
  border-left: 2px solid rgba(0,0,0,.12);
  border-right: 2px solid rgba(0,0,0,.12);
  border-bottom: 2px solid rgba(0,0,0,.12);
}
body:not(.light-theme) .faq-answer{
  border-color: transparent;
}

.faq-question[aria-expanded="true"] + .faq-answer{
  max-height: 520px;
  padding: 14px 16px 14px;
  margin-bottom: 10px;
}

.faq-answer ul{ margin: 10px 0 0 18px; }

/* =========================================================
   Modal (UI kit ready — optional)
========================================================= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.modal.is-open{ display:flex; }

.modal-card{
  width: min(520px, calc(100% - 28px));
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0,0,0,.16);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
}
body:not(.light-theme) .modal-card{ border-color: rgba(255,255,255,.12); }

.modal-title{
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 8px;
}
.modal-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* =========================================================
   FOOTER — Sky + Surface (your footer.html)
========================================================= */
.site-footer{
  position: relative;
  margin-top: 54px;
  padding: 0;
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  overflow: hidden;
}

/* sky strip */
.site-footer::before{
  content:"";
  display:block;
  height: 70px;
  background: var(--sky-bg);
  border-bottom: 1px solid rgba(0,0,0,.10);

  mask-image:
    linear-gradient(black, black),
    radial-gradient(circle at 50% 0, black 70%, transparent 71%);
  mask-size:
    100% calc(100% - 16px),
    32px 16px;
  mask-position: top center, bottom left;
  mask-repeat: no-repeat, repeat-x;

  -webkit-mask-image:
    linear-gradient(black, black),
    radial-gradient(circle at 50% 0, black 70%, transparent 71%);
  -webkit-mask-size: 100% calc(100% - 16px), 32px 16px;
  -webkit-mask-position: top center, bottom left;
  -webkit-mask-repeat: no-repeat, repeat-x;
}

/* stars on footer strip (dark only via token opacity) */
.site-footer::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 70px;
  background-image:
    radial-gradient(2px 2px at 18px 18px, #fff, transparent),
    radial-gradient(2px 2px at 110px 32px, #fff, transparent),
    radial-gradient(2px 2px at 160px 14px, #fff, transparent),
    radial-gradient(2px 2px at 240px 28px, #fff, transparent),
    radial-gradient(2px 2px at 290px 18px, #fff, transparent);
  background-size: 320px 70px;
  background-repeat: repeat;
  opacity: calc(var(--stars-visible) * .85);
  pointer-events:none;
}

.footer-container{
  max-width: var(--container-wide);
  margin: 0 auto;
  display:flex;
  align-items:flex-start;
  padding: 18px 18px 26px 18px;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-logo{
  position: relative;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid rgba(0,0,0,.14);
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.2deg);
}
body:not(.light-theme) .footer-logo{ border-color: rgba(255,255,255,.10); }

.footer-logo a{ display:inline-flex; align-items:center; justify-content:center; transition: transform .12s ease; }
.footer-logo a:hover{ transform: translateY(-1px) scale(1.02); }
.footer-logo img{ height: 86px; width:auto; }

.footer-cols{
  display:flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 22px;
}

.footer-col{ min-width: 190px; margin-bottom: 8px; }

.footer-col h3{
  color: var(--footer-heading);
  font-size: 1.05em;
  margin-bottom: 10px;
  letter-spacing: .02em;
  font-weight: 950;
}

.footer-col ul{ list-style:none; }

.footer-col ul li{ margin-bottom: 8px; }

.footer-col a{
  color: var(--footer-link);
  text-decoration:none;
  font-weight: 850;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: transform .12s ease, color .15s ease;
}
.footer-col a:hover{
  color: var(--footer-link-hover);
  transform: translateY(-1px);
}

.footer-bottom{
  background: var(--footer-bottom-bg);
  text-align:center;
  color: var(--footer-bottom-text);
  font-size: .95em;
  padding: 14px 10px;
  border-top: 1px solid var(--footer-border);
}

@media (max-width: 900px){
  .footer-container{ flex-direction: column; align-items:center; }
  .footer-cols{ flex-direction: column; width:100%; text-align: center; }
  .footer-col{ min-width: 0; }
  .footer-logo{ transform: rotate(0deg); }
}

/* =========================================================
   Small responsive tweaks
========================================================= */
@media (max-width: 600px){
  .hero-block{ padding: 18px 14px; margin: 45px auto 0 auto; }
  .hero-title{ font-size: 1.55rem; }
  .hero-subtitle{ font-size: 1rem; }
  .generator h2, .symbols h2{ font-size: 1.2rem; }
  .output{ font-size: 1.2rem; }
  .styles{
      height: 365px;
    overflow: auto;
   }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}




















/* ===========================
   Font4Social HERO (Prefix: f4s-)
   Style: Dark Mode Default
=========================== */

/* --- Config & Variables --- */
.f4s-block {
  /* Розміри та відступи */
  --f4s-gap: 16px;
  --f4s-radius-xl: 22px;
  --f4s-radius-lg: 14px;
  
  /* Кольори (Dark Theme Default) */
  --f4s-text: #ffffff;
  --f4s-muted: rgba(255, 255, 255, 0.78);
  --f4s-ink: #000000;       /* Чорна обводка */
  
  --f4s-bg-card: #242A63;   /* Фон великої картки */
  --f4s-bg-ui: #1C2148;     /* Фон кнопок/панелей */
  --f4s-bg-tip: rgba(255, 255, 255, 0.08); /* Фон підказки */
  
  --f4s-brand: #F2D13D;     /* Жовтий */
  --f4s-cyan: #00E6FF;
  --f4s-ok: #42E58C;
  --f4s-warn: #ff4d6d;

  --f4s-border-color: rgba(0,0,0,1);
  --f4s-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  
  /* Base settings */
  box-sizing: border-box;
  padding: 22px 0 10px;
  font-family: "Nunito", sans-serif;
  color: var(--f4s-text);
}

.f4s-block * { box-sizing: border-box; }

/* --- LIGHT THEME (Optional Override) --- */
body.light-theme .f4s-block {
  --f4s-text: #111111;
  --f4s-muted: rgba(0, 0, 0, 0.65);
  --f4s-bg-card: #fff7cc;
  --f4s-bg-ui: #a3a29d;
  --f4s-bg-tip: rgba(255, 255, 255, 0.50);
  --f4s-brand: #FFD90F;
  --f4s-border-color: #000000;
}

/* --- Container --- */
.f4s-wrap {
  width: min(1000px, calc(100% - 0px));
  margin: 0 auto;
}

/* --- Main Card --- */
.f4s-card {
  background: var(--f4s-bg-card);
  padding: 18px;
  border: 3px solid var(--f4s-border-color);
  border-radius: var(--f4s-radius-xl);
  box-shadow: var(--f4s-shadow);
}

/* --- Header Layout --- */
.f4s-head {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .f4s-head { grid-template-columns: 1fr; } }

/* --- Typography --- */
.f4s-title {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: 1px;
  color: var(--f4s-text);
}

.f4s-lead {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--f4s-muted);
  font-size: 1.05rem;
  line-height: 1.35;
  max-width: 62ch;
}

/* --- Badges --- */
.f4s-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px; }

.f4s-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 999px; border: 3px solid var(--f4s-border-color);
  background: var(--f4s-bg-ui); font-weight: 900; font-size: 0.9rem; line-height: 1;
  color: #111; /* Текст на бейджах темний */
  box-shadow: 0 4px 0 rgba(0,0,0,0.20);
}
.f4s-badge--brand { background: var(--f4s-brand); }
.f4s-badge--cyan { background: var(--f4s-cyan); }
.f4s-badge--ok { background: var(--f4s-ok); }
.f4s-badge--warn { background: var(--f4s-warn); }

/* --- Tip Box --- */
.f4s-tip {
  display: flex; gap: 10px; align-items: center;
  margin: 0; padding: 10px 12px;
  border: 3px solid var(--f4s-border-color);
  border-radius: var(--f4s-radius-lg);
  background: var(--f4s-bg-tip);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--f4s-shadow);
}
body.light-theme .f4s-tip { color: rgba(0,0,0,0.85); }

/* --- Buttons --- */
.f4s-side { display: grid; gap: 10px; align-content: start; }
.f4s-side .f4s-btn { width: 100%; }

@media (max-width: 900px) { .f4s-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f4s-side { grid-template-columns: 1fr; } }

.f4s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 3px solid var(--f4s-border-color); border-radius: 18px; padding: 12px 16px;
  font-weight: 900; text-decoration: none; background: var(--f4s-bg-ui);
  color: var(--f4s-text); box-shadow: var(--f4s-shadow);
  transition: transform 0.1s ease; cursor: pointer; line-height: 1;
}
body.light-theme .f4s-btn { color: #111; }

.f4s-btn:hover { transform: translateY(-2px); }
.f4s-btn:active { transform: translateY(1px); }

.f4s-btn--primary { background: var(--f4s-brand); color: #111; }
.f4s-btn--ghost { background: transparent; }
.f4s-btn--lg { font-size: 1.05rem; padding: 14px 24px; }

/* --- Divider --- */
.f4s-divider {
  height: 3px; margin: 20px 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
body.light-theme .f4s-divider { background: rgba(0, 0, 0, 0.18); }

/* --- Grid & Panels --- */
.f4s-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; margin-top: 20px;
}
@media (max-width: 900px) { .f4s-grid { grid-template-columns: 1fr; margin-top: 20px;} }

.f4s-panel {
  padding: 14px;
  background: var(--f4s-bg-ui);
  border: 3px solid var(--f4s-border-color);
  border-radius: var(--f4s-radius-xl);
  box-shadow: var(--f4s-shadow);
}

.f4s-panel-title { 
  margin: 0 0 10px; font-family: "Luckiest Guy", cursive;
  font-size: 1.35rem; letter-spacing: 0.8px; color: var(--f4s-text);
}

/* --- Lists --- */
.f4s-list, .f4s-steps {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
}
.f4s-steps { margin-bottom: 10px; }

.f4s-list li, .f4s-steps li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; color: rgba(255, 255, 255, 0.90);
}
body.light-theme .f4s-list li, 
body.light-theme .f4s-steps li { color: rgba(0, 0, 0, 0.80); }

.f4s-step-num {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border: 3px solid var(--f4s-ink); border-radius: 12px;
  background: var(--f4s-brand); box-shadow: 0 4px 0 rgba(0,0,0,0.20);
  font-family: "Luckiest Guy", cursive; line-height: 1; color: #000;
}

.f4s-meta {
  font-size: 0.9rem; color: var(--f4s-muted); font-weight: 800;
  text-align: center; margin-top: 5px;
}

/* =========================================================
   BLOG & TIPS SYSTEM (Dark/Light Neo-Brutalism)
========================================================= */

/* --- 1. Layout & Header --- */
.blog-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 20px 0 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.blog-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 950;
  color: var(--text);
  margin-bottom: 16px;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.blog-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
}

/* --- 2. Posts Grid (Index Page) --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 10px;
}

.post-card {
  background: var(--paper);
  border: 3px solid rgba(0,0,0,.18); /* Товста рамка як в інпутів */
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.175, .885, .32, 1.275), box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Fix borders for Dark Mode */
body:not(.light-theme) .post-card {
  border-color: rgba(255,255,255,.12);
}

.post-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-hard); /* Твоя жорстка тінь */
  border-color: var(--accent);
  z-index: 2;
}

.post-card-image-wrapper {
  height: 200px;
  overflow: hidden;
  border-bottom: 3px solid rgba(0,0,0,.12);
  background: var(--surface);
}
body:not(.light-theme) .post-card-image-wrapper {
  border-bottom-color: rgba(255,255,255,.12);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-tag {
  align-self: flex-start;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.1);
}

.post-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.2;
}

.post-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.read-more {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  background: var(--accent);
  padding: 10px 0;
  text-align: center;
  border-radius: var(--radius-md);
  margin-top: auto;
  transition: filter 0.2s;
}
.post-card:hover .read-more {
  filter: brightness(1.1);
}

/* --- 3. Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.pagination-btn {
  padding: 10px 20px;
  background: var(--paper);
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s;
}
body:not(.light-theme) .pagination-btn {
  border-color: rgba(255,255,255,.15);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination-info {
  font-weight: 700;
  color: var(--muted);
}

/* =========================================================
   SINGLE ARTICLE PAGE STYLES
========================================================= */

.single-post-container {
  max-width: 800px; /* Вужчий контейнер для читання */
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.single-post{
   max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
}
/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  border-bottom-color: var(--accent);
  color: var(--text);
}

/* Article Header */
.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 950;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance; /* Красивий перенос заголовка */
}

.article-meta {
  display: inline-flex;
  gap: 15px;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
}
body:not(.light-theme) .article-meta {
  border-color: rgba(255,255,255,.1);
}

.article-cover {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(0,0,0,.15);
  margin-bottom: 50px;
  box-shadow: var(--shadow-soft);
}
body:not(.light-theme) .article-cover {
  border-color: rgba(255,255,255,.1);
}

/* Typography (Content) */
.post-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 50px 0 20px;
  color: var(--text);
  scroll-margin-top: 100px; /* Відступ при якірному посиланні */
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 35px 0 15px;
  color: var(--accent);
}

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
  background: var(--surface);
  padding: 20px 20px 20px 40px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.05);
}

.post-content li {
  margin-bottom: 10px;
}
.post-content li::marker {
  color: var(--accent);
  font-weight: bold;
}

.post-content strong {
  color: var(--text);
  font-weight: 800;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.post-content a:hover {
  color: var(--accent-hover);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

/* Code blocks (optional) */
.post-content code {
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--brand-color);
}
body.light-theme .post-content code {
  background: rgba(0,0,0,0.05);
  color: #d63384;
}

/* --- CTA Box (At the end of article) --- */
.cta-box {
  background: var(--paper);
  border: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  margin-top: 80px;
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.cta-box h3 {
  font-size: 1.8rem;
  font-weight: 950;
  margin-bottom: 12px;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--brand-color);
  color: #000;
  font-weight: 950;
  font-size: 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: 0 6px 0 #000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #000;
  background: #ffe066;
}
.cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #000;
   }



/* =========================================================
  TO TOP BUTTON
========================================================= */

/* =========================================================
   Rocket Back To Top (fixed flame + no hover color swap)
   Default theme: DARK
   Light theme when body.light-theme exists
========================================================= */

.rkt-btn, .rkt-btn * { box-sizing: border-box; }

.rkt-btn{
  --rkt-bg: #242A63;            /* dark default */
  --rkt-accent: #00E6FF;

  position: fixed;
  right: 22px;
  bottom: 22px;

  width: 56px;
  height: 56px;

  border: 3px solid #000;
  border-radius: 14px;
  background: var(--rkt-bg);
  box-shadow: 5px 5px 0 #000;

  cursor: pointer;
  z-index: 999;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.86);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0ms linear 220ms;
}

/* Light theme */
body.light-theme .rkt-btn{
  --rkt-bg: #ffe066;
  --rkt-accent: #00ffea;
}

.rkt-btn.rkt-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* WRAPPER: ship + flame move together */
.rkt-wrap{
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform, opacity;
}

/* CENTER ship absolutely (so flame can be glued precisely) */
.rkt-ship{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* FLAME glued to nozzle:
   Put it under ship bottom with tiny overlap.
   ship bottom is at (50% + 16px). Flame top should be ~ (50% + 15px). */
.rkt-flame{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;

  /* <= key alignment */
  transform: translate(-50%, 15px) scale(0.95);

  z-index: 2;
  opacity: 0;
  transform-origin: 50% 0%;
  pointer-events: none;
}

/* ---------------------------
   Hover: NO color changes
   (only lift + shadow + jiggle)
---------------------------- */
.rkt-btn:hover:not(.rkt-launching):not(.rkt-returning):not(.rkt-lock){
  transform: translateY(-3px) scale(1);
  box-shadow: 7px 7px 0 #000;
}

.rkt-btn:hover:not(.rkt-launching):not(.rkt-returning):not(.rkt-lock) .rkt-wrap{
  animation: rktRumble 280ms infinite linear;
}

@keyframes rktRumble{
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(-2deg) translateY(1px); }
  50%  { transform: rotate(0deg) translateY(0); }
  75%  { transform: rotate(2deg) translateY(1px); }
  100% { transform: rotate(0deg) translateY(0); }
}

/* ---------------------------
   Launch
---------------------------- */
.rkt-btn.rkt-launching{
  background: #ff5e00;
  box-shadow: 0 0 0 #000;
  transform: translateY(3px) scale(1);
  cursor: default;
  pointer-events: none; /* kills hover after click */
}

/* Flame appears ONLY on click */
.rkt-btn.rkt-launching .rkt-flame{
  opacity: 1;
  animation: rktFlame 80ms infinite alternate;
}

/* small flame flicker but stays glued to nozzle */
@keyframes rktFlame{
  from { transform: translate(-50%, 15px) scale(0.92) rotate(-2deg); }
  to   { transform: translate(-50%, 15px) scale(1.18) rotate(2deg); }
}

/* Fly away (wrapper animation = ship+flame together) */
.rkt-btn.rkt-launching .rkt-wrap{
  animation: rktLaunch 820ms cubic-bezier(0.6,-0.28,0.735,0.045) forwards;
}

@keyframes rktLaunch{
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  18%  { transform: translateY(7px) scale(0.92); }
  100% { transform: translateY(-240px) scale(1.55); opacity: 0; }
}

/* ---------------------------
   Re-entry (returns without flame)
---------------------------- */
.rkt-btn.rkt-returning{
  background: var(--rkt-bg);
  box-shadow: 5px 5px 0 #000;
  pointer-events: none;
}

.rkt-btn.rkt-returning .rkt-flame{
  opacity: 0;
  animation: none;
}

.rkt-btn.rkt-returning .rkt-wrap{
  animation: rktReturn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes rktReturn{
  0%   { transform: translateY(-240px) scale(1.55); opacity: 0; }
  60%  { transform: translateY(8px) scale(1); opacity: 1; }
  82%  { transform: translateY(-4px) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* lock helper (keeps visible during sequence) */
.rkt-btn.rkt-lock{ }

/* ---------------------------
   Mobile
---------------------------- */
@media (max-width: 600px){
  .rkt-btn{
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }
  .rkt-ship{ width: 28px; height: 28px; }
  .rkt-flame{ width: 22px; height: 22px; transform: translate(-50%, 14px) scale(0.95); }
  @keyframes rktFlame{
    from { transform: translate(-50%, 14px) scale(0.92) rotate(-2deg); }
    to   { transform: translate(-50%, 14px) scale(1.18) rotate(2deg); }
  }
}

/* ---------------------------
   Reduced motion
---------------------------- */
@media (prefers-reduced-motion: reduce){
  .rkt-btn, .rkt-wrap, .rkt-flame{
    animation: none !important;
    transition: none !important;
  }
}























/* =========================================================
   Donut theme toggle (2 instances) — body.light-theme
========================================================= */
.toggle-switch-container{
  z-index: 900;
  display:flex;
  flex-direction: column;
  align-items:center;
}

.switch-track{
  width: 70px;
  height: 36px;
  background: var(--sky-bg);
  border: 3px solid black;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  box-shadow: inset 0 4px 6px rgba(0,0,0,.25);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.light-theme .switch-track{
  background: var(--sky-bg);
  border-color: rgba(0,0,0,1);
}

.donut-slider{
  width: 34px;
  height: 30px;
  position: absolute;
  top: 0px;
  left: 2px;
  transition: transform .35s cubic-bezier(.68,-0.55,.265,1.55);
  display: grid;
  place-items: center;
}

body.light-theme .donut-slider{
  transform: translateX(28px) rotate(360deg);
}

/* placeholder icon (заміняєш на SVG коли захочеш) */
.donut-icon{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  border-radius: 999px;
  background: #f3ae4b;
  border: 2px solid #000;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

/* =========================================================
   Desktop vs Mobile visibility
========================================================= */
.toggle-switch-container--mobile{ display:none; }

@media (max-width: 870px){
  .toggle-switch-container--desktop{ display:none; }
  .toggle-switch-container--mobile{ display:flex; }
   .switch-track{
  width: 55px;
   }
   body.light-theme .donut-slider{
  transform: translateX(14px) rotate(360deg);
}
   .donut-slider {
    width: 33px;
   height: 27px;
   }
}

/* =========================================================
   Mobile dock placement (above your rocket)
========================================================= */
.theme-dock{
  position: fixed;
  right: 22px;
  bottom: 88px;  /* над ракетою */
  z-index: 1001;
}

/* якщо на мобілці ракета менша і стоїть ближче */
@media (max-width: 600px){
  .theme-dock{
    right: 12px;
    bottom: 74px;
  }
    .switch-track{
  width: 55px;
  border-radius: 15px;
   }
   body.light-theme .donut-slider{
  transform: translateX(20px) rotate(360deg);
}
  .donut-slider {
       width: 32px;
       height: 28px;
       top: 1px;
       left: -2px;
}
   
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .donut-slider{
    transition: none !important;
  }
}





















/* =========================================================
   SHARE BUTTONS (Neo-Brutalism Style)
========================================================= */

.share-container {
  margin: 40px 0;
  padding: 25px;
  background: var(--surface);
  border: 3px solid #000; /* Товста рамка */
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15); /* М'яка тінь блоку */
  text-align: center;
}

/* Для темної теми */
body:not(.light-theme) .share-container {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

.share-label {
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000; /* Жорстка тінь кнопки */
  color: #000; /* Текст завжди чорний для контрасту */
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 #000;
}

.share-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #000;
}

/* Кольори кнопок */
.share-btn.telegram { background: #229ED9; color: #fff; border-color: #000; }
.share-btn.twitter { background: #000; color: #fff; border-color: #333; }
.share-btn.facebook { background: #1877F2; color: #fff; border-color: #000; }

/* Кнопка Copy - жовта (брендова) */
.share-btn.copy { 
  background: var(--brand-color, #ffe066); 
  color: #000;
}

/* Адаптація для мобільних */
@media (max-width: 600px) {
  .share-buttons {
    flex-direction: column; /* Кнопки одна під одною на телефоні */
    width: 100%;
  }
  .share-btn {
    width: 100%;
  }
}













/* =========================================================
   Font4Social Generator (neo-brutal, dark default, light-theme override)
========================================================= */

.generator-wrapper{
  /* локальні токени (щоб не ламати інші блоки) */
   max-width: var(--container-wide, 1440px);
  margin: 0 auto; /* центрування по горизонталі */
  --g-ink: #000;
  --g-radius-xl: 22px;
  --g-radius-lg: 18px;

  /* default DARK */
  --g-bg: rgba(255,255,255,0.04);
  --g-surface: #1C2148;
  --g-surface2:#242A63;
  --g-text: rgba(255,255,255,0.92);
  --g-muted: rgba(255,255,255,0.78);

  /* акценти (підхоплюємо твої, якщо є) */
  --g-brand: var(--brand, #F2D13D);
  --g-cyan: var(--brand-2, #00E6FF);
  --g-ok: var(--success, #42E58C);
  --g-warn: var(--warning, #FFB347);

  --g-shadow: 0 6px 0 rgba(0,0,0,0.25);

  color: var(--g-text);
  padding: 18px 0 26px;
}

/* LIGHT THEME */
body.light-theme .generator-wrapper{
  --g-bg: rgb(255 251 229);
  --g-surface: #a3a29d;
  --g-surface2: #a3a29d;
  --g-text: rgba(0,0,0,0.90);
  --g-muted: rgba(0,0,0,0.65);
  --g-brand: #f17289;
}

/* контейнер інпуту: sticky */
.sticky-input-container{
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 20px;
  border-radius: var(--g-radius-xl);
  border: 3px solid var(--g-ink);
  background: var(--g-surface2);
  box-shadow: var(--g-shadow);
  max-width: var(--container-width);
  margin: auto;
}

/* інпут + кнопка очищення */
.input-wrapper{
  display: flex;
  align-items: stretch;
  gap: 10px;
}

#mainTextInput{
  flex: 1;
  width: 100%;
  border: 3px solid var(--g-ink);
  border-radius: var(--g-radius-lg);
  padding: 12px 14px;
  background: var(--g-bg);
  color: var(--g-text);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 5px 0 rgba(0,0,0,0.20);
  outline: none;
  margin-bottom: 0;
}

#mainTextInput::placeholder{
  color: color-mix(in srgb, var(--g-muted) 80%, transparent);
}

#mainTextInput:focus{
  /* якщо в тебе є --focus — воно підхопиться, якщо ні — даю fallback */
  box-shadow: 0 5px 0 rgba(0,0,0,0.20), var(--focus, 0 0 0 4px rgba(0,230,255,0.35));
}

/* кнопка X */
.clear-btn{
  width: 46px;
  min-width: 46px;
  border: 3px solid var(--g-ink);
  border-radius: var(--g-radius-lg);
  background: var(--g-brand);
  color: rgba(0,0,0,0.92);
  box-shadow: 0 5px 0 rgba(0,0,0,0.20);
  cursor: pointer;

  display: grid;
  place-items: center;

  opacity: 0;
  transform: translateY(2px) scale(0.92);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.clear-btn svg{ display:block; }

.clear-btn.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.clear-btn:hover{
  transform: translateY(-2px) scale(1);
}

.clear-btn:active{
  transform: translateY(1px) scale(1);
  box-shadow: 0 3px 0 rgba(0,0,0,0.20);
}

/* попередження мови */
.language-warning{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--g-radius-lg);
  border: 3px solid var(--g-ink);
  background: color-mix(in srgb, var(--g-warn) 55%, transparent);
  box-shadow: 0 5px 0 rgba(0,0,0,0.18);
  font-weight: 900;
  color: rgba(0,0,0,0.90);

  display: none;
}

.language-warning.visible{ display: block; }

/* грід результатів */
.results-grid {
  margin-top: 14px;
  display: grid;
  gap: 16px; /* Трохи збільшив gap для великих екранів, так краще дихає */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 3. Адаптивність (Медіа-запити) */
@media (max-width: 1200px) {
  /* Для середніх екранів (ноутбуки) — 3 картки */
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .results-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .results-grid{ grid-template-columns: 1fr; }
  .sticky-input-container{ top: 10px; padding: 10px; }
}

/* картка шрифту */
.font-card{
  border: 3px solid var(--g-ink);
  border-radius: var(--g-radius-xl);
  background: var(--g-surface);
  box-shadow: var(--g-shadow);
  padding: 12px 12px;

  cursor: pointer;
  user-select: none;

  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}

.font-card:hover{
  transform: translateY(-2px);
}

.font-card:active{
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

/* назва стилю */
.font-name{
  font-family: "Luckiest Guy", cursive;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--g-text);
}

/* превʼю */
.font-preview {
  font-weight: 900;
  font-size: 1.12rem;
  /* 1. Фіксуємо чіткий міжрядковий інтервал */
  line-height: 1.4; 
  color: var(--g-text);

  /* 2. Твої падінги (10px зверху і 10px знизу, разом 20px) */
  padding: 5px 10px; 
  border-radius: 16px;
  border: 3px solid var(--g-ink);
  background: var(--g-bg);
  box-shadow: 0 4px 0 rgba(0,0,0,0.18);

  word-break: break-word;
  overflow-wrap: anywhere;

  /* 3. Стандартне обрізання тексту з трьома крапками */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* 4. Жорстко відрізаємо висоту контейнера (магія calc) */
  /* 1.4em (line-height) * 2 рядки = 2.8em */
  /* 2.8em + 20px (падінги) */
  max-height: calc(1.4em * 2 + 20px);
}

/* підказка */
.copy-hint{
  margin-top: 10px;
  font-weight: 900;
  color: var(--g-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* copied state */
.font-card.copied{
  background: color-mix(in srgb, var(--g-ok) 20%, var(--g-surface));
}

.font-card.copied .copy-hint{
  color: color-mix(in srgb, var(--g-ok) 80%, var(--g-text));
}

/* optional: легка "мітка" справа */
.font-card .copy-hint::before{
  content: "⎘";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 10px;
  border: 3px solid var(--g-ink);
  background: var(--g-brand);
  color: rgba(0,0,0,0.9);
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
  font-size: 16px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .font-card, .clear-btn{
    transition: none !important;
  }
}





:root{ --pat-opacity: .10; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: url("../img/pattern.svg");
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: var(--pat-opacity);
}

body.light-theme{ --pat-opacity: .07; }


.emoji-modebar{
  display:flex;
  gap:10px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.emoji-mode-btn{
  border: 3px solid #000;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  background: var(--paper);
  box-shadow: 0 5px 0 rgba(0,0,0,0.20);
  color: var(--text)
}

.emoji-mode-btn.active{
 color:var(--paper);
  background: var(--yellow-pink);
  transition: transform 0.3s ease;
  transform: scale(1.1);
}

/* =========================================================
  Sticker preview mode: outline around emoji contour
========================================================= */

/* базово (щоб переходи були приємні) */
.symbols .emoji{
  transition: transform .12s ease, filter .12s ease, text-shadow .12s ease;
  will-change: transform;
}

/* режим Sticker */
.symbols.emoji-sticker-preview .emoji{
  text-shadow:
    2px 0 0 var(--contrast-color), -2px 0 0 var(--contrast-color), 0 2px 0 var(--contrast-color), 0 -2px 0 var(--contrast-color);
}

.emoji-mode{
  margin: 25px auto;
}

/* якщо у користувача reduce motion */
@media (prefers-reduced-motion: reduce){
  .symbols .emoji{ transition: none !important; }
}

/* Секції які нижче першого екрану */
.symbols,
.faq-section,
.generator-wrapper {
  content-visibility: auto;
  contain-intrinsic-size: 1200px; /* щоб не стрибало місце */
}















/* ===== Sticker modal UX polish ===== */

.sticker-panel{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 14px;
}
.sticker-panel.is-open{ display:flex; }

.sticker-card{
  width: min(440px, 100%);
  background: var(--paper, #fff);
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  padding: 12px;
  display: grid;
  gap: 10px;
  position: relative;

  transform: translateY(8px);
  animation: modalIn 160ms ease-out forwards;
}

@keyframes modalIn{
  to { transform: translateY(0); }
}

.sticker-preview{
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
  display:block;
}

/* Close X button */
.sticker-x{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border:3px solid #000;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow: 0 5px 0 rgba(0,0,0,0.20);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}

body.dark-theme .sticker-x{
  background: rgba(255,255,255,0.18);
}

.sticker-x:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.22);
}
.sticker-x:active{
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.20);
}
.sticker-x:focus-visible{
  outline: none;
  box-shadow: 0 5px 0 rgba(0,0,0,0.20), var(--focus, 0 0 0 4px rgba(0,230,255,0.35));
}

.sticker-x svg{
  width:18px;
  height:18px;
  stroke:#000;
  stroke-width:3.5;
  stroke-linecap:round;
}

/* Buttons */
.sticker-actions{
  display: grid;
  gap: 8px;
}

.sticker-btn{
  border: 3px solid #000;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  background: var(--paper-2, #fff7cc);
  color: #000;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 0 rgba(0,0,0,0.20);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.sticker-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.22);
}

.sticker-btn:active{
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.20);
}

.sticker-btn.is-done{
  filter: saturate(1.1);
}

.sticker-copy{ background: var(--brand, #FFD90F); }

.sticker-hint{
  border-top: 2px dashed rgba(0,0,0,0.18);
  padding-top: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.72);
}

body.dark-theme .sticker-hint{
  color: rgba(255,255,255,0.75);
  border-top-color: rgba(255,255,255,0.16);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .sticker-card{ animation:none; transform:none; }
  .sticker-btn, .sticker-x{ transition:none !important; }
}
